@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

/* ==========================================================================
   general
========================================================================== */
html, body { height: 100%; margin: 0; overflow: hidden; }
body { font-family: 'Raleway', sans-serif; }

.container-fluid {
  padding: 0 !important;
  max-width: none !important;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.bs-container .dropdown-menu {
  z-index: 3500 !important;
  font-family: 'Raleway', sans-serif;
}

/* ==========================================================================
   nav
========================================================================== */
.masthead, .masthead * { box-sizing: border-box; }
.masthead ul, .masthead li { margin: 0; padding: 0; list-style: none; }

header.masthead {
  background-color: #002a26;
  color: #fff;
  flex-shrink: 0;
}

.masthead .container { padding: 0 !important; margin: 0 !important; max-width: 100% !important; width: 100% !important; }

.header-brand-row { padding: 14px 24px; width: 100%; }

.header-flex-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 2rem;
}

.main-logo { flex: 0 0 auto; display: flex; align-items: center; }
.main-logo img { height: 48px; }

.right-content {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.partner-logos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: center;
}
.partner-logos a:first-child { justify-self: end; text-align: right; }
.partner-logos a:last-child { justify-self: start; text-align: left; }
.partner-logos img { height: 32px; max-width: 100%; object-fit: contain; }

.navbar .cta-button {
  background-color: #a7ce09;
  color: #000 !important;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 16px;
  text-decoration: none !important;
  display: inline-block;
  text-align: center;
  white-space: nowrap;
  border-radius: 3px;
  transition: background-color 0.3s ease;
}
.navbar .cta-button:hover { background-color: #fff; color: #000 !important; }

.cta-nav-item { margin-left: auto !important; }

@media (max-width: 768px) {
  .cta-nav-item { margin-left: 0 !important; width: 100%; }
  .navbar .cta-button { display: block; width: 100%; text-align: center; margin-top: 10px; }
}

@media (max-width: 768px) {
  .header-flex-container { flex-direction: column; gap: 1rem; }
  .main-logo { flex: 1; justify-content: center; }
  .right-content { flex: 1; align-items: center; width: 100%; }
  .partner-logos { justify-items: center; gap: 1rem; }
  .partner-logos a:first-child, .partner-logos a:last-child { justify-self: center; text-align: center; }
  .partner-logos img { max-width: 45%; }
}

/* ---- navbar ---- */
.navbar {
  background-color: #09322e;
  width: 100%;
  padding: 0 !important;
  margin: 0 !important;
  position: relative;
}
.navbar .container { position: relative; padding: 10px 15px; }

.navbar-nav {
  margin: 0 !important;
  padding: 0.4rem 0 0.4rem 24px !important;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  background-color: #003a35;
}
.navbar-nav > li { flex-shrink: 0; }
.nav-item a { text-decoration: none; padding: 5px 0; display: inline-block; }

.navbar-nav .nav-link {
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
  padding: 8px 12px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}
.navbar-nav .active .nav-link,
.navbar-nav .nav-link:hover { color: #e8aa00; }

.navbar-toggler {
  display: none;
  background: transparent;
  border: none;
  color: white;
  padding: 0.5rem;
  margin: 1rem;
  cursor: pointer;
}
.navbar-toggler .fa { font-size: 1.5rem; }

/* smaller screen */
.navbar-collapse { display: none; }

@media (max-width: 768px) {
  .navbar-toggler { display: block; }
  .navbar-collapse {
    background-color: #09322e;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 3000;
  }
  .navbar-collapse.show { display: block; }
  .navbar-nav { padding: 1rem !important; flex-direction: column; align-items: flex-start; }
  .navbar-nav > li { margin: 0.5rem 0; width: 100%; }
}

@media (min-width: 769px) {
  .navbar-toggler { display: none; }
  .navbar-collapse { display: block !important; }
}

/* ---- dropdowns ---- */
.nav-item.dropdown { position: relative; }

.navbar .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 3000;
  background-color: #09322e;
  border: none;
  margin-top: 0.5rem;
  padding: 0;
}
.navbar .dropdown-menu.show { display: block !important; }

.navbar .dropdown-menu a {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  padding: 8px 12px !important;
  display: block;
}
.navbar .dropdown-menu a:hover { background-color: #002a26; color: #e8aa00; }

@media (max-width: 768px) {
  .navbar .dropdown-menu { width: 100%; }
}
@media (min-width: 769px) {
  .navbar .nav-item.dropdown:hover .dropdown-menu { display: block; }
}

/* ==========================================================================
   main
========================================================================== */
.app-container {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}

/* ---- sidebars ---- */
.sidebar-wrapper {
  position: relative;
  flex-shrink: 0;
  width: 0;
  background: #f7f8fa;
  transition: width 0.3s ease;
  z-index: 500;
}
.sidebar-wrapper.open { width: 300px; }

.sidebar-clip { width: 100%; height: 100%; overflow: hidden; }

.sidebar-content {
  width: 300px;
  height: 100%;
  overflow-y: auto;
  padding: 16px;
  box-sizing: border-box;
}
.sidebar-content h4 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #09322e;
  padding-bottom: 10px;
  border-bottom: 3px solid #e8aa00; 
}

.details-dataset-title {
  font-weight: 800;
  font-size: 18px;
  color: #09322e;
  margin: 0 0 14px;
  line-height: 1.3;
}

.details-subhead {
  margin: 18px 0 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #52606d;
}
.details-subhead:first-of-type {
  margin-top: 0;
}

.details-link-button {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 20px;
  background-color: #09322e;
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  text-decoration: none !important;
  transition: background-color 0.2s ease;
}
.details-link-button:hover {
  background-color: #e8aa00 !important;
  color: #09322e !important;
}

.details-site-count {
  font-size: 12px;
  color: #52606d;
  margin-bottom: 10px;
}
.details-site-list {
  list-style: disc;
  padding-left: 18px;
  margin-bottom: 14px;
  font-size: 14px;
}
.details-site-list li { margin-bottom: 4px; }
.details-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #09322e;
  text-decoration: none;
  border-bottom: 1px solid #e8aa00;
  padding-bottom: 1px;
}
.details-link:hover { color: #e8aa00; }

.toggle-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 46px;
  background: #1f2933;
  color: #f5f7fa;
  cursor: pointer;
  z-index: 600;
  user-select: none;
}
.toggle-tab .icon { transition: transform 0.3s ease; font-size: 13px; }
.left-tab { right: -22px; border-radius: 0 6px 6px 0; }
.right-tab { left: -22px; border-radius: 6px 0 0 6px; }
.sidebar-wrapper.left.open .left-tab .icon { transform: rotate(180deg); }
.sidebar-wrapper.right.open .right-tab .icon { transform: rotate(180deg); }

.mobile-toggle-btn { display: none; }

#map-container { flex: 1; position: relative; height: 100%; }
#map { height: 100% !important; width: 100% !important; }

.mobile-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 800;
}

@media (max-width: 768px) {
  .sidebar-wrapper {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 85vw;
    max-width: 320px;
    box-shadow: 0 0 24px rgba(0,0,0,0.25);
    transition: transform 0.3s ease;
    z-index: 900;
  }
  .sidebar-wrapper.left { left: 0; transform: translateX(-100%); }
  .sidebar-wrapper.left.open { transform: translateX(0); width: 85vw; max-width: 320px; }
  .sidebar-wrapper.right { right: 0; transform: translateX(100%); }
  .sidebar-wrapper.right.open { transform: translateX(0); width: 85vw; max-width: 320px; }

  .toggle-tab { display: none; }

  .mobile-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1f2933;
    color: #f5f7fa;
    z-index: 950;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    cursor: pointer;
  }
  .mobile-toggle-left { left: 10px; }
  .mobile-toggle-right { right: 10px; }

  .sidebar-wrapper.left.open ~ .mobile-overlay,
  .sidebar-wrapper.right.open ~ .mobile-overlay {
    display: block;
  }
}

.details-tags { margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.details-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #1f2933;
  background: #e8aa00;
  border: none;
  border-radius: 10px;
  padding: 6px 16px;
}

.details-tags-heading {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #52606d;
}