@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Syne:wght@700;800&display=swap');

:root {
  --bg-base:        #070d1a;
  --bg-depth:       #050c18;
  --bg-surface:     #0c1628;
  --bg-card:        #0f1d35;
  --bg-card-hover:  #132240;
  --bg-glass:       rgba(15, 29, 53, 0.6);
  --bg-glass-hover: rgba(19, 34, 64, 0.75);
  --border:         rgba(99, 158, 255, 0.1);
  --border-md:      rgba(99, 158, 255, 0.18);
  --border-hi:      rgba(0, 220, 255, 0.35);
  --text-primary:   #e8f0ff;
  --text-secondary: #7a9cc8;
  --text-muted:     #3d5a80;
  --text-dim:       #243550;
  --cyan:           #00dcff;
  --cyan-dim:       rgba(0, 220, 255, 0.08);
  --cyan-mid:       rgba(0, 220, 255, 0.18);
  --cyan-glow:      rgba(0, 220, 255, 0.3);
  --cyan-text:      #00c8ea;
  --amber:          #ffb340;
  --amber-dim:      rgba(255, 179, 64, 0.1);
  --amber-glow:     rgba(255, 179, 64, 0.25);
  --amber-text:     #e8a030;
  --gold:           #f0c040;
  --gold-dim:       rgba(240, 192, 64, 0.1);
  --silver:         #8ab0d0;
  --silver-dim:     rgba(138, 176, 208, 0.1);
  --bronze:         #c09060;
  --bronze-dim:     rgba(192, 144, 96, 0.1);
  --danger:         #ff4d6a;
  --danger-dim:     rgba(255, 77, 106, 0.1);
  --success:        #00dc8c;
  --success-dim:    rgba(0, 220, 140, 0.1);
  --font-ui:      'Space Grotesk', system-ui, sans-serif;
  --font-display: 'Syne', sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;
  --r-xs:   4px;
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   22px;
  --r-2xl:  28px;
  --r-full: 9999px;
  --shadow-sm:    0 1px 4px rgba(0,0,0,.4);
  --shadow-md:    0 4px 20px rgba(0,0,0,.5);
  --shadow-lg:    0 8px 40px rgba(0,0,0,.6);
  --shadow-cyan:  0 0 20px rgba(0, 220, 255, 0.12);
  --shadow-card:  0 2px 12px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
  --t-fast:   all .15s cubic-bezier(.4,0,.2,1);
  --t-std:    all .22s cubic-bezier(.4,0,.2,1);
  --t-slow:   all .35s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  text-size-adjust: 100%;
}
body {
  font-family: var(--font-ui);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
input, select, textarea {
  font-family: inherit;
  color: inherit;
}
img, svg { display: block; }

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('img/body.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,220,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,220,255,.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  z-index: 1;
}
main {
  flex: 1;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 16px 14px 96px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(7, 13, 26, 0.88);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 860px;
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-mark {
  height: 38px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: var(--r-xs);
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text-primary);
}
.logo-text em {
  font-style: normal;
  color: var(--cyan);
}
.logo-sub {
  font-size: .55rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  display: block;
  margin-top: 3px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: var(--t-std);
}
.btn-icon:hover {
  border-color: var(--border-hi);
  color: var(--cyan);
}
.btn-icon svg {
  width: 18px;
  height: 18px;
}

#ad-top-banner {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.search-hero {
  position: relative;
  margin-bottom: 14px;
}
.search-hero-label {
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan-text);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.search-hero-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: ping 2s ease-in-out infinite;
}
@keyframes ping {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--cyan); }
  50%       { opacity: .5; box-shadow: 0 0 4px var(--cyan); }
}
.search-input-wrap {
  position: relative;
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cyan);
  pointer-events: none;
  width: 20px;
  height: 20px;
}
.search-input {
  width: 100%;
  height: 52px;
  padding: 0 44px 0 46px;
  background: var(--bg-glass);
  border: 1px solid var(--border-md);
  border-radius: var(--r-lg);
  color: var(--text-primary);
  font-size: .95rem;
  letter-spacing: .01em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--t-std);
  outline: none;
  -webkit-appearance: none;
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus {
  border-color: var(--border-hi);
  background: var(--bg-glass-hover);
  box-shadow: 0 0 0 3px rgba(0,220,255,.08), var(--shadow-cyan);
}
.search-input::-webkit-search-cancel-button { display: none; }
.btn-clear-search {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: var(--t-fast);
}
.btn-clear-search svg { width: 12px; height: 12px; }
.btn-clear-search:hover { color: var(--text-primary); border-color: var(--border-md); }

.mode-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 14px;
}
.mode-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: var(--r-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .03em;
  transition: var(--t-std);
  min-height: 46px;
}
.mode-tab svg { width: 18px; height: 18px; flex-shrink: 0; }
.mode-tab:hover { border-color: var(--border-md); color: var(--text-secondary); }
.mode-tab.active {
  background: var(--bg-glass);
  border-color: var(--border-hi);
  color: var(--cyan);
  box-shadow: var(--shadow-cyan), inset 0 1px 0 rgba(0,220,255,.06);
}
.mode-tab[data-mode="glp"].active {
  border-color: rgba(255,179,64,.4);
  color: var(--amber);
  box-shadow: 0 0 20px rgba(255,179,64,.12), inset 0 1px 0 rgba(255,179,64,.06);
}

.location-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 14px;
}
.location-icon { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.location-text { flex: 1; min-width: 0; }
.location-label {
  font-size: .58rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 1px;
}
.location-value {
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}
.location-value.loading { color: var(--text-muted); font-weight: 400; }
.btn-geo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  background: var(--cyan-dim);
  border: 1px solid rgba(0,220,255,.25);
  color: var(--cyan);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .03em;
  transition: var(--t-std);
  white-space: nowrap;
}
.btn-geo svg { width: 15px; height: 15px; }
.btn-geo:hover {
  background: var(--cyan-mid);
  border-color: var(--border-hi);
  box-shadow: var(--shadow-cyan);
}

.fuel-tabs, .glp-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  margin-bottom: 14px;
  scrollbar-width: none;
}
.fuel-tabs::-webkit-scrollbar,
.glp-tabs::-webkit-scrollbar { display: none; }

.fuel-tab, .glp-tab {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  transition: var(--t-std);
  position: relative;
  overflow: hidden;
  min-height: 40px;
}
.fuel-tab svg, .glp-tab svg { width: 16px; height: 16px; flex-shrink: 0; }

.fuel-tab::after, .glp-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px 2px 0 0;
  transition: transform .2s cubic-bezier(.4,0,.2,1);
}
.fuel-tab:hover { border-color: var(--border-md); color: var(--text-primary); }
.fuel-tab.active, .glp-tab.active {
  background: var(--cyan-dim);
  border-color: rgba(0,220,255,.3);
  color: var(--cyan);
}
.fuel-tab.active::after { transform: translateX(-50%) scaleX(1); }
.glp-tab.active {
  background: var(--amber-dim);
  border-color: rgba(255,179,64,.3);
  color: var(--amber);
}
.glp-tab.active::after { background: var(--amber); transform: translateX(-50%) scaleX(1); }
.glp-tab:hover { border-color: var(--border-md); color: var(--text-primary); }

.controls-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.sort-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--r-full);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .04em;
  transition: var(--t-std);
}
.sort-btn svg { width: 14px; height: 14px; }
.sort-btn:hover:not(:disabled) { border-color: var(--border-md); color: var(--text-secondary); }
.sort-btn.active {
  background: var(--cyan-dim);
  border-color: rgba(0,220,255,.25);
  color: var(--cyan);
}
.sort-btn:disabled { opacity: .35; cursor: not-allowed; }

.sort-btn[data-sort="score"].active {
  background: linear-gradient(135deg, rgba(0,220,255,.12), rgba(132,255,0,.08));
  border-color: rgba(0,220,255,.35);
  color: var(--cyan);
  box-shadow: 0 0 16px rgba(0,220,255,.1);
}

.radius-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.radius-bar::-webkit-scrollbar { display: none; }
.radius-label {
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  flex-shrink: 0;
}
.radius-btns {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}
.radius-btns::-webkit-scrollbar { display: none; }
.radius-btn {
  flex-shrink: 0;
  padding: 5px 11px;
  border-radius: var(--r-full);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .03em;
  transition: var(--t-std);
  white-space: nowrap;
}
.radius-btn:hover { border-color: var(--border-md); color: var(--text-secondary); }
.radius-btn.active {
  background: var(--cyan-dim);
  border-color: rgba(0,220,255,.3);
  color: var(--cyan);
}
@media (max-width: 479px) {
  .radius-bar { flex-wrap: nowrap; }
}

.results-meta {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--text-muted);
  letter-spacing: .04em;
  margin-bottom: 12px;
  padding-left: 2px;
}
.results-meta strong { color: var(--text-secondary); font-weight: 500; }

.station-card {
  position: relative;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 16px;
  margin-bottom: 10px;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: var(--t-std);
}

.station-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--border);
  transition: var(--t-std);
}
.station-card:hover {
  border-color: var(--border-md);
  background: var(--bg-glass-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-cyan);
}

.station-card.rank-1::before { background: var(--gold); box-shadow: 0 0 8px rgba(240,192,64,.4); }
.station-card.rank-2::before { background: var(--silver); }
.station-card.rank-3::before { background: var(--bronze); }
.station-card.glp-card { border-color: rgba(255,179,64,.12); }
.station-card.glp-card:hover { border-color: rgba(255,179,64,.25); box-shadow: var(--shadow-lg), 0 0 20px rgba(255,179,64,.1); }
.station-card.glp-card.rank-1::before { background: var(--gold); box-shadow: 0 0 8px rgba(240,192,64,.4); }
.station-card.glp-card.rank-2::before { background: var(--silver); }
.station-card.glp-card.rank-3::before { background: var(--bronze); }

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.brand-badge {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-badge svg { width: 22px; height: 22px; }
.brand-badge.glp-brand { background: var(--amber-dim); border-color: rgba(255,179,64,.2); }
.brand-badge.has-logo { background: #fff; padding: 4px; }
.brand-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  border-radius: 2px;
}

.card-info { flex: 1; min-width: 0; }
.station-name {
  font-size: .96rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.25;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}
.station-address {
  font-size: .72rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: .01em;
}
.station-address strong { color: var(--text-primary); font-weight: 600; }

.card-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.distance-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--r-full);
  background: rgba(0,220,255,.08);
  border: 1px solid rgba(0,220,255,.2);
  color: var(--cyan-text);
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 500;
  white-space: nowrap;
}
.distance-badge svg { width: 11px; height: 11px; }

.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: var(--r-full);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.rank-badge.rank-1 { background: var(--gold-dim);   color: var(--gold);   border: 1px solid rgba(240,192,64,.25); }
.rank-badge.rank-2 { background: var(--silver-dim); color: var(--silver); border: 1px solid rgba(138,176,208,.25); }
.rank-badge.rank-3 { background: var(--bronze-dim); color: var(--bronze); border: 1px solid rgba(192,144,96,.25); }

.glp-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: var(--r-full);
  background: var(--amber-dim);
  border: 1px solid rgba(255,179,64,.2);
  color: var(--amber-text);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.glp-type-badge svg { width: 11px; height: 11px; }

.brand-row { margin-bottom: 10px; }
.glp-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-full);
  background: var(--amber-dim);
  border: 1px solid rgba(255,179,64,.2);
  color: var(--amber-text);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .03em;
}
.glp-brand-pill svg { width: 14px; height: 14px; }

.prices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.price-cell {
  background: rgba(5,12,24,.6);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: var(--t-fast);
  position: relative;
  overflow: hidden;
}
.price-cell.highlighted {
  border-color: rgba(0,220,255,.3);
  background: var(--cyan-dim);
}
.price-cell.highlighted::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,220,255,.5), transparent);
}
.glp-card .price-cell.highlighted {
  border-color: rgba(255,179,64,.3);
  background: var(--amber-dim);
}
.glp-card .price-cell.highlighted::after {
  background: linear-gradient(90deg, transparent, rgba(255,179,64,.5), transparent);
}
.glp-card .price-cell.highlighted .price-amount { color: var(--amber); }
.price-cell.highlighted .price-amount { color: var(--cyan); }

.price-label {
  font-family: var(--font-mono);
  font-size: .58rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  font-weight: 500;
}
.price-amount {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -.02em;
}
.price-amount .currency {
  font-size: .65rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-right: 1px;
  vertical-align: top;
  line-height: 1.5;
}
.price-amount .price-unit {
  font-size: .58rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 1px;
  vertical-align: baseline;
  letter-spacing: 0;
}
.price-cell.highlighted .price-unit { color: rgba(0,220,255,.5); }

.price-date {
  font-family: var(--font-mono);
  font-size: .56rem;
  color: var(--text-dim);
  letter-spacing: .04em;
  margin-top: 3px;
  display: block;
  line-height: 1;
}
.price-cell.highlighted .price-date { color: rgba(0,220,255,.4); }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-decoration: none;
  border-radius: var(--r-full);
  padding: 3px 9px 3px 7px;
  transition: var(--t-fast);
}
.source-badge svg { width: 11px; height: 11px; flex-shrink: 0; }

.source-badge--cne {
  background: rgba(0,220,255,.06);
  border: 1px solid rgba(0,220,255,.15);
  color: var(--text-muted);
}
.source-badge--cne:hover {
  background: rgba(0,220,255,.12);
  border-color: rgba(0,220,255,.3);
  color: var(--cyan);
}

.source-badge--community {
  background: rgba(255,179,64,.06);
  border: 1px solid rgba(255,179,64,.15);
  color: var(--text-muted);
}

.schedule-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: .63rem;
  color: var(--text-muted);
}
.schedule-badge svg { width: 13px; height: 13px; }

button.station-address.map-toggle {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0 3px;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font-family: var(--font-ui);
  font-size: .72rem;
  color: var(--text-secondary);
  letter-spacing: .01em;
  cursor: pointer;
  width: 100%;
  line-height: 1.4;
  transition: color .15s;
}
button.station-address.map-toggle:hover {
  color: var(--cyan-text);
}
button.station-address.map-toggle strong {
  color: var(--text-primary);
  font-weight: 600;
}
.map-toggle-icon {
  display: inline-flex;
  align-items: center;
  margin-left: 3px;
  color: var(--cyan-text);
  opacity: .6;
  flex-shrink: 0;
}

.services-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 0 4px;
  border-top: 1px solid var(--border);
}

.svc-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px 4px 7px;
  border-radius: var(--r-full);
  background: rgba(0, 220, 255, 0.06);
  border: 1px solid rgba(0, 220, 255, 0.18);
  font-size: .67rem;
  font-weight: 600;
  color: rgba(0, 220, 255, 0.75);
  letter-spacing: .02em;
  white-space: nowrap;
  transition: var(--t-fast);
}
.svc-chip:hover {
  background: rgba(0, 220, 255, 0.12);
  border-color: rgba(0, 220, 255, 0.3);
  color: var(--cyan);
}

.svc-chip--community {
  background: rgba(0, 220, 140, 0.06);
  border: 1px dashed rgba(0, 220, 140, 0.35);
  color: rgba(0, 220, 140, 0.8);
  position: relative;
}
.svc-chip--community .svc-chip-icon svg { stroke: rgba(0, 220, 140, 0.7); }
.svc-chip--community:hover {
  background: rgba(0, 220, 140, 0.12);
  border-color: rgba(0, 220, 140, 0.5);
  color: #00dc8c;
}
.svc-chip--community:hover .svc-chip-icon svg { stroke: #00dc8c; }

.svc-chip-dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(0, 220, 140, 0.7);
  margin-left: 2px;
  flex-shrink: 0;
}

.svc-chip--ev {
  background: rgba(132, 255, 0, 0.07);
  border: 1px solid rgba(132, 255, 0, 0.3);
  color: rgba(160, 255, 60, 0.9);
}
.svc-chip--ev .svc-chip-icon svg { stroke: rgba(132, 255, 0, 0.8); }
.svc-chip--ev:hover {
  background: rgba(132, 255, 0, 0.13);
  border-color: rgba(132, 255, 0, 0.5);
  color: #a0ff3c;
}
.svc-chip--ev:hover .svc-chip-icon svg { stroke: #a0ff3c; }


.svc-report-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px 4px 7px;
  border-radius: var(--r-full);
  background: transparent;
  border: 1px dashed rgba(99, 158, 255, 0.25);
  font-family: var(--font-ui);
  font-size: .67rem;
  font-weight: 600;
  color: rgba(99, 158, 255, 0.5);
  cursor: pointer;
  transition: var(--t-fast);
  white-space: nowrap;
}
.svc-report-btn svg { width: 11px; height: 11px; stroke: rgba(99,158,255,0.5); flex-shrink: 0; }
.svc-report-btn:hover {
  background: rgba(99, 158, 255, 0.08);
  border-color: rgba(99, 158, 255, 0.4);
  color: rgba(99, 158, 255, 0.85);
}
.svc-report-btn:hover svg { stroke: rgba(99,158,255,0.85); }

.report-panel {
  background: rgba(12, 22, 40, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin: 4px 0 8px;
}
.report-panel-title {
  font-size: .72rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: .01em;
}
.report-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.report-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px 5px 8px;
  border-radius: var(--r-full);
  background: rgba(99, 158, 255, 0.05);
  border: 1px solid rgba(99, 158, 255, 0.2);
  font-family: var(--font-ui);
  font-size: .7rem;
  font-weight: 600;
  color: rgba(99, 158, 255, 0.7);
  cursor: pointer;
  transition: var(--t-fast);
  white-space: nowrap;
}
.report-chip .svc-chip-icon svg { width: 13px; height: 13px; stroke: rgba(99,158,255,0.6); }
.report-chip:hover:not(:disabled) {
  background: rgba(0, 220, 140, 0.08);
  border-color: rgba(0, 220, 140, 0.35);
  color: rgba(0, 220, 140, 0.9);
}
.report-chip:hover:not(:disabled) .svc-chip-icon svg { stroke: rgba(0,220,140,0.8); }
.report-chip--loading {
  opacity: 0.5;
  cursor: wait;
}
.report-chip--voted {
  background: rgba(0, 220, 140, 0.08);
  border-color: rgba(0, 220, 140, 0.35);
  color: rgba(0, 220, 140, 0.9);
  cursor: default;
}
.report-chip--voted .svc-chip-icon svg { stroke: rgba(0,220,140,0.8); }
.report-chip:disabled { cursor: default; }

.report-thanks {
  font-size: .72rem;
  color: rgba(0, 220, 140, 0.8);
  margin-top: 10px;
  font-weight: 600;
}

.svc-chip-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.svc-chip-icon svg {
  width: 13px;
  height: 13px;
  stroke: rgba(0, 220, 255, 0.65);
}
.svc-chip:hover .svc-chip-icon svg {
  stroke: var(--cyan);
}

.nav-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 10px;
}
.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 4px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-md);
  font-family: var(--font-ui);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  transition: var(--t-std);
  min-width: 0;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
}
.nav-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-btn span { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.nav-btn:hover { transform: translateY(-2px); }

.nav-gmaps {
  color: #34a853;
  border-color: rgba(52,168,83,.25);
  background: rgba(52,168,83,.07);
}
.nav-gmaps:hover {
  background: rgba(52,168,83,.15);
  border-color: rgba(52,168,83,.4);
  box-shadow: 0 4px 16px rgba(52,168,83,.2);
}
.nav-waze {
  color: #00bcd4;
  border-color: rgba(0,188,212,.25);
  background: rgba(0,188,212,.07);
}
.nav-waze:hover {
  background: rgba(0,188,212,.15);
  border-color: rgba(0,188,212,.4);
  box-shadow: 0 4px 16px rgba(0,188,212,.2);
}
.nav-apple {
  color: #8ab0d0;
  border-color: rgba(138,176,208,.25);
  background: rgba(138,176,208,.07);
}
.nav-apple:hover {
  background: rgba(138,176,208,.15);
  border-color: rgba(138,176,208,.4);
  box-shadow: 0 4px 16px rgba(138,176,208,.2);
}



.skeleton-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 16px;
  margin-bottom: 10px;
  backdrop-filter: blur(16px);
}
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-surface) 25%,
    var(--bg-card) 50%,
    var(--bg-surface) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.sk-header    { display: flex; gap: 12px; margin-bottom: 12px; }
.sk-avatar    { width: 40px; height: 40px; border-radius: var(--r-sm); flex-shrink: 0; }
.sk-lines     { flex: 1; display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.sk-line      { height: 11px; }
.sk-line-sm   { height: 10px; width: 50%; }
.sk-grid      { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sk-cell      { height: 54px; border-radius: var(--r-md); }

.state-empty, .state-error {
  text-align: center;
  padding: 56px 20px;
  color: var(--text-muted);
}
.state-icon { font-size: 2.4rem; margin-bottom: 12px; opacity: .5; }
.state-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: .05em;
}
.state-desc {
  font-size: .84rem;
  line-height: 1.75;
  max-width: 320px;
  margin: 0 auto 20px;
}

.load-more-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0 4px;
}
.btn-load-more {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--r-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-md);
  color: var(--text-secondary);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  transition: var(--t-std);
}
.btn-load-more:hover {
  border-color: var(--border-hi);
  color: var(--cyan);
  background: var(--cyan-dim);
}

.ad-inline {
  width: 100%;
  min-height: 80px;
  background: var(--bg-surface);
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 4px 0 10px;
}

#ad-bottom-sticky {
  position: sticky;
  bottom: 0;
  z-index: 100;
  width: 100%;
  min-height: 54px;
  background: rgba(7,13,26,.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.toast-container {
  position: fixed;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: calc(100% - 28px);
  max-width: 360px;
  pointer-events: none;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: var(--r-md);
  padding: 11px 16px;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .01em;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(16px) scale(.96);
  transition: all .25s cubic-bezier(.4,0,.2,1);
  pointer-events: auto;
  backdrop-filter: blur(12px);
}
.toast.show { opacity: 1; transform: none; }
.toast.toast-success { border-color: rgba(0,220,140,.35); color: var(--success); }
.toast.toast-error   { border-color: rgba(255,77,106,.35); color: var(--danger); }
.toast.toast-warn    { border-color: rgba(255,179,64,.35); color: var(--amber); }

.phone-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: var(--amber-dim);
  border: 1px solid rgba(255,179,64,.25);
  color: var(--amber-text);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  transition: var(--t-std);
}
.phone-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.phone-btn:hover {
  background: rgba(255,179,64,.2);
  border-color: rgba(255,179,64,.45);
  color: var(--amber);
  box-shadow: 0 0 16px rgba(255,179,64,.15);
}
.phone-btn:active { transform: scale(.98); }

footer {
  border-top: 1px solid var(--border);
  padding: 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--text-muted);
  letter-spacing: .04em;
  line-height: 2;
  max-width: 860px;
  margin: 0 auto;
}
footer a { color: var(--text-secondary); }
footer a:hover { color: var(--cyan); }

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-md); border-radius: 4px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--r-md);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .03em;
  transition: var(--t-std);
  white-space: nowrap;
  min-height: 42px;
}
.btn-primary {
  background: var(--cyan-mid);
  border: 1px solid rgba(0,220,255,.35);
  color: var(--cyan);
}
.btn-primary:hover {
  background: rgba(0,220,255,.25);
  box-shadow: var(--shadow-cyan);
}
.btn-ghost {
  background: var(--bg-surface);
  border: 1px solid var(--border-md);
  color: var(--text-secondary);
}
.btn-ghost:hover { border-color: var(--border-hi); color: var(--cyan); }

@media (min-width: 480px) {
  .prices-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 600px) {
  main { padding: 20px 24px 96px; }
  .header-inner { height: 62px; padding: 0 24px; }
  .logo-mark { height: 44px; }
  .logo-text { font-size: 1.35rem; }
  .search-input { height: 56px; font-size: 1rem; }
  .station-name { font-size: 1.02rem; }
  .price-amount { font-size: 1.1rem; }
}

@media (min-width: 860px) {
  .controls-bar { flex-wrap: nowrap; }
  .mode-tab { font-size: .88rem; }
}

@media (max-width: 479px) {
  .fuel-tabs, .glp-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow-x: unset;
    gap: 8px;
  }
  .fuel-tab, .glp-tab {
    flex-shrink: unset;
    justify-content: center;
    width: 100%;
  }
  .controls-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
  }
  .sort-btn {
    justify-content: center;
    width: 100%;
    font-size: .68rem;
    padding: 7px 8px;
  }
}

.phone-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  margin-top: 8px;
  border-radius: var(--r-full);
  background: rgba(0,220,255,.08);
  border: 1px solid rgba(0,220,255,.2);
  color: var(--cyan);
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--t-std);
  width: fit-content;
}
.phone-badge svg { width: 14px; height: 14px; flex-shrink: 0; }
.phone-badge:hover { background: rgba(0,220,255,.15); border-color: rgba(0,220,255,.4); }

@supports (padding: max(0px)) {
  main { padding-bottom: max(96px, calc(80px + env(safe-area-inset-bottom))); }
  #ad-bottom-sticky { padding-bottom: env(safe-area-inset-bottom); }
  .toast-container { bottom: max(70px, calc(60px + env(safe-area-inset-bottom))); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.manual-station-notice {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,179,64,.07);
  border: 1px solid rgba(255,179,64,.22);
  border-radius: 6px;
  padding: 7px 12px;
  margin: 0 0 10px;
  font-size: .75rem;
  color: #ffb340;
  line-height: 1.35;
}
/* ─── REPORT PRICE BUTTON (card-footer) ───────────────────────────────────── */
.card-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.report-price-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--r-full);
  background: rgba(255, 179, 64, 0.07);
  border: 1px solid rgba(255, 179, 64, 0.22);
  color: var(--amber-text);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: var(--t-std);
  cursor: pointer;
  white-space: nowrap;
}
.report-price-btn svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  stroke: var(--amber-text);
}
.report-price-btn:hover {
  background: rgba(255, 179, 64, 0.16);
  border-color: rgba(255, 179, 64, 0.45);
  color: var(--amber);
  box-shadow: 0 0 12px rgba(255, 179, 64, 0.15);
}
.report-price-btn:active {
  transform: scale(0.97);
}

/* ─── CONTACT SECTION ─────────────────────────────────────────────────────── */
.contact-section {
  margin: 28px 0 0;
  scroll-margin-top: 80px;
}
.contact-section-inner {
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: var(--r-2xl);
  padding: 24px 20px 28px;
  box-shadow: var(--shadow-card);
}

.contact-section-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}
.contact-section-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--amber-dim);
  border: 1px solid rgba(255, 179, 64, 0.22);
  flex-shrink: 0;
}
.contact-section-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--amber);
}
.contact-section-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
  line-height: 1.3;
}
.contact-section-desc {
  font-size: .8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Form grid */
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
@media (min-width: 560px) {
  .contact-form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-field-full {
    grid-column: 1 / -1;
  }
}

.contact-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-label {
  font-size: .77rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: .03em;
  text-transform: uppercase;
}
.contact-label-optional {
  font-weight: 400;
  color: var(--text-muted);
  text-transform: none;
  font-size: .74rem;
}

/* Input & Textarea */
.contact-input,
.contact-textarea,
.contact-select {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-md);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: .88rem;
  padding: 10px 14px;
  transition: var(--t-std);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.contact-input::placeholder,
.contact-textarea::placeholder {
  color: var(--text-muted);
}
.contact-input:focus,
.contact-textarea:focus,
.contact-select:focus {
  border-color: var(--border-hi);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(0, 220, 255, 0.08);
}
.contact-textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.55;
}

/* Select wrapper */
.contact-select-wrap {
  position: relative;
}
.contact-select {
  padding-right: 36px;
  cursor: pointer;
}
.contact-select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  pointer-events: none;
  stroke: var(--text-muted);
}

/* Actions row */
.contact-form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.contact-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: var(--r-full);
  background: rgba(0, 220, 255, 0.12);
  border: 1px solid rgba(0, 220, 255, 0.3);
  color: var(--cyan);
  font-family: var(--font-ui);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .03em;
  transition: var(--t-std);
  cursor: pointer;
  white-space: nowrap;
}
.contact-submit-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.contact-submit-btn:hover {
  background: rgba(0, 220, 255, 0.22);
  border-color: rgba(0, 220, 255, 0.55);
  box-shadow: 0 0 18px rgba(0, 220, 255, 0.18);
}
.contact-submit-btn:active { transform: scale(0.97); }
.contact-submit-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
}
.contact-form-note {
  font-size: .75rem;
  color: var(--text-muted);
}

/* Success state */
.contact-success {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  border-radius: var(--r-lg);
  background: rgba(0, 220, 140, 0.07);
  border: 1px solid rgba(0, 220, 140, 0.22);
  color: var(--success);
  margin-top: 4px;
}
.contact-success[hidden] { display: none; }
.contact-success svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  stroke: var(--success);
}
.contact-success strong {
  display: block;
  font-size: .9rem;
  margin-bottom: 2px;
  color: var(--success);
}
.contact-success p {
  font-size: .8rem;
  color: var(--text-secondary);
}