*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul { list-style: none; }

@font-face {
  font-family: creato-display;
  src: url(/assets/fonts/CreatoDisplay-Regular.otf);
}

@font-face {
  font-family: quick;
  src: url(/assets/fonts/Quick.ttf);
  font-display: block;
}

html {
  touch-action: manipulation;
  font-size: 62.5%;
  font-family: "creato-display";
  -webkit-tap-highlight-color: transparent;
}

body {
  overflow: hidden;
  background-color: #080808;
  color: #fff;
  user-select: none;
  font-size: clamp(1.2rem, 1.5vw, 1.5rem);
}

#root {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw !important;
  height: 100vh !important;
}

.loader {
  position: fixed;
  z-index: 100;
  background-color: black;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  transition: opacity 1s;
}

.loader.hidden {
  opacity: 0;
}

.main {
  position: fixed;
  z-index: 10;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.container {
  height: 100%;
}

header {
  z-index: 101;
  height: 8rem;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transform: translateY(calc(50vh - 9rem));
  transition: 0.6s transform;
  pointer-events: none;
  background: #ffffff;
  padding: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-bottom: 2px solid #e0e0e0;
}

header.loaded {
  transform: translateY(0);
}

.monash-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
}

.monash-logo {
  height: 4.5rem;
  width: auto;
  pointer-events: auto;
  margin: 0 2rem;
  padding: 0.5rem 0;
}

.site-title {
  font-family: quick;
  font-size: 2.8rem;
  color: #333;
  font-weight: 600;
  margin: 0;
}

.heading {
  font-family: quick;
  font-size: 3.4rem;
  height: 100%;
  display: flex;
  justify-content: center;
  column-gap: 0.5rem;
}

.toggle-btn {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  display: flex;
  position: fixed;
  top: 9rem;
  left: 1.5rem;
  border: 2px solid rgba(255,255,255,0.5);
  background-color: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s, opacity 0.6s;
  z-index: 102;
  opacity: 0;
  pointer-events: none;
}

.toggle-btn.loaded {
  opacity: 1;
  pointer-events: auto;
}

.loader:not(.hidden) ~ .toggle-btn {
  opacity: 0;
  pointer-events: none;
}

.toggle-btn:hover {
  background-color: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.8);
  transform: scale(1.05);
}

.toggle-panel {
  display: none;
}

.burger-menu-bar {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.3s, opacity 0.3s;
}

input:checked + .burger-menu .burger-menu-bar:nth-child(1) {
  transform: translateY(300%) rotateZ(45deg);
}

input:checked + .burger-menu .burger-menu-bar:nth-child(2) {
  opacity: 0;
}

input:checked + .burger-menu .burger-menu-bar:nth-child(3) {
  transform: translateY(-300%) rotateZ(-45deg);
}

.panel {
  transform: translateX(-100%);
  width: 100%;
  max-width: 30rem;
  height: calc(100vh - 22rem);
  margin-top: 15rem;
  position: fixed;
  z-index: 103;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.5rem;
  padding-left: 2rem;
  transition: transform 0.3s, opacity 0.6s;
  background: linear-gradient(90deg, rgba(255,255,255,0.08) 0%, rgba(0,0,0,0.6) 100%);
  border-right: 2px solid rgba(255,255,255,0.2);
  opacity: 0;
  pointer-events: none;
}

.panel.loaded {
  opacity: 1;
  pointer-events: auto;
}

.panel.open {
  display: inline-block;
  transform: translateX(0%);
}

.panel::-webkit-scrollbar {
  width: 0.4rem;
}

.panel::-webkit-scrollbar-track {
  background: transparent;
}

.panel::-webkit-scrollbar-thumb {
  background: rgb(110, 110, 110);
}

/* Search Section */
.search-section {
  margin-bottom: 2rem;
}

.search-title {
  display: block;
  color: #fff;
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.search-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(128, 128, 128, 1);
  border-radius: 6px;
  padding: 0.5rem;
}

.search {
  background-color: transparent;
  display: block;
  border: none;
  outline: none;
  color: #ddd;
  caret-color: #ddd;
  flex: 1;
  padding: 0.4rem 0.5rem;
  font-size: 14px;
  font-family: inherit;
}

.search::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-button {
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 4px;
  width: 3.2rem;
  height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  flex-shrink: 0;
}

.search-button:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.search-button svg {
  width: 1.8rem;
  height: 1.8rem;
  color: #fff;
}

#location-suggestions {
  margin-top: 0.5rem;
  cursor: pointer;
  user-select: none;
  background-color: #fff;
  max-width: 100%;
  width: 90%;
  position: absolute;
}

#location-suggestions li {
  padding: 0.5rem 1rem;
  color: #444;
  transition: background-color 0.3s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#location-suggestions li:hover:not(:last-child) {
  padding: 0.5rem 1rem;
  background-color: #eee;
}

#location-suggestions li:last-child {
  font-size: 12px;
  color: #888;
  text-align: right;
}

.details {
  display: flex;
  gap: 1.5rem;
  flex-direction: column;
  margin-top: 2rem;
}

.monash-footer {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,109,174,0.9);
  padding: 1rem 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 100;
}

.monash-footer a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s;
}

.monash-footer a:hover {
  transform: scale(1.05);
}

.monash-footer span {
  font-size: 1rem;
  opacity: 0.9;
}

.monash-footer strong {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.monash-footer small {
  font-size: 0.9rem;
  opacity: 0.85;
  text-align: center;
  max-width: 25rem;
}

/* View Toggle Button (Top Right) */
.view-toggle-btn {
  position: fixed;
  top: 9rem;
  right: 1.5rem;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.5);
  background-color: rgba(0,0,0,0.7);
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s, transform 0.2s, opacity 0.6s;
  z-index: 102;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-toggle-btn.loaded {
  opacity: 1;
  pointer-events: auto;
}

.loader:not(.hidden) ~ .view-toggle-btn {
  opacity: 0;
  pointer-events: none;
}

/* Black background for 2D map view */
.view-toggle-btn.map-view {
  border-color: rgba(0,0,0,0.5);
  background-color: rgba(0,0,0,0.7);
}

.view-toggle-btn.map-view:hover {
  background-color: rgba(0,0,0,0.85);
  border-color: rgba(0,0,0,0.8);
  transform: scale(1.05);
}

.view-toggle-btn.map-view svg {
  color: white;
  stroke: white;
}

/* White background for 3D globe view */
.view-toggle-btn.globe-view {
  border-color: rgba(255,255,255,0.5);
  background-color: rgba(255,255,255,0.8);
}

.view-toggle-btn.globe-view:hover {
  background-color: rgba(255,255,255,0.95);
  border-color: rgba(255,255,255,0.8);
  transform: scale(1.05);
}

.view-toggle-btn.globe-view svg {
  color: #333;
  stroke: #333;
}

.view-toggle-btn svg {
  width: 2.8rem;
  height: 2.8rem;
}

/* Map Container */
.map-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 50;
  background-color: #080808;
}

#map {
  width: 100%;
  height: 100%;
}

/* Smooth pollution visualization with blur for seamless blending */
.leaflet-overlay-pane {
  filter: blur(15px);
}

/* Pollution cells styling - ensure no borders and smooth blending */
.pollution-cell {
  border: none !important;
  outline: none !important;
  stroke: none !important;
}

.pollution-cell path {
  stroke: none !important;
  stroke-width: 0 !important;
}

/* Custom pollution pane - remove blur that can make borders visible */
.leaflet-pollution-pane {
  filter: blur(12px);
  opacity: 0.5;
}

/* Force remove borders from SVG paths in pollution cells */
.leaflet-pollution-pane svg,
.leaflet-pollution-pane path,
.leaflet-pollution-pane rect {
  stroke: none !important;
  stroke-width: 0 !important;
  outline: none !important;
  border: none !important;
  vector-effect: none !important;
  shape-rendering: crispEdges !important;
}

/* Custom Location Marker */
.custom-location-marker {
  background: transparent;
  border: none;
}

.custom-location-marker svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  animation: marker-bounce 0.6s ease-out;
}

@keyframes marker-bounce {
  0% {
    transform: translateY(-20px);
    opacity: 0;
  }
  50% {
    transform: translateY(5px);
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.bottom-right-icons {
  position: fixed;
  right: 1.5rem;
  bottom: 8rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  z-index: 100;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.6s;
}

.loader:not(.hidden) ~ .bottom-right-icons {
  opacity: 0;
  pointer-events: none;
}

.share-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  cursor: pointer;
}

.share-icon:hover {
  background-color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.share-icon svg {
  width: 1.8rem;
  height: 1.8rem;
  fill: #333;
}

.plug {
  display: none;
}

.key {
  position: fixed;
  display: grid;
  grid-template-columns: 1fr 4fr;
  grid-template-rows: 1fr 1fr;
  column-gap: 0.5rem;
  right: 0;
  padding: 0 1.2rem;
  bottom: 3rem;
  width: 100%;
  max-width: 44rem;
  pointer-events: none;
  z-index: 104;
  opacity: 0;
  transition: opacity 0.6s;
}

.key.loaded {
  opacity: 1;
}

.key-title {
  align-self: center;
  grid-row-start: 1;
  grid-row-end: 3;
}

.key-scale {
  background: linear-gradient(
    to right,
    green,
    yellow,
    orange,
    red,
    darkred,
    transparent
  );
  height: 0.5rem;
  align-self: center;
}

.key-names {
  list-style-type: none;
  grid-column-start: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  font-size: 1.1rem;
}

.key-names li {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-1,
.quality-2,
.quality-3,
.quality-4,
.quality-5 {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  vertical-align: middle;
  color: #fff;
  font-weight: bold;
  text-shadow: 0.1rem 0.1rem 0.2rem black;
}

.quality-1 {
  background-color: green;
}
.quality-2 {
  background-color: yellow;
}
.quality-3 {
  background-color: orange;
}
.quality-4 {
  background-color: red;
}
.quality-5 {
  background-color: darkred;
}
.quality-6 {
  background-color: #222;
}

#charts {
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  margin-top: 3rem;
}

.flex {
  display: flex;
  column-gap: 1rem;
}

.share-buttons {
  margin-bottom: 1.5rem;
}

.forecast-controls {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
}

.control-group {
  margin-bottom: 1.5rem;
}

.control-group:last-child {
  margin-bottom: 0;
}

.control-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #fff;
  font-weight: 600;
  font-size: 1.3rem;
}

.control-group select {
  width: 100%;
  padding: 0.8rem;
  background-color: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
}

.control-group select:hover {
  background-color: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.5);
}

.control-group select:focus {
  outline: none;
  border-color: rgba(255,255,255,0.6);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.1);
}

.control-group select option {
  background-color: #1a1a1a;
  color: #fff;
}

.control-group input[type="range"] {
  width: 100%;
  margin: 1rem 0;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  outline: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.control-group input[type="range"]::-webkit-slider-thumb:hover {
  background: #e0e0e0;
  transform: scale(1.2);
}

.control-group input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.control-group input[type="range"]::-moz-range-thumb:hover {
  background: #e0e0e0;
  transform: scale(1.2);
}

#selected-date {
  text-align: center;
  font-size: 1.2rem;
  color: #fff;
  padding: 0.5rem;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  font-weight: 600;
}

@media screen and (max-height: 420px) {
  .panel {
    padding-top: 1.5rem;
  }
}

.resp-sharing-button__link,
.resp-sharing-button__icon {
  display: inline-block;
}

.resp-sharing-button__link {
  text-decoration: none;
  color: #fff;
  margin: 0.2em;
}

.resp-sharing-button {
  border-radius: 5px;
  transition: 25ms ease-out;
  padding: 0.5em 0.75em;
  font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
}

.resp-sharing-button__icon svg {
  width: 1em;
  height: 1em;
  margin-right: 0.4em;
  vertical-align: top;
}

.resp-sharing-button--small svg {
  margin: 0;
  vertical-align: middle;
}

/* Non solid icons get a stroke */
.resp-sharing-button__icon {
  stroke: #fff;
  fill: none;
}

/* Solid icons get a fill */
.resp-sharing-button__icon--solid,
.resp-sharing-button__icon--solidcircle {
  fill: #fff;
  stroke: none;
}

.resp-sharing-button--twitter {
  background-color: #55acee;
}

.resp-sharing-button--twitter:hover {
  background-color: #2795e9;
}

.resp-sharing-button--pinterest {
  background-color: #bd081c;
}

.resp-sharing-button--pinterest:hover {
  background-color: #8c0615;
}

.resp-sharing-button--facebook {
  background-color: #3b5998;
}

.resp-sharing-button--facebook:hover {
  background-color: #2d4373;
}

.resp-sharing-button--tumblr {
  background-color: #35465c;
}

.resp-sharing-button--tumblr:hover {
  background-color: #222d3c;
}

.resp-sharing-button--reddit {
  background-color: #5f99cf;
}

.resp-sharing-button--reddit:hover {
  background-color: #3a80c1;
}

.resp-sharing-button--google {
  background-color: #dd4b39;
}

.resp-sharing-button--google:hover {
  background-color: #c23321;
}

.resp-sharing-button--linkedin {
  background-color: #0077b5;
}

.resp-sharing-button--linkedin:hover {
  background-color: #046293;
}

.resp-sharing-button--email {
  background-color: #777;
}

.resp-sharing-button--email:hover {
  background-color: #5e5e5e;
}

.resp-sharing-button--xing {
  background-color: #1a7576;
}

.resp-sharing-button--xing:hover {
  background-color: #114c4c;
}

.resp-sharing-button--whatsapp {
  background-color: #25d366;
}

.resp-sharing-button--whatsapp:hover {
  background-color: #1da851;
}

.resp-sharing-button--hackernews {
  background-color: #ff6600;
}
.resp-sharing-button--hackernews:hover,
.resp-sharing-button--hackernews:focus {
  background-color: #fb6200;
}

.resp-sharing-button--vk {
  background-color: #507299;
}

.resp-sharing-button--vk:hover {
  background-color: #43648c;
}

.resp-sharing-button--facebook {
  background-color: #3b5998;
  border-color: #3b5998;
}

.resp-sharing-button--facebook:hover,
.resp-sharing-button--facebook:active {
  background-color: #2d4373;
  border-color: #2d4373;
}

.resp-sharing-button--twitter {
  background-color: #55acee;
  border-color: #55acee;
}

.resp-sharing-button--twitter:hover,
.resp-sharing-button--twitter:active {
  background-color: #2795e9;
  border-color: #2795e9;
}

.resp-sharing-button--email {
  background-color: #777777;
  border-color: #777777;
}

.resp-sharing-button--email:hover,
.resp-sharing-button--email:active {
  background-color: #5e5e5e;
  border-color: #5e5e5e;
}

.resp-sharing-button--pinterest {
  background-color: #bd081c;
  border-color: #bd081c;
}

.resp-sharing-button--pinterest:hover,
.resp-sharing-button--pinterest:active {
  background-color: #8c0615;
  border-color: #8c0615;
}

.resp-sharing-button--linkedin {
  background-color: #0077b5;
  border-color: #0077b5;
}

.resp-sharing-button--linkedin:hover,
.resp-sharing-button--linkedin:active {
  background-color: #046293;
  border-color: #046293;
}

.resp-sharing-button--reddit {
  background-color: #5f99cf;
  border-color: #5f99cf;
}

.resp-sharing-button--reddit:hover,
.resp-sharing-button--reddit:active {
  background-color: #3a80c1;
  border-color: #3a80c1;
}

/* ======================================
   NAVIGATION BAR - MONASH STYLE
   ====================================== */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 3rem;
  pointer-events: auto;
  padding: 0 1rem;
}

.nav-left,
.nav-center,
.nav-right {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 1.5rem;
}

.site-tagline {
  font-size: 2.8rem;
  font-weight: 700;
  color: #000;
  font-family: quick;
  white-space: nowrap;
}

/* Hide navigation items during loading, only show logo and tagline */
.nav-center,
.nav-right {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

header.loaded .nav-center,
header.loaded .nav-right {
  opacity: 1;
  pointer-events: auto;
}

/* Monash-style navigation links */
.nav-link {
  color: #000;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 500;
  padding: 1rem 2rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-link:first-child {
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-link:hover {
  background-color: #f5f5f5;
  color: #006dae;
}

.nav-link.active {
  background-color: #006dae;
  color: white;
}

/* Monash-style search in navigation */
.nav-search {
  display: flex;
  align-items: center;
  gap: 0;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 0;
  padding: 0;
  margin-left: 2rem;
  transition: border-color 0.3s;
}

.nav-search:focus-within {
  border-color: #006dae;
  box-shadow: 0 0 0 2px rgba(0, 109, 174, 0.1);
}

.nav-search-input {
  background-color: transparent;
  border: none;
  outline: none;
  color: #000;
  padding: 0.8rem 1.2rem;
  font-size: 1.4rem;
  width: 20rem;
  font-family: inherit;
}

.nav-search-input::placeholder {
  color: #999;
}

.nav-search-btn {
  background-color: #006dae;
  border: none;
  border-radius: 0;
  width: 4rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s;
  flex-shrink: 0;
}

.nav-search-btn:hover {
  background-color: #005a8f;
}

.nav-search-btn svg {
  width: 1.8rem;
  height: 1.8rem;
  color: white;
  stroke: white;
}

/* ======================================
   PAGE CONTENT
   ====================================== */
.page-content {
  display: none;
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  user-select: text;
}

.page-content.active {
  display: block;
}

/* Air Quality Page - uses existing layout */
#page-air-quality {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* ======================================
   PLACEHOLDER PAGES
   ====================================== */
.placeholder-page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #006dae 0%, #004b87 100%);
  padding: 12rem 2rem 4rem;
}

.placeholder-content {
  text-align: center;
  max-width: 60rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 4rem;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.placeholder-content h1 {
  font-size: 4rem;
  margin-bottom: 2rem;
  color: #fff;
  font-family: quick;
}

.construction-icon {
  margin: 2rem auto;
  width: 8rem;
  height: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.construction-icon svg {
  width: 5rem;
  height: 5rem;
  color: #fff;
  stroke-width: 1.5;
}

.status-message {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.description {
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

/* ======================================
   CONTACT PAGE
   ====================================== */
.contact-page {
  width: 100%;
  min-height: 100%;
  background: linear-gradient(135deg, #006dae 0%, #004b87 100%);
  padding: 7rem 0 0;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
}

.contact-content {
  max-width: 100%;
  width: 100%;
  margin: 0;
  background: rgba(255, 255, 255, 0.97);
  padding: 2.5rem 4rem 3rem;
  border-radius: 0;
  box-shadow: none;
  flex: 1;
}

.contact-content h1 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 0.5rem;
  font-family: quick;
}

.intro-text {
  font-size: 1.6rem;
  color: #666;
  margin-bottom: 1rem;
}

.team-section,
.contact-info,
.feedback-section {
  margin-bottom: 1.2rem;
}

.team-section h2,
.contact-info h2,
.feedback-section h2 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.care-content {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.care-team-image {
  width: 30%;
  height: auto;
  min-width: 18rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  object-fit: cover;
}

.care-description {
  font-size: 1.5rem;
  color: #555;
  line-height: 1.6;
  flex: 1;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(28rem, 1fr));
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.team-member {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.member-avatar {
  width: 6rem;
  height: 6rem;
  margin: 0 auto 0.8rem;
  background: linear-gradient(135deg, #006dae 0%, #004b87 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-avatar svg {
  width: 3.5rem;
  height: 3.5rem;
  color: white;
}

.team-member h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 0.3rem;
}

.member-title {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.member-email {
  font-size: 1.1rem;
  color: #006dae;
  word-break: break-word;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 1rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-item svg {
  width: 2.5rem;
  height: 2.5rem;
  color: #006dae;
  flex-shrink: 0;
}

.info-item h4 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 0.3rem;
}

.info-item p {
  font-size: 1.3rem;
  color: #666;
  line-height: 1.5;
}

.feedback-form {
  background: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  font-size: 1.4rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #006dae;
}

.submit-btn {
  background: linear-gradient(135deg, #006dae 0%, #004b87 100%);
  color: white;
  padding: 1.2rem 3rem;
  font-size: 1.6rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  font-weight: 600;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 109, 174, 0.4);
}

/* ======================================
   AUTH PAGE - MONASH STYLE
   ====================================== */
.auth-page {
  width: 100%;
  min-height: 100vh;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12rem 2rem 4rem;
  pointer-events: auto;
}

.auth-container {
  max-width: 48rem;
  width: 100%;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid #e0e0e0;
  overflow: hidden;
}

.auth-tabs {
  display: flex;
  border-bottom: 2px solid #e0e0e0;
  background-color: #f5f5f5;
}

.auth-tab {
  flex: 1;
  padding: 2rem;
  font-size: 1.8rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #666;
  font-weight: 500;
  transition: all 0.3s;
  font-family: inherit;
}

.auth-tab.active {
  color: #006dae;
  background-color: #ffffff;
  border-bottom: 3px solid #006dae;
  font-weight: 600;
}

.auth-form {
  display: none;
  padding: 4rem 3rem;
}

.auth-form.active {
  display: block;
}

.auth-form h2 {
  font-size: 2.8rem;
  color: #333;
  margin-bottom: 3rem;
  text-align: center;
}

.auth-form .form-group {
  margin-bottom: 2rem;
}

.auth-form .form-group label {
  display: block;
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.auth-form .form-group input {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.5rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  transition: border-color 0.3s;
}

.auth-form .form-group input:focus {
  outline: none;
  border-color: #006dae;
  box-shadow: 0 0 0 2px rgba(0, 109, 174, 0.1);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  font-size: 1.4rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  color: #666;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  cursor: pointer;
}

.forgot-link {
  color: #006dae;
  text-decoration: none;
  transition: color 0.3s;
}

.forgot-link:hover {
  color: #005a8f;
  text-decoration: underline;
}

.auth-btn {
  width: 100%;
  background: #006dae;
  color: white;
  padding: 1.4rem;
  font-size: 1.8rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  font-weight: 600;
  font-family: inherit;
}

.auth-btn:hover {
  background-color: #004b87;
  transform: translateY(-1px);
}

.auth-btn:disabled {
  background-color: #a0b8cc;
  cursor: not-allowed;
  transform: none;
}

/* Role toggle (User / Admin) inside login form */
.login-role-toggle {
  display: flex;
  border: 1.5px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 2.4rem;
}

.login-role-btn {
  flex: 1;
  padding: 0.9rem;
  font-size: 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #666;
  font-family: inherit;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.login-role-btn.active {
  background: #006dae;
  color: #fff;
  font-weight: 600;
}

.auth-message {
  display: none;
  margin: 0 3rem 0;
  padding: 1.2rem 1.6rem;
  border-radius: 6px;
  font-size: 1.4rem;
  line-height: 1.5;
}

.auth-message-error {
  display: block;
  background: #fff0f0;
  color: #c0392b;
  border: 1px solid #f5c6c6;
}

.auth-message-success {
  display: block;
  background: #f0fff4;
  color: #27ae60;
  border: 1px solid #b2dfdb;
}

/* Nav user info — shown when logged in, replaces Login/Register link */
.nav-user-info {
  align-items: center;
  gap: 1.2rem;
  white-space: nowrap;
}

.nav-user-greeting {
  font-size: 1.4rem;
  color: #333;
}

.nav-logout-btn {
  background: transparent;
  border: 1.5px solid #006dae;
  color: #006dae;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  font-size: 1.3rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}

.nav-logout-btn:hover {
  background: #006dae;
  color: #fff;
}

/* ======================================
   API DOCUMENTATION PAGE
   ====================================== */
.api-page {
  width: 100%;
  min-height: 100vh;
  background: #f7f9fb;
  padding-top: 8rem;
  padding-bottom: 6rem;
  pointer-events: auto;
}

.api-hero {
  max-width: 86rem;
  margin: 0 auto 3rem;
  padding: 4rem 3rem 3rem;
  background: #006dae;
  color: #fff;
  border-radius: 10px;
}

.api-hero h1 {
  font-size: 3.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.api-hero p {
  font-size: 1.7rem;
  opacity: 0.9;
}

.api-section {
  max-width: 86rem;
  margin: 0 auto 3rem;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e4e9ef;
  padding: 3rem;
}

.api-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a2a3a;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e4e9ef;
}

.api-section-desc {
  font-size: 1.5rem;
  color: #555;
  margin-bottom: 1.8rem;
  line-height: 1.6;
}

/* Auth notice */
.api-notice {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff8e6;
  border: 1px solid #f5c518;
  border-radius: 6px;
  padding: 1.2rem 1.6rem;
  font-size: 1.4rem;
  color: #7a5c00;
  margin-top: 1.6rem;
}

.api-link {
  color: #006dae;
  font-weight: 600;
}

/* Token display */
.api-token-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #1e2a38;
  border-radius: 6px;
  padding: 1.2rem 1.6rem;
  margin: 1.2rem 0;
}

.api-token-text {
  flex: 1;
  font-family: monospace;
  font-size: 1.2rem;
  color: #a8d8f0;
  word-break: break-all;
  white-space: pre-wrap;
}

.api-copy-btn {
  flex-shrink: 0;
  background: #006dae;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.6rem 1.4rem;
  font-size: 1.3rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.api-copy-btn:hover { background: #004b87; }

/* Endpoint rows */
.api-endpoint-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 1.4rem;
}

.api-endpoint-row:last-of-type { border-bottom: none; }

.api-badge {
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-family: monospace;
  flex-shrink: 0;
}

.api-badge-get { background: #e6f4ea; color: #1e7e34; }

.api-endpoint-row .api-path {
  font-size: 1.4rem;
  color: #1a2a3a;
  flex-shrink: 0;
}

.api-path-desc {
  color: #777;
  font-size: 1.3rem;
}

/* Parameter tables */
.api-params-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.4rem;
  margin: 1.8rem 0;
}

.api-params-table th {
  background: #f5f7fa;
  text-align: left;
  padding: 1rem 1.2rem;
  font-weight: 600;
  color: #444;
  border-bottom: 2px solid #e4e9ef;
}

.api-params-table td {
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid #f0f0f0;
  color: #555;
}

.api-params-table code {
  background: #f0f4f8;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-size: 1.3rem;
  color: #006dae;
}

/* Code blocks */
.api-code-block {
  background: #1e2a38;
  color: #c8d8e8;
  border-radius: 6px;
  padding: 1.6rem 2rem;
  font-size: 1.3rem;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
  margin: 0;
  font-family: "Courier New", Courier, monospace;
}

/* Code section with tabs */
.api-code-section { margin-top: 2rem; }

.api-code-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e4e9ef;
  margin-bottom: 0;
}

.api-code-tab {
  background: transparent;
  border: none;
  padding: 0.8rem 1.8rem;
  font-size: 1.4rem;
  cursor: pointer;
  color: #888;
  font-family: inherit;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s;
}

.api-code-tab.active {
  color: #006dae;
  border-bottom-color: #006dae;
  font-weight: 600;
}

/* Try It Live */
.try-it-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-top: 2rem;
}

.try-it-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.try-it-row label {
  font-size: 1.3rem;
  font-weight: 600;
  color: #444;
}

.try-it-row small { font-weight: 400; color: #888; }

.try-it-row select,
.try-it-row input[type="text"] {
  padding: 0.9rem 1rem;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  font-size: 1.4rem;
  font-family: inherit;
}

.try-execute-btn {
  grid-column: 1 / -1;
  background: #006dae;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 1.2rem;
  font-size: 1.6rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.try-execute-btn:hover:not(:disabled) { background: #004b87; }
.try-execute-btn:disabled { background: #a0b8cc; cursor: not-allowed; }

.try-login-hint {
  grid-column: 1 / -1;
  font-size: 1.3rem;
  color: #888;
  text-align: center;
}

.try-result-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 1.6rem 0 0.6rem;
  font-size: 1.4rem;
}

.try-status-ok  { color: #1e7e34; font-weight: 700; }
.try-status-err { color: #c0392b; font-weight: 700; }

.try-result-box {
  background: #1e2a38;
  color: #c8d8e8;
  border-radius: 6px;
  padding: 1.6rem 2rem;
  font-size: 1.25rem;
  line-height: 1.7;
  overflow: auto;
  max-height: 40rem;
  white-space: pre;
  font-family: "Courier New", Courier, monospace;
  margin: 0;
}

/* ======================================
   ADMIN DASHBOARD PAGE
   ====================================== */
.admin-page {
  width: 100%;
  min-height: 100vh;
  background: #f7f9fb;
  padding-top: 8rem;
  padding-bottom: 6rem;
  pointer-events: auto;
}

.admin-header {
  max-width: 96rem;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}

.admin-header h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #1a2a3a;
  margin-bottom: 0.4rem;
}

.admin-header p { font-size: 1.5rem; color: #666; }

/* Login box */
.admin-login-wrap {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.admin-login-box {
  background: #fff;
  border: 1px solid #e4e9ef;
  border-radius: 8px;
  padding: 3rem;
}

.admin-login-box label {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.8rem;
}

.admin-login-row {
  display: flex;
  gap: 1rem;
}

.admin-login-row input {
  flex: 1;
  padding: 1rem 1.2rem;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  font-size: 1.5rem;
  font-family: inherit;
}

.admin-login-btn {
  background: #006dae;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 1rem 2rem;
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.admin-login-btn:hover { background: #004b87; }
.admin-error { color: #c0392b; font-size: 1.3rem; margin-top: 0.8rem; }

/* Summary cards */
.admin-summary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 96rem;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}

.admin-card {
  background: #fff;
  border: 1px solid #e4e9ef;
  border-radius: 8px;
  padding: 2.4rem 2rem;
  text-align: center;
}

.admin-card-value {
  font-size: 4rem;
  font-weight: 700;
  color: #006dae;
  line-height: 1;
  margin-bottom: 0.8rem;
}

.admin-card-label {
  font-size: 1.4rem;
  color: #666;
  font-weight: 500;
}

/* Sections */
.admin-section {
  max-width: 96rem;
  margin: 0 auto 2.5rem;
  background: #fff;
  border: 1px solid #e4e9ef;
  border-radius: 8px;
  padding: 2.5rem 3rem;
}

.admin-section h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a2a3a;
  margin-bottom: 2rem;
}

.admin-section h3 small {
  font-size: 1.3rem;
  font-weight: 400;
  color: #888;
  margin-left: 0.8rem;
}

.admin-chart-wrap { position: relative; height: 30rem; }

/* Pending registrations */
.admin-pending-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 1.4rem;
}

.admin-pending-row:last-child { border-bottom: none; }
.admin-pending-date { color: #888; font-size: 1.3rem; margin-left: auto; }

.admin-approve-btn {
  background: #006dae;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1.4rem;
  font-size: 1.3rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  flex-shrink: 0;
}

.admin-approve-btn:hover:not(:disabled) { background: #004b87; }
.admin-approve-btn:disabled { background: #a0b8cc; cursor: default; }

/* Tables */
.admin-table-wrap { overflow-x: auto; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.4rem;
}

.admin-table th {
  background: #f5f7fa;
  text-align: left;
  padding: 1rem 1.2rem;
  font-weight: 600;
  color: #444;
  border-bottom: 2px solid #e4e9ef;
  white-space: nowrap;
}

.admin-table td {
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid #f0f0f0;
  color: #555;
}

.admin-table td code {
  font-size: 1.2rem;
  background: #f0f4f8;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  color: #006dae;
}

.admin-status-badge {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 600;
}

.admin-status-approved { background: #e6f4ea; color: #1e7e34; }
.admin-status-pending  { background: #fff8e6; color: #7a5c00; }

.admin-empty {
  color: #aaa;
  font-size: 1.4rem;
  text-align: center;
  padding: 2rem 0;
}

/* ======================================
   RESPONSIVE DESIGN - MONASH STYLE
   ====================================== */
@media screen and (max-width: 1200px) {
  .nav-link {
    font-size: 1.4rem;
    padding: 1rem 1.5rem;
  }

  .nav-search-input {
    width: 15rem;
  }

  .monash-logo {
    height: 4rem;
    margin: 0 1.5rem;
  }

  .site-tagline {
    font-size: 2.4rem;
  }
}

@media screen and (max-width: 1024px) {
  .nav-link {
    font-size: 1.3rem;
    padding: 0.8rem 1.2rem;
  }

  .nav-search {
    margin-left: 1rem;
  }

  .nav-search-input {
    width: 12rem;
  }

  .site-tagline {
    font-size: 2.2rem;
  }
}

@media screen and (max-width: 768px) {
  header {
    height: auto;
    min-height: 8rem;
  }

  .main-nav {
    flex-wrap: wrap;
    padding: 1rem;
    gap: 1rem;
  }

  .nav-left {
    width: 100%;
    justify-content: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
  }

  .nav-center {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-right {
    width: 100%;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
  }

  .nav-link {
    font-size: 1.4rem;
    padding: 0.8rem 1.5rem;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    border-left: none;
  }

  .nav-link:first-child {
    border-left: 1px solid rgba(0, 0, 0, 0.1);
  }

  .nav-search {
    margin-left: 0;
    width: 100%;
  }

  .nav-search-input {
    width: 100%;
    flex: 1;
  }

  .monash-logo {
    height: 4rem;
    margin: 0 1rem;
  }

  .site-tagline {
    font-size: 1.8rem;
  }

  .nav-brand {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .placeholder-content {
    padding: 2rem;
  }

  .placeholder-content h1 {
    font-size: 3rem;
  }

  .contact-content {
    padding: 2rem 1.5rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .care-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  .care-team-image {
    width: 100%;
    min-width: unset;
  }

  .care-description {
    font-size: 1.4rem;
  }
}

/* ===================================================
   ENVIRONMENTAL HEALTH PAGE
   =================================================== */

/* The page-content divs fill the full viewport;
   header is 8rem and positioned fixed/absolute so
   we pad-top to clear it. */
#page-environmental-health.page-content {
  overflow: hidden;
  padding-top: 8rem;
  height: 100vh;
  background: #0e0e0e;
  color: #e0e0e0;
  font-size: 1.3rem;
  box-sizing: border-box;
  position: relative;
}

.eh-page {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ---- Controls bar ---- */
.eh-controls {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem 2rem;
  background: #161616;
  border-bottom: 1px solid #2a2a2a;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.eh-control-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.eh-ctrl-label {
  font-size: 1.1rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.eh-year-val {
  color: #e0e0e0;
  font-weight: 600;
}

.eh-select {
  background: #222;
  border: 1px solid #3a3a3a;
  border-radius: 5px;
  color: #e0e0e0;
  font-size: 1.3rem;
  font-family: inherit;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.eh-select:hover,
.eh-select:focus {
  border-color: #6b7280;
}

.eh-year-group {
  flex: 1;
  min-width: 18rem;
}

.eh-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: #3a3a3a;
  outline: none;
  cursor: pointer;
}

.eh-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #60a5fa;
  cursor: pointer;
  transition: background 0.2s;
}

.eh-slider::-webkit-slider-thumb:hover {
  background: #93c5fd;
}

.eh-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #60a5fa;
  cursor: pointer;
  border: none;
}

.eh-status {
  font-size: 1.2rem;
  color: #888;
  font-style: italic;
}

/* ---- Map area (fills all space above the floating panel) ---- */
.eh-map-wrap {
  position: relative;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 280px;
}

#eh-map {
  width: 100%;
  height: 100%;
  background: #cfdce8;
}

/* Cancel the site-wide overlay blur — choropleth needs sharp polygon edges */
#eh-map .leaflet-overlay-pane,
#eh-map .leaflet-pollution-pane {
  filter: none;
  opacity: 1;
}

/* Tooltip */
.eh-tooltip {
  position: absolute;
  z-index: 1000;
  display: none;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid #bbb;
  border-radius: 5px;
  padding: 0.8rem 1rem;
  font-size: 1.2rem;
  color: #111;
  pointer-events: none;
  max-width: 26rem;
  line-height: 1.6;
  box-shadow: 0 3px 10px rgba(0,0,0,0.18);
}

.eh-tip-ci {
  color: #555;
  font-size: 1.1rem;
}

/* Legend */
.eh-legend {
  position: absolute;
  top: 6rem;
  left: 1.5rem;
  z-index: 500;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #bbb;
  border-radius: 4px;
  padding: 0.9rem 1.1rem;
  min-width: 18rem;
}

.eh-legend-title {
  font-size: 1.15rem;
  color: #222;
  margin-bottom: 0.6rem;
  font-weight: 600;
  line-height: 1.4;
}

.eh-legend-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
}

.eh-legend-swatch {
  width: 16px;
  height: 14px;
  border: 1px solid #aaa;
  flex-shrink: 0;
}

.eh-legend-item span {
  font-size: 1.1rem;
  color: #222;
  white-space: nowrap;
}

/* ---- Floating bottom panel ---- */
.eh-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20rem;
  display: none;
  flex-direction: row;
  overflow: hidden;
  background: rgba(10, 10, 16, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
  z-index: 400;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.eh-bottom.is-open {
  display: flex;
  transform: translateY(0);
}

/* Close button */
.eh-close-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  z-index: 10;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #aaa;
  font-size: 1.4rem;
  line-height: 1;
  width: 2.4rem;
  height: 2.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.eh-close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.eh-trend-panel {
  flex: 1 1 60%;
  display: flex;
  flex-direction: column;
  padding: 0.8rem 1.2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.eh-stats-panel {
  flex: 0 0 38%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.8rem 1.2rem;
  padding-right: 3.5rem;
  overflow-y: auto;
  scrollbar-width: thin;
}

.eh-panel-title {
  font-size: 1.1rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
  flex-shrink: 0;
}

.eh-chart-wrap {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
}

/* Stat blocks */
.eh-stat-block {
  flex-shrink: 0;
}

.eh-stat-label {
  font-size: 1.0rem;
  color: #666;
  margin-bottom: 0.1rem;
}

.eh-stat-value {
  font-size: 1.8rem;
  font-weight: 600;
  color: #e0e0e0;
  line-height: 1;
}

.eh-stat-unit {
  font-size: 1.3rem;
  color: #888;
  font-weight: 400;
  margin-left: 0.2rem;
}

.eh-stat-ci {
  font-size: 1.1rem;
  color: #555;
  margin-top: 0.2rem;
}

/* Rankings */
.eh-rankings-cols {
  display: flex;
  gap: 1rem;
}

.eh-ranking-col {
  flex: 1;
}

.eh-ranking-title {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 0.4rem;
}

.eh-ranking-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.2rem 0;
  border-bottom: 1px solid #1a1a1a;
  font-size: 1.1rem;
}

.eh-ranking-name {
  color: #bbb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 11rem;
  flex: 1;
}

.eh-ranking-val {
  color: #888;
  flex-shrink: 0;
  font-size: 1.05rem;
}

/* Panel hint (shown in regional mode) */
.eh-panel-hint {
  font-size: 1.05rem;
  color: #555;
  margin-top: -0.5rem;
  margin-bottom: 0.6rem;
  flex-shrink: 0;
}

/* Country stats table */
.eh-country-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.eh-cstat-section {
  font-size: 1.05rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.8rem;
  margin-bottom: 0.3rem;
  border-bottom: 1px solid #222;
  padding-bottom: 0.2rem;
}

.eh-cstat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.25rem 0;
  border-bottom: 1px solid #1a1a1a;
  font-size: 1.15rem;
}

.eh-cstat-label {
  color: #888;
}

.eh-cstat-val {
  color: #ddd;
  font-weight: 500;
}

.eh-cstat-ci {
  color: #666;
  font-size: 1rem;
  font-weight: 400;
}

/* Change indicator */
.eh-change-value {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}

.eh-change-neg {
  color: #4ade80;
}

.eh-change-pos {
  color: #f87171;
}

/* ---- Caveats ---- */
.eh-caveats {
  flex-shrink: 0;
  padding: 1rem 2rem;
  background: #111;
  border-top: 1px solid #1e1e1e;
}

.eh-caveats-title {
  font-size: 1.15rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.eh-caveats-list {
  list-style: disc;
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.eh-caveats-list li {
  font-size: 1.1rem;
  color: #4a4a4a;
  line-height: 1.5;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .eh-bottom {
    flex-direction: column;
    height: auto;
  }

  .eh-trend-panel {
    border-right: none;
    border-bottom: 1px solid #1e1e1e;
    height: 28rem;
  }

  .eh-stats-panel {
    flex: none;
    height: auto;
  }

  .eh-controls {
    gap: 1rem;
  }
}
