/* === BASE === */
html,

body {
  margin: 0;
  font: 14px/1.45 -apple-system, "SF Pro Text", "Segoe UI", Roboto, Arial,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow: hidden;
}



#map {
  position: absolute;
  inset: 0;
  z-index: 0;
}
:root {
  --ink: #0f172a;
  --muted: #64748b;
  --brand: #27ae60;
  --brand-deep: #165a36;
  --accent: #2d7bdc;
  --line: rgba(15, 23, 42, 0.08);

  --glass-bg: rgba(255, 255, 255, 0.16);
  --glass-strong: rgba(255, 255, 255, 0.88);
  --glass-border: 1px solid rgba(255, 255, 255, 0.38);
  --glass-shadow: inset 0 1px rgba(255, 255, 255, 0.55),
    0 8px 24px rgba(15, 23, 42, 0.16);
  --glass-blur: blur(16px) saturate(1.15);

  --radius: 16px;
  --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.16);

  --bg: radial-gradient(900px 600px at 12% -10%, #e8f3ec 0%, transparent 60%),
    radial-gradient(900px 600px at 100% -10%, #e7eefc 0%, transparent 55%),
    linear-gradient(180deg, #f7fafc, #edf2f7);
}


/* === FESTES LOGO === */
.logo-wrapper {
  position: fixed;
  top: 6px;
  left: 10px;
  z-index: 1003;
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.logo-wrapperimg {
  height: 34px;
  max-width: 120px;
  object-fit: contain;
}

.logo-wrapperx {
  display: flex;
  align-items: center;
}

/* === PANNEAU PRINCIPAL === */
.info-panel {
  position: absolute;
  top: 8vh;
  right: 20px;
  width: 300px;
  background: rgba(255, 255, 255, 0.344);
  backdrop-filter: blur(10px);
  padding: 11px 14px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

h1 {
  font-size: 18px;
  margin: 0;
  color: #145a32;
}

.subtitle {
  font-size: 12px;
  color: #666;
  margin-top: -4px;
}

.co2-box {
  background: rgba(230, 249, 240, 0.7);
  color: #145a32;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
}

/* === FORMULAIRE === */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

form > label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
}

.input-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.input-wrapper input {
  flex: 1;
}

input,
select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.85);
  transition: 0.2s ease;
}

input:focus,
select:focus {
  border-color: #145a32;
  box-shadow: 0 0 0 2px rgba(26, 188, 156, 0.15);
  outline: none;
}

.coord-display {
  font-size: 11px;
  color: #555;
  background: rgba(240, 240, 240, 0.7);
  padding: 5px 8px;
  border-radius: 8px;
  margin: 2px 0 4px;
}

.geo-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.geo-btn:hover {
  background: #f0f0f0;
}

button {
  padding: 11px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  background: linear-gradient(to right, #145a32, #27ae60);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(26, 188, 156, 0.2);
}

.hidden {
  display: none !important;
}

/* Results dropdown */
.search-results {
  position: relative;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  /* gray-200 */
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 0.8rem;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  margin-top: 0.25rem;
  /* mt-1 */
  display: block;
  z-index: 30;
}

.search-results.visible {
  display: block;
}

.search-loading {
  padding: 0.25rem 0.5rem;
  /* py-1 px-2 */
  color: #9ca3af;
  /* text-gray-400 */
  font-style: italic;
}

.search-item {
  padding: 0.25rem 0.5rem;
  /* py-1 px-2 */
  cursor: pointer;
  text-decoration: none !important;
}
ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}
.search-item:hover {
  background-color: #e6f9f0;
  /* hover:bg-[#e6f9f0] */
}

.search-no-results {
  padding: 0.25rem 0.5rem;
  color: #9ca3af;
  /* text-gray-400 */
}

.search-error {
  padding: 0.25rem 0.5rem;
  color: #dc2626;
  /* text-red-500 */
}

/* === ZOOM CONTROL === */
.zoom-buttons {
  position: fixed;
  bottom: 20px;
  top: unset;
  right: 12px;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.zoom-buttons button {
  background: rgba(255, 255, 255, 0.527);
  color: #145a32;
  font-weight: bold;
  border: none;
  padding: 6px 10px;
  margin: 3px 0;
  font-size: 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.zoom-buttons button:hover {
  background: #f1fdf9;
  transform: scale(1.05);
}

.zoom-buttons button:active {
  background: #e0f7f1;
  transform: scale(0.98);
}

.map-controls-group {
  position: absolute;
  bottom: 30px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1002;
  align-items: flex-start;
}

/* === CO2 NOTE === */
.co2-stats-note {
  position: fixed;
  padding: 8px 12px;
  left: 80px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13.5px;
  color: #333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 1000;
}

.co2-stats-note strong {
  font-weight: bold;
}

.co2-stats-note a {
  color: #1a73e8;
  text-decoration: none;
  margin-left: 4px;
}

.co2-stats-note a:hover {
  text-decoration: underline;
}

/* === ANIMATION === */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === CHECKBOXES STYLE === */
.checkbox-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 4px 6px;
  border-radius: 8px;
  background: rgba(245, 245, 245, 0.5);
  transition: background 0.2s ease;
  cursor: pointer;
}

.checkbox-option:hover {
  background: rgba(220, 250, 245, 0.6);
}

.checkbox-option input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #aaa;
  border-radius: 4px;
  background-color: white;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.checkbox-option input[type="checkbox"]:checked {
  border-color: #145a32;
  background-color: #145a32;
}

.checkbox-option input[type="checkbox"]:checked {
  border-color: #145a32;
  background-color: #145a32;
  position: relative;
}

.checkbox-option input[type="checkbox"]:checked::after {
  content: "✓";
  color: white;
  font-size: 13px;
  font-weight: bold;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* === VEHICLE CARD === */
.vehicle-card-select {
  margin-top: 3px;
  margin-bottom: 3px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  border: none;
  padding: 0;
  flex-wrap: nowrap;
}

.vehicle-card-select legend {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.vehicle-card {
  position: relative;
  flex: 1;
  min-width: 60px;
  max-width: 120px;
  height: 40px;
  border: 2px solid #ccc;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 2px;
  transition: all 0.2s ease;
  text-align: center;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.04);
}

.vehicle-card input {
  display: none;
}

.vehicle-icon {
  font-size: 16px;
  margin-bottom: 2px;
  color: #333;
  transition: color 0.2s;
}

.vehicle-label {
  font-size: 11px;
  color: #444;
  transition: color 0.2s;
  font-weight: 500;
}

.checkmark {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #27ae60;
  display: none;
  justify-content: center;
  align-items: center;
  font-size: 9px;
  color: white;
  box-shadow: 0 0 0 1.5px #fff;
}

.checkmark::before {
  content: "\2713";
}

.vehicle-card input:checked ~ .checkmark {
  display: flex;
}

.vehicle-card input:checked ~ .vehicle-icon,
.vehicle-card input:checked ~ .vehicle-label {
  color: #27ae60;
  font-weight: 600;
}

.vehicle-card:has(input:checked) {
  border-color: #27ae60;
  box-shadow: 0 0 0 2px rgba(26, 188, 156, 0.3);
}

/* === HEADER === */
.eco-header {
  position: fixed;
  top: 6px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  border-radius: 8px;
  padding: 4px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 16vw;
  gap: 16px;
  height: 34px;
  z-index: 1002;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

/* === HEADER-TITEL === */
.eco-header .title {
  font-size: 13px;
  font-weight: 600;
  color: #145a32;
  margin: 0;
  white-space: nowrap;
}

/* === DESKTOP-NAVIGATION === */
.nav-links {
  display: flex;
  gap: 12px;
}

.nav-links a {
  font-size: 12.5px;
  text-decoration: none;
  color: #444;
  padding: 3px 6px;
  border-radius: 5px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.nav-links a:hover {
  color: #145a32;
  background: rgba(255, 255, 255, 0.08);
}

/* === HAMBURGER-ICON (nur mobil sichtbar) === */
.hamburger {
  display: none;
  cursor: pointer;
  border: none;
  background: transparent;
  font-size: 18px;
  padding: 4px 8px;
  border-radius: 10px;
  transition: 0.18s;
}
.hamburger:hover {
  background: rgba(255, 255, 255, 0.22);
}

.nav-links {
  display: flex;
  gap: 12px;
}

.nav-links a {
  font-size: 13px;
  text-decoration: none;
  color: #444;
  padding: 3px 6px;
  border-radius: 6px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.nav-links a:hover {
  color: #145a32;
  background: rgba(26, 188, 156, 0.1);
}

/* === TOOLTIP === */
.walk-tooltip {
  background-color: white;
  color: #e74c3c;
  font-weight: bold;
  border: 1px solid #ccc;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.custom-start-icon,
.custom-end-icon {
  font-size: 24px;
  text-align: center;
}

@media (max-width: 768px) {
  .routing-option-box {
    position: static;
    width: 100%;
    margin: 0 auto;
  }
}

.checkbox-option span {
  cursor: pointer;
}

/* === MOBILE-DESIGN === */
@media (max-width: 768px) {
  .eco-header {
    width: calc(100% - 42px);
    height: 32px;
    padding: 3px 2px;
    justify-content: space-between;

    background: rgba(255, 255, 255, 0.078);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1002;
  }

  .eco-header .title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12.5px;
    font-weight: 600;
    color: #16a085;
    white-space: nowrap;
    z-index: 1003;
  }

  .hamburger {
    display: block;
    font-size: 18px;
    margin-left: auto;
    padding: 3px 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1004;
    color: #444;
  }

  .mobile-menu a {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: rgb(31, 41, 55);
    padding: 10px 14px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
  }
  
  form {
    gap: 6px;
  }

  /* === MOBILMENÜ MIT WEICHEM EFFEKT === */
  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 43px;
    left: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 999;
    padding: 6px 0;

    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    visibility: hidden;
    pointer-events: none;

    transition:
      opacity 0.4s ease,
      transform 0.4s ease,
      visibility 0.4s;
  }

  .nav-links.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links a {
    text-align: center;
    font-size: 13px;
    padding: 5px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #2c3e50;
    font-weight: 500;
    transition:
      background 0.2s ease,
      color 0.2s ease;
    line-height: 1;
  }

  .nav-links a:first-child {
    border-top: none;
  }

  .nav-links a:hover {
    padding: 8px;
    background: rgba(102, 150, 80, 0.08);
    color: #16a085;
  }

  .logo-wrapper {
    padding: 0px;
    top: 6px;
    left: 8px;
    height: 46px;
    background: none;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
  }


  .logo-wrapper img {
    height: 30px;
    max-width: 70px;
  }
}

.routing-card-select {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  border: none;
  padding: 0;
  flex-wrap: nowrap;
  margin: 6px 0;
}

.routing-card-select legend {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.routing-card {
  position: relative;
  flex: 1;
  min-width: 50px;
  max-width: 120px;
  height: 40px;
  border: 2px solid #ccc;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 2px;
  transition: all 0.2s ease;
  text-align: center;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.04);
}

.routing-card input {
  display: none;
}

.routing-icon {
  font-size: 16px;
  margin-bottom: 2px;
  color: #333;
  transition: color 0.2s;
}

.routing-label {
  font-size: 11px;
  color: #444;
  font-weight: 500;
  transition: color 0.2s;
}

.routing-card input:checked ~ .routing-icon,
.routing-card input:checked ~ .routing-label {
  color: #27ae60;
  font-weight: 600;
}

.routing-card input:checked ~ .checkmark {
  display: flex;
}

.routing-card:has(input:checked) {
  border-color: #27ae60;
  box-shadow: 0 0 0 2px rgba(26, 188, 156, 0.3);
}

.routing-card .checkmark {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #27ae60;
  display: none;
  justify-content: center;
  align-items: center;
  font-size: 9px;
  color: white;
  box-shadow: 0 0 0 1.5px #fff;
}

.routing-card .checkmark::before {
  content: "✓";
}
/* === POPUP ADDRESS === */
#popupAddress {
  color: #27ae60;
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.1;
  margin-bottom: 2px;
  width: 220px;
  text-wrap: auto;
  overflow: hidden;
}
@media (max-width: 768px) {
  .info-panel {
    top: auto !important;
    width: 100% !important;
    margin: 0 !important;
    position: fixed;
    bottom: 0;
    height: 45vh;
    /* plus compact */
    background: rgba(255, 255, 255, 0.297);
    backdrop-filter: blur(12px);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    padding: 10px;
    box-shadow: 0 -6px 14px rgba(0, 0, 0, 0.12);
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 1px;
    overflow-y: auto;
    animation: slideUp 0.25s ease-out;
    position: fixed;
    bottom: 16px;
    left: 6px;
    right: 6px;
    width: auto !important;
    margin: 0;
    height: auto;
  }

  .input-wrapper {
    display: flex;
    align-items: center;
    height: 33px;
    /* ✅ Fixe la même hauteur pour tous */
    background: #fff;
    border-radius: 10px;
    padding: 0 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    border: 1px solid #e0e0e0;
    gap: 8px;
  }

  .input-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    padding: 7px 4px;
    font-size: 13.5px;
    background: transparent;
  }

  .geo-btn {
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    /* background: #f6f6f6; */
    font-size: 14px;
    /* color: #16a085; */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-left: 4px;
  }

  button[type="submit"] {
    height: 35px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    background: linear-gradient(to right, #145a32, #27ae60);
    color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    padding: 0 16px;
    cursor: pointer;
  }

  button[type="submit"]:hover {
    transform: translateY(-1px);
  }
}
.toggle-btn {
  background: none;
  border: none;
  font-size: 13px;
  color: #27ae60;
  font-weight: bold;
  text-align: left;
  padding: 2px 6px;
  margin-top: 4px;
  cursor: pointer;
}

.toggle-btn:hover {
  text-decoration: underline;
}
.info-panel.hide-details form > label,
.info-panel.hide-details h1,
.info-panel.hide-details .subtitle,
.info-panel.hide-details .vehicle-card-select,
.info-panel.hide-details .routing-card-select,
.info-panel.hide-details #startCoords,
.info-panel.hide-details #submit,
.info-panel.hide-details #zielCoords {
  display: none !important;
}
@media (max-width: 768px) {
  .info-panel.hide-details form > label,
  .info-panel.hide-details h1,
  .info-panel.hide-details .subtitle,
  .info-panel.hide-details .input-wrapper,
  .info-panel.hide-details .vehicle-card-select,
  .info-panel.hide-details .routing-card-select,
  .info-panel.hide-details #startCoords,
  .info-panel.hide-details #zielCoords {
    display: none !important;
  }

  .toggle-btn {
    background: none;
    border: none;
    font-size: 13px;
    color: #27ae60;
    font-weight: bold;
    text-align: left;
    padding: 2px 6px;
    margin-top: 4px;
    cursor: pointer;
  }

  .toggle-btn:hover {
    text-decoration: underline;
  }
}

/* Hide */
.toggle-btn.mobile-only {
  display: none;
}

/* Only on phone */
@media (max-width: 768px) {
  .toggle-btn.mobile-only {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #27ae60;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 12px;
  }

  .toggle-btn.mobile-only .toggle-icon {
    font-size: 16px;
  }
  .routing-toggle-btn {
    position: fixed;
    top: 7vh;
    left: 10px;
    width: 40px;
    height: 40px;
    font-size: 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 1000;
    transition: background 0.2s ease;
  }
  
  .routing-toggle-btn:hover {
    background: #6eae668a;
  }
  .routing-option-box {
    position: absolute;
    top: 12vh;
    bottom: unset !important;
    left: 12px;
    width: 280px;
    background: --glass-bg;
    backdrop-filter: blur(10px);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    z-index: 999;
    display: none;
    flex-direction: column;
    gap: 1px;
    animation: slideUp 0.3s ease forwards;
  }
  
  .routing-options {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  
  .routing-options legend {
    font-size: 14px;
    font-weight: 600;
    color: #27ae60;
    margin-bottom: 8px;
  }
  
  .routing-options label {
    display: flex;
    align-items: center;
    gap: 3px;
    background: rgba(245, 245, 245, 0.5);
    padding: 2px 1px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
  }

  #popupAddress {
    font-size: 0.7rem;
  }
  .zoom-buttons {
    top: 7vh;
    bottom: auto;
    right: 10px;
  }
}


/* === TOGGLE BUTTON === */
.routing-toggle-btn {
  position: fixed;
  bottom: 10px;
  left: 10px;
  width: 40px;
  height: 40px;
  font-size: 20px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 1000;
  transition: background 0.2s ease;
}

.routing-toggle-btn:hover {
  background: #6eae668a;
}


/* === OPTIONS PANEL === */
.routing-option-box {
  position: absolute;
  bottom: 75px;
  left: 20px;
  width: 280px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  z-index: 999;
  display: none;
  flex-direction: column;
  gap: 1px;
  animation: slideUp 0.3s ease forwards;
}

.routing-options {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.routing-options legend {
  font-size: 14px;
  font-weight: 600;
  color: #27ae60;
  margin-bottom: 8px;
}

.routing-options label {
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(245, 245, 245, 0.5);
  padding: 2px 1px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
}

.routing-options label:hover {
  background: rgba(220, 250, 245, 0.6);
}

.routing-options input[type="radio"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #aaa;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s ease;
}

.routing-options input[type="radio"]:checked {
  border-color: #27ae60;
  background: radial-gradient(circle, #27ae60 40%, transparent 41%);
}

.route-card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.route-card {
  flex: 1 1 250px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  background: rgba(230, 249, 240, 0.7);
  color: #1a7f5a;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
}

.route-card:hover {
  transform: scale(1.02);
}

.route-card h3 {
  margin: 0;
  padding: 0;
  font-size: 15px;
}

.route-card p {
  margin: 0;
  padding: 0;
  font-size: 13px;
}

.co2-stats-note.address-popup {
  display: none;
  position: absolute;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 14px;
  max-height: 130px;
  overflow-y: auto;
  z-index: 1000;
  box-sizing: border-box;
}

.address-popup button {
  padding: 6px 12px;
  font-size: 0.7rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

#insertStartBtn {
  background: #27ae60;
  color: #fff;
}

#insertZielBtn {
  background: #145a32;
  color: #fff;
}

#closeBoxBtn {
  width: 30px;
  height: 30px;
  font-size: 18px;
  font-weight: bold;
  background: rgba(231, 76, 60, 0.15);
  color: rgba(231, 76, 60, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.route-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.route-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: gray;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
}


 /* Mobile menu (compact + separators) */
 .mobile-menu {
  position: fixed;
  top: 56px;
  left: 10px;
  right: 10px;
  z-index: 1002;
  display: none;
  border-radius: 14px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}
.mobile-menu.show {
  display: block;
}
.mobile-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.2s;
}
.mobile-menu a + a {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.25);
  color: var(--brand-deep);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: block;
  }

  
  .eco-header {
    display: flex;
    min-width: 200px;
    gap: 14px;
  }

  .eco-header {
    position: fixed;  
    top: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    height: 32px;
    padding: 6px 14px;
    margin-left: 6px;
    margin-right: 6px;
    border-radius: 12px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    z-index: 1002;
  }
  *, ::before, ::after
  Specificity: (0,0,0)
   {
      box-sizing: border-box;
  }
  .eco-header .title {
    margin: 0;
    font-weight: 900;
    font-size: 14px;
    color: #145a32;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  }
}