/* Get a fancy font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700;1,900&display=swap');

/* Change header text to imported font */
h1 {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 700 !important;
  font-size: x-large;
  color: #26619c !important; 
  padding-bottom: 15px;
  font-size: 24px !important;
}

h2 {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600 !important;
  color: #5b8cbd !important; 
  font-size: 22px !important;
}

h3 {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 700 !important;
  color: #6A6D6F;
  font-size: 18px !important;
}

h4 {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 400 !important;
  color: #6A6D6F;
  font-size: 18px !important;
}

h5 {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 700;
  color: #000000;
  font-size: 18px;
}

h6 {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  color: #000000;
  font-size: 14px;
}

body {
  font-family: 'Source Sans Pro', sans-serif;
  color: #000000;
  font-weight: 400;
}

p {
  font-family: 'Source Sans Pro', sans-serif;
  color: #000000;
  font-weight: 400;
  font-size: 14px;
}

hr {
  padding: 0;
}

/* Make text visible on inputs */
.shiny-input-container {
  color: #474747;
}

/* Specific Custom CSS */
.outer {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  padding: 0;
}

#controls {
  background-color: white;
  padding: 0 10px 10px 10px;
  cursor: move;
  opacity: 0.9 !important;
  zoom: 0.9;
  transition: opacity 500ms 1s;
}

#controls:hover {
  opacity: 0.85 !important;
  transition-delay: 0;
}

#CALpanel {
  background-color: white;
  padding: 0 10px 10px 10px;
  cursor: move;
  opacity: 0.9 !important;
  zoom: 0.9;
  transition: opacity 500ms 1s;
}

popupTitle {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  color: #6A6D6F;
}

popupContent {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 400;
  color: #6A6D6F;
}

/* If not using map tiles, show a white background */
.leaflet-container {
  background-color: white !important;
}

/* Navbar styling - green background with white text */
.navbar {
  background-color: #21753D !important;
}

.navbar-brand {
  color: white !important;
  font-weight: 600 !important;
}

.navbar-nav .nav-link {
  color: white !important;
}

.navbar-nav .nav-link:hover {
  color: #e8f5e9 !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
}

.navbar-nav .nav-link.active {
  color: white !important;
  background-color: rgba(255, 255, 255, 0.2) !important;
}

/* For Bootstrap 5 navbar toggler icon (mobile menu) */
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Move navbar items to the right and make them bold */
.navbar-nav {
  margin-left: auto !important;
}

.navbar-nav .nav-link {
  font-weight: 600 !important;
}

.navbar-brand {
  margin-right: auto !important;
}

/* Hide sidebar collapse button */
.bslib-sidebar-layout > .sidebar > .collapse-toggle {
  display: none !important;
}

/* Introduction text styling - Map page sidebar */
.intro-text {
  padding: 5px;
  margin-bottom: 5px;
  line-height: 1.5;
}

.intro-text h6 {
  font-size: 16px !important;
  font-weight: 600 !important;
  margin-bottom: 10px;
}

.intro-text p {
  font-size: 15px !important;
  font-weight: 400 !important;
  margin-bottom: 0;
}

/* About page intro styling */
.about-intro {
  font-size: 18px !important;
  line-height: 1.7 !important;
}

.about-intro p {
  font-size: 18px !important;
  margin-bottom: 20px;
}

/* Data Topics Header */
.data-topics-header {
  background-color: #21753D;
  color: white;
  padding: 12px 15px;
  margin: 0 -15px 0 -15px;
  font-weight: 600;
  font-size: 18px;
  text-align: left;
}

/* Category styling */
.category-header {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  margin: 0 -15px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}

.category-header:hover {
  opacity: 0.9;
}

.category-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-size: 18px;
  flex-shrink: 0;
  /* Color set by specific category classes below */
}

.category-text {
  font-weight: 600;
  flex-grow: 1;
  font-size: 16px;
}

.expand-arrow {
  margin-left: 10px;
  transition: transform 0.3s;
  font-size: 16px;
  color: white;
  flex-shrink: 0;
}

.expand-arrow.expanded {
  transform: rotate(90deg);
}

.layer-content {
  padding: 12px 15px 12px 48px;
  margin: 0 -15px;
  background-color: #fafafa;
  border-radius: 5px;
}

.layer-content label,
.layer-content .checkbox label,
.layer-content .form-check-label {
  color: #000000 !important;
  font-weight: 400 !important;
}

.layer-content .form-group {
  margin-bottom: 8px;
}

.layer-content .checkbox {
  margin-top: 0;
  margin-bottom: 0;
}

/* Custom map control buttons - positioned in top right corner */
.custom-map-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  gap: 8px;
}

.custom-map-btn {
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  font-size: 20px !important;
  background-color: #21753D !important;
  border: 2px solid rgba(0,0,0,0.2) !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
  color: white !important;
  position: relative;
  margin: 0 !important;
}

.custom-map-btn:hover {
  background-color: #1a5f31 !important;
  border-color: rgba(0,0,0,0.3) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3) !important;
}

.custom-map-btn:active,
.custom-map-btn:focus {
  background-color: #164d28 !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
  outline: none !important;
  transform: translateY(0) !important;
}

/* Tooltip on hover - position below button for top placement */
.custom-map-btn:hover::after {
  content: attr(title);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #2E7D32;
  color: white;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  margin-top: 8px;
  z-index: 1001;
  font-weight: 500;
  font-family: 'Source Sans Pro', sans-serif;
}

/* Tooltip arrow - pointing up for top placement */
.custom-map-btn:hover::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: #2E7D32;
  margin-top: 2px;
}



/* Style the leaflet measure control container - move it away from corner */
.leaflet-control-measure {
  margin: 0 !important;
  margin-left: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.leaflet-bottom.leaflet-left {
  left: 20px !important;
  bottom: 20px !important;
}

/* Style the leaflet measure button to match our custom buttons */
.leaflet-control-measure .leaflet-control-measure-toggle {
  background-color: #21753D !important;
  color: white !important;
  width: 34px !important;
  height: 34px !important;
  border: 2px solid rgba(0,0,0,0.2) !important;
  border-radius: 4px !important;
  margin: 0 !important;
  line-height: 30px !important;
  text-align: center !important;
}

.leaflet-control-measure .leaflet-control-measure-toggle:hover {
  background-color: #1a5f31 !important;
  border-color: rgba(0,0,0,0.3) !important;
}

/* Remove the interaction results box styling that might interfere */
.leaflet-control-measure .leaflet-control {
  margin: 0 !important;
}

/* Floating layer order panel */
.layer-order-panel {
  position: absolute;
  right: 20px;
  top: 80px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  padding: 15px;
  z-index: 1000;
  min-width: 250px;
  max-width: 300px;
}

.layer-order-header {
  cursor: move;
  padding: 5px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Floating transparency panel */
.transparency-panel {
  position: absolute;
  right: 20px;
  top: 250px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  padding: 15px;
  z-index: 1000;
  min-width: 250px;
  max-width: 300px;
  max-height: 500px;
  overflow-y: auto;
}

.transparency-header {
  cursor: move;
  padding: 5px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-btn {
  cursor: pointer;
  font-size: 20px;
  color: #666;
}

.close-btn:hover {
  color: #000;
}

/* Sortable list items in layer order panel */
.rank-list-item {
  padding: 10px;
  margin-bottom: 5px;
  background: #f9f9f9;
  border-radius: 5px;
  cursor: move;
  border: 1px solid #ddd;
}

.rank-list-item:hover {
  background-color: #f0f0f0;
}

/* Transparency item styling */
.transparency-item {
  cursor: default;
}

/* Compact slider styling for transparency panel */
.transparency-item .form-group {
  margin-bottom: 5px !important;
}

.transparency-item label {
  font-size: 11px !important;
  font-weight: 500 !important;
  color: #666 !important;
  margin-bottom: 3px !important;
}

/* Slider container */
.transparency-item .irs {
  height: 30px !important;
  font-family: 'Source Sans Pro', sans-serif !important;
}

/* Slider line (track) */
.transparency-item .irs-line {
  height: 4px !important;
  top: 20px !important;
  background: #ddd !important;
  border-radius: 2px !important;
  border: none !important;
}

/* Slider bar (filled portion) */
.transparency-item .irs-bar {
  height: 4px !important;
  top: 20px !important;
  background: #21753D !important;
  border-radius: 2px !important;
  border: none !important;
}

/* Small circle handle */
.transparency-item .irs-handle {
  top: 13px !important;
  width: 16px !important;
  height: 16px !important;
  border: 2px solid #21753D !important;
  background: white !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
}

.transparency-item .irs-handle:hover {
  background: #f0f0f0 !important;
}

/* Hide all the default numbers */
.transparency-item .irs-min,
.transparency-item .irs-max,
.transparency-item .irs-from,
.transparency-item .irs-to,
.transparency-item .irs-single {
  display: none !important;
}

/* Hide the grid lines */
.transparency-item .irs-grid {
  display: none !important;
}

/* Custom 0% and 100% labels - positioned above the slider */
.transparency-item .irs-line::before {
  content: "0%" !important;
  position: absolute !important;
  left: 0 !important;
  top: -16px !important;
  font-size: 10px !important;
  color: #666 !important;
  font-family: 'Source Sans Pro', sans-serif !important;
}

.transparency-item .irs-line::after {
  content: "100%" !important;
  position: absolute !important;
  right: 0 !important;
  top: -16px !important;
  font-size: 10px !important;
  color: #666 !important;
  font-family: 'Source Sans Pro', sans-serif !important;
}

/* Operations/Industrial - Gray theme (white icon bg, colored icon, dark header) */
.operations-header { background-color: #4d4d4d; }
.operations-icon { background-color: white; }
.operations-icon i { color: #4d4d4d !important; }
.operations-text { color: white; }

/* Lithium Valley Specific Plan - Navy blue theme */
.lvsp-header { background-color: #1e3a5f; }
.lvsp-icon { background-color: white; }
.lvsp-icon i { color: #1e3a5f !important; }
.lvsp-text { color: white; }

/* Community Resources - Purple theme (white icon bg, colored icon, dark header) */
.community-header { background-color: #9C27B0; }
.community-icon { background-color: white; }
.community-icon i { color: #9C27B0 !important; }
.community-text { color: white; }

/* Tribal Resources - Brown theme (white icon bg, colored icon, dark header) */
.tribal-header { background-color: #795548; }
.tribal-icon { background-color: white; }
.tribal-icon i { color: #795548 !important; }
.tribal-text { color: white; }

/* Ecological Sensitivities - Green theme (white icon bg, colored icon, dark header) */
.ecological-header { background-color: #4CAF50; }
.ecological-icon { background-color: white; }
.ecological-icon i { color: #4CAF50 !important; }
.ecological-text { color: white; }

/* Transportation - Orange theme (white icon bg, colored icon, dark header) */
.transportation-header { background-color: #ff885d; }
.transportation-icon { background-color: white; }
.transportation-icon i { color: #ff885d !important; }
.transportation-text { color: white; }

/* Air Quality - Teal theme (white icon bg, colored icon, dark header) */
.air-quality-header { background-color: #009688; }
.air-quality-icon { background-color: white; }
.air-quality-icon i { color: #009688 !important; }
.air-quality-text { color: white; }

/* Environmental Justice - Orange/Red theme (white icon bg, colored icon, dark header) */
.ej-header { background-color: #E65100; }
.ej-icon { background-color: white; }
.ej-icon i { color: #E65100 !important; }
.ej-text { color: white; }

/* Health Outcomes - Pink/Magenta theme (white icon bg, colored icon, dark header) */
.health-header { background-color: #C2185B; }
.health-icon { background-color: white; }
.health-icon i { color: #C2185B !important; }
.health-text { color: white; }

/* Water Resources - Cyan theme (white icon bg, colored icon, dark header) */
.water-header { background-color: #03A9F4; }
.water-icon { background-color: white; }
.water-icon i { color: #03A9F4 !important; }
.water-text { color: white; }

/* Rotated play icon for air quality triangle markers */
.fa-play.fa-rotate-270 {
  transform: rotate(-90deg);
}

/* Awesome marker customizations - hide marker background, show only icon */
.awesome-marker {
  background: none !important;
  border: none !important;
}

/* Hide the marker's pseudo-elements (the teardrop shape) */
.awesome-marker::before,
.awesome-marker::after {
  display: none !important;
}

/* Hide marker shadow */
.awesome-marker-shadow {
  display: none !important;
}

/* Style the icon to be visible on its own */
.awesome-marker i {
  font-size: 22px !important;
  margin: 0 !important;
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  text-shadow:
    -1px -1px 0 white,
    1px -1px 0 white,
    -1px 1px 0 white,
    1px 1px 0 white,
    0 0 3px rgba(0,0,0,0.3) !important;
}

/* Color the icons based on marker color classes */
.awesome-marker-icon-green i { color: #4CAF50 !important; }
.awesome-marker-icon-blue i { color: #2196F3 !important; }
.awesome-marker-icon-orange i { color: #FF9800 !important; }
.awesome-marker-icon-red i { color: #DC143C !important; font-size: 26px !important; }
.awesome-marker-icon-cadetblue i { color: #5F9EA0 !important; }
.awesome-marker-icon-lightblue i { color: #8DCDF0 !important; }
.awesome-marker-icon-darkblue i { color: #1B4480 !important; }
.awesome-marker-icon-gray i { color: #666666 !important; }

/* Image credit styling for Industrial Development tab */
.image-credit {
  font-size: 11px;
  color: #888;
  font-style: italic;
  text-align: right;
  padding: 4px 8px;
  width: 100%;
}

/* Floating logos at bottom right of map - single box */
.map-logos {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 12px 15px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.map-logos:hover {
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.logo-text {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: rgba(0,0,0,0.3);
  text-align: center;
  margin: 0;
  line-height: 1.2;
}

.logo-images {
  display: flex;
  gap: 10px;
  align-items: center;
}

.map-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
}

/* Hide logos on small screens */
@media (max-width: 768px) {
  .map-logos {
    display: none;
  }
}

/* Also hide on very short screens */
@media (max-height: 500px) {
  .map-logos {
    display: none;
  }
}

/* Fixed position logos for non-map pages */
.page-logos {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 12px 15px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.page-logos:hover {
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.page-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
}

/* Hide page logos on small screens */
@media (max-width: 768px) {
  .page-logos {
    display: none;
  }
}

@media (max-height: 500px) {
  .page-logos {
    display: none;
  }
}

/* Layer limit warning */
.layer-limit-warning {
  background-color: #FFF3CD;
  border: 1px solid #FFE69C;
  color: #856404;
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}


/* Leaflet popup font styling */
.leaflet-popup-content {
  font-family: "Source Sans Pro", sans-serif !important;
  margin: 15px;
  line-height: 1.6;
}

.leaflet-popup-content-wrapper {
  font-family: "Source Sans Pro", sans-serif !important;
}

/* Popup link styling in green theme */
.popup-link {
  font-family: 'Source Sans Pro', sans-serif;
  color: #21753D !important;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid #21753D;
  padding-bottom: 2px;
}

.popup-link:hover {
  font-family: 'Source Sans Pro', sans-serif;
  color: #1a5f31 !important;
  border-bottom-color: #1a5f31;
}


/* ============================================
   TOPIC FACTSHEETS STYLING
   ============================================ */

.factsheets-container {
  padding: 30px 5% !important;
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 auto !important;
}


/* Responsive padding for smaller screens */
@media (max-width: 1200px) {
  .factsheets-container {
    padding: 30px 40px !important;
  }
}

@media (max-width: 768px) {
  .factsheets-container {
    padding: 20px !important;
  }
}

/* ============================================
   FAQ SECTION STYLING
   ============================================ */

.faq-container {
  padding: 40px 60px !important;
  max-width: 1000px !important;
  margin: 0 auto !important;
}

.faq-header {
  color: #21753D !important;
  font-weight: 700 !important;
  font-size: 32px !important;
  margin-bottom: 30px !important;
  text-align: center !important;
}

.faq-item {
  margin-bottom: 15px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.faq-question {
  background-color: #21753D !important;
  color: white !important;
  padding: 18px 20px !important;
  cursor: pointer !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  transition: background-color 0.3s ease !important;
  font-weight: 600 !important;
  font-size: 16px !important;
}

.faq-question:hover {
  background-color: #1a5f31 !important;
}

.faq-question-text {
  flex: 1 !important;
  padding-right: 15px !important;
}

.faq-arrow {
  font-size: 14px !important;
  transition: transform 0.3s ease !important;
  flex-shrink: 0 !important;
}

.faq-arrow-open {
  transform: rotate(180deg) !important;
}

.faq-answer {
  background-color: white !important;
  padding: 20px !important;
  border: 1px solid #e0e0e0 !important;
  border-top: none !important;
  color: #333 !important;
  line-height: 1.6 !important;
}

.faq-answer p {
  margin: 0 !important;
  color: #333 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
}

/* Responsive */
@media (max-width: 768px) {
  .faq-container {
    padding: 20px !important;
  }

  .faq-header {
    font-size: 24px !important;
  }

  .faq-question {
    font-size: 14px !important;
    padding: 15px !important;
  }
}

/* ============================================
   DATA DOWNLOAD PAGE STYLING
   ============================================ */

.data-download-container {
  padding: 40px 60px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

.data-download-header {
  color: #21753D !important;
  font-weight: 700 !important;
  font-size: 32px !important;
  margin-bottom: 20px !important;
  text-align: center !important;
}

.data-intro {
  font-size: 15px !important;
  color: #555 !important;
  line-height: 1.6 !important;
  margin-bottom: 40px !important;
  text-align: center !important;
  max-width: 900px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.data-category-section {
  margin-bottom: 50px !important;
}

.data-category-title {
  color: #21753D !important;
  font-weight: 600 !important;
  font-size: 24px !important;
  margin-bottom: 20px !important;
  padding-bottom: 10px !important;
  border-bottom: 3px solid #21753D !important;
}

.coming-soon-badge {
  display: inline-block;
  background-color: #f0f0f0;
  color: #666;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-style: italic;
}

.dataset-card {
  background-color: white !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px !important;
  padding: 20px !important;
  margin-bottom: 20px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
  transition: box-shadow 0.3s ease, transform 0.3s ease !important;
}

.dataset-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  transform: translateY(-2px) !important;
}

.dataset-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 12px !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

.dataset-name {
  font-weight: 600 !important;
  font-size: 18px !important;
  color: #333 !important;
}

.dataset-updated {
  font-size: 13px !important;
  color: #666 !important;
  font-style: italic !important;
}

.dataset-description {
  font-size: 14px !important;
  color: #555 !important;
  line-height: 1.5 !important;
  margin-bottom: 15px !important;
}

.dataset-downloads {
  display: flex !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

.download-btn {
  background-color: #21753D !important;
  color: white !important;
  border: none !important;
  padding: 8px 20px !important;
  border-radius: 5px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  cursor: pointer !important;
  transition: background-color 0.3s ease, transform 0.2s ease !important;
}

.download-btn:hover {
  background-color: #1a5f31 !important;
  transform: translateY(-2px) !important;
}

.download-btn:active {
  transform: translateY(0) !important;
}

.data-notice {
  background-color: #f0f7f3 !important;
  border-left: 4px solid #21753D !important;
  padding: 20px 25px !important;
  margin-top: 50px !important;
  border-radius: 5px !important;
}

.data-notice h4 {
  color: #21753D !important;
  font-weight: 600 !important;
  font-size: 18px !important;
  margin-bottom: 10px !important;
  margin-top: 0 !important;
}

.data-notice p {
  font-size: 14px !important;
  color: #555 !important;
  line-height: 1.6 !important;
  margin-bottom: 10px !important;
}

.data-notice a {
  color: #21753D !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border-bottom: 1px solid #21753D !important;
}

.data-notice a:hover {
  color: #1a5f31 !important;
  border-bottom-color: #1a5f31 !important;
}

/* Responsive */
@media (max-width: 768px) {
  .data-download-container {
    padding: 20px !important;
  }

  .data-download-header {
    font-size: 24px !important;
  }

  .dataset-header {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .dataset-downloads {
    width: 100% !important;
  }

  .download-btn {
    flex: 1 !important;
    text-align: center !important;
  }
}

/* ============================================
   COLLAPSIBLE LEGEND PANEL
   ============================================ */

.legend-panel {
  position: absolute;
  right: 20px;
  top: 80px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  padding: 15px;
  z-index: 1000;
  min-width: 220px;
  max-width: 280px;
  max-height: 600px;
  overflow-y: auto;
}

.legend-header {
  cursor: move;
  padding: 5px;
  border-bottom: 2px solid #21753D;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 16px;
  color: #21753D;
}

.legend-content {
  padding: 5px 0;
}

.legend-section {
  margin-bottom: 20px;
}

.legend-section-title {
  font-weight: 600;
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid #e0e0e0;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  color: #555;
}

.legend-color {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  border: 1px solid #999;
  border-radius: 3px;
  flex-shrink: 0;
}

.legend-symbol {
  width: 12px;
  height: 12px;
  margin-right: 10px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 0 1px #999;
  flex-shrink: 0;
}

.legend-line {
  margin-right: 10px;
  flex-shrink: 0;
  border-radius: 2px;
}

/* Make legend draggable like other panels */
.legend-panel .legend-header {
  cursor: move;
}



/* Filter Buttons */
.filter-buttons {
  display: flex !important;
  gap: 15px !important;
  margin-bottom: 30px !important;
  flex-wrap: wrap !important;
}

.filter-btn {
  padding: 12px 24px !important;
  border: 2px solid #21753D !important;
  background-color: white !important;
  color: #21753D !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

.filter-btn:hover {
  background-color: #f0f7f3 !important;
  transform: translateY(-2px) !important;
}

.filter-btn.active {
  background-color: #21753D !important;
  color: white !important;
}

/* Factsheet Cards Grid - MAX 3 COLUMNS */
.factsheet-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 25px !important;
  margin-top: 20px !important;
  width: 100% !important;
}

/* Responsive: 2 columns on tablets */
@media (max-width: 992px) {
  .factsheet-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Responsive: 1 column on mobile */
@media (max-width: 576px) {
  .factsheet-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Individual Factsheet Card */
.factsheet-card {
  position: relative !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  cursor: pointer !important;
  aspect-ratio: 1 / 1 !important;
  background-color: #f5f5f5 !important;
}

.factsheet-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Card Image - fills entire card */
.factsheet-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}

/* Card Title Banner - overlaid at bottom with green background */
.factsheet-title {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  background-color: #21753D !important;
  color: white !important;
  padding: 15px 10px !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  text-align: center !important;
  line-height: 1.3 !important;
  z-index: 10 !important;
  font-family: 'Source Sans Pro', sans-serif !important;
}

/* Loading state */
.factsheet-loading {
  text-align: center !important;
  padding: 40px !important;
  color: #666 !important;
  font-style: italic !important;
  grid-column: 1 / -1 !important;
}

/* Beta Version Badge */
div[onclick*="show_beta_modal"] {
  background-color: #21753D !important;
}

/* Modal Styling */
.modal-content {
  background-color: white;
  border-radius: 8px;
  border: none;
}

.modal-header {
  background-color: #21753D;
  border-bottom: none;
  border: none;
  color: white;
}

.modal-header .modal-title {
  color: white;
  font-size: 16px;
}

.modal-header button {
  display: none;
}

.modal-body {
  background-color: white;
  font-size: 18px;
  padding-bottom: 10px;
}

.modal-body p,
.modal-body li {
  font-size: 18px;
}

.modal-footer {
  background-color: white;
  border-top: none;
  border: none;
  padding-top: 10px;
}

.modal-footer button:hover {
  background-color: #21753D;
  border-color: #21753D;
  color: white;
}

/* ============================================
   MAP NAVIGATION CONTROLS
   ============================================ */

/* EasyButton container and wrapper - remove all borders */
.easy-button-container,
.easy-button-container .leaflet-bar,
.easy-button-container.leaflet-bar,
.leaflet-touch .easy-button-container .leaflet-bar,
.leaflet-touch .easy-button-container.leaflet-bar {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  background-color: transparent !important;
}

/* Add spacing between button containers using padding */
.leaflet-bottom.leaflet-left .easy-button-container {
  padding-bottom: 1px !important;
}

/* The actual button element - MUST be green */
.easy-button-button {
  background: #21753D !important;
  background-color: #21753D !important;
  font-size: 14px !important;
  width: 34px !important;
  height: 34px !important;
  line-height: 34px !important;
  border-radius: 4px !important;
  border: none !important;
  box-shadow: 0 1px 5px rgba(0,0,0,0.4) !important;
  outline: none !important;
  transition: background-color 0.2s ease !important;
  position: relative;
  overflow: hidden !important;
}

/* Force green on ALL descendants of the button */
.easy-button-button *,
.easy-button-button .button-state,
.easy-button-button .button-state span,
.easy-button-container .leaflet-bar a.easy-button-button,
.leaflet-touch .leaflet-bar a.easy-button-button,
.leaflet-touch .easy-button-container .leaflet-bar a.easy-button-button {
  background: #21753D !important;
  background-color: #21753D !important;
}

/* Button state inner element */
.easy-button-button .button-state {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  width: 100% !important;
  background: #21753D !important;
  background-color: #21753D !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.easy-button-button:hover,
.easy-button-button:focus {
  background: #1a5f31 !important;
  background-color: #1a5f31 !important;
  box-shadow: 0 1px 5px rgba(0,0,0,0.4) !important;
  outline: none !important;
}

/* Hover state for inner button-state element */
.easy-button-button:hover .button-state,
.easy-button-button:focus .button-state {
  background: #1a5f31 !important;
  background-color: #1a5f31 !important;
}

/* Ensure all icons inside easy buttons are black with no background */
.easy-button-button i,
.easy-button-button .fa,
.easy-button-button .fas,
.easy-button-button .far {
  color: #000000 !important;
  background: none !important;
  background-color: transparent !important;
}

/* Span elements need to inherit button background */
.easy-button-button span,
.easy-button-button .button-state span {
  color: #000000 !important;
  background: inherit !important;
  background-color: inherit !important;
}

/* Address search box - top right, inline with other buttons */
.leaflet-control-search {
  box-shadow: none !important;
  border-radius: 4px !important;
  background: white !important;
  border: 2px solid #21753D !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
}

/* Hide the search button (magnifying glass) */
.leaflet-control-search .search-button {
  display: none !important;
}

/* Search input field */
.leaflet-control-search .search-input {
  font-family: 'Source Sans Pro', sans-serif !important;
  font-size: 13px !important;
  padding: 6px 10px !important;
  border: none !important;
  height: 36px !important;
  box-sizing: border-box !important;
  background: white !important;
}

.leaflet-control-search .search-input:focus {
  outline: none !important;
}

/* Search cancel/reset button */
.leaflet-control-search .search-cancel {
  background-color: #f4f4f4 !important;
  color: #333 !important;
}

.leaflet-control-search .search-cancel:hover {
  background-color: #e0e0e0 !important;
}

/* Search results dropdown */
.leaflet-control-search .search-tooltip {
  font-family: 'Source Sans Pro', sans-serif !important;
  font-size: 13px !important;
  max-height: 200px !important;
  overflow-y: auto !important;
  background: white !important;
  border-radius: 4px !important;
  margin-top: 5px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

.leaflet-control-search .search-tip {
  padding: 8px 12px !important;
  border-bottom: 1px solid #eee !important;
  cursor: pointer !important;
}

.leaflet-control-search .search-tip:hover {
  background-color: #e8f5e9 !important;
}

.leaflet-control-search .search-tip-select {
  background-color: #c8e6c9 !important;
}

/* Search marker styling - make it distinctive */
.leaflet-control-search .search-marker-icon {
  background-color: #FF6B35 !important;
  border: 3px solid white !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4) !important;
}


/* Position adjustments for bottom left controls */
.leaflet-bottom.leaflet-left .easy-button-container {
  margin-left: 0 !important;
}

/* Position search control in top right - inline with other buttons */
.leaflet-top.leaflet-right .leaflet-control-search {
  position: absolute !important;
  top: 20px !important;
  right: 170px !important;
  margin: 0 !important;
}

/* Animated search result marker - pulsing orange circle */
@keyframes search-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.search-marker {
  animation: search-pulse 2s ease-in-out infinite;
}

/* Custom map marker shapes */
/* Triangle marker for Air Quality Monitors */
.triangle-marker {
  width: 0 !important;
  height: 0 !important;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 18px solid #009688;
  background: transparent !important;
  margin-left: -10px !important;
  margin-top: -18px !important;
}

.triangle-marker.purple-air { border-bottom-color: #7B1FA2; }
.triangle-marker.teal-air { border-bottom-color: #009688; }

/* Square marker for Schools */
.square-marker {
  width: 14px !important;
  height: 14px !important;
  border: 2px solid #1565C0;
  border-radius: 2px !important;
  margin-left: -7px !important;
  margin-top: -7px !important;
}

.square-marker.elementary { background-color: #81D4FA; border-color: #1565C0; }
.square-marker.middle { background-color: #42A5F5; border-color: #1565C0; }
.square-marker.high { background-color: #1E88E5; border-color: #0D47A1; }
.square-marker.other { background-color: #90CAF9; border-color: #1565C0; }

/* Cross/Plus marker for Hospitals */
.cross-marker {
  width: 16px !important;
  height: 16px !important;
  position: relative;
  background: transparent !important;
  margin-left: -8px !important;
  margin-top: -8px !important;
}

.cross-marker::before,
.cross-marker::after {
  content: '';
  position: absolute;
  background-color: #DC143C;
}

.cross-marker::before {
  width: 4px;
  height: 16px;
  left: 6px;
  top: 0;
}

.cross-marker::after {
  width: 16px;
  height: 4px;
  left: 0;
  top: 6px;
}

/* Search result circle marker styling */
.leaflet-interactive[stroke="#FF6B35"] {
  filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.6));
}

/* ============================================
   COMMUNITY MOBILIZATION TAB & TIMELINE
   ============================================ */

/* Community Mobilization tab styling - white text with underline */
.nav-link:has(.community-mobilization-tab) {
  color: white !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-underline-offset: 4px !important;
}

.nav-link:has(.community-mobilization-tab):hover,
.nav-link.active:has(.community-mobilization-tab) {
  color: white !important;
  text-decoration: underline !important;
}

.community-mobilization-tab {
  color: inherit !important;
}

/* Main container - two column layout */
.mobilization-container {
  display: flex;
  gap: 30px;
  font-family: 'Source Sans Pro', sans-serif;
}

/* Left sidebar navigation */
.timeline-sidebar {
  width: 200px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  height: fit-content;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-nav-btn {
  padding: 12px 16px !important;
  background-color: #f5f5f5 !important;
  border: 2px solid #e0e0e0 !important;
  border-radius: 8px !important;
  font-family: 'Source Sans Pro', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #666 !important;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.sidebar-nav-btn:hover {
  background-color: #e8f5e9 !important;
  border-color: #21753D !important;
  color: #21753D !important;
}

.sidebar-nav-btn.nav-active {
  background-color: #21753D !important;
  border-color: #21753D !important;
  color: white !important;
}

/* Main timeline content area */
.timeline-main {
  flex: 1;
  min-width: 0;
}

/* Page header */
.mobilization-header {
  margin-bottom: 40px;
}

.mobilization-header.centered-header {
  text-align: center;
}

.mobilization-header h1 {
  font-size: 36px;
  font-weight: 700;
  color: #18685B;
  margin-bottom: 16px;
}

.mobilization-intro-text {
  font-size: 16px;
  color: #333;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto;
}

.mobilization-subtitle {
  font-size: 18px;
  color: #666;
  margin: 0;
}

/* Mobilization page wrapper */
.mobilization-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px;
}

/* Project Tabs */
.project-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
}

.project-tab {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid #21753D;
  border-radius: 8px;
  background: white;
  color: #21753D;
  cursor: pointer;
  transition: all 0.2s ease;
}

.project-tab:hover {
  background: #e8f5e9;
}

.project-tab.active {
  background: #21753D;
  color: white;
}

/* Project Content Containers */
.project-content {
  display: none;
}

.project-content.active {
  display: block;
}

/* Timeline sections */
.timeline-section {
  margin-bottom: 60px;
  scroll-margin-top: 80px;
}

/* Section header */
.section-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 3px solid #21753D;
}

.section-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #18685B;
  margin: 0 0 8px 0;
}

.section-header h3 {
  font-size: 22px;
  font-weight: 700;
  color: #18685B;
  margin: 0 0 8px 0;
}

.section-header p {
  font-size: 16px;
  color: #666;
  margin: 0;
}

.section-header .section-subtitle {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

/* Issues subheader within previous-2025 section */
.issues-subheader {
  margin-top: 40px;
  border-bottom: 2px solid #21753D;
}

/* Timeline events */
.timeline-events {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.timeline-event {
  display: flex;
  gap: 24px;
  padding: 20px;
  background-color: #fafafa;
  border-radius: 12px;
  border-left: 4px solid #21753D;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-event:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.event-date {
  min-width: 140px;
  font-size: 14px;
  font-weight: 700;
  color: #21753D;
  padding-top: 4px;
}

.event-content {
  flex: 1;
}

.event-type {
  display: inline-block;
  padding: 4px 12px;
  background-color: #e8f5e9;
  color: #21753D;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

/* Project tags (orange) for timeline events */
.project-tag {
  display: inline-block;
  padding: 3px 10px;
  background-color: #FFF3E0;
  color: #E65100;
  border: 1px solid #FFB74D;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 8px;
  vertical-align: middle;
}

.project-tag.tag-dle {
  background-color: #E8F5E9;
  color: #2E7D32;
  border-color: #81C784;
}

.project-tag.tag-data-center {
  background-color: #E3F2FD;
  color: #1565C0;
  border-color: #64B5F6;
}

.project-tag.tag-all {
  background-color: #FFF3E0;
  color: #E65100;
  border-color: #FFB74D;
}

.event-tags {
  display: inline-flex;
  gap: 6px;
  margin-left: 8px;
  flex-wrap: wrap;
}

/* Mobilization Filter Bar */
.mobilization-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 15px 20px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 25px;
  border: 1px solid #e9ecef;
}

.mobilization-filter-bar .filter-label {
  font-weight: 600;
  color: #333;
  margin-right: 10px;
}

.mob-filter-btn {
  padding: 8px 16px;
  border: 2px solid #ddd;
  border-radius: 20px;
  background: white;
  color: #555;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.mob-filter-btn:hover {
  border-color: #21753D;
  color: #21753D;
}

.mob-filter-btn.active {
  background: #21753D;
  border-color: #21753D;
  color: white;
}

.event-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin: 0 0 8px 0;
}

.event-content p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* Document links */
.event-document {
  margin-top: 16px;
}

.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background-color: white;
  border: 2px solid #21753D;
  border-radius: 8px;
  text-decoration: none;
  color: #21753D;
  font-weight: 600;
  transition: all 0.2s ease;
}

.doc-link:hover {
  background-color: #21753D;
  color: white;
  text-decoration: none;
}

.doc-thumbnail {
  width: 60px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Comment CTA */
.comment-cta {
  margin-top: 20px;
}

.submit-comment-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background-color: #FF8C00;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.2s ease;
}

.submit-comment-btn:hover {
  background-color: #E07800;
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.4);
}

/* Intro blurb */
.mobilization-intro {
  background: linear-gradient(135deg, #e8f5e9 0%, #fff8e1 100%);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 40px;
  border-left: 4px solid #21753D;
}

.mobilization-intro h3 {
  color: #18685B;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px 0;
}

.mobilization-intro p {
  color: #333;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

/* Action Now box */
.action-now-box {
  background: linear-gradient(135deg, #FF8C00 0%, #E07800 100%);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  color: white;
  text-align: center;
}

.action-now-box h2 {
  color: black !important;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px 0;
}

.action-now-box .action-deadline {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: white;
}

.action-now-box p {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 20px;
  color: white;
}

.action-now-box .submit-comment-btn {
  background-color: white;
  color: #FF8C00;
}

.action-now-box .submit-comment-btn:hover {
  background-color: #f5f5f5;
  color: #E07800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Why Your Voice Matters explainer box */
.why-comment-box {
  background: linear-gradient(135deg, #fff9e6 0%, #fff5f0 100%);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  border-left: 4px solid #FF8C00;
}

.why-comment-box h3 {
  color: #E07800;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 20px 0;
}

.why-comment-box p {
  color: #333;
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 16px 0;
}

.why-comment-box p strong {
  color: #18685B;
}

.why-comment-box ul {
  margin: 0 0 16px 0;
  padding-left: 24px;
}

.why-comment-box li {
  color: #333;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.why-comment-box li strong {
  color: #18685B;
}

/* Documents grid (side by side) */
.documents-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 30px;
}

.document-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border-top: 4px solid #21753D;
}

.document-card h4 {
  color: #18685B;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.document-card .doc-date {
  color: #21753D;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.document-card p {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* Documents box container for Data Centers */
.documents-box {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  border: 2px solid #e0e0e0;
}

.documents-box h3 {
  color: #18685B;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 20px 0;
}

.document-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.documents-box .document-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  margin-bottom: 0;
}

.document-icon {
  font-size: 32px;
  color: #21753D;
  margin-bottom: 12px;
}

.document-info {
  flex-grow: 1;
}

.document-info h4 {
  color: #18685B;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.document-info p {
  color: #666;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 12px 0;
}

.document-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #21753D;
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.document-link-btn:hover {
  background-color: #18685B;
  color: white;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 576px) {
  .document-cards {
    grid-template-columns: 1fr;
  }

  .documents-box {
    padding: 20px;
  }
}

/* Public comments summary box */
.comments-summary-box {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 30px;
  margin: 40px 0;
  border: 2px solid #e0e0e0;
}

.comments-summary-box h3 {
  color: #18685B;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.comments-summary-box .summary-subtitle {
  color: #666;
  font-size: 14px;
  margin-bottom: 24px;
}

.comments-summary-box .summary-intro {
  color: #333;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.issue-ranking {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.issue-rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.issue-rank-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background-color: #21753D;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.issue-rank-content {
  flex: 1;
}

.issue-rank-content strong {
  color: #18685B;
  font-size: 15px;
}

.issue-rank-bar {
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 4px;
  margin-top: 6px;
  overflow: hidden;
}

.issue-rank-fill {
  height: 100%;
  background: linear-gradient(90deg, #21753D, #18685B);
  border-radius: 4px;
}

.issue-rank-count {
  flex-shrink: 0;
  color: #666;
  font-size: 13px;
  min-width: 80px;
  text-align: right;
}

/* Highlighted event (current action) */
.timeline-event.event-highlight {
  background-color: #fff8e1;
  border-left: 4px solid #FF8C00;
}

.event-type-action {
  background-color: #FF8C00 !important;
  color: white !important;
}

/* Concerns grid */
.concerns-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.concern-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background-color: #fafafa;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.concern-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.concern-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background-color: #21753D;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.concern-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: #18685B;
  margin: 0 0 8px 0;
}

.concern-content p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* Factsheet grid */
.factsheet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* Factsheet card in timeline */
.mobilization-factsheet-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.mobilization-factsheet-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.mobilization-factsheet-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: top;
}

.mobilization-factsheet-info {
  padding: 16px;
}

.mobilization-factsheet-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin: 0 0 8px 0;
}

.mobilization-factsheet-info p {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .mobilization-page {
    padding: 20px;
  }

  .mobilization-container {
    flex-direction: column;
  }

  .timeline-sidebar {
    width: 100%;
    position: relative;
    top: 0;
    margin-bottom: 20px;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sidebar-nav-btn {
    flex: 1 1 auto;
    text-align: center !important;
  }

  .concerns-grid {
    grid-template-columns: 1fr;
  }

  .project-tabs {
    flex-direction: column;
  }

  .project-tab {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .mobilization-page {
    padding: 15px;
  }

  .mobilization-header h1 {
    font-size: 28px;
  }

  .timeline-event {
    flex-direction: column;
    gap: 12px;
  }

  .event-date {
    min-width: auto;
  }

  .factsheet-grid {
    grid-template-columns: 1fr;
  }

  .documents-grid {
    grid-template-columns: 1fr;
  }

  .action-now-box {
    padding: 20px;
  }

  .action-now-box h2 {
    font-size: 22px;
  }

  .issue-rank-item {
    flex-wrap: wrap;
  }

  .issue-rank-count {
    width: 100%;
    text-align: left;
    margin-top: 4px;
  }
}

/* ============================================
   SCROLL TO TOP BUTTON (Static, at bottom of pages)
   ============================================ */
.scroll-to-top-container {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
  margin-top: 20px;
}

.scroll-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #21753D;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s, box-shadow 0.2s;
}

.scroll-to-top-btn:hover {
  background-color: #1a5c30;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

.scroll-to-top-btn .arrow {
  font-size: 18px;
}
