/* 4 */
/* GPS badge – wie .status aus original */
.gps-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.gps-badge.active {
  color: var(--accent);
}

.gps-badge.error {
  color: #ff6b6b;
}

/* Dot – exakt wie .dot aus original mit Pulse-Shadow */
.gps-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(0, 245, 212, 0.7);
  flex-shrink: 0;
}

.gps-badge.active .gps-dot {
  animation: pulse 2s infinite;
}

.gps-badge.searching .gps-dot {
  background: rgba(255, 255, 255, 0.4);
  animation: none;
}

.gps-badge.error .gps-dot {
  background: #ff6b6b;
  animation: none;
}

/* ── MAIN ── */


/* ══════════════════════════════════════════
       SEARCH PANEL – glassmorphism wie .card
    ══════════════════════════════════════════ */
.search-panel {
  /*margin: 1rem 1.2rem 0;*/
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 1.2rem 1.4rem 1.1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Field label */


/* Standort: lat + lng + gps-btn */
.loc-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.6rem;
}

/* Kraftstoff + Umkreis */
.fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}


.search-panel input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.15);
}

.search-panel input[type="number"] {
  padding-right: 2.8rem;
}

select option {
  background: #203a43;
  color: white;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: '▾';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 0.8rem;
  pointer-events: none;
}

select {
  padding-right: 2.5rem;
  cursor: pointer;
}

.input-wrap {
  position: relative;
}

.unit-suffix {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  pointer-events: none;
}

/* GPS Button */
.btn-gps {
  height: var(--touch);
  min-width: var(--touch);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.btn-gps:hover {
  background: rgba(0, 245, 212, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

/* ══════════════════════════════════════════
       SEARCH BUTTON
       Gradient = Progress-Bar aus original:
       linear-gradient(90deg, var(--accent), #6ae3ff)
    ══════════════════════════════════════════ */
.search-row {
  display: flex;
  gap: 0.7rem;
}

.btn-search {
  flex: 1;
  height: var(--touch);
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border: none;
  border-radius: 12px;
  color: #0f2027;
  /* --bg1 als Text – starker Kontrast */
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: filter 0.15s, transform 0.1s;
  box-shadow: 0 8px 24px rgba(0, 245, 212, 0.25);
}

.btn-search:active {
  transform: scale(0.98);
  filter: brightness(0.92);
}

.btn-reset {
  height: var(--touch);
  min-width: var(--touch);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-reset:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

/* ══════════════════════════════════════════
       RESULTS – Cards wie .card aus original
    ══════════════════════════════════════════ */
.results-area {
  flex: 1;
  /*padding: 0.9rem 1.2rem;*/
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
  padding: 0 0.2rem;
}

.results-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.results-count {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent);
}

/* State screens */
.state-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 2.5rem 1rem;
  color: var(--muted);
  text-align: center;
}

.state-icon {
  font-size: 2.4rem;
  opacity: 0.4;
}

.state-screen p {
  font-size: 0.78rem;
  line-height: 1.7;
  max-width: 280px;
}

/* Spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* Results list */
.results-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}





.station-meta {
  font-size: 0.67rem;
  color: var(--muted);
  margin-top: 0.2rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}


/* Price block */
.price-block {
  text-align: right;
  flex-shrink: 0;
}



/* ══════════════════════════════════════════
       STATUS BAR – wie .footer aus original
    ══════════════════════════════════════════ */
.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.4rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.65rem;
  color: var(--muted);
  font-weight: 500;
}

.sb-coords {
  display: flex;
  gap: 1rem;
}

.sb-item {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

.sb-val {
  color: white;
  font-weight: 600;
}

/* .tag aus original – pill-style */
.speed-tag {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
}

/* ══════════════════════════════════════════
       TOAST
    ══════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: rgba(15, 32, 39, 0.95);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 245, 212, 0.35);
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: white;
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  transition: opacity 0.3s, transform 0.3s;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}



/* Scrollbar 
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}
*/
/* ══════════════════════════════════════════
       STANDORT TOGGLE – kollabierbar
    ══════════════════════════════════════════ */
.loc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  margin-bottom: 0;
}

.loc-toggle .field-label {
  margin-bottom: 0;
  flex: 1;
}

.loc-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.25rem 0.6rem;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.loc-toggle-btn:hover {
  background: rgba(0, 245, 212, 0.12);
  border-color: rgba(0, 245, 212, 0.35);
  color: var(--accent);
}

.loc-toggle-btn.open {
  background: rgba(0, 245, 212, 0.12);
  border-color: rgba(0, 245, 212, 0.35);
  color: var(--accent);
}

.loc-toggle-icon {
  transition: transform 0.25s ease;
  display: inline-block;
}

.loc-toggle-btn.open .loc-toggle-icon {
  transform: rotate(180deg);
}

.loc-coords {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  color: var(--accent);
}

/* Collapsible wrapper */
.loc-fields {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.25s ease, margin-top 0.25s ease;
  margin-top: 0;
}

.map-container {
  height: 310px;
  width: 100%;
  margin-top: 0.6rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
  z-index: 10;
}

/* Fix leaflet controls padding and styles in dark theme */
.leaflet-container {
  background: rgba(255, 255, 255, 0.05);
  font-family: 'Inter', sans-serif;
  border-radius: inherit;
}

.leaflet-control-zoom a {
  background-color: rgba(15, 32, 39, 0.9) !important;
  color: #00f5d4 !important;
  border: 1px solid rgba(0, 245, 212, 0.3) !important;
}

.leaflet-control-attribution {
  background: rgba(15, 32, 39, 0.7) !important;
  color: rgba(255, 255, 255, 0.6) !important;
}

.leaflet-control-attribution a {
  color: #00f5d4 !important;
}

.loc-fields.open {
  max-height: 480px;
  /* Erhöht für Karte */
  opacity: 1;
  margin-top: 0.6rem;
}

@media (max-width: 500px) {
  .map-container {
    height: 450px;
  }

  .loc-fields.open {
    max-height: 600px;
  }
}

/* ══════════════════════════════════════════
       PORTRAIT MOBILE  ≤ 480px
       – Kraftstoff 9 Teile, Umkreis 3 Teile
       – Standort-Felder kollabiert
    ══════════════════════════════════════════ */
@media (max-width: 480px) and (orientation: portrait) {

  .app {
    max-width: 100%;
  }

  .search-panel {
    /*margin: 0.75rem 0.85rem 0;*/
    padding: 1rem 1rem 0.9rem;
    border-radius: 16px;
    gap: 0.85rem;
  }

  /* Kraftstoff 9 Teile / Umkreis 3 Teile aus 12 */
  .fields-row {
    grid-template-columns: 3fr 1fr;
    gap: 0.6rem;
  }

  /* Standort-Zeile kompakter */
  .loc-row {
    grid-template-columns: 1fr 1fr auto;
    gap: 0.5rem;
  }

  .search-panel input[type="text"],
  .search-panel input[type="number"],
  .search-panel select {
    height: 48px;
    font-size: 0.78rem;
    border-radius: 10px;
  }

  .btn-gps {
    height: 48px;
    min-width: 48px;
    border-radius: 10px;
  }

  .btn-search {
    height: 48px;
    font-size: 0.85rem;
    border-radius: 10px;
  }

  .btn-reset {
    height: 48px;
    min-width: 48px;
    border-radius: 10px;
  }

  .results-area {
    padding: 0.75rem 0;
  }

  .statusbar {
    padding: 0.5rem 0.85rem;
    font-size: 0.6rem;
  }

  .sb-coords {
    gap: 0.7rem;
  }
}

/* ══════════════════════════════════════════
       LANDSCAPE MOBILE  ≤ 900px + landscape
       – Gleiche Logik, eigene Selektoren
       – (wird später separat angepasst)
    ══════════════════════════════════════════ */
@media (max-width: 900px) and (orientation: landscape) {

  .app {
    max-width: 100%;
  }

  .search-panel {
    margin: 0.6rem 1rem 0;
    padding: 0.85rem 1.1rem 0.8rem;
    border-radius: 16px;
    gap: 0.75rem;
  }

  /* Kraftstoff 9 Teile / Umkreis 3 Teile aus 12 */
  .fields-row {
    grid-template-columns: 3fr 1fr;
    gap: 0.7rem;
  }

  .loc-row {
    grid-template-columns: 1fr 1fr auto;
    gap: 0.5rem;
  }

  .search-panel input[type="text"],
  .search-panel input[type="number"],
  .search-panel select {
    height: 46px;
    font-size: 0.78rem;
    border-radius: 10px;
  }

  .btn-gps {
    height: 46px;
    min-width: 46px;
    border-radius: 10px;
  }

  .btn-search {
    height: 46px;
    font-size: 0.85rem;
    border-radius: 10px;
  }

  .btn-reset {
    height: 46px;
    min-width: 46px;
    border-radius: 10px;
  }

  .results-area {
    padding: 0.65rem 1rem;
  }

  .statusbar {
    padding: 0.45rem 1rem;
  }
}

/* 4 end */

/*html {
    font-size: 1.2rem;
    line-height: 1.5;
}*/

.v-btn--size-x-large {
  --v-btn-height: 56px;
}

/* ══════════════════════════════════════════
       ITALY MAP (Regions View)
   ══════════════════════════════════════════ */
.italy-map-container {
  width: 100%;
  height: 100%;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.italy-svg {
  max-width: 100%;
  height: auto;
  max-height: 75vh;
  filter: drop-shadow(0 0 12px rgba(0, 245, 212, 0.25));
}

/* All provinces: glass look, white borders */
.italy-svg path {
  fill: rgba(255, 255, 255, 0.08) !important;
  stroke: rgba(255, 255, 255, 0.35) !important;
  stroke-width: 0.8px !important;
  transition: fill 0.2s ease-in-out, stroke 0.15s ease-in-out;
  cursor: pointer;
}

/* Hover: neon cyan highlight */
.italy-svg path:hover {
  fill: rgba(0, 245, 212, 0.28) !important;
  stroke: #00f5d4 !important;
  stroke-width: 1.8px !important;
}

/* Active (clicked) province */
.italy-svg path.active-province {
  fill: rgba(0, 245, 212, 0.45) !important;
  stroke: #00f5d4 !important;
  stroke-width: 2.5px !important;
  filter: drop-shadow(0 0 6px rgba(0, 245, 212, 0.5));
}

/* Map card */
.map-panel {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  overflow: hidden;
}

/* ── Fuel Chips ─────────────────────────────── */
.fuel-chips-section {
  margin-bottom: 12px;
}

.fuel-chips-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px;
  cursor: pointer;
  user-select: none;
}

.fuel-chips-header .loc-toggle-icon {
  display: inline-flex;
  transition: transform 0.2s ease;
}

.fuel-chips-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.fuel-chips-body.open {
  max-height: 300px;
}

/* iPhone fixes */

.page-header-wrapper {
  padding-top: constant(safe-area-inset-top);
  /* iOS 11.0 – 11.1 */
  padding-top: env(safe-area-inset-top);
  /* iOS 11.2+ */
}

/* ========== STATION-CARD LAYOUT (VUETIFY ROW/COL) ========== */
.station-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 12px 16px;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 8px;
}

/* Logo-Teil */
.station-card .card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.station-card .card-name-address {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.station-card .card-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.station-card .card-action-buttons {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  align-items: center;
}

.station-card .card-meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  width: 100%;
}

/* Logo-Bild */
.station-card .card-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 8px;
}

.station-card .no-logo {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

/* Name + Adresse */
.station-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  /*white-space: nowrap;*/
  white-space: break-spaces;
  overflow: hidden;
  text-overflow: ellipsis;
}

.station-address {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.2;
  margin-top: 2px;
}

/* Price block */
.price-block {
  text-align: right;
  flex-shrink: 0;
}

/* Preis */
.price-value {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: white;
}

/* Preis-Farbranking */
.price-value.cheap {
  color: var(--accent) !important;
  /* Günstigster - Primärfarbe */
}

.price-value.mid {
  color: var(--accent2) !important;
  /* Mittelklasse - Gelb/Orange */
}

.price-value.exp {
  color: #ff6b6b !important;
  /* Teuerster - Rot */
}

.price-unit {
  font-size: 0.6rem;
  color: var(--muted);
}

/* Buttons in der Aktionsleiste */
.card-action-buttons .v-btn {
  margin: 0;
}

.card-action-buttons .v-checkbox {
  margin: 0;
  padding: 0;
}

/* Meta-Infos (Entfernung, Self, Badge) */
.meta-distance,
.meta-city,
.meta-self {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
}

.badge-cheapest {
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(0, 245, 212, 0.15);
  color: var(--accent);
  font-size: 0.6rem;
  font-weight: 600;
}

/* Hover-Effekt wie bisher */
.station-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(0, 245, 212, 0.4);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Günstigste Karte hervorheben */
.station-card.cheapest {
  border-color: rgba(0, 245, 212, 0.35);
  box-shadow: 0 0 0 1px rgba(0, 245, 212, 0.1) inset;
}