/* --- Map Styles --- */
/* Base map height */
#map {
  height: 500px;
}

/* Large screens only */
@media (min-width: 1200px) {
  #map {
    height: 700px; /* taller on large screens */
  }
}


/* --- Marker Colors --- */
.category-marker { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; }
.marker-red { background: #e63946; }
.marker-blue { background: #457b9d; }
.marker-green { background: #2a9d8f; }
.marker-purple { background: #9d4edd; }
.marker-orange { background: #f77f00; }
.marker-yellow { background: #ffdd00; }

/* --- Modal Styles (single modal) --- */
#modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    padding: 10px;
    overflow-y: auto;
}
#modal .modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-align: left; /* respect page text alignment */
}
#modal .close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-weight: bold;
    font-size: 20px;
}
#modal button {
    background: #457b9d;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    margin: 5px 3px 0 0;
}
#modal button:hover { background: #1d3557; }

/* Legend toggle */
#toggle-legend { position: relative; z-index: 10; }
.boxicon-car-marker {
    text-align: center;
    line-height: 32px;
}
.controls button,
.view-btn {
    background: #007bff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
	margin-top:20px;
    display: block;
    margin: 20px auto; /* auto centers horizontally */
}

.controls button:hover,
.view-btn:hover {
    background: #0056b3;
}
/* Ensure popups are above headers and other page elements */
.leaflet-popup {
    z-index: 11000 !important;  /* higher than your modal's 10000 */
}

/* Optional: ensure popup tip (arrow) also is on top */
.leaflet-popup-tip {
    z-index: 11001 !important;
}

/* Optional: tooltip if used */
.leaflet-tooltip {
    z-index: 11002 !important;
}

/* ================================================================
   Autocomplete
================================================================ */
.autocomplete-box {
  position: absolute;
  z-index: 2000;
  background: white;
  width: 100%;
  border: 1px solid #ddd;
  max-height: 180px;
  overflow-y: auto;
}

.autocomplete-item {
  padding: 6px 10px;
  cursor: pointer;
}

.autocomplete-item:hover {
  background-color: #efefef;
}

#map {
  height: 80vh;
  max-height: 80vh;
  min-height: 300px;
  width: 100%;
  border-radius: 6px;
}


/* Dynamic luggage */
.luggage-entry {
  margin-bottom: 1rem;
}

.luggage-entry .remove-entry-btn {
  margin-top: 10px;
  margin-left: 10px;
}

#luggageButtonsContainer {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

/* Expenses dropdown */
#expense-dropdown-btn {
  background: #fff;
  border: 1px solid #ccc;
  color: #333;
  font-weight: normal;
  border-radius: 4px;
  padding: 0.175rem 1.5rem;
  line-height: 1.875 !important;
}

.dropdown-padding {
  padding-top: 12px;
  padding-bottom: 12px;
}

/* Toast */
.toast {
  max-width: 280px !important;
}
