/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: #1f2a2e;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =========================
   TOP NAV (white bar)
========================= */
.topbar {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  height: 80px;
  width: auto;
  margin-left: 24px;
  transform: scale(2.2);
  transform-origin: left center;
}

.nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: #3a3a3a;
  font-weight: 600;
  font-size: 18px;
  padding: 6px 2px;
}

.nav a:hover {
  opacity: 0.75;
}

.nav a.active {
  opacity: 1;
}

/* =========================
   HERO BAND (teal)
========================= */
.hero-band {
  background: #8fc2c7; /* close to screenshot */
}

.hero-inner {
  max-width: none;        /* remove the centered max-width container */
  margin: 0;              /* stop centering */
  padding: 22px 24px 16px 30px; /* top right bottom left */
  color: #ffffff;
}

.hero-inner h1 {
  font-size: 50px;
  line-height: 1.1;
  margin-bottom: 8px;
  font-weight: 800;
}

.hero-inner p {
  font-size: 20px;
  line-height: 1.45;
  opacity: 0.95;
  max-width: none;
}

/* =========================
   MAP AREA
========================= */
.map-area {
  position: relative;
  flex: 1;
  min-height: 420px;
  background: #8fc2c7; /* screenshot shows map sitting under teal band */
}

/* Map fills available space */
#map {
  width: 100%;
  height: 100%;
}

/* Leaflet look */
.leaflet-container {
  border-radius: 0; /* screenshot has square edges */
}

/* =========================
   SENSOR SELECT (overlay pill)
========================= */
.sensor-select-wrapper {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500; /* above leaflet */
}

#sensorSelect {
  padding: 8px 16px;
  border-radius: 999px;

  background: #8fc2c7;          /* same as header */
  border: 1px solid #7ab3b9;    /* slightly darker edge */
  color: #ffffff;

  font-size: 14px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}
#sensorSelect:hover,
#sensorSelect:focus {
  background: #7ab3b9;   /* slightly darker on interaction */
}
#sensorSelect option {
  color: #1f2a2e;
}

/* =========================
   FOOTER BAND (light teal)
========================= */
.footer-band {
  background: #8fc2c7;
}

.footer-band-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  color: #ffffff;
}

.footer-center {
  text-align: center;
  font-weight: 600;
  opacity: 0.95;
}

.footer-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.footer-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.footer-logo {
  height: 44px;
  width: auto;
  display: block;
  filter: brightness(1.1);
}

/* =========================
   FOOTER BOTTOM (dark teal bar)
========================= */
.footer-bottom {
  background: #3f7f8e;
  color: #ffffff;
}

.footer-bottom-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.footer-bottom a.credits {
  color: #ffffff;
  text-decoration: underline;
  opacity: 0.9;
}

.footer-bottom a.credits:hover {
  opacity: 1;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
  .hero-inner h1 {
    font-size: 38px;
  }

  .nav {
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-start;
    gap: 14px;
  }

  .hero-inner h1 {
    font-size: 32px;
  }

  .footer-band-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-left,
  .footer-right {
    justify-content: center;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-inner {
    padding: 18px 14px 12px;
  }

  .hero-inner h1 {
    font-size: 26px;
  }

  #sensorSelect {
    width: 220px;
  }
}
/* CREDITS TOOLTIP (force) */
.credits-wrapper {
  position: relative !important;
  display: inline-block !important;
}

.credits-tooltip {
  position: absolute !important;
  bottom: 140% !important;
  right: 0 !important;

  width: 420px;
  background: rgba(0, 0, 0, 0.9);
  color: #ffffff;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 9999 !important;
}

.credits-wrapper:hover .credits-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* arrow */
.credits-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 16px;
  border-width: 6px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent;
}

@media (max-width: 480px) {
  .credits-tooltip {
    right: auto !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(6px);
    width: 90vw;
    max-width: 460px;
  }

  .credits-wrapper:hover .credits-tooltip {
    transform: translateX(-50%) translateY(0);
  }
}

