/* GasOnTheWater — main fuel finder page styles */

:root {
  --navy:    #0a2540;
  --deep:    #102a43;
  --ink:     #1a3a5c;
  --surface: #243b53;
  --card:    #334e68;
  --border:  #627d98;
  --ocean:   #1a6b8a;
  --ocean-dim: #155a74;
  --wake:    #2488ad;
  --foam:    #4fa8c7;
  --diesel:  #f59e0b;
  --diesel-dim: #d97706;
  --noeth:   #10b981;
  --noeth-dim: #059669;
  --claim:   #ff6b6b;
  --text:    #f1f5f9;
  --muted:   #94a3b8;
  --dim:     #64748b;
  --verified: #34d399;
  --warn:    #f59e0b;
  --danger:  #ff6b6b;
  --radius:  6px;
  --detail-card-bg: rgba(52,211,153,0.08);
  --detail-card-border: rgba(52,211,153,0.3);
  --shadow:  0 4px 24px rgba(0,0,0,0.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--navy);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  background-image:
    radial-gradient(ellipse 80% 40% at 50% -10%, rgba(26,107,138,0.12) 0%, transparent 70%),
    linear-gradient(180deg, #0a2540 0%, #102a43 100%);
}

/* ── Header ────────────────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,37,64,0.95);
  border-bottom: 1px solid var(--border);
  padding: 0 1.25rem;
}
.header-inner {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--ocean) 0%, var(--noeth) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.logo-text {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.logo-text span { color: var(--ocean); }
.header-cta {
  background: var(--ocean);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.45rem 1rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.header-cta:hover { background: var(--ocean-dim); }
.header-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.login-btn {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.85rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.login-btn:hover { border-color: var(--ocean); color: var(--ocean); }
.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(14,165,233,0.1);
  border: 1px solid rgba(14,165,233,0.25);
  border-radius: 100px;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ocean);
  text-decoration: none;
  white-space: nowrap;
}
.user-pill-btn { cursor: pointer; }
.user-pill-btn:hover { background: rgba(14,165,233,0.2); }
.user-dropdown-wrap { position: relative; }
.user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  min-width: 160px;
  background: rgba(10,37,64,0.98);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 200;
  padding: 0.35rem 0;
}
.user-dropdown.show { display: flex; flex-direction: column; }
.user-dd-item {
  display: block;
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
}
.user-dd-item:hover { background: rgba(14,165,233,0.12); color: var(--ocean); }
.user-dd-logout { border-top: 1px solid var(--border); margin-top: 0.2rem; padding-top: 0.6rem; color: #f87171; }
.user-dd-logout:hover { background: rgba(248,113,113,0.1); color: #fca5a5; }

/* ── Hamburger (mobile nav toggle) ────────────────────────────────────── */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem;
  flex-direction: column;
  gap: 4px;
  z-index: 110;
}
.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 768px) {
  .hamburger-btn { display: flex; }
  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10,37,64,0.98);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.25rem;
    gap: 0.6rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  }
  .header-nav.open { display: flex; }
  .header-nav .nav-plain-link,
  .header-nav .header-cta,
  .header-nav .login-btn,
  .header-nav .user-pill {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .header-nav .header-cta { padding: 0.55rem 1rem; }
  .header-nav .login-btn { padding: 0.55rem 1rem; font-size: 0.85rem; }
  .user-dropdown-wrap { width: 100%; }
  .user-dropdown-wrap .user-pill-btn { width: 100%; justify-content: center; }
  .user-dropdown { left: 0; right: 0; }
  header { position: sticky; }
  .header-inner { position: relative; }
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  padding: 3rem 1.25rem 2rem;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(14,165,233,0.1);
  border: 1px solid rgba(14,165,233,0.25);
  border-radius: 100px;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ocean);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero-title {
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}
.hero-title em {
  font-style: normal;
  color: var(--ocean);
}
.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* ── Search bar ────────────────────────────────────────────────────────── */
.search-wrap {
  max-width: 600px;
  margin: 0 auto 2rem;
  padding: 0 1.25rem;
}
.search-bar {
  display: flex;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: visible;
  transition: border-color 0.2s;
  position: relative;
  z-index: 10;
}
.search-bar:focus-within { border-color: var(--ocean); }
.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.85rem 1rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  cursor: text;
  pointer-events: all;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.search-input::placeholder { color: var(--dim); cursor: text; }
.search-input:focus { outline: none; }
.search-btn {
  background: var(--ocean);
  border: none;
  padding: 0 1.25rem;
  cursor: pointer;
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  pointer-events: all;
  -webkit-tap-highlight-color: transparent;
}
.search-btn:hover { background: var(--ocean-dim); }
.geo-btn {
  background: transparent;
  border: none;
  border-left: 1px solid var(--border);
  padding: 0 0.85rem;
  cursor: pointer;
  color: var(--muted);
  font-size: 1rem;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  pointer-events: all;
  -webkit-tap-highlight-color: transparent;
}
.geo-btn:hover { color: var(--ocean); }

/* ── Search autocomplete dropdown ─────────────────────────────────────── */
.suggestions-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background: #111827;
  border: 1px solid #374151;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  z-index: 9999;
  overflow: hidden;
  display: none;
}
.suggestions-dropdown.show { display: block; }
.suggestions-dropdown .suggestion-item {
  padding: 0.65rem 1rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: #d1d5db;
  border-bottom: 1px solid #1f2937;
  transition: background 0.15s;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.suggestions-dropdown .suggestion-item:last-child { border-bottom: none; }
.suggestions-dropdown .suggestion-item:hover,
.suggestions-dropdown .suggestion-item.active {
  background: #1f2937;
  color: #f9fafb;
}
.suggestions-dropdown .suggestion-city { font-weight: 600; color: #f9fafb; }
.suggestions-dropdown .suggestion-state { color: #9ca3af; margin-left: 0.35rem; }
.search-wrap { position: relative; }

/* ── Price legend ──────────────────────────────────────────────────────── */
.legend {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  padding: 0 1.25rem 1.5rem;
  flex-wrap: wrap;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-family: 'Inter', system-ui, sans-serif;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.legend-dot.noeth  { background: var(--noeth); }
.legend-dot.diesel { background: var(--diesel); }

/* ── Map view ─────────────────────────────────────────────────────────── */
.map-toggle-wrap {
  max-width: 640px;
  margin: 0.75rem auto 0;
  padding: 0 1.25rem;
  display: flex;
  justify-content: flex-end;
}
.map-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--card);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-family: 'Inter', system-ui, sans-serif;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.map-toggle-btn:hover { background: var(--surface); color: var(--foam); }
.map-toggle-btn.active { background: var(--ocean); color: white; border-color: var(--ocean); }

#map-container {
  max-width: 640px;
  margin: 0.5rem auto;
  padding: 0 1.25rem;
  display: none;
  overflow: hidden;
}
#map-container.show { display: block; }
#station-map {
  height: 360px;
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  border: 2px solid var(--border);
  z-index: 1;
}
.map-count-bar {
  text-align: center;
  padding: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: 'Inter', system-ui, sans-serif;
}
.map-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(10,37,64,0.85);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-family: 'Inter', system-ui, sans-serif;
  z-index: 1000;
}
/* Prevent Leaflet attribution from overflowing on narrow viewports */
.leaflet-control-attribution { max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.6rem; }

/* ── Leaflet popup override — dark card matching list view ────────── */
.leaflet-popup-content-wrapper {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5) !important;
  color: var(--text) !important;
  padding: 0 !important;
}
.leaflet-popup-content { margin: 0 !important; font-family: 'Inter', system-ui, sans-serif; width: 280px !important; }
.leaflet-popup-tip { background: var(--card) !important; border: 1px solid var(--border) !important; }
.leaflet-popup-close-button { color: var(--muted) !important; font-size: 18px !important; top: 6px !important; right: 8px !important; }
.leaflet-popup-close-button:hover { color: var(--text) !important; }

/* Popup card internals — mirrors list-view station cards */
.popup-card { padding: 0.85rem 0.9rem 0.7rem; }
.popup-header { display: flex; align-items: flex-start; gap: 0.65rem; margin-bottom: 0.65rem; }
.popup-logo {
  width: 36px; height: 36px; border-radius: 6px; background: var(--surface);
  border: 1px solid var(--border); display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem; flex-shrink: 0;
}
.popup-logo img { display: block; }
.popup-info { flex: 1; min-width: 0; }
.popup-name { font-weight: 600; font-size: 0.88rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.popup-meta { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; margin-top: 0.15rem; }
.popup-dist { font-size: 0.7rem; color: var(--muted); }

/* Price grid */
.popup-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }
.popup-price-block {
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  padding: 0.5rem 0.6rem;
}
.popup-price-label { font-size: 0.65rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.popup-price-date { font-size: 0.6rem; color: var(--dim); margin-top: 0.1rem; }
.popup-price-value { font-weight: 700; font-size: 0.95rem; margin-top: 0.15rem; }
.popup-price-value.noeth { color: var(--noeth); }
.popup-price-value.diesel { color: var(--diesel); }
.popup-price-value.na { color: var(--dim); font-size: 0.8rem; }

/* Disclaimer */
.popup-disclaimer {
  font-size: 0.58rem; color: var(--dim); margin-top: 0.45rem; padding: 0.3rem 0.4rem;
  background: rgba(74,98,130,0.06); border-radius: 4px; line-height: 1.45;
}

/* Footer: report + thumbs */
.popup-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 0.4rem;
  margin-top: 0.55rem; padding-top: 0.5rem; border-top: 1px solid var(--border);
}
.popup-report-btn {
  background: transparent; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.3rem 0.6rem; font-family: 'Inter', system-ui, sans-serif; font-size: 0.72rem;
  color: var(--muted); cursor: pointer; display: flex; align-items: center; gap: 0.25rem;
}
.popup-report-btn:hover { border-color: var(--ocean); color: var(--ocean); }
.popup-thumb-btn {
  background: transparent; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.3rem 0.5rem; font-family: 'Inter', system-ui, sans-serif; font-size: 0.72rem;
  color: var(--muted); cursor: pointer; display: flex; align-items: center; gap: 0.2rem;
}
.popup-thumb-btn:hover { border-color: var(--noeth); color: var(--noeth); }

/* Claim row */
.popup-claim-row { margin-top: 0.45rem; }
.popup-claim-btn {
  width: 100%; background: transparent; border: 1px solid rgba(167,139,250,0.35);
  border-radius: var(--radius); color: var(--claim); font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem; font-weight: 500; padding: 0.3rem 0.6rem; cursor: pointer;
  text-align: center;
}
.popup-claim-btn:hover { background: rgba(167,139,250,0.1); border-color: var(--claim); }

/* View details link */
.popup-detail-link {
  display: block; text-align: center; margin-top: 0.4rem; padding: 0.35rem;
  font-size: 0.78rem; color: var(--wake); text-decoration: none; font-weight: 600;
  border-radius: 4px;
}
.popup-detail-link:hover { background: rgba(36,136,173,0.08); text-decoration: underline; }

/* Layer toggle control — dark theme to match GOTW */
.leaflet-control-layers { background: rgba(10,37,64,0.92); border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; color: #e2e8f0; font-family: 'Inter', system-ui, sans-serif; font-size: 0.8rem; padding: 6px 10px; }
.leaflet-control-layers label { color: #e2e8f0; cursor: pointer; }
.leaflet-control-layers-separator { border-top-color: rgba(255,255,255,0.12); }

/* ── Station list ──────────────────────────────────────────────────────── */
.station-list {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.25rem 6rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ── Station card ──────────────────────────────────────────────────────── */
.station-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  transition: border-color 0.2s, transform 0.15s;
  cursor: pointer;
}
.station-card:hover {
  border-color: rgba(14,165,233,0.35);
  transform: translateY(-1px);
}
.station-card.claimed { border-color: rgba(167,139,250,0.3); }

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
.station-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.station-info { flex: 1; min-width: 0; }
.station-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.station-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.2rem;
  flex-wrap: wrap;
}
.station-dist {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  color: var(--muted);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  font-family: 'Inter', system-ui, sans-serif;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge.verified {
  background: rgba(52,211,153,0.12);
  color: var(--verified);
  border: 1px solid rgba(52,211,153,0.25);
}
.badge.claimed {
  background: rgba(167,139,250,0.12);
  color: var(--claim);
  border: 1px solid rgba(167,139,250,0.25);
}
.badge.stale {
  background: rgba(251,146,60,0.1);
  color: var(--warn);
  border: 1px solid rgba(251,146,60,0.2);
}
.badge.priced {
  background: rgba(16,185,129,0.1);
  color: var(--verified);
  border: 1px solid rgba(16,185,129,0.22);
}
.badge.ac-source {
  background: rgba(14,165,233,0.1);
  color: var(--ocean);
  border: 1px solid rgba(14,165,233,0.22);
}

/* ── Prices ────────────────────────────────────────────────────────────── */
.prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.price-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.price-label {
  font-size: 0.7rem;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.price-value {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}
.price-value.noeth  { color: var(--noeth); }
.price-value.diesel { color: var(--diesel); }
.price-value.na     { color: var(--dim); font-size: 0.85rem; }
.price-age {
  font-size: 0.65rem;
  color: var(--dim);
  font-family: 'Inter', system-ui, sans-serif;
  margin-top: 0.15rem;
}

/* ── Price attribution ─────────────────────────────────────────────────── */
.price-attr {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.2rem;
}
.attr-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.6rem;
  font-family: 'Inter', system-ui, sans-serif;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marina-badge {
  background: rgba(16,185,129,0.12);
  color: var(--noeth);
  border: 1px solid rgba(16,185,129,0.25);
}
.user-badge {
  background: rgba(122,147,184,0.1);
  color: var(--muted);
  border: 1px solid rgba(122,147,184,0.2);
}
.attr-date {
  font-size: 0.6rem;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--dim);
  white-space: nowrap;
}
.attr-comparison {
  font-size: 0.6rem;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--dim);
  white-space: nowrap;
}

/* ── Price disclaimer ──────────────────────────────────────────────────── */
.price-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin-top: 0.5rem;
  padding: 0.4rem 0.5rem;
  background: rgba(74,98,130,0.06);
  border-radius: 4px;
  font-size: 0.62rem;
  color: var(--dim);
  line-height: 1.5;
  font-family: 'Inter', system-ui, sans-serif;
}
.disclaimer-icon {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--dim);
  cursor: help;
  line-height: 1.4;
}

/* ── Card footer ───────────────────────────────────────────────────────── */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  gap: 0.5rem;
}
.report-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.35rem 0.75rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.report-btn:hover { border-color: var(--ocean); color: var(--ocean); }
.thumb-row {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.thumb-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--muted);
  transition: all 0.2s;
  font-family: 'Inter', system-ui, sans-serif;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.thumb-btn:hover { border-color: var(--noeth); color: var(--noeth); }
.rating-count {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  color: var(--dim);
}

/* ── Claim row ─────────────────────────────────────────────────────────── */
.claim-row {
  padding: 0.5rem 0.875rem 0.625rem;
  border-top: 1px solid var(--border);
}
.claim-listing-btn {
  background: transparent;
  border: 1px solid rgba(167,139,250,0.35);
  border-radius: var(--radius);
  color: var(--claim);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  width: 100%;
  text-align: center;
  pointer-events: all;
  -webkit-tap-highlight-color: transparent;
}
.claim-listing-btn:hover {
  background: rgba(167,139,250,0.1);
  border-color: var(--claim);
}
.managed-badge {
  font-size: 0.78rem;
  color: var(--verified);
  font-weight: 500;
  display: block;
  text-align: center;
  padding: 0.25rem 0;
}

/* ── Empty state ───────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}
.empty-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: block;
  opacity: 0.7;
}
.empty-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.empty-sub {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 360px;
  margin: 0 auto 1.5rem;
}
.add-marina-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ocean);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.65rem 1.4rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}
.add-marina-btn:hover { background: var(--ocean-dim); }

/* ── Section label ─────────────────────────────────────────────────────── */
.section-label {
  max-width: 640px;
  margin: 0 auto;
  padding: 0.25rem 1.25rem 0.6rem;
  font-size: 0.72rem;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sort-select {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.25rem 0.55rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7rem;
  color: var(--muted);
  cursor: pointer;
  outline: none;
}

/* ── Report price modal ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px 16px 0 0;
  padding: 1.5rem 1.25rem 2rem;
  width: 100%;
  max-width: 480px;
  transform: translateY(40px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 1.25rem;
}
.modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.modal-sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
/* Bottom sheet header with logo + name */
.modal-header-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.modal-logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.modal-header-text { flex: 1; min-width: 0; }
.modal-title-link {
  text-decoration: none;
  color: inherit;
}
.modal-title-link:hover .modal-title {
  color: var(--ocean);
  text-decoration: underline;
}
.modal-detail-link {
  display: block;
  text-align: center;
  color: var(--ocean);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 0;
  margin-bottom: 0.75rem;
  border: 1px solid var(--ocean);
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.modal-detail-link:hover {
  background: var(--ocean);
  color: #fff;
}
/* Station name link in list card */
.station-name-link {
  text-decoration: none;
  color: inherit;
  display: block;
  min-width: 0;
}
.station-name-link:hover .station-name {
  color: var(--ocean);
  text-decoration: underline;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-label {
  font-size: 0.72rem;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.price-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.price-input-wrap .currency {
  position: absolute;
  left: 0.75rem;
  color: var(--muted);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  pointer-events: none;
}
.price-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem 0.65rem 1.5rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.price-input:focus { border-color: var(--ocean); }
.modal-submit {
  width: 100%;
  background: var(--ocean);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.8rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.75rem;
}
.modal-submit:hover { background: var(--ocean-dim); }
.modal-cancel {
  width: 100%;
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 0.6rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s;
}
.modal-cancel:hover { color: var(--text); }

/* ── Claim CTA banner ──────────────────────────────────────────────────── */
.claim-banner {
  max-width: 640px;
  margin: 0 auto 0.75rem;
  padding: 0 1.25rem;
}
.claim-banner-inner {
  background: linear-gradient(135deg, rgba(167,139,250,0.1) 0%, rgba(14,165,233,0.08) 100%);
  border: 1px solid rgba(167,139,250,0.25);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.claim-banner-text { flex: 1; }
.claim-banner-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--claim);
  margin-bottom: 0.2rem;
}
.claim-banner-sub {
  font-size: 0.78rem;
  color: var(--muted);
}
.claim-btn {
  background: rgba(167,139,250,0.15);
  border: 1px solid rgba(167,139,250,0.3);
  color: var(--claim);
  border-radius: var(--radius);
  padding: 0.45rem 0.9rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  pointer-events: all;
  -webkit-tap-highlight-color: transparent;
}
.claim-btn:hover { background: rgba(167,139,250,0.25); }

/* ── Toast ─────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--card);
  border: 1px solid var(--noeth);
  color: var(--noeth);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 300;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  box-shadow: var(--shadow);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10,22,40,0.97);
  border-top: 1px solid var(--border);
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 50;
}
.footer-link {
  font-size: 0.72rem;
  color: var(--dim);
  text-decoration: none;
  font-family: 'Inter', system-ui, sans-serif;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--muted); }
.footer-sep { color: var(--border); font-size: 0.7rem; }

/* ── Section label overrides ──────────────────────────────────────────── */
.filter-row { display: flex; gap: 0.4rem; align-items: center; }
.filter-select-wrap .sort-select { margin-right: 0.25rem; }

/* ── Modal form groups (used in claim modal) ─────────────────────────── */
.claim-form-group { margin-bottom: 0.75rem; }
.price-input-pad { padding-left: 0.75rem; }
.price-input-pad.opacity-70 { opacity: 0.7; cursor: default; }
.price-input-pad.cursor-ptr { cursor: pointer; }
.form-label-required { color: var(--danger); }
.g-recaptcha-wrap { margin-bottom: 0.75rem; transform-origin: left; transform: scale(0.95); }
.modal-hint { font-size: 0.72rem; color: var(--dim); text-align: center; margin-top: 0.75rem; }
.claim-modal-scroll { max-height: 90vh; overflow-y: auto; }

/* ── Banner icon ───────────────────────────────────────────────────────── */
.banner-icon { font-size: 1.4rem; }

/* ── Detail page price overrides ─────────────────────────────────────── */
.price-type-noeth { color: var(--noeth); }
.price-per-gal { font-size: 0.65rem; font-weight: 400; }
.detail-price-btn { font-size: 0.8rem; padding: 0.5rem 1rem; }
.claim-cta-row { margin-top: 0.85rem; }
.info-value-muted { color: var(--muted); font-size: 0.82rem; }
.claim-cta-card-owned { background: var(--detail-card-bg); border-color: var(--detail-card-border); }
.claim-cta-owned-title { color: var(--verified); }
.claim-cta-owned-sub { color: var(--muted); }

/* Legacy popup class — kept for any remaining references */
.map-popup-dist { font-size: 0.75rem; color: #627d98; }

/* ── Detail page /stations header back link ─────────────────────────── */
.stations-back-link { color: #94a3b8; font-size: 14px; text-decoration: none; }
.stations-back-link:hover { color: #4fa8c7; }

/* ── Share section label styles across pages ─────────────────────────── */
.section-label-controls { display: flex; gap: 0.4rem; align-items: center; }

/* ── Nav plain link (Browse by State in header) ─────────────────────── */
.nav-plain-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
}
.nav-plain-link:hover { color: var(--muted); }

/* ── Section label controls ───────────────────────────────────────────── */
.section-label-controls { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.section-label-controls .sort-select { margin-right: 0.25rem; }

/* ── Marina-only toggle ──────────────────────────────────────────────── */
.marina-toggle {
  display: flex; align-items: center; gap: 0.35rem; cursor: pointer;
  user-select: none; -webkit-tap-highlight-color: transparent;
}
.marina-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: relative; width: 32px; height: 18px; border-radius: 9px;
  background: var(--border); transition: background 0.2s;
  flex-shrink: 0;
}
.toggle-knob {
  position: absolute; top: 2px; left: 2px; width: 14px; height: 14px;
  border-radius: 50%; background: #fff; transition: transform 0.2s;
}
.marina-toggle input:checked + .toggle-track { background: var(--ocean); }
.marina-toggle input:checked + .toggle-track .toggle-knob { transform: translateX(14px); }
.toggle-label {
  font-size: 0.65rem; color: var(--muted); white-space: nowrap;
  font-weight: 500; letter-spacing: 0.02em;
}
.marina-toggle input:checked ~ .toggle-label { color: var(--foam); }

/* ── Shared helper styles (used across multiple pages) ─────────────────── */
/* These are extracted here so they can be referenced by pages that
   already use gasonthewater.css (detail page, stations index) */
.browse-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,37,64,0.95);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}
.browse-header-inner {
  max-width: 1000px;
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.browse-logo {
  color: var(--foam);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

/* ── Responsive: 440px ─────────────────────────────────────────────────── */
@media (max-width: 440px) {
  .hero { padding: 1.5rem 1rem 1rem; }
  .hero-title { font-size: 1.5rem; }
  .hero-sub { font-size: 0.88rem; margin-bottom: 1.25rem; }
  .hero-eyebrow { font-size: 0.68rem; margin-bottom: 0.75rem; }
  .prices { grid-template-columns: 1fr 1fr; }
  .price-value { font-size: 1rem; }
  .price-label { font-size: 0.65rem; }
  .form-row { grid-template-columns: 1fr; }
  .section-label {
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.25rem 1rem 0.5rem;
    font-size: 0.68rem;
  }
  .section-label > span { width: 100%; }
  .station-card { padding: 0.75rem 0.85rem; }
  .card-header { gap: 0.6rem; margin-bottom: 0.65rem; }
  .station-logo { width: 36px; height: 36px; font-size: 1.05rem; }
  .station-name { font-size: 0.88rem; }
  .price-block { padding: 0.55rem 0.65rem; }
  .card-footer { margin-top: 0.55rem; padding-top: 0.5rem; }
  .report-btn { font-size: 0.72rem; padding: 0.3rem 0.6rem; }
  .claim-listing-btn { font-size: 0.72rem; padding: 0.3rem 0.6rem; }
  .claim-row { padding: 0.35rem 0.65rem 0.5rem; }
  .price-disclaimer { font-size: 0.58rem; padding: 0.3rem 0.4rem; margin-top: 0.35rem; }
  .price-disclaimer .disclaimer-icon { font-size: 0.65rem; }
  .price-attr { gap: 0.15rem; }
  .attr-badge { font-size: 0.55rem; padding: 0.05rem 0.25rem; }
  .attr-date { font-size: 0.55rem; }
  .attr-comparison { font-size: 0.55rem; }
  .badge { font-size: 0.6rem; padding: 0.1rem 0.35rem; }
  .legend { gap: 0.75rem; padding: 0 1rem 1rem; }
  .legend-item { font-size: 0.7rem; }
  .search-wrap { padding: 0 1rem; margin-bottom: 1.25rem; }
  .claim-banner { padding: 0 1rem; }
  .claim-banner-inner { padding: 0.75rem 0.85rem; }
  .claim-banner-title { font-size: 0.82rem; }
  .claim-banner-sub { font-size: 0.72rem; }
  .station-list { padding: 0 1rem 5rem; gap: 0.6rem; }
  .header-cta { padding: 0.4rem 0.75rem; font-size: 0.78rem; }
  .login-btn { padding: 0.35rem 0.6rem; font-size: 0.75rem; }
  .sort-select { font-size: 0.65rem; padding: 0.2rem 0.4rem; }
  .toggle-label { font-size: 0.6rem; }
  .toggle-track { width: 28px; height: 16px; border-radius: 8px; }
  .toggle-knob { width: 12px; height: 12px; }
  .marina-toggle input:checked + .toggle-track .toggle-knob { transform: translateX(12px); }
}

/* ── Responsive: 380px ─────────────────────────────────────────────────── */
@media (max-width: 380px) {
  .hero { padding: 1.25rem 0.75rem 0.75rem; }
  .hero-title { font-size: 1.35rem; }
  .hero-sub { font-size: 0.82rem; margin-bottom: 1rem; }
  .hero-eyebrow { font-size: 0.62rem; padding: 0.25rem 0.6rem; margin-bottom: 0.6rem; }
  .header-inner { height: 48px; gap: 0.5rem; }
  .logo-icon { width: 28px; height: 28px; font-size: 0.85rem; }
  .logo-text { font-size: 0.82rem; }
  .header-cta { padding: 0.35rem 0.6rem; font-size: 0.72rem; }
  .login-btn { padding: 0.3rem 0.5rem; font-size: 0.7rem; }
  .search-wrap { padding: 0 0.75rem; margin-bottom: 1rem; }
  .search-input { padding: 0.7rem 0.75rem; font-size: 0.88rem; }
  .search-btn { padding: 0 0.85rem; font-size: 0.82rem; }
  .station-list { padding: 0 0.75rem 5rem; gap: 0.5rem; }
  .station-card { padding: 0.65rem 0.7rem; }
  .card-header { gap: 0.5rem; margin-bottom: 0.5rem; }
  .station-logo { width: 32px; height: 32px; font-size: 0.95rem; }
  .station-name { font-size: 0.82rem; }
  .station-dist { font-size: 0.65rem; }
  .badge { font-size: 0.55rem; padding: 0.08rem 0.3rem; }
  .price-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0.45rem 0.55rem;
  }
  .price-value { font-size: 0.95rem; }
  .price-value.na { font-size: 0.78rem; }
  .price-label { font-size: 0.6rem; }
  .price-attr { gap: 0.1rem; margin-top: 0.15rem; }
  .attr-badge { font-size: 0.5rem; padding: 0.04rem 0.2rem; }
  .attr-date { font-size: 0.5rem; }
  .attr-comparison { font-size: 0.5rem; }
  .price-disclaimer {
    font-size: 0.54rem;
    padding: 0.25rem 0.35rem;
    margin-top: 0.3rem;
    gap: 0.25rem;
  }
  .price-disclaimer .disclaimer-icon { font-size: 0.6rem; }
  .card-footer { margin-top: 0.4rem; padding-top: 0.4rem; gap: 0.35rem; }
  .report-btn { font-size: 0.68rem; padding: 0.25rem 0.5rem; gap: 0.25rem; }
  .thumb-btn { font-size: 0.7rem; padding: 0.25rem 0.45rem; }
  .rating-count { font-size: 0.65rem; }
  .claim-row { padding: 0.3rem 0.55rem 0.4rem; }
  .claim-listing-btn { font-size: 0.68rem; padding: 0.28rem 0.5rem; }
  .managed-badge { font-size: 0.72rem; }
  .section-label { padding: 0.2rem 0.75rem 0.4rem; font-size: 0.62rem; }
  .sort-select { font-size: 0.6rem; }
  .claim-banner { padding: 0 0.75rem; }
  .claim-banner-inner { padding: 0.6rem 0.7rem; gap: 0.5rem; }
  .claim-banner-title { font-size: 0.78rem; }
  .claim-banner-sub { font-size: 0.68rem; }
  .claim-btn { padding: 0.35rem 0.7rem; font-size: 0.72rem; }
  .legend { gap: 0.5rem; padding: 0 0.75rem 0.75rem; }
  .legend-item { font-size: 0.65rem; }
}