/* 1. GLOBAL RESETS */
html,
body {
  height: 100%;
  width: 100%;
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  overflow: hidden; /* Prevent full page scroll, handle inside containers */
}

/* 2. NAVBAR CUSTOMIZATION */
.navbar {
  z-index: 1050; /* Ensure header stays on top */
  background-color: #212529 !important; /* Force Dark Brand Color */
}

/* Dropdowns in Header */
.grid-dropdown {
  background-color: #0079c1;
  border: none;
  color: white;
  min-width: 180px;
}
.grid-dropdown:focus {
  background-color: #005a8c;
  color: white;
  box-shadow: none;
}
/* Custom white arrow for select */
.grid-dropdown {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

/* Help Button */
.help-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

/* 3. LAYOUT & HEIGHTS */

/* Map Container */
#viewDiv {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
}

/* DESKTOP LAYOUT (Large screens) */
@media (min-width: 992px) {
  .map-container {
    height: 100%; /* Fill vertical space */
  }
  .panel-container {
    height: 100%; /* Fill vertical space */
    border-right: 1px solid #dee2e6;
  }
}

/* MOBILE LAYOUT (Small screens) */
@media (max-width: 991.98px) {
  /* Stack Map on Top, Panel on Bottom */
  .map-container {
    height: 55vh; /* Map takes top 55% */
    border-bottom: 4px solid #0079c1; /* Separator */
  }
  .panel-container {
    height: 45vh; /* Panel takes bottom 45% */
  }

  /* Adjust Panel Padding for Mobile */
  .panel-content {
    padding: 1rem !important;
  }
}

/* 4. COMPONENTS */

/* Toggle Button */
.view-toggle {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 45px;
  height: 45px;
  background-color: white;
  border: 2px solid #212529;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 99;
  font-weight: 700;
  font-size: 0.9rem;
  color: #212529;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}
.view-toggle:hover {
  background-color: #212529;
  color: white;
}

/* Data Display Rows */
.data-row {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}
.data-row:last-child {
  border-bottom: none;
}
.data-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #6c757d;
  letter-spacing: 0.5px;
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}
.data-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #212529;
  line-height: 1.2;
}
.data-sub {
  font-size: 0.85rem;
  color: #666;
  margin-top: 2px;
}
