html, body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#map {
  top: 0;            /* top edge of viewport */
  left: 0;           /* left edge of viewport */  
  width: 100vw;      /* full width */
  height: 100vh;     /* full height (or dynamically via JS) */
  max-width: 100%;
  z-index: 1;        /* behind any floating UI elements */
}

/* ===============================
   Modern Reusable Button Styles
   =============================== */

button {
  background: linear-gradient(135deg, #DC2018, #A31A16); /* GCS Brown gradient */
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  user-select: none;
  min-width: 100px;
}

  .button-container {
    margin-top: 20px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #DC2018, #A31A16); 
}

button:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

button:active {
  transform: translateY(1px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}



/* ============================================
   Modern Dropdown + Scrollbar + Panel Styles
   ============================================ */

/* Dropdowns */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: linear-gradient(135deg, #ffffff, #f8f8ff);
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.25s ease;
  cursor: pointer;
  min-width: 220px;
}

select:hover {
  border-color: #999;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

select:focus {
  outline: none;
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.25);
}

/* Optional dropdown arrow indicator */
select::-ms-expand {
  display: none;
}

/* Tour Stops Scrollable Panel */
#tourStopsContainer {
  scrollbar-width: thick;
  scrollbar-color: #f59f9f #f1f1f1;
}

/* Custom Scrollbars (Webkit-based browsers) */
#tourStopsContainer::-webkit-scrollbar {
  width: 10px;
}

#tourStopsContainer::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 8px;
}

#tourStopsContainer::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  border-radius: 8px;
}

#tourStopsContainer::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #c0392b, #a93226);
}

/* Headings inside scrollable containers */
#tourStopsContainer h3 {
  font-size: 17px;
  font-weight: 600;
  color: #1e1e1e;
  border-bottom: 1px solid #ddd;
  margin-bottom: 10px;
  padding-bottom: 5px;
}

/* Optional: container fade effect */
#tourStopsContainer {
  background: #fff3b0;
  backdrop-filter: blur(2px);
  transition: opacity 0.3s ease;
}

.selected-stop {
  background-color: #fff3b0;
  border-left: 8px solid #ff9800;
  padding-left: 10px;
  font-weight: bold;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}

/* Modern red button variant */
.modern-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  background: linear-gradient(135deg, #DC2018, #A31A16);
  color: white;
  transition: background 0.2s;
}

.modern-btn:hover {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
}

.leaflet-toast-container {
  position: absolute;
  bottom: 40px; /* Stick to bottom of map container */
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: linear-gradient(135deg, #DC2018, #A31A16);
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 12px; /* <<< fix for small text */
  font-family: sans-serif;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.leaflet-toast-container.show {
  opacity: 1;
}

  .leaflet-image-layer {
    transition: opacity 0.5s ease-in-out;
  }

.leaflet-toast-popup {
  z-index: 9999 !important;   
  pointer-events: none; 
  font-weight: bold;
  background: rgba(0, 0, 0, 0.8); /* Better background than 'blue' */
  color: white;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* Style the popup container */
.leaflet-popup-dropdown {
  background: transparent !important;
  border: none;
  box-shadow: none;
}

/* Inner dropdown styles */
.map-popup-dropdown {
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px;
  font-size: 16px;
  font-family: Arial, sans-serif;
  color: #333;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  max-width: 200px;
}

/* Dropdown header */
.popup-dropdown-header {
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 18px;
}

/* List and list items */
.map-popup-dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.map-popup-dropdown li {
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.map-popup-dropdown li:hover {
  background-color: #f0f0f0;
}

@media (max-width: 600px) {
  #gcs-subtitle-box {
    font-size: 3.5vw !important;
    max-width: 90vw !important;
  }
}

/* Style the popup's frame */
.Xcustom-popup .leaflet-popup-content-wrapper {
  border: 4px solid #0078d4;   /* Blue frame around the popup */
  border-radius: 8px;           /* Rounded corners */
  padding: 20px;                /* Add padding inside the popup */
  background-color: #f0f0f0;    /* Set a custom background color */
}

/* Style the content inside the popup */
.custom-popup .leaflet-popup-content {
  font-size: 16px;
  color: #333;  /* Set the text color */
}

/* Style the popup's header (if you want it) */
.Xcustom-popup .leaflet-popup-title {
  font-size: 18px;
  font-weight: bold;
  color: #0078d4;
  padding-bottom: 10px;
}

/* Remove the popup arrow (tip) */
.custom-popup .leaflet-popup-tip {
  display: none;
}