/* ==========================================================================
   FuelPulse — Ultra-Modern 2026 Glass & Mobility Design System
   Palette: Deep Navy #283049 | Royal Blue #2563EB | Crisp White #FFFFFF
            Emerald #10B981 | Amber #F59E0B | Red #EF4444
   ========================================================================== */

:root {
  --navy: #283049;
  --navy-deep: #181e30;
  --navy-dark: #1d2336;
  --navy-light: #354061;
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-glow: rgba(37, 99, 235, 0.25);
  --blue-soft: #eff6ff;
  --emerald: #10b981;
  --emerald-dark: #047857;
  --emerald-soft: #ecfdf5;
  --amber: #f59e0b;
  --amber-dark: #b45309;
  --amber-soft: #fffbeb;
  --red: #ef4444;
  --red-dark: #b91c1c;
  --red-soft: #fef2f2;
  --surface: #ffffff;
  --glass: rgba(255, 255, 255, 0.88);
  --glass-strong: rgba(255, 255, 255, 0.96);
  --bg: #f1f5f9;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-muted: #64748b;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.07);
  --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.14);
  --shadow-lg: 0 22px 50px rgba(15, 23, 42, 0.24);
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
}

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

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.48;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.visually-hidden {
  position: absolute;
  clip-path: inset(50%);
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* ==========================================================================
   Public App Shell & Sleek Deep Navy Header
   ========================================================================== */
.app-body {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
  background: #e2e8f0;
}

.app-header {
  background: linear-gradient(180deg, #161d30 0%, #1d263e 100%);
  color: #ffffff;
  z-index: 600;
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.52rem 1.2rem;
  min-height: 56px;
  max-width: 100%;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.brand-link:hover {
  opacity: 0.94;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.brand-text {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
}

.brand-name {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.brand-name-accent {
  color: #93c5fd;
}

.brand-live-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  padding: 0.16rem 0.48rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.28);
}

.brand-live-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: livePulse 2s infinite;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.header-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.13);
  margin: 0 0.12rem;
  flex-shrink: 0;
}

.btn-header-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  font: inherit;
  font-size: 0.81rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0 0.78rem;
  height: 36px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-header-info:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.info-community-card {
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border: 1.5px solid #bfdbfe;
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.info-card-heading {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--navy);
}

.info-card-desc {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.info-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-features-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
}

.info-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.55rem 0.72rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
}

.info-legal-note {
  margin: 0;
  font-size: 0.74rem;
  color: var(--text-muted);
  text-align: center;
  padding-top: 0.4rem;
  border-top: 1px solid var(--border);
}

.btn-header-calc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font: inherit;
  font-size: 0.81rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 0 0.86rem;
  height: 36px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.26);
  transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-header-calc:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-header-calc:active {
  transform: translateY(0);
}

.header-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.header-select {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: 0.81rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.07);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0 2.05rem 0 0.78rem;
  height: 36px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.header-select:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.header-select option {
  background: #1b243b;
  color: #ffffff;
}

.header-select-chevron {
  position: absolute;
  right: 0.62rem;
  pointer-events: none;
  color: #94a3b8;
  transition: color 0.15s ease;
}

.header-select-wrap:hover .header-select-chevron {
  color: #e2e8f0;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  height: 36px;
  background: rgba(9, 13, 24, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0 0.56rem;
  border-radius: 7px;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.lang-pill.is-active {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-header-admin {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.15s, color 0.15s;
}

.btn-header-admin:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

/* Country Switch Language Suggestion Banner */
.lang-suggest-banner {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.55rem 1.1rem;
}

.lang-suggest-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.86rem;
}

.lang-suggest-actions {
  display: flex;
  gap: 0.5rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.58rem 1rem;
  min-height: 44px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.12s, box-shadow 0.15s;
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, var(--blue) 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #2563eb 0%, var(--blue-hover) 100%);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.38);
}

.btn-gps {
  background: var(--navy);
  color: #ffffff;
  border-radius: 999px;
}

.btn-gps:hover:not(:disabled) {
  background: var(--blue);
}

.btn-gps.is-active {
  background: var(--emerald);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.btn-ai {
  background: linear-gradient(135deg, var(--navy) 0%, #2563eb 55%, #0ea5e9 100%);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35);
  min-height: 52px;
  border-radius: 14px;
}

.btn-ai:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--surface);
  color: var(--navy);
  border-color: var(--border-strong);
}

.btn-outline:hover:not(:disabled) {
  background: var(--bg);
  border-color: var(--navy);
}

.btn-outline-light {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  background: var(--bg);
  color: var(--text);
}

.btn-ghost-light {
  background: transparent;
  color: #cbd5e1;
}

.btn-ghost-light:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.btn-danger-outline {
  background: var(--surface);
  color: var(--red-dark);
  border-color: #fecaca;
}

.btn-danger-outline:hover {
  background: var(--red-soft);
  border-color: var(--red);
}

.btn-emerald-outline {
  background: var(--emerald-soft);
  color: var(--emerald-dark);
  border-color: #a7f3d0;
}

.btn-emerald-outline:hover:not(:disabled) {
  background: #d1fae5;
}

.btn-lg {
  min-height: 48px;
  padding: 0.7rem 1.15rem;
}

.btn-sm {
  min-height: 36px;
  padding: 0.36rem 0.78rem;
  font-size: 0.8rem;
}

.btn-xs {
  min-height: 30px;
  padding: 0.24rem 0.58rem;
  font-size: 0.75rem;
  border-radius: 8px;
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   Full-Bleed 3D Map + Floating Glass Sidebar (Apple Maps / Airbnb / Waze Style)
   ========================================================================== */
.mobile-view-tabs {
  display: none;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.4rem 0.75rem;
  gap: 0.5rem;
  z-index: 500;
}

.mobile-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.5rem;
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.mobile-tab.is-active {
  background: var(--navy);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.count-pill {
  display: inline-block;
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.workspace {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Full-bleed Map Stage fills 100% of workspace */
.map-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.fuel-map {
  width: 100%;
  height: 100%;
}

/* Shift MapLibre navigation control cleanly beside the floating glass sidebar on desktop */
.maplibregl-ctrl-top-left {
  top: 14px !important;
  left: 446px !important;
  transition: left 0.2s;
}

/* Floating Glass Sidebar Overlay on Left */
.station-sidebar {
  position: absolute;
  top: 14px;
  bottom: 14px;
  inset-inline-start: 14px;
  width: 418px;
  z-index: 420;
  display: flex;
  flex-direction: column;
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18), 0 1px 2px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

/* Search & Filter Panel inside Floating Sidebar */
.sidebar-search-panel {
  padding: 0.9rem 0.9rem 0.7rem;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--border);
}

.sidebar-search-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.search-row-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.mob-filters-btn,
.mob-map-search-pill,
.mob-fab-btn {
  display: none;
}

.filter-collapsible {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.search-icon {
  position: absolute;
  inset-inline-start: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue);
  pointer-events: none;
}

.search-input {
  width: 100%;
  font: inherit;
  font-size: max(0.92rem, 16px);
  font-weight: 600;
  padding: 0.62rem 2.3rem 0.62rem 2.6rem;
  border: 1.5px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  min-height: 46px;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

/* Hide duplicate native browser search cancel X (we render our clean custom button) */
.search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.btn-edit-station-row {
  margin-top: -0.55rem;
  border-style: dashed;
}

.coords-quick-btns {
  display: inline-flex;
  gap: 0.65rem;
}

.dialog-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  background: var(--bg);
  padding: 4px;
  border-radius: 12px;
}

.dialog-tab {
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.dialog-tab.is-active {
  background: #ffffff;
  color: var(--navy);
  box-shadow: var(--shadow-xs);
}

.hours-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.hours-modal-grid.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.hours-modal-cell {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.hours-modal-cell .input-xs {
  min-height: 38px;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.4rem 0.6rem;
}

.amenities-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.search-clear-btn {
  position: absolute;
  inset-inline-end: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-clear-btn[hidden] {
  display: none;
}

.search-clear-btn:hover {
  background: var(--navy);
  color: #ffffff;
}

/* Live Typeahead Autocomplete Dropdown (Cities, Villages & Stations) */
.search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline: 0;
  z-index: 900;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.22);
  overflow: hidden;
  max-height: 340px;
  overflow-y: auto;
}

.search-suggestions[hidden] {
  display: none;
}

.sug-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.68rem 0.9rem;
  min-height: 48px;
  border: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: #ffffff;
  text-align: start;
  font: inherit;
  cursor: pointer;
  transition: background 0.12s;
}

.sug-item:last-child {
  border-bottom: 0;
}

.sug-item:hover,
.sug-item.is-highlighted {
  background: var(--blue-soft);
}

.sug-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--bg);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.sug-item.is-place .sug-icon {
  background: var(--blue-soft);
}

.sug-item.is-station .sug-icon {
  background: var(--emerald-soft);
}

.sug-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.sug-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sug-sub {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* One-Tap Scrollable Fuel Type Pills */
.fuel-pills-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
}

.fuel-pills-bar::-webkit-scrollbar {
  display: none;
}

.fuel-pill {
  flex-shrink: 0;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #ffffff;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.15s ease;
}

.fuel-pill:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.fuel-pill.is-active {
  background: linear-gradient(135deg, #3b82f6 0%, var(--blue) 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.32);
}

/* Compact Filter Selects Grid */
.filter-pills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.filter-select {
  width: 100%;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.55rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  background: #ffffff;
  color: var(--navy);
  min-height: 36px;
  cursor: pointer;
  text-overflow: ellipsis;
}

.filter-select:focus {
  outline: none;
  border-color: var(--blue);
}

.filter-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.toggle-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.72rem;
  min-height: 36px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  user-select: none;
}

.toggle-chip input {
  accent-color: var(--emerald);
  width: 15px;
  height: 15px;
}

/* Sidebar Meta Strip */
.sidebar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.52rem 0.95rem;
  background: rgba(248, 250, 252, 0.85);
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
}

.stations-count {
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.lowest-summary {
  font-weight: 800;
  color: var(--emerald-dark);
  background: var(--emerald-soft);
  border: 1px solid #a7f3d0;
  padding: 0.18rem 0.58rem;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

/* Station Cards List */
.station-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  scrollbar-width: thin;
}

.station-card {
  width: 100%;
  text-align: start;
  font: inherit;
  background: #ffffff;
  border: 1.5px solid rgba(15, 23, 42, 0.07);
  border-radius: 16px;
  padding: 0.85rem 0.9rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.16s, box-shadow 0.16s;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.station-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.station-card.is-lowest {
  border-color: var(--emerald);
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf8 100%);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.12);
}

.sc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.65rem;
}

.sc-left-with-logo {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}

.sc-left-wrap {
  min-width: 0;
  flex: 1;
}

.sc-brand-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.brand-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.16);
}

.brand-svg,
.brand-logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-logo-img {
  background: #ffffff;
  padding: 2px;
  border-radius: inherit;
}

.operator-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.16rem 0.46rem;
  border-radius: 6px;
  text-transform: uppercase;
}

.sc-name {
  margin: 0.28rem 0 0;
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.sc-address {
  margin: 0.12rem 0 0;
  font-size: 0.76rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-price-col {
  text-align: end;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Authentic Gas-Station Totem Price Typography (Fixed baseline + true superscript 9th cent) */
.sc-price {
  display: inline-block;
  font-size: 1.34rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
  line-height: 1.1;
  white-space: nowrap;
}

.sc-price.is-lowest {
  color: var(--emerald-dark);
}

.price-tenth {
  display: inline-block;
  font-size: 0.56em;
  font-weight: 800;
  line-height: 1;
  vertical-align: top;
  margin-top: 0.12em;
  margin-inline-start: 1px;
  opacity: 0.9;
}

.price-curr-unit {
  font-size: 0.68em;
  font-weight: 700;
  margin-inline-start: 3px;
  color: var(--text-muted);
}

.sc-add-price-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  border: 1px solid #bfdbfe;
  white-space: nowrap;
}

.sc-best-tag {
  display: inline-block;
  margin-top: 0.28rem;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.12rem 0.48rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  letter-spacing: 0.02em;
}

.sc-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 0.73rem;
  color: var(--text-muted);
}

.sc-time-exact {
  display: block;
  font-size: 0.7rem;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

.sc-badges {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--emerald-dark);
}

.sidebar-disclaimer {
  padding: 0.42rem 0.9rem;
  font-size: 0.68rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.75);
  border-top: 1px solid var(--border);
  text-align: center;
}

/* Status Badges with Live Colored Dot */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
}

.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-open,
.status-24_7 {
  background: var(--emerald-soft);
  color: var(--emerald-dark);
}

.status-closed {
  background: var(--red-soft);
  color: var(--red-dark);
}

.report-alert-pill {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.14rem 0.46rem;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber-dark);
}

.dist-pill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.16rem 0.48rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Floating Map Controls, 3D Toggle, Glass Style Switcher & Modern Pins
   ========================================================================== */
.map-floating-tools {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 440;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.48rem;
  pointer-events: none;
}

.map-tools-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.map-style-switcher {
  pointer-events: auto;
  display: inline-flex;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  padding: 4px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.8);
  gap: 2px;
}

.map-style-btn {
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.38rem 0.74rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.15s;
}

.map-style-btn:hover {
  background: rgba(15, 23, 42, 0.06);
}

.map-style-btn.is-active {
  background: var(--navy);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22);
}

.map-3d-btn {
  pointer-events: auto;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 900;
  padding: 0.46rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  color: var(--navy);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all 0.15s;
}

.map-3d-btn.is-active {
  background: linear-gradient(135deg, #3b82f6 0%, var(--blue) 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.map-tool-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.44rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.5rem 0.95rem;
  min-height: 40px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 0.12s, background 0.15s;
}

.map-tool-btn:hover {
  background: linear-gradient(135deg, #3b82f6 0%, var(--blue) 100%);
  transform: translateY(-1px);
}

.map-tool-hint {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

/* Floating Bottom Nearest Station Banner */
.map-nearest-banner {
  position: absolute;
  bottom: 18px;
  inset-inline-start: 452px;
  inset-inline-end: 18px;
  z-index: 460;
  max-width: 600px;
  margin-inline: auto;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1.5px solid rgba(37, 99, 235, 0.35);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.05rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  animation: slideUpIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.map-nearest-banner[hidden] {
  display: none;
}

.mnb-left {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  min-width: 200px;
  flex: 1;
}

.mnb-info {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}

.mnb-eyebrow {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue);
}

.mnb-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy);
}

.mnb-meta {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--emerald-dark);
  font-variant-numeric: tabular-nums;
}

.mnb-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* MapLibre GL Markers & Pins
   IMPORTANT: Never set transform or transition:transform on .fp-marker-anchor
   because MapLibre GL positions it via inline CSS transform! */
.fp-marker-anchor {
  cursor: pointer;
  z-index: 10;
}

.fp-marker-anchor:hover {
  z-index: 950;
}

.fp-pin {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  padding: 3px 8px 3px 3px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(15, 23, 42, 0.06);
  border: 2px solid #ffffff;
  font-family: var(--font-sans);
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.16s;
}

.fp-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  transform: translateX(-50%);
  border-width: 6px 5px 0 5px;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
}

.fp-marker-anchor:hover .fp-pin {
  transform: translateY(-3px) scale(1.07);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.36);
}

.fp-pin.is-lowest {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #ffffff;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.52);
}

.fp-pin.is-lowest::after {
  border-top-color: #059669;
}

.fp-pin-price {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.fp-pin-short-only {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--navy);
  padding-inline-end: 2px;
}

.fp-pin.is-lowest .fp-pin-price {
  color: #ffffff;
}

.fp-pin-closed {
  opacity: 0.76;
}

.map-ref-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.25), 0 4px 12px rgba(15, 23, 42, 0.35);
}

.map-ref-dot.is-gps {
  background: var(--emerald);
  box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.28), 0 4px 12px rgba(15, 23, 42, 0.35);
}

/* ==========================================================================
   Native <dialog> Modals & Station Detail Drawer
   (Per Modern Web Guidance: overscroll-behavior containment on modal + backdrop)
   ========================================================================== */
dialog.fp-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: none;
  max-height: none;
  color: var(--text);
}

dialog.fp-dialog:modal {
  overscroll-behavior: contain;
}

dialog.fp-dialog::backdrop {
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
  overscroll-behavior: contain;
}

dialog.fp-dialog-drawer[open] {
  display: flex;
  justify-content: flex-end;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}

dialog.fp-dialog-drawer .dialog-shell {
  width: min(510px, 100vw);
  height: 100dvh;
  background: var(--surface);
  box-shadow: -16px 0 50px rgba(15, 23, 42, 0.26);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: drawerSlideIn 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes drawerSlideIn {
  from { opacity: 0; transform: translateX(36px); }
  to { opacity: 1; transform: translateX(0); }
}

dialog.fp-dialog-center[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(580px, calc(100vw - 1.5rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: modalPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopIn {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

dialog.fp-dialog-center .dialog-shell {
  width: 100%;
  max-height: calc(100dvh - 2rem);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sd-header {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 65%, #303d62 100%);
  color: #ffffff;
  padding: 1.25rem 1.35rem;
}

.sd-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.sd-brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-logo-slot .brand-emblem {
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.sd-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.sd-address {
  margin: 0.25rem 0 0.85rem;
  font-size: 0.84rem;
  color: #cbd5e1;
}

.sd-status-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.sd-today-hours {
  font-size: 0.82rem;
  color: #e2e8f0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.sd-nav-group {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #3b82f6 0%, var(--blue) 100%);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.42);
}

.btn-nav-link:hover {
  filter: brightness(1.08);
}

.btn-waze-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.42rem 0.74rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.2);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.4);
  text-decoration: none;
  transition: background 0.15s;
}

.btn-waze-link:hover {
  background: rgba(56, 189, 248, 0.32);
  color: #ffffff;
}

.sheet-handle {
  display: none;
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  margin: 0 auto 0.7rem;
}

.dialog-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
  cursor: pointer;
  transition: background 0.15s;
}

.dialog-close-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.modal-header .dialog-close-btn {
  background: var(--bg);
  color: var(--navy);
}

.modal-header .dialog-close-btn:hover {
  background: #e2e8f0;
}

.modal-title {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.modal-subtitle {
  margin: 0.18rem 0 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.dialog-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sd-cta-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.sd-section-title {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.sd-title:focus {
  outline: none;
}

.map-tool-btn.is-active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

/* ==========================================================================
   Authentic Roadside Gas-Station LED Price Totem Board (Tabuľa pred benzínkou)
   ========================================================================== */
.fuel-totem-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fuel-totem-board {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #151d30 0%, #0b101d 100%);
  border: 3px solid #2d3a54;
  box-shadow:
    0 14px 32px rgba(15, 23, 42, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.totem-crown {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1rem;
  background: var(--navy);
  color: #ffffff;
  border-bottom: 3px solid rgba(0, 0, 0, 0.25);
}

.totem-crown-logo .brand-emblem {
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.totem-crown-name {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.totem-crown-live {
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.totem-rows {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.75rem;
  gap: 0.5rem;
}

.totem-empty {
  text-align: center;
  padding: 1.4rem 0.75rem;
  color: #94a3b8;
  font-size: 0.86rem;
  font-weight: 600;
}

.totem-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.68rem 0.72rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.totem-row-left {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 0;
  flex: 1;
}

.totem-fuel-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.totem-fuel-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.22rem 0.58rem;
  border-radius: 6px;
  color: #ffffff;
  background: #334155;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.fuel-badge-diesel      { background: #1e293b; border: 1px solid #64748b; }
.fuel-badge-diesel_plus { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.fuel-badge-n95         { background: linear-gradient(135deg, #10b981, #059669); }
.fuel-badge-n98         { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.fuel-badge-lpg         { background: linear-gradient(135deg, #f59e0b, #d97706); color: #111827; }
.fuel-badge-cng         { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.fuel-badge-adblue      { background: linear-gradient(135deg, #0284c7, #0369a1); }

.totem-source-chip {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.22);
  color: #93c5fd;
}

.totem-source-chip.is-ai {
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
}

.totem-time-rel {
  font-size: 0.76rem;
  font-weight: 700;
  color: #e2e8f0;
}

.totem-time-exact {
  font-size: 0.68rem;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

.totem-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.38rem;
  flex-shrink: 0;
}

/* Glowing Electronic LED Digit Panel */
.totem-led-screen {
  background: #04070d;
  border: 2px solid #263248;
  border-radius: 10px;
  padding: 0.38rem 0.72rem;
  min-width: 112px;
  text-align: center;
  box-shadow:
    inset 0 2px 10px rgba(0, 0, 0, 0.9),
    0 0 14px rgba(52, 211, 153, 0.14);
}

.totem-led-digits {
  display: inline-block;
  font-family: "Plus Jakarta Sans", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.56rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.55), 0 0 2px rgba(254, 243, 199, 0.9);
  line-height: 1.05;
  white-space: nowrap;
}

.totem-led-digits .price-curr-unit {
  color: #fde68a;
  font-size: 0.64em;
  opacity: 0.88;
}

.totem-verify-btn {
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.45);
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.totem-verify-btn:hover:not(:disabled) {
  background: var(--emerald);
  color: #ffffff;
}

.totem-verify-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

/* Totem Bottom LED Status Strip & Metal Pedestal Stand */
.totem-footer-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  background: #070b14;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.totem-footer-status.is-open {
  color: #34d399;
  text-shadow: 0 0 8px rgba(52, 211, 153, 0.45);
}

.totem-footer-status.is-closed {
  color: #f87171;
  text-shadow: 0 0 8px rgba(248, 113, 113, 0.45);
}

.totem-led-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.totem-stand {
  width: 58%;
  height: 10px;
  background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.22);
}

/* Fuel Price Cards inside Detail Drawer (Color-coded by European fuel nozzle standard) */
.prices-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.price-detail-card {
  position: relative;
  border: 1.5px solid rgba(15, 23, 42, 0.08);
  border-inline-start: 4px solid var(--navy);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.price-detail-card:hover {
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.fuel-accent-diesel      { border-inline-start-color: #1e293b; }
.fuel-accent-diesel_plus { border-inline-start-color: #2563eb; }
.fuel-accent-n95         { border-inline-start-color: #10b981; }
.fuel-accent-n98         { border-inline-start-color: #7c3aed; }
.fuel-accent-lpg         { border-inline-start-color: #f59e0b; }
.fuel-accent-cng         { border-inline-start-color: #06b6d4; }
.fuel-accent-adblue      { border-inline-start-color: #0284c7; }

.fuel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--navy);
}

.fuel-dot-diesel      { background: #1e293b; }
.fuel-dot-diesel_plus { background: #2563eb; }
.fuel-dot-n95         { background: #10b981; }
.fuel-dot-n98         { background: #7c3aed; }
.fuel-dot-lpg         { background: #f59e0b; }
.fuel-dot-cng         { background: #06b6d4; }
.fuel-dot-adblue      { background: #0284c7; }

.pdc-left {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.pdc-fuel-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.pdc-fuel-name {
  font-weight: 800;
  color: var(--navy);
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.pdc-source-tag {
  font-size: 0.66rem;
  font-weight: 800;
  padding: 0.12rem 0.48rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
}

.pdc-source-tag.is-ai {
  background: var(--emerald-soft);
  color: var(--emerald-dark);
}

.pdc-time-rel {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}

.pdc-time-exact {
  font-size: 0.73rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.pdc-trust-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.18rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.pdc-trust-pill {
  background: var(--emerald-soft);
  color: var(--emerald-dark);
  padding: 0.12rem 0.46rem;
  border-radius: 999px;
}

.pdc-trust-score {
  color: var(--text-muted);
}

.pdc-right {
  text-align: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  flex-shrink: 0;
}

.pdc-amount {
  display: inline-block;
  font-size: 1.52rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  white-space: nowrap;
}

/* Fuel Calculator (Station Mini-Calc & Global Modal) */
.mini-calc-card {
  background: linear-gradient(135deg, #f8fafc 0%, #ecfdf5 100%);
  border: 1.5px solid #a7f3d0;
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.mini-calc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.mini-calc-title {
  margin: 0 !important;
  color: var(--emerald-dark) !important;
}

.mini-calc-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 0.55rem;
}

.mini-calc-field {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.mini-calc-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--navy);
}

.mini-calc-input {
  min-height: 44px;
  font-size: 1rem;
}

.mini-calc-swap {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--emerald-dark);
  padding-bottom: 0.6rem;
  text-align: center;
}

.mini-calc-summary {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.88);
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-variant-numeric: tabular-nums;
}

.calc-source-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 0.75rem;
}

.calc-converter-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.65rem;
}

.calc-box {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.calc-box-money {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
}

.calc-box-liters {
  border-color: #a7f3d0;
  background: linear-gradient(180deg, #ecfdf5 0%, #f8fafc 100%);
}

.calc-box-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--navy);
}

.calc-big-input {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  font-variant-numeric: tabular-nums;
}

.calc-arrow-divider {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-muted);
  text-align: center;
}

.calc-chips-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.calc-chips-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.calc-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.calc-chip {
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.32rem 0.62rem;
  min-height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #ffffff;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.15s;
}

.calc-chip:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.calc-result-banner {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #ffffff;
  border-radius: 18px;
  padding: 1.1rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.crb-col {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.crb-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.crb-value {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.crb-value.text-emerald {
  color: #34d399;
}

.crb-sep {
  font-size: 1.3rem;
  font-weight: 800;
  color: #64748b;
}

/* Reports, Amenities & Hours */
.reports-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.report-item {
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  border: 1.5px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.report-item-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.report-item.type-great_price {
  background: var(--emerald-soft);
  border-color: #a7f3d0;
}

.report-item.type-long_queue {
  background: var(--amber-soft);
  border-color: #fde68a;
}

.report-item.type-out_of_fuel,
.report-item.type-out_of_service,
.report-item.type-temp_closed {
  background: var(--red-soft);
  border-color: #fecaca;
}

.report-item-title {
  font-weight: 800;
  font-size: 0.88rem;
}

.report-item-note {
  margin: 0.2rem 0;
  font-size: 0.82rem;
  color: var(--text);
}

.report-item-meta {
  font-size: 0.73rem;
  color: var(--text-muted);
}

.sd-description {
  margin: 0 0 0.7rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.amenities-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.amenity-chip {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--navy);
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.hours-accordion {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.75rem 0.95rem;
  background: #f8fafc;
}

.hours-summary {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--navy);
  cursor: pointer;
}

.weekly-hours-list {
  margin: 0.7rem 0 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
  font-size: 0.84rem;
}

.weekly-hours-list dt {
  color: var(--text-muted);
  font-weight: 600;
}

.weekly-hours-list dd {
  margin: 0;
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   AI Vision OCR Price Scanner & Forms
   ========================================================================== */
.ai-scanner-card {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 60%, #ecfdf5 100%);
  border: 1.5px dashed #60a5fa;
  border-radius: 16px;
  padding: 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.ai-spark-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: #ffffff;
}

.ai-scanner-hint {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.ai-trigger-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: stretch;
}

.btn-ai-gallery {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.36rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--navy);
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 0 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-ai-gallery:hover {
  background: #f1f5f9;
  border-color: var(--blue);
}

.ai-preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ai-preview-stage {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
  border: 1.5px solid rgba(37, 99, 235, 0.25);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.14);
}

.ai-preview-img {
  display: block;
  width: 100%;
  max-height: 250px;
  object-fit: contain;
  background: #0f172a;
}

.ai-preview-clear {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.ai-preview-clear:hover {
  background: rgba(239, 68, 68, 0.92);
}

.ai-scan-laser {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #34d399 25%, #10b981 50%, #34d399 75%, transparent 100%);
  box-shadow: 0 0 14px 3px rgba(16, 185, 129, 0.75);
  z-index: 2;
  pointer-events: none;
}

.ai-preview-stage.is-scanning .ai-scan-laser {
  display: block;
  animation: aiScanSweep 1.6s ease-in-out infinite;
}

@keyframes aiScanSweep {
  0%   { top: 4%; }
  50%  { top: 92%; }
  100% { top: 4%; }
}

.ai-scan-status {
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.58rem 0.8rem;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
}

.ai-scan-status.is-success {
  background: var(--emerald-soft);
  color: var(--emerald-dark);
}

.ai-scan-status.is-error {
  background: var(--red-soft);
  color: var(--red-dark);
}

.price-inputs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.price-field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.price-field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
}

.ai-field-pill {
  font-size: 0.64rem;
  font-weight: 800;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: var(--emerald);
  color: #ffffff;
}

.price-input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.price-input {
  width: 100%;
  font: inherit;
  font-size: max(1rem, 16px);
  font-weight: 800;
  padding: 0.6rem 2.6rem 0.6rem 0.8rem;
  min-height: 48px;
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  color: var(--navy);
  background: var(--surface);
  font-variant-numeric: tabular-nums;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.price-input:user-invalid {
  border-color: var(--red);
  background: var(--red-soft);
}

.price-field.is-ai-detected .price-input {
  border-color: var(--emerald);
  background: var(--emerald-soft);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.22);
}

.price-currency-suffix {
  position: absolute;
  inset-inline-end: 0.8rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-muted);
  pointer-events: none;
}

.form-hint {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-error-banner {
  margin-top: 0.75rem;
  padding: 0.68rem 0.9rem;
  border-radius: 12px;
  background: var(--red-soft);
  color: var(--red-dark);
  border: 1px solid #fecaca;
  font-size: 0.84rem;
  font-weight: 600;
}

.modal-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

/* Report Type One-Tap Cards */
.report-type-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 1rem;
}

.report-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.report-option {
  position: relative;
  cursor: pointer;
}

.report-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.report-option-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.35rem;
  padding: 0.95rem 0.6rem;
  min-height: 94px;
  border: 2px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  font-size: 0.86rem;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}

.report-option-icon {
  font-size: 1.6rem;
}

.report-option input:checked + .report-option-card {
  border-color: var(--blue);
  background: var(--blue-soft);
  transform: scale(1.02);
}

.report-option-amber input:checked + .report-option-card {
  border-color: var(--amber);
  background: var(--amber-soft);
}

.report-option-red input:checked + .report-option-card {
  border-color: var(--red);
  background: var(--red-soft);
}

.report-option-emerald input:checked + .report-option-card {
  border-color: var(--emerald);
  background: var(--emerald-soft);
}

.report-option input:focus-visible + .report-option-card {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* ==========================================================================
   Toast Notifications & Skeletons
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 1.25rem;
  inset-inline-end: 1.25rem;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(360px, calc(100vw - 2rem));
}

.toast {
  background: rgba(24, 30, 48, 0.95);
  backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 0.82rem 1.05rem;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  font-size: 0.86rem;
  font-weight: 700;
  border-inline-start: 4px solid var(--blue);
}

.toast.is-success {
  border-inline-start-color: var(--emerald);
}

.toast.is-error {
  border-inline-start-color: var(--red);
}

.empty-state {
  text-align: center;
  padding: 2.2rem 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.skeleton-card {
  height: 98px;
  border-radius: 16px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================================================
   Shared Inputs & Admin / Auth Pages
   ========================================================================== */
.form-field-block {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.9rem;
}

.form-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--navy);
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.text-input {
  width: 100%;
  font: inherit;
  font-size: max(0.94rem, 16px);
  padding: 0.55rem 0.8rem;
  min-height: 44px;
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
}

.text-input:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.text-input:user-invalid {
  border-color: var(--red);
}

.link-btn {
  background: none;
  border: 0;
  color: var(--blue);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.2rem;
}

.link-muted {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
}

.link-muted:hover {
  color: var(--navy);
  text-decoration: underline;
}

/* Auth Page */
.auth-body {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: radial-gradient(circle at top right, #354061 0%, var(--navy-deep) 100%);
}

.auth-card {
  width: min(440px, 100%);
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.auth-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-logo {
  font-size: 2.2rem;
  margin-bottom: 0.35rem;
}

.auth-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
}

.auth-subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.totp-heading {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--navy);
}

.totp-desc {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.qr-box {
  display: flex;
  justify-content: center;
  padding: 0.9rem;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  margin-bottom: 0.85rem;
}

.secret-manual-box {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
  background: var(--bg);
  padding: 0.75rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.secret-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.secret-code {
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--navy);
  word-break: break-all;
  text-align: center;
}

.totp-input {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.35em;
}

.cancel-2fa-form {
  text-align: center;
  margin-top: 0.85rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Alerts */
.alert {
  padding: 0.78rem 1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.alert-success {
  background: var(--emerald-soft);
  color: var(--emerald-dark);
  border: 1px solid #a7f3d0;
}

.alert-danger {
  background: var(--red-soft);
  color: var(--red-dark);
  border: 1px solid #fecaca;
}

/* Admin Dashboard Shell */
.admin-body {
  background: var(--bg);
  min-height: 100dvh;
}

.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100dvh;
}

.admin-sidebar {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.05rem;
  gap: 1.5rem;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.admin-brand small {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  flex: 1;
}

.admin-nav-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.68rem 0.9rem;
  border-radius: 12px;
  transition: background 0.15s, color 0.15s;
}

.admin-nav-link:hover,
.admin-nav-link.is-active {
  background: var(--blue);
  color: #ffffff;
}

.admin-nav-external {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 0.9rem;
}

.admin-sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.admin-user-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
}

.admin-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-page-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
}

.security-pill {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald-dark);
}

.admin-content {
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 0.9rem;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.05rem 1.2rem;
  box-shadow: var(--shadow-sm);
}

.kpi-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.kpi-value {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.text-emerald { color: var(--emerald-dark); }
.text-amber { color: var(--amber-dark); }
.text-blue { color: var(--blue); }
.text-red { color: var(--red-dark); }
.text-muted { color: var(--text-muted); }

.admin-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.admin-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.admin-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.admin-card-head h2 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--navy);
}

.admin-card-desc {
  margin: 0 0 1rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.data-table th,
.data-table td {
  padding: 0.6rem 0.68rem;
  border-bottom: 1px solid var(--border);
  text-align: start;
  vertical-align: middle;
}

.data-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: #f8fafc;
}

.nowrap { white-space: nowrap; }

.tag-country {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.12rem 0.4rem;
  border-radius: 6px;
  background: var(--navy);
  color: #ffffff;
  margin-inline-end: 0.3rem;
}

.badge-emerald,
.badge-amber,
.badge-blue,
.badge-danger,
.badge-muted {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.56rem;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-emerald { background: var(--emerald-soft); color: var(--emerald-dark); }
.badge-amber   { background: var(--amber-soft); color: var(--amber-dark); }
.badge-blue    { background: var(--blue-soft); color: var(--blue); }
.badge-danger  { background: #fee2e2; color: #b91c1c; }
.badge-muted   { background: var(--bg); color: var(--text-muted); }

.inline-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.admin-brand-logo-img {
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35);
}

.auth-logo-img {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.auth-logo-img img {
  display: block;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.data-table tbody tr:hover {
  background: #f8fafc;
}

.inline-form { display: inline-block; }

.inline-grid-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: end;
}

.align-end {
  display: flex;
  align-items: flex-end;
}

.compact-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.84rem;
}

.compact-list li {
  padding: 0.5rem 0.68rem;
  background: #f8fafc;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.compact-list li.flex-between {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.stacked-mini-form {
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.stacked-mini-form h3 {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--navy);
}

.mini-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.mini-row-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.operator-badges-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.operator-chip-preview {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.25rem 0.58rem;
  border-radius: 8px;
  background: var(--navy);
  color: #ffffff;
}

.color-picker-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.65rem;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

.audit-details-cell {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.preset-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: 0.65rem;
  background: #f8fafc;
  border-radius: 12px;
}

.preset-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
}

.form-check-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  cursor: pointer;
  margin-bottom: 0.65rem;
}

.form-check-row input {
  width: 17px;
  height: 17px;
  accent-color: var(--blue);
}

.inline-check-muted {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.info-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}

.info-box h3 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  color: var(--navy);
}

.check-list {
  margin: 0;
  padding-inline-start: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--text);
}

.admin-fieldset {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 0 0 1rem;
}

.admin-fieldset legend {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--navy);
  padding: 0 0.4rem;
}

.checkbox-inline-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
}

.hours-edit-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.filter-inline-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-inline-form .text-input {
  width: auto;
  min-height: 38px;
}

.quick-price-form {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.input-xs {
  font: inherit;
  font-size: 0.78rem;
  padding: 0.3rem 0.48rem;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
}

.input-price-xs {
  width: 68px;
}

/* ==========================================================================
   Responsive Breakpoints (Mobile-First Adaptations)
   ========================================================================== */
@media (max-width: 1120px) {
  .admin-grid-2,
  .admin-grid-3,
  .inline-grid-form {
    grid-template-columns: 1fr;
  }
  .hours-edit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Native Mobile Bottom Navigation Bar (hidden on desktop) */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 920px) {
  .hide-sm {
    display: none !important;
  }

  /* 1. Ultra-clean single-row Mobile Header (zero wrapping!) */
  .btn-header-info,
  .btn-header-calc,
  .btn-header-admin {
    display: none;
  }

  .header-inner {
    flex-wrap: nowrap;
    padding: 0.45rem 0.65rem;
    gap: 0.4rem;
  }

  .brand-link {
    gap: 0.42rem;
    flex-shrink: 0;
  }

  .brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .brand-icon svg {
    width: 18px;
    height: 18px;
  }

  .brand-name {
    font-size: 0.98rem;
  }

  .header-inner {
    padding: 0.42rem 0.65rem;
    min-height: 48px;
  }

  .header-controls {
    flex-wrap: nowrap;
    gap: 0.28rem;
    min-width: 0;
  }

  .header-select {
    font-size: 0.72rem;
    padding: 0 1.55rem 0 0.5rem;
    height: 32px;
    border-radius: 9px;
    max-width: 102px;
    text-overflow: ellipsis;
  }

  .header-select-chevron {
    right: 0.42rem;
    width: 12px;
    height: 12px;
  }

  .lang-switcher {
    height: 32px;
    border-radius: 9px;
    padding: 2px;
    gap: 1px;
    flex-shrink: 0;
  }

  .lang-pill {
    height: 26px;
    border-radius: 6px;
    padding: 0 0.34rem;
    font-size: 0.63rem;
  }

  /* 2. Native Mobile Floating Bottom Bar */
  .mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding: 0.35rem 0.35rem calc(0.38rem + env(safe-area-inset-bottom, 0px));
    z-index: 650;
    box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.08);
  }

  .mob-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.16rem;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 0.66rem;
    font-weight: 700;
    padding: 0.32rem 0.15rem;
    border-radius: 12px;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
  }

  .mob-nav-item.is-active {
    color: var(--blue);
    background: var(--blue-soft);
  }

  .mob-nav-icon-wrap {
    position: relative;
    display: inline-flex;
  }

  .mob-nav-badge {
    position: absolute;
    top: -6px;
    inset-inline-end: -22px;
    min-width: 18px;
    padding: 0 5px;
    height: 15px;
    border-radius: 999px;
    background: var(--navy);
    color: #ffffff;
    font-size: 0.58rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
    border: 1.5px solid #ffffff;
  }

  .mob-nav-item.is-active .mob-nav-badge {
    background: var(--blue);
  }

  /* 3. Clean Uncluttered Mobile Map (Apple Maps / Google Maps layout) */
  .mob-map-search-pill {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    position: absolute;
    top: 12px;
    inset-inline: 12px;
    z-index: 455;
    height: 48px;
    padding: 0 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
    color: var(--text-muted);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: start;
    cursor: pointer;
  }

  .mob-map-search-pill svg {
    color: var(--blue);
    flex-shrink: 0;
  }

  .mob-map-search-pill span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .maplibregl-ctrl-top-left {
    top: 112px !important;
    left: 10px !important;
  }

  .map-floating-tools {
    top: 112px;
    inset-inline-end: 12px;
    gap: 0.5rem;
    align-items: flex-end;
  }

  /* Compact round 44x44 floating action buttons on mobile map */
  .mob-fab-btn {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    color: var(--navy);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
    cursor: pointer;
  }

  .mob-fab-btn.is-active {
    background: var(--blue);
    color: #ffffff;
    border-color: var(--blue);
  }

  .map-tool-btn {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }

  /* Style switcher tray hidden until user taps Layers FAB on mobile */
  .map-tools-row {
    display: none;
    position: absolute;
    top: 0;
    inset-inline-end: 52px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    padding: 0.45rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(15, 23, 42, 0.08);
    flex-direction: column;
    align-items: stretch;
    min-width: 145px;
    z-index: 480;
  }

  .map-tools-row.is-open {
    display: flex;
  }

  .map-style-switcher {
    flex-direction: column;
    background: transparent;
    box-shadow: none;
    border: 0;
    padding: 0;
    border-radius: 0;
    gap: 2px;
  }

  .map-style-btn {
    text-align: start;
    padding: 0.48rem 0.7rem;
    border-radius: 10px;
    font-size: 0.8rem;
  }

  .map-3d-btn {
    margin-top: 0.3rem;
    border-radius: 10px;
    text-align: center;
  }

  /* 4. Clean Mobile List View with Collapsible Extra Filters */
  .station-sidebar {
    position: absolute;
    inset: 0;
    width: 100%;
    border-radius: 0;
    border: 0;
    background: var(--bg);
    backdrop-filter: none;
    box-shadow: none;
  }

  .sidebar-search-panel {
    padding: 0.65rem 0.75rem 0.6rem;
    background: #ffffff;
  }

  .mob-filters-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 14px;
    border: 1.5px solid rgba(15, 23, 42, 0.12);
    background: #ffffff;
    color: var(--navy);
    cursor: pointer;
    box-shadow: var(--shadow-xs);
  }

  .mob-filters-btn.is-active {
    background: var(--blue);
    color: #ffffff;
    border-color: var(--blue);
  }

  /* Keep City / Brand / Sort immediately visible in mobile List view; Filters toggle expands Open-only + GPS */
  .filter-collapsible {
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
    padding-top: 0.25rem;
  }

  .filter-collapsible .filter-actions-row {
    display: none;
  }

  .filter-collapsible.is-open .filter-actions-row {
    display: flex;
  }

  .filter-pills-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .filter-pills-grid select:last-child {
    grid-column: auto !important;
  }

  .station-list {
    padding: 0.65rem 0.75rem 1.25rem;
  }

  .station-card {
    padding: 0.8rem 0.85rem;
  }

  .map-nearest-banner {
    inset-inline: 10px;
    bottom: 12px;
    border-radius: 18px;
    padding: 0.75rem 0.85rem;
    gap: 0.6rem;
  }

  .mnb-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .workspace[data-mobile-view="map"] .station-sidebar {
    display: none;
  }

  .workspace[data-mobile-view="list"] .map-stage {
    display: none;
  }

  /* 5. Native iOS-style Bottom Sheet Dialogs on Mobile */
  dialog.fp-dialog-drawer[open],
  dialog.fp-dialog-center[open] {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }

  dialog.fp-dialog-drawer .dialog-shell,
  dialog.fp-dialog-center .dialog-shell {
    width: 100%;
    height: auto;
    max-height: 91dvh;
    border-radius: 24px 24px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -16px 46px rgba(15, 23, 42, 0.3);
    animation: mobileSheetUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .sd-header {
    padding: 0.85rem 1.1rem 1.05rem;
  }

  .sd-title {
    font-size: 1.15rem;
  }

  .dialog-body {
    padding: 1rem 1.05rem 1.25rem;
  }

  .sheet-handle {
    display: block;
  }

  @keyframes mobileSheetUp {
    from { opacity: 0; transform: translateY(48px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    padding: 0.9rem;
  }

  .admin-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .mini-row-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .price-inputs-grid,
  .calc-source-grid,
  .calc-converter-grid,
  .hours-modal-grid {
    grid-template-columns: 1fr;
  }

  .sd-cta-bar {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .sd-cta-bar .btn {
    font-size: 0.8rem;
    padding: 0.55rem 0.65rem;
  }

  .calc-arrow-divider {
    display: none;
  }

  .filter-pills-grid {
    grid-template-columns: 1fr 1fr;
  }

  .filter-pills-grid select:last-child {
    grid-column: span 2;
  }

  .pdc-amount {
    font-size: 1.35rem;
  }

  .toast-container {
    bottom: 5.2rem;
    inset-inline: 0.85rem;
    max-width: none;
  }
}

/* ==========================================================================
   TankRadar Brand Logo, Station Website Button & Driver Reviews UI
   ========================================================================== */
.brand-icon-img {
  background: transparent;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  padding: 0;
  overflow: hidden;
}

.brand-logo-svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.sd-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.74rem;
  font-weight: 800;
  color: #fef08a;
  background: rgba(250, 204, 21, 0.16);
  border: 1px solid rgba(250, 204, 21, 0.35);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  white-space: nowrap;
}

.rating-card-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.7rem;
  font-weight: 800;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 999px;
  padding: 0.1rem 0.42rem;
}

.btn-web-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.34rem 0.62rem;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-web-link:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.sd-reviews-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.sd-reviews-head .sd-section-title {
  margin: 0;
}

.sd-reviews-summary {
  font-size: 0.82rem;
  font-weight: 800;
  color: #d97706;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.review-item {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.72rem 0.85rem;
}

.review-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.28rem;
}

.review-author {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--navy);
}

.review-stars {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: #f59e0b;
}

.review-comment {
  margin: 0 0 0.32rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #334155;
}

.review-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.review-form-card {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1.5px solid #dbeafe;
  border-radius: 14px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.review-form-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.review-form-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--navy);
}

.star-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.16rem;
}

.star-btn {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 1.38rem;
  line-height: 1;
  color: #cbd5e1;
  cursor: pointer;
  padding: 0.12rem 0.18rem;
  transition: transform 0.12s ease, color 0.12s ease;
}

.star-btn:hover {
  transform: scale(1.16);
}

.star-btn.is-active {
  color: #f59e0b;
}

.input-sm {
  font-size: 0.84rem;
  padding: 0.48rem 0.72rem;
}

/* Station Header Edit Icon + Station ID & Support Email Card */
.sd-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  flex-shrink: 0;
}

.sd-edit-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}

.sd-edit-icon-btn:hover {
  background: rgba(59, 130, 246, 0.55);
  border-color: rgba(147, 197, 253, 0.6);
  transform: scale(1.06);
}

.se-id-card {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1.5px solid #bfdbfe;
  border-radius: 14px;
  padding: 0.82rem 0.92rem;
  margin-bottom: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.se-id-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.se-id-label-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.se-id-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
}

.se-id-badge {
  display: inline-flex;
  align-items: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
  font-weight: 800;
  color: #1d4ed8;
  background: #dbeafe;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  padding: 0.14rem 0.52rem;
  letter-spacing: 0.02em;
}

.se-copy-btn {
  appearance: none;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  color: #1e40af;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 0.28rem 0.58rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.se-copy-btn:hover {
  background: #dbeafe;
  border-color: #60a5fa;
}

.se-id-hint {
  margin: 0;
  font-size: 0.77rem;
  line-height: 1.4;
  color: #475569;
}

.se-email-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding-top: 0.38rem;
  border-top: 1px dashed #cbd5e1;
  font-size: 0.78rem;
  color: #334155;
}

.se-email-link {
  font-weight: 800;
  color: #2563eb;
  text-decoration: none;
}

.se-email-link:hover {
  text-decoration: underline;
}

.info-contact-box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  color: #334155;
  text-align: center;
}

/* Info Hub Expandable Sources, Terms, Privacy & Cookies Accordions */
.info-docs-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.info-accordion {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 13px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.info-accordion[open] {
  border-color: #bfdbfe;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.06);
}

.info-accordion-head {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.72rem 0.9rem;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--navy);
  cursor: pointer;
  user-select: none;
  background: #f8fafc;
}

.info-accordion-head::-webkit-details-marker {
  display: none;
}

.info-accordion-head::after {
  content: "▾";
  font-size: 0.88rem;
  color: #64748b;
  transition: transform 0.16s ease;
}

.info-accordion[open] .info-accordion-head::after {
  transform: rotate(180deg);
  color: var(--blue);
}

.info-accordion-body {
  padding: 0.72rem 0.9rem 0.85rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
  font-size: 0.81rem;
  line-height: 1.5;
  color: #334155;
}

.info-accordion-body p {
  margin: 0;
}

.info-source-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.58rem 0.72rem;
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
}

.info-source-item strong {
  font-size: 0.82rem;
  color: var(--navy);
}

/* ==========================================================================
   Direct On-Map Amenity Quick Filters, FX Conversion, History Chart & AI Advisor
   ========================================================================== */
.map-amenity-bar {
  position: absolute;
  top: 0.9rem;
  left: 446px;
  right: 280px;
  z-index: 410;
  display: flex;
  align-items: center;
  gap: 0.36rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 4px;
  pointer-events: auto;
}

.map-amenity-bar::-webkit-scrollbar {
  display: none;
}

.map-am-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  padding: 0.34rem 0.68rem;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.12);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.map-am-chip:hover {
  background: #ffffff;
  border-color: var(--blue);
}

.map-am-chip.is-active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border-color: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

/* Cross-Border EUR Equivalent Badges */
.sc-eur-equiv {
  display: inline-block;
  font-size: 0.69rem;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  padding: 0.08rem 0.38rem;
  margin-top: 0.16rem;
  white-space: nowrap;
}

.totem-eur-equiv {
  display: inline-block;
  font-size: 0.71rem;
  font-weight: 800;
  color: #7dd3fc;
  letter-spacing: 0.02em;
}

/* AI Fuel Savings Detour Advisor Card */
.advisor-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 100%);
  border: 1.5px solid #bfdbfe;
  border-radius: 16px;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.advisor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.advisor-title {
  margin: 0;
  font-size: 0.88rem;
}

.advisor-fx-pill {
  font-size: 0.69rem;
  font-weight: 700;
  color: #1e40af;
  background: #dbeafe;
  border-radius: 999px;
  padding: 0.16rem 0.52rem;
}

.advisor-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.5rem;
  align-items: end;
}

.advisor-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.advisor-result {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.72rem 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.advisor-verdict {
  font-size: 0.88rem;
  font-weight: 800;
}

.advisor-verdict.is-worth {
  color: #047857;
}

.advisor-verdict.is-stay {
  color: #b45309;
}

.advisor-meta {
  margin: 0;
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.4;
}

.advisor-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.btn-ai-soft {
  background: linear-gradient(135deg, #eff6ff 0%, #ede9fe 100%);
  color: #4338ca;
  border: 1px solid #c7d2fe;
  font-weight: 700;
}

.btn-ai-soft:hover {
  background: linear-gradient(135deg, #dbeafe 0%, #ddd6fe 100%);
}

.advisor-ai-text {
  margin: 0.15rem 0 0;
  padding: 0.58rem 0.72rem;
  border-radius: 10px;
  background: #f8fafc;
  border-left: 3px solid #6366f1;
  font-size: 0.8rem;
  line-height: 1.48;
  color: #1e293b;
}

/* 30-Day Price History Sparkline Card */
.history-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.history-title {
  margin: 0;
  font-size: 0.88rem;
}

.history-avg-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.2rem 0.58rem;
  border-radius: 999px;
}

.history-avg-badge.is-cheaper {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.history-avg-badge.is-pricier {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.history-avg-badge.is-same {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.history-chart-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.history-svg {
  width: 100%;
  height: auto;
  display: block;
}

.history-axis-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.history-empty-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* PWA Install Hint & FX Badge in Info Hub */
.pwa-ios-hint {
  margin: 0;
  padding: 0.52rem 0.68rem;
  border-radius: 10px;
  background: #ffffff;
  border: 1px dashed #93c5fd;
  font-size: 0.78rem;
  color: #1e3a8a;
  line-height: 1.4;
}

.info-fx-pill {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 0.52rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e40af;
  text-align: center;
}

@media (max-width: 900px) {
  .map-amenity-bar {
    top: 4.1rem;
    left: 0.65rem;
    right: 0.65rem;
  }

  .map-am-chip {
    font-size: 0.71rem;
    padding: 0.3rem 0.58rem;
  }

  .advisor-inputs {
    grid-template-columns: 1fr 1fr;
  }

  .advisor-inputs button {
    grid-column: span 2;
  }
}

/* Share Station Link Modal */
.share-dialog-sm {
  max-width: 460px;
}

.share-link-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
  align-items: stretch;
}

.share-link-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  background: #f8fafc;
  color: #1e3a8a;
  padding: 0.5rem 0.68rem;
}

.share-apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.share-app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.58rem 0.75rem;
  border-radius: 11px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--navy);
  transition: transform 0.12s ease, filter 0.15s ease;
}

.share-app-btn:hover {
  transform: translateY(-1px);
  filter: brightness(0.97);
}

.share-app-btn.is-wa   { background: #dcfce7; color: #166534; border-color: #86efac; }
.share-app-btn.is-tg   { background: #e0f2fe; color: #075985; border-color: #7dd3fc; }
.share-app-btn.is-sms  { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.share-app-btn.is-mail { background: #ede9fe; color: #5b21b6; border-color: #c4b5fd; }

/* German Tankerkönig MTS-K Server & Unregistered Station Notice */
.de-source-notice {
  margin-top: 0.62rem;
  padding: 0.58rem 0.78rem;
  border-radius: 11px;
  font-size: 0.77rem;
  line-height: 1.45;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem;
}

.de-source-notice.is-active-src {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.de-source-notice.is-unregistered {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.de-source-link {
  font-weight: 800;
  color: inherit;
  text-decoration: underline;
}
