    :root{
      --bg: #0b1220;
      --panel: rgba(255,255,255,.06);
      --panel2: rgba(255,255,255,.09);
      --line: rgba(255,255,255,.10);
      --text: rgba(255,255,255,.92);
      --muted: rgba(255,255,255,.66);
      --muted2: rgba(255,255,255,.52);
      --accent: #7c3aed;
      --accent2:#22c55e;
      --warn: #f59e0b;
      --shadow: 0 18px 55px rgba(0,0,0,.45);
      --radius: 18px;
      --radius2: 24px;
      --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
      --vvh: 100vh;
      --sidebarW: 420px;
      --safeB: env(safe-area-inset-bottom, 0px);
      --topPad: env(safe-area-inset-top, 0px);
      --searchMax: 620px;
      --zoomOffsetLeft: 10px;
      --zoomOffsetTop: calc(88px + var(--topPad));
      --sheetPeek: 112px;
      --sheetTopGap: calc(88px + var(--topPad));
    }

    *{ box-sizing:border-box }
    html,body{ height:100% }
    body{
      margin:0;
      font-family: var(--font);
      color: var(--text);
      background: var(--bg);
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      overflow:hidden;
    }

    .app{ position:relative; height:100%; width:100%; }

    #map{
      position:absolute;
      inset:0;
      height:100%;
      width:100%;
      z-index: 1;
      background: #161D2C;
    }

    /* =========
       TOP BAR
       ========= */
    .topbar{
      position:absolute;
      top: calc(12px + var(--topPad));
      left: 0;
      right: 0;
      z-index: 60;
      display:flex;
      justify-content:center;
      padding: 0 12px;
      pointer-events:none;
    }
    .topbarInner{
      width: 100%;
      max-width: var(--searchMax);
      display:flex;
      gap:10px;
      align-items:center;
      pointer-events:auto;
    }
    .search{
      position: relative;
      flex: 1;
      display:flex;
      align-items:center;
      gap:10px;
      padding: 12px 12px;
      border-radius: 999px;
      background: rgba(255,255,255,.06);
      border: 1px solid rgba(255,255,255,.14);
      backdrop-filter: blur(14px);
      box-shadow: 0 14px 40px rgba(0,0,0,.25);
    }
    .search input{
      width:100%;
      background: transparent;
      border:none;
      outline:none;
      color: var(--text);
      font-size: 14px;
      padding-right: 34px;
    }
    .search input::placeholder{ color: rgba(255,255,255,.45); }

    .icon{ width: 18px; height: 18px; opacity:.78; flex: 0 0 auto; }

    .btnIcon{
      width: 44px;
      height: 44px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,.14);
      background: rgba(255,255,255,.06);
      backdrop-filter: blur(14px);
      box-shadow: 0 14px 40px rgba(0,0,0,.25);
      display:grid;
      place-items:center;
      cursor:pointer;
      user-select:none;
      transition: transform .12s ease, background .12s ease;
    }
    .btnIcon:hover{ transform: translateY(-1px); background: rgba(255,255,255,.08); }
    .btnIcon:active{ transform: translateY(0px); }

    .searchClear{
      position:absolute;
      right: 10px;
      top: 50%;
      transform: translateY(-50%);
      width: 28px;
      height: 28px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,.12);
      background: rgba(0,0,0,.18);
      display:none;
      place-items:center;
      cursor:pointer;
      user-select:none;
    }
    .searchClear:hover{ background: rgba(255,255,255,.08); }
    .searchClear svg{ width: 14px; height: 14px; opacity:.85; }

    /* =========
       SIDEBAR
       ========= */
    .sidebar{
      position:absolute;
      top: 0;
      left: 0;
      bottom: 0;
      width: var(--sidebarW);
      max-width: 92vw;
      z-index: 50;
      background: rgba(12,18,32,.74);
      border-right: 1px solid rgba(255,255,255,.10);
      backdrop-filter: blur(18px);
      box-shadow: 18px 0 55px rgba(0,0,0,.40);
      transform: translateX(-102%);
      transition: transform .22s ease;
      display:flex;
      flex-direction:column;
      padding-top: calc(78px + var(--topPad));
    }
    .sidebar[data-open="true"]{ transform: translateX(0); }

    .sideHead{
      position: relative;
      padding: 10px 14px 12px;
      border-bottom: 1px solid rgba(255,255,255,.10);
    }
    .sideHead .title{
      margin:0;
      font-size: 14px;
      font-weight: 900;
      letter-spacing:.2px;
      padding-right: 44px;
    }
    .sideHead .sub{
      margin-top: 4px;
      font-size: 12px;
      color: var(--muted);
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
      padding-right: 44px;
    }

    .sideClose{
      position:absolute;
      right: 10px;
      top: 10px;
      width: 34px;
      height: 34px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,.12);
      background: rgba(0,0,0,.18);
      display:grid;
      place-items:center;
      cursor:pointer;
      user-select:none;
    }
    .sideClose:hover{ background: rgba(255,255,255,.08); }
    .sideClose svg{ width: 16px; height: 16px; opacity:.9; }

    .controls{
      display:flex;
      gap:10px;
      margin-top: 10px;
      align-items:center;
      flex-wrap:wrap;
    }

    .select{
      border: 1px solid rgba(255,255,255,.14);
      background: rgba(0,0,0,.14);
      border-radius: 999px;
      padding: 9px 10px;
      color: rgba(255,255,255,.86);
      font-size: 12px;
      outline:none;
    }

    .chips{
      display:flex;
      flex-wrap:wrap;
      gap:8px;
      margin-top: 10px;
    }
    .chip{
      padding: 9px 10px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,.12);
      background: rgba(255,255,255,.05);
      cursor:pointer;
      user-select:none;
      font-size: 12px;
      color: var(--muted);
      font-weight: 750;
      transition: background .12s ease, border-color .12s ease, transform .12s ease;
      display:inline-flex; align-items:center; gap:8px;
      -webkit-tap-highlight-color: transparent;
    }
    .chip:hover{ background: rgba(255,255,255,.08); transform: translateY(-1px) }
    .chip[data-active="true"]{
      background: rgba(34,197,94,.14);
      border-color: rgba(34,197,94,.38);
      color: rgba(255,255,255,.86);
    }
    .dot{ width:8px;height:8px;border-radius:99px; background: rgba(255,255,255,.35); }
    .chip[data-active="true"] .dot{
      background: rgba(34,197,94,.9);
      box-shadow: 0 0 0 4px rgba(34,197,94,.18);
    }

    .list{
      padding: 10px;
      overflow:auto;
      display:grid;
      gap: 10px;
      flex:1;
      -webkit-overflow-scrolling: touch;
    }

    .station{
      border-radius: 18px;
      border: 1px solid rgba(255,255,255,.10);
      background: rgba(255,255,255,.05);
      padding: 12px;
      display:grid;
      grid-template-columns: 1fr auto;
      gap: 10px;
      transition: transform .12s ease, background .12s ease, border-color .12s ease;
      cursor:pointer;
      -webkit-tap-highlight-color: transparent;
    }
    .station:hover{ transform: translateY(-1px); background: rgba(255,255,255,.07) }
    .station[data-active="true"]{
      border-color: rgba(124,58,237,.40);
      box-shadow: 0 14px 34px rgba(124,58,237,.18);
    }

    .st-left{ min-width: 0 }
    .st-name{ display:flex; align-items:center; gap:10px; min-width:0; }
    .badge{
      font-size:11px;
      font-weight:900;
      letter-spacing:.3px;
      padding: 6px 9px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,.12);
      background: rgba(0,0,0,.14);
      color: rgba(255,255,255,.82);
      flex: 0 0 auto;
    }
    .st-title{
      font-weight: 900;
      font-size: 14px;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }
    .st-addr{
      margin-top: 4px;
      color: var(--muted);
      font-size: 12px;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }

    .pricesAll{
      display:flex;
      flex-direction:column;
      gap: 6px;
      align-items:flex-end;
      text-align:right;
    }
    .pricesAll .row{
      display:flex;
      align-items:baseline;
      gap:8px;
      justify-content:flex-end;
      white-space:nowrap;
    }
    .pricesAll .row .fuel{
      font-size: 11px;
      color: var(--muted2);
      font-weight: 900;
      letter-spacing:.3px;
      min-width: 56px;
      text-align:right;
    }
    .pricesAll .row .val{
      font-size: 14px;
      font-weight: 950;
      letter-spacing:.15px;
    }
    .pricesAll .row .unit{
      font-size: 11px;
      color: var(--muted2);
      font-weight: 800;
    }

/* =========
   MAPLIBRE UI
   ========= */

/* Nav controls (zoom/compass) */
.maplibregl-ctrl-top-right{ right: 12px; top: 12px; }
.maplibregl-ctrl-group{
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(18,24,40,.85);
  backdrop-filter: blur(14px);
}
.maplibregl-ctrl-group button{
  width: 34px !important;
  height: 34px !important;
  background: transparent !important;
}
.maplibregl-ctrl-group button + button{
  border-top: 1px solid rgba(255,255,255,.10) !important;
}
.maplibregl-ctrl-group button:hover{
  background: rgba(255,255,255,.06) !important;
}

/* ✅ Popup: remove the default white box/padding completely
   (your .pp card supplies the full UI) */
.maplibregl-popup{
  max-width: none !important;
  z-index: 50;
}
.maplibregl-popup-content{
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.maplibregl-popup-tip{
  display: none !important; /* kill the default white tip */
}

/* Attribution (bottom-right) */
.maplibregl-ctrl-attrib{
  background: rgba(12,18,32,.55) !important;
  color: rgba(255,255,255,.55) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  backdrop-filter: blur(12px);
  border-radius: 12px;
}
.maplibregl-ctrl-attrib a{ color: rgba(255,255,255,.70) !important; }


/* ===== Fix marker cursor ===== */

/* Map itself can stay grab */
.maplibregl-canvas {
  cursor: grab;
}
.maplibregl-canvas:active {
  cursor: grabbing;
}

/* Markers must NOT inherit grab */
.ff-markerRoot {
  cursor: pointer !important;
}

.ff-markerRoot .ff-pin {
  cursor: pointer !important;
}

/* =========================
   MapLibre controls spacing (mobile + desktop)
   ========================= */

/* Push top-right controls down so they clear the top search bar */
.maplibregl-ctrl-top-right {
  top: calc(env(safe-area-inset-top, 0px) + 88px) !important;
  right: calc(env(safe-area-inset-right, 0px) + 12px) !important;
}

/* If you ever use top-left controls too */
.maplibregl-ctrl-top-left {
  top: calc(env(safe-area-inset-top, 0px) + 88px) !important;
  left: calc(env(safe-area-inset-left, 0px) + 12px) !important;
}

/* Slightly tighter on desktop */
@media (min-width: 861px) {
  .maplibregl-ctrl-top-right,
  .maplibregl-ctrl-top-left {
    top: 96px !important;   /* clears your topbar nicely */
  }
}



    /* =========
       MAP TINT (subtle)
       ========= */
    .ff-mapTint{
      position:absolute;
      inset:0;
      pointer-events:none;
      background:
        radial-gradient(1100px 800px at 22% 18%, rgba(72,120,255,.14), transparent 62%),
        radial-gradient(900px 700px at 72% 76%, rgba(34,197,94,.05), transparent 66%),
        radial-gradient(1000px 900px at 55% 40%, rgba(124,58,237,.05), transparent 70%),
        linear-gradient(to bottom, rgba(8,14,26,.08), rgba(8,14,26,.30));
      mix-blend-mode: soft-light;
      opacity: .85;
    }

    /* =========
       MARKERS
       ========= */
    .ff-pin{
      width: 26px;
      height: 26px;
      background: #22c55e;
      border-radius: 50% 50% 50% 0;
      transform: rotate(-45deg);
      border: 3px solid #ffffff;
      box-shadow: 0 10px 25px rgba(0,0,0,.45);
      position: relative;
    }
    .ff-pin::after{
      content:"";
      width: 10px;
      height: 10px;
      background: #ffffff;
      border-radius: 999px;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) rotate(45deg);
    }
    .ff-pin.is-active{
      background: #7c3aed;
      transform: rotate(-45deg) scale(1.2);
      box-shadow: 0 14px 35px rgba(124,58,237,.55);
    }

    /* =========
       HINT
       ========= */
    .hint{
      position:absolute;
      left: 12px;
      right: 12px;
      top: calc(68px + var(--topPad));
      z-index: 30;
      display:flex;
      justify-content:center;
      pointer-events:none;
    }
    .hint .bubble{
      pointer-events:none;
      padding: 10px 12px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,.12);
      background: rgba(255,255,255,.06);
      backdrop-filter: blur(14px);
      box-shadow: 0 14px 40px rgba(0,0,0,.25);
      color: var(--muted);
      font-size: 12px;
      font-weight: 750;
    }

    /* =========
       MOBILE SHEETS
       ========= */
    .sheetHandle{
      display:none;
      height: 28px;
      padding-top: 8px;
      position: sticky;
      top: 0;
      z-index: 2;
      background: linear-gradient(to bottom, rgba(12,18,32,.92), rgba(12,18,32,.74));
      border-top-left-radius: 22px;
      border-top-right-radius: 22px;
    }
    .sheetHandle:after{
      content:"";
      display:block;
      width: 44px;
      height: 5px;
      border-radius: 99px;
      margin: 0 auto;
      background: rgba(255,255,255,.20);
    }

    .placeSheet{
      position: fixed;
      left: 0;
      right: 0;
      top: 0;
      bottom: 0;
      z-index: 90;
      height: var(--vvh);
      max-height: var(--vvh);
      background: rgba(14,20,36,.96);
      backdrop-filter: blur(18px);
      border-top-left-radius: 22px;
      border-top-right-radius: 22px;
      border-top: 1px solid rgba(255,255,255,.12);
      box-shadow: 0 -18px 55px rgba(0,0,0,.55);
      transform: translateY(110%);
      transition: transform .18s ease;
      touch-action: none;
      display:none;
    }
    .placeSheet[data-open="true"]{ transform: translateY(var(--placeTranslate, 0px)); }

    .placeClose{
      position: absolute;
      right: 10px;
      top: 8px;
      width: 36px;
      height: 36px;
      border-radius: 999px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(255,255,255,.14);
      background: rgba(0,0,0,.35);
      backdrop-filter: blur(10px);
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
    }
    .placeClose svg{ width:16px; height:16px; opacity:.9; }

    .placeHandle{
      height: 30px;
      display:flex;
      align-items:center;
      justify-content:center;
      position: sticky;
      top: 0;
      z-index: 3;
      background: linear-gradient(to bottom, rgba(14,20,36,.98), rgba(14,20,36,.90));
      border-top-left-radius: 22px;
      border-top-right-radius: 22px;
    }
    .placeHandle::before{
      content:"";
      width: 44px;
      height: 5px;
      border-radius: 99px;
      background: rgba(255,255,255,.22);
    }
    .placeContent{
      padding: 10px 14px calc(16px + var(--safeB));
      overflow:auto;
      max-height: calc(var(--vvh) - 120px);
      -webkit-overflow-scrolling: touch;
    }

    /* Place card */
    .pp{ padding: 12px 12px 10px; }
    .ppBrand{
      display:inline-flex;
      align-items:center;
      gap:8px;
      font-weight: 950;
      letter-spacing:.2px;
      font-size: 13px;
    }
    .ppBadge{
      font-size:11px;
      font-weight:950;
      letter-spacing:.25px;
      padding: 5px 8px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,.12);
      background: rgba(0,0,0,.20);
      color: rgba(255,255,255,.88);
    }
    .ppName{
      margin-top: 8px;
      font-size: 16px;
      font-weight: 950;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }
    .ppAddr{
      margin-top: 4px;
      font-size: 12px;
      color: rgba(255,255,255,.62);
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }
    .ppGrid{
      margin-top: 12px;
      display:grid;
      gap:8px;
    }
    .ppRow{
      display:flex;
      align-items:baseline;
      justify-content:space-between;
      gap:12px;
      padding: 10px 12px;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,.10);
      background: rgba(255,255,255,.05);
    }
    .ppFuel{
      font-size: 11px;
      color: rgba(255,255,255,.62);
      font-weight: 950;
      letter-spacing:.25px;
    }
    .ppVal{
      display:flex;
      align-items:baseline;
      gap:6px;
      font-weight: 950;
    }
    .ppVal .n{ font-size: 16px; letter-spacing:.15px; }
    .ppVal .u{ font-size: 11px; color: rgba(255,255,255,.55); font-weight: 900; }
    .ppFoot{
      margin-top: 12px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
      color: rgba(255,255,255,.62);
      font-size: 11px;
      font-weight: 850;
    }
    .ppPill{
      padding: 7px 10px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,.10);
      background: rgba(0,0,0,.18);
      white-space:nowrap;
    }

    @media (max-width: 860px){
      :root{ --zoomOffsetTop: calc(76px + var(--topPad)); }

      .sideClose{
        display: grid !important;
        position: absolute;
        right: 12px;
        top: 38px;
        z-index: 5;
      }

      .sideHead .title,
      .sideHead .sub{ padding-right: 54px; }

      .sidebar{
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        height: 100vh;
        max-height: 100vh;
        width: auto;
        max-width: none;
        border-right: none;
        border-top: 1px solid rgba(255,255,255,.10);
        box-shadow: 0 -18px 55px rgba(0,0,0,.40);
        border-top-left-radius: 22px;
        border-top-right-radius: 22px;
        transform: translateY(110%);
        transition: transform .18s ease;
        padding-top: 0;
        display: flex;
        flex-direction: column;
        touch-action: none;
        will-change: transform;
      }
      .sidebar[data-open="true"]{
        transform: translateY(var(--sheetTranslate, 0px));
        transition: transform .12s ease;
      }

      .sheetHandle{ display:block; }
      .sideHead{ padding: 0 14px 12px; border-bottom: 1px solid rgba(255,255,255,.10); }
      .sideHeadInner{ padding-top: 8px; }
      .list{ padding-bottom: calc(14px + var(--safeB)); }

      /* This is a Leaflet specific class, which might not be relevant anymore for MapLibre GL */
      .leaflet-top.leaflet-left{
        left: 10px;
        top: calc(86px + var(--topPad));
      }

      .placeSheet{ display:block; }
    }