/* ===== Bottom nav — pill language + centre SPOT ===== */
#bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--nav-total);
  z-index: 40;
  padding: 6px 10px calc(6px + var(--safe-bottom));
  background: rgba(5, 13, 8, 0.94);
  border-top: 1px solid var(--border-gold-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
#bottom-nav .nav-pill {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #0a1810;
  color: #a3b8aa;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 8px;
  -webkit-tap-highlight-color: transparent;
  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
#bottom-nav .nav-pill.active {
  background: linear-gradient(180deg, #f3cd63 0%, #d4a32c 100%);
  border-color: #ffe28a;
  color: #0d1f14;
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.65),
    inset 0 -2px 3px rgba(138, 98, 8, 0.4),
    0 4px 14px rgba(229, 184, 66, 0.35);
  transform: translateY(-1px);
}
#bottom-nav .nav-pill .nav-icon {
  font-size: 16px;
  line-height: 1;
}
#bottom-nav .nav-pill .nav-label {
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
}
/* Centre Go — raised gold core */
#bottom-nav .nav-spot {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  margin: 0 2px;
  border-radius: 50%;
  border: 1.5px solid #ffe28a;
  background: linear-gradient(180deg, #f3cd63 0%, #d4a32c 55%, #aa8520 100%);
  color: #0d1f14;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.55),
    0 4px 16px rgba(212, 175, 55, 0.4),
    0 0 0 3px rgba(10, 24, 16, 0.9);
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  /* Keep the slide gesture — don't let the browser steal it as scroll */
  touch-action: none;
  z-index: 2;
}
#bottom-nav .nav-spot,
#bottom-nav .nav-spot * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
#bottom-nav .nav-spot:active,
#bottom-nav .nav-spot.is-armed {
  transform: scale(0.96);
  filter: brightness(1.05);
}
.nav-spot-core {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
/* Mode: hide bar pills or Go */
#bottom-nav[data-nav-mode="radial"] .nav-pill {
  display: none;
}
#bottom-nav[data-nav-mode="radial"] {
  justify-content: center;
  background: transparent;
  border-top: none;
  pointer-events: none;
}
#bottom-nav[data-nav-mode="radial"] .nav-spot {
  pointer-events: auto;
  width: 56px;
  height: 56px;
}
#bottom-nav[data-nav-mode="bar"] .nav-spot {
  display: none;
}
#bottom-nav .nav-split { display: none; }

/* Pie-fan Go menu (List · Map · Calc · Prefs) */
.radial-backdrop {
  position: fixed;
  inset: 0;
  z-index: 44;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.radial-backdrop[hidden] { display: none !important; }

.go-fan {
  position: fixed;
  left: 50%;
  /* Nestle the fan centre over Go — overlap the nav so the inner arc sits just above the button */
  bottom: calc(var(--safe-bottom) + 2px);
  transform: translateX(-50%);
  width: 340px;
  height: 210px;
  z-index: 45;
  pointer-events: none;
  touch-action: none;
}
.go-fan[hidden] { display: none !important; }
.go-fan.is-open {
  pointer-events: auto;
}
.go-fan-svg {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 340px;
  height: 210px;
  transform: translateX(-50%) scale(0.88);
  transform-origin: 50% 100%;
  opacity: 0;
  overflow: visible;
  transition: opacity 150ms ease, transform 200ms cubic-bezier(0.2, 0.9, 0.3, 1);
  pointer-events: none;
}
.go-fan.is-open .go-fan-svg {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  pointer-events: auto;
}

.go-fan-slice {
  fill: #152b1d;
  stroke: rgba(212, 165, 74, 0.65);
  stroke-width: 2;
  stroke-linejoin: round;
  cursor: pointer;
  transition: fill 120ms ease, stroke 120ms ease, stroke-width 120ms ease;
}
.go-fan-slice.is-hot {
  fill: #1c3926;
  stroke: #ecc062;
  stroke-width: 2.4;
}

.go-fan-pill {
  cursor: pointer;
  transition: filter 120ms ease;
}
.go-fan-pill .go-fan-pill-rect {
  stroke: rgba(224, 180, 92, 0.55);
  stroke-width: 1.35;
  transition: fill 120ms ease, stroke 120ms ease, stroke-width 120ms ease;
}
.go-fan-pill .go-fan-pill-label {
  fill: #f2f6f2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25px;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
  transition: fill 120ms ease;
}
.go-fan-pill.is-hot {
  filter: drop-shadow(0 0 10px rgba(236, 192, 98, 0.7));
}
.go-fan-pill.is-hot .go-fan-pill-rect {
  fill: url(#goFanGoldPill) !important;
  stroke: rgba(255, 238, 184, 0.95);
  stroke-width: 1.6;
}
.go-fan-pill.is-hot .go-fan-pill-label {
  fill: #10160c;
}

/* Prefs: Settings | About section pills */
.about-section-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.prefs-section[hidden] {
  display: none !important;
}

/* Prefs: nav mode pills + haptic */
.about-nav-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}
.nav-mode-pill {
  padding: 7px 12px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #0a1810;
  color: #a3b8aa;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.55);
}
.nav-mode-pill.active {
  background: linear-gradient(180deg, #f3cd63 0%, #d4a32c 100%);
  border-color: #ffe28a;
  color: #0d1f14;
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.65),
    0 4px 12px rgba(229, 184, 66, 0.3);
}
.about-haptic-row {
  margin-top: 8px;
}
.about-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
}
.about-check-label input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

/* ===== Drawer ===== */
#drawer {
  position: absolute; top: 0; left: 0; bottom: var(--nav-total);
  width: 340px; max-width: 92vw;
  background: rgba(18, 32, 24, 0.97);
  border-right: 1px solid var(--border-dim);
  z-index: 20; display: flex; flex-direction: column;
  transform: translateX(0); transition: transform 0.25s ease;
  backdrop-filter: blur(10px);
  padding-top: var(--safe-top);
}
#drawer.collapsed { transform: translateX(-100%); }

/* Phones: list is a full-page panel (same idea as Calc / Prefs), not a side strip */
@media (max-width: 640px) {
  #drawer {
    width: 100%;
    max-width: 100%;
    border-right: none;
    /* Match calc/prefs page surface */
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  #drawer .drawer-header {
    background: var(--bg);
    background-image: none;
    border-bottom-color: var(--border-gold-soft);
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
  }
  #drawer .drawer-body {
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px 28px;
  }
  #bottom-nav button .nav-icon { font-size: 22px; }
  #bottom-nav button .nav-label { font-size: 12px; }
  .loc-btn, .sort-pill, .fuel-pill {
    padding: 10px 14px;
    font-size: 13px;
    min-height: 40px;
  }
  /* Slightly tighter on the location row so "Postcode / place" stays readable */
  .loc-row .loc-btn {
    padding: 10px 11px;
  }
  .loc-row .loc-btn-pin {
    padding: 10px 9px;
  }
  #postcode-input, #ev-postcode-input, #gas-postcode-input, #solid-postcode-input, #lpg-postcode-input, #oil-postcode-input, #red-postcode-input, #fill-amount, #list-mpg {
    font-size: 16px; /* no iOS zoom */
    min-height: 40px;
  }
  #fill-amount, #list-mpg {
    width: 72px;
    flex-basis: 72px;
  }
}

.drawer-header {
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--border-gold-soft);
  display: flex; justify-content: space-between; align-items: center;
  background: var(--carbon-fibre);
  background-color: var(--carbon-base);
  box-shadow: inset 0 1px 0 rgba(212, 175, 55, 0.12);
}
.brand-block {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-box);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--gold-grad);
  border: 1px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #01160a;
  position: relative;
}
/* Optional monogram mark when no module icon is active */
.brand-monogram {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #01160a;
}
.brand-svg {
  width: 20px;
  height: 20px;
  display: none;
  position: absolute;
}
.brand-svg.is-on { display: block; }
.brand-text { min-width: 0; }
.drawer-header h1 {
  font-size: 17px; font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.1;
}
.drawer-header h1 span {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.brand-sub {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-mark {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.28);
  line-height: 0;
}
.header-mark-img {
  width: 40px;
  height: 40px;
  display: block;
  border-radius: 11px;
  object-fit: cover;
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px 20px;
  /* Stop width twitch when module content grows/shrinks the scrollbar */
  scrollbar-gutter: stable;
}

/* ===== Shared UI ===== */
.section-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent); margin: 12px 0 8px; font-weight: 700;
  opacity: 0.92;
}
/* Label + status on one line (e.g. LOCATION · Location found — filtering by radius) */
.section-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 0 8px;
}
.section-label-row .section-label {
  margin: 0;
  flex: 0 0 auto;
}
.section-label-row .section-aside,
.section-label-row .loc-status {
  margin: 0;
  flex: 1 1 auto;
  text-align: right;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
/* Fixed band above Category so Liquid (2 lines) vs Gas/EV (1 line) does not shift pills */
.list-meta-slot {
  min-height: 38px;
  height: 38px;
  margin-bottom: 4px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}
.status, .loc-status {
  font-size: 11px; color: var(--muted); margin-bottom: 8px;
}
.list-meta-slot .status {
  margin-bottom: 2px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.status.is-error { color: #f87171; font-weight: 600; }
.status.is-warn { color: #f0b429; font-weight: 600; }
.status.is-ok { color: var(--muted); }

.price-trend {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin: -2px 0 10px;
  line-height: 1.3;
}
.list-meta-slot .price-trend {
  margin: 0;
  min-height: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.price-trend.trend-down { color: #34d399; }
.price-trend.trend-up { color: #fbbf24; }
.price-trend.trend-flat { color: var(--muted); }
/* Keep the trend line's slot so Category pills do not jump when it hides */
.list-meta-slot .price-trend.hidden {
  display: block;
  visibility: hidden;
  pointer-events: none;
}
.price-trend.hidden { display: none; }

.list-empty {
  margin: 8px 0 16px;
  padding: 14px 12px;
  border-radius: var(--r-box);
  border: 1px dashed var(--border-dim);
  background: rgba(0, 0, 0, 0.2);
  text-align: left;
}
.list-empty-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.list-empty-detail {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.loc-row, .sort-row, .fill-row, .fuel-row, .area-row {
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
  margin-bottom: 10px;
}
.fuel-row { margin-bottom: 0; }
/* Petrol / Diesel / Bio — three equal columns, labels centred over pills */
.fuel-groups {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 16px;
  align-items: flex-start;
  width: 100%;
}
.fuel-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  flex: 1 1 0;
}
.fuel-group-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.9;
  line-height: 1.2;
  text-align: center;
  width: 100%;
}
.fuel-group .fuel-row,
.fuel-group .up-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  margin-bottom: 0;
  width: 100%;
  justify-content: center;
}
.fuel-group .fuel-pill,
.fuel-group .up-fuel {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  justify-content: center;
}

.area-select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px 36px 10px 12px;
  font-size: 16px; /* avoids iOS zoom */
  font-weight: 600;
  font-family: inherit;
  line-height: 1.3;
  border-radius: var(--r-box);
  border: 1px solid var(--border-gold-soft);
  color: var(--text);
  /* Kill native system chrome (esp. Windows) */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color-scheme: dark;
  background-color: var(--input-bg, #01160a);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23d4af37' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  cursor: pointer;
}
.area-select:hover {
  border-color: var(--accent);
}
.area-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
}
.area-select option {
  background-color: #01160a;
  color: #e8f5e9;
}
.about-area-select {
  margin: 8px 0 6px;
}

/* Choice chips — recessed wells (inactive) + specular raised rim (active) */
.sort-pill, .fuel-pill, [data-fill] {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #0a1810;
  color: #a3b8aa;
  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.sort-pill:active, .fuel-pill:active, [data-fill]:active {
  transform: scale(0.97);
}
/* Location actions — same recessed / raised language */
.loc-btn {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #0a1810;
  color: #a3b8aa;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.loc-btn:hover { border-color: rgba(212, 175, 55, 0.45); color: var(--accent-bright); }
.loc-btn:active { transform: scale(0.97); }
.loc-btn.active {
  background: linear-gradient(180deg, #f3cd63 0%, #d4a32c 100%);
  border-color: #ffe28a;
  color: #0d1f14;
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.65),
    inset 0 -2px 3px rgba(138, 98, 8, 0.4),
    0 4px 14px rgba(229, 184, 66, 0.35);
  transform: translateY(-1px);
}
/* Compact map-pin — same height/radius as Go / My location */
.loc-btn-pin {
  padding: 6px 10px;
  min-width: 36px;
}
.loc-btn-pin .pin-icon {
  width: 15px;
  height: 15px;
  display: block;
}

/* Location row: keep input + Go + My location + pin on one line */
.loc-row {
  flex-wrap: nowrap;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.loc-row .loc-btn {
  flex: 0 0 auto;
  flex-shrink: 0;
}
/* width:0 + flex:1 forces a stable “remaining space” width across modules */
.loc-row > input[type="text"] {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  max-width: none;
  box-sizing: border-box;
}

/* Active sort / fill — raised gold with inner specular rim */
.sort-pill.active,
[data-fill].active {
  background: linear-gradient(180deg, #f3cd63 0%, #d4a32c 100%);
  border-color: #ffe28a;
  color: #0d1f14;
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.65),
    inset 0 -2px 3px rgba(138, 98, 8, 0.4),
    0 4px 14px rgba(229, 184, 66, 0.35);
  transform: translateY(-1px);
}

/* Fuel type — original family colours when idle; accent highlight when selected */
.fuel-pill[data-fuel="E10"],
.fuel-pill[data-fuel="E5"] {
  background: linear-gradient(145deg, #1f6b42 0%, #154d30 100%);
  color: #bbf7d0;
  border-color: #2d6a4f;
  box-shadow: inset 0 1px 0 rgba(187, 247, 208, 0.12);
}
.fuel-pill[data-fuel="B7S"],
.fuel-pill[data-fuel="B7P"] {
  background: linear-gradient(145deg, #2a2a2a 0%, #141414 100%);
  color: #e5e5e5;
  border-color: #505050;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.fuel-pill[data-fuel="B10"],
.fuel-pill[data-fuel="HVO"] {
  background: linear-gradient(145deg, #5c4030 0%, #3a281c 100%);
  color: #f0dcc8;
  border-color: #8b6914;
  box-shadow: inset 0 1px 0 rgba(240, 220, 200, 0.1);
}
/* E10 — bright petrol green (not Category gold) */
.fuel-pill[data-fuel="E10"].active {
  background: linear-gradient(180deg, #6ee7a0 0%, #16a34a 100%);
  border-color: #86efac;
  color: #052e16;
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.55),
    inset 0 -2px 3px rgba(6, 80, 40, 0.45),
    0 0 18px rgba(34, 197, 94, 0.4);
  transform: translateY(-1px);
}
/* E5 — emerald */
.fuel-pill[data-fuel="E5"].active {
  background: linear-gradient(180deg, #34d399 0%, #059669 100%);
  border-color: #6ee7b7;
  color: #062115;
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.5),
    inset 0 -2px 3px rgba(4, 80, 50, 0.45),
    0 0 18px rgba(52, 211, 153, 0.4);
  transform: translateY(-1px);
}
/* Diesel — cool steel */
.fuel-pill[data-fuel="B7S"].active,
.fuel-pill[data-fuel="B7P"].active {
  background: linear-gradient(180deg, #c8d0d4 0%, #8a949a 100%);
  border-color: #e8eef0;
  color: #0c1210;
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.55),
    inset 0 -2px 3px rgba(40, 48, 52, 0.35),
    0 0 16px rgba(160, 170, 180, 0.35);
  transform: translateY(-1px);
}
/* Bio — warm copper */
.fuel-pill[data-fuel="B10"].active,
.fuel-pill[data-fuel="HVO"].active {
  background: linear-gradient(180deg, #e08e6d 0%, #b85d3b 100%);
  border-color: #f0b090;
  color: #1a0b06;
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.5),
    inset 0 -2px 3px rgba(90, 40, 20, 0.4),
    0 0 18px rgba(224, 142, 109, 0.4);
  transform: translateY(-1px);
}
/* Generic .active fallback (e.g. calc pills without data-fuel) */
.fuel-pill.active:not([data-fuel]) {
  background: linear-gradient(180deg, #f3cd63 0%, #d4a32c 100%);
  border-color: #ffe28a;
  color: #0d1f14;
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.65),
    0 4px 14px rgba(229, 184, 66, 0.35);
}
/* Calc: fuels the linked station does not sell */
#calc-fuel-pills .fuel-pill.is-unavailable,
#calc-fuel-pills .fuel-pill:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

#postcode-input, #ev-postcode-input, #gas-postcode-input, #solid-postcode-input, #lpg-postcode-input, #oil-postcode-input, #red-postcode-input, #fill-amount, #list-mpg {
  background: var(--input-bg);
  border: 1px solid var(--border-gold-soft);
  border-radius: var(--r-box);
  color: var(--text);
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  /* Kill native system chrome (esp. Windows) */
  appearance: none;
  -webkit-appearance: none;
  color-scheme: dark;
}
/* List location fields — sizing handled by .loc-row > input[type="text"] above */
#postcode-input, #ev-postcode-input, #gas-postcode-input, #solid-postcode-input, #lpg-postcode-input, #oil-postcode-input, #red-postcode-input {
  max-width: none;
  min-width: 0;
}
#postcode-input::placeholder, #ev-postcode-input::placeholder,
#gas-postcode-input::placeholder, #solid-postcode-input::placeholder,
#lpg-postcode-input::placeholder, #oil-postcode-input::placeholder, #red-postcode-input::placeholder { color: var(--muted); }
#fill-amount, #list-mpg {
  width: 64px; flex: 0 0 64px; border-radius: var(--r-box);
  text-align: center; font-weight: 600; padding: 6px 8px; font-size: 12px;
  background: var(--input-bg); border: 1px solid var(--border-dim); color: var(--text);
}
#fill-amount:focus, #list-mpg:focus, #postcode-input:focus, #ev-postcode-input:focus,
#gas-postcode-input:focus, #solid-postcode-input:focus, #lpg-postcode-input:focus, #oil-postcode-input:focus, #red-postcode-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.28);
}
.mpg-row {
  display: flex; gap: 6px; align-items: center; margin-bottom: 10px;
}
.mpg-row .mpg-label {
  font-size: 11px; color: var(--muted); font-weight: 600;
}

/* Soft group frame — inputs only, not full tube */
.control-group {
  padding: 10px 12px 8px;
  margin-bottom: 10px;
  border-radius: var(--r-box);
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(10, 26, 18, 0.55);
  box-shadow: inset 0 1px 0 rgba(243, 229, 171, 0.06);
}
.car-fill-group .loc-status {
  margin-bottom: 0;
  margin-top: 4px;
}
/* MPG + fill amount on one row */
.car-fill-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.car-fill-mpg {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.car-fill-mpg .mpg-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.car-fill-amount {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
}
.car-fill-amount .fill-toggle {
  flex: 0 0 auto;
  min-width: 4.2em;
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1508;
}
.car-fill-row #list-mpg,
.car-fill-row #fill-amount {
  width: 56px;
  flex: 0 0 56px;
}

/* Radius slider — floating value badge tracks the thumb */
.radius-slider-wrap {
  position: relative;
  /* Side inset so thumb + “30 mi” badge never overflow the drawer on phone */
  padding: 28px 12px 8px;
}
.radius-value-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  /* translate only — avoid fractional scale() which blurs text on mobile */
  transform: translateX(-50%);
  background: linear-gradient(180deg, #f3cd63 0%, #d4a32c 100%);
  color: #0d1f14;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 999px;
  pointer-events: none;
  white-space: nowrap;
  border: 1px solid #ffe28a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
  -webkit-font-smoothing: antialiased;
}
.radius-slider-wrap.is-dragging .radius-value-badge {
  transform: translateX(-50%) translateY(-1px);
  background: linear-gradient(180deg, #f5ce62 0%, #e0b040 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 6px 16px rgba(212, 175, 55, 0.45);
}
.radius-slider-wrap input[type="range"],
#annual-miles,
#ev-annual-miles,
#lpg-annual-miles {
  /* Stop long-press text select / iOS callout while dragging */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  /* Prefer horizontal drag over page gestures on the control */
  touch-action: none;
}
.radius-slider-wrap input[type="range"] {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: #1a2e22;
  border-radius: 999px;
  outline: none;
}
.radius-slider-wrap input[type="range"].slider-ready,
#annual-miles.slider-ready,
#ev-annual-miles.slider-ready,
#lpg-annual-miles.slider-ready {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}
.radius-slider-wrap input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--emerald) 100%);
  border-radius: 999px;
}
.radius-slider-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 100%);
  border: 2px solid var(--panel);
  cursor: pointer;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.55), inset 0 1px 0 rgba(255,255,255,0.5);
  margin-top: -8px;
}
.radius-slider-wrap input[type="range"]::-moz-range-track {
  height: 6px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--emerald) 100%);
  border-radius: 999px;
  border: none;
}
.radius-slider-wrap input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 100%);
  border: 2px solid var(--panel);
  cursor: pointer;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.55);
}
.radius-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #a8bdb0;
  -webkit-font-smoothing: antialiased;
}
/* Live value is only the floating .radius-value-badge — track labels stay 1 mi / 30 mi */
