/* Reset */
html, body {
  height: 100%;
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #2f7c31; /* light sky blue */
}

/* Navbar */
#navbar {
  background: #9ec9ec; /* light sky blue */
  color: #333;
  padding: 0.4rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px; /* shorter height */
  font-family: 'Segoe UI', Arial, sans-serif;
  border-bottom: 4px solid #2f7c31; /* green accent border */
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo {
  height: 65px; /* smaller logo */
}

#navbar h1 {
  font-size: 1.3rem;
  margin: 0;
  display: flex;
  align-items: baseline;
}

#navbar .ozaukee {
  color: #e67e22; /* trail orange */
  font-weight: bold;
}

#navbar .interurban {
  color: #2f7c31; /* trail green */
  font-style: italic;
  margin-left: 0.2rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #e67e22; /* orange accent hover */
}

.nav-logo {
  height: 65px; /* smaller logo */
}

/* Map */
#map {
  height: calc(100% - 50px); /* full height minus navbar */
  width: 100%;
}

/* ================================
   Splash Screen
   ================================ */
#splash {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #9ec9ec; /* sky blue */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  font-family: 'Segoe UI', Tahoma, sans-serif;
}

/* Splash card container */
.splash-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  max-width: 700px;
  width: 90%;
  max-height: 90vh; /* fit within screen height */
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);

  display: flex;
  flex-direction: column;
  align-items: center;       /* center logo + content */
  justify-content: space-between;
}

/* Logo centered at top */
.splash-logo {
  width: 140px;
  margin: 0 auto 1rem auto;
  display: block;
}

/* Trailside hotspot sign */
.splash-hotspot {
  width: 120px;
  margin: 1rem auto;
  display: block;
  border-radius: 6px;
}

/* Heading text */
.splash-card h2 {
  color: #226622; /* deep green */
  margin: 1rem 0;
  font-size: 1.6rem;
}

/* Descriptive text */
.splash-text {
  text-align: left;
  margin-bottom: 1.5rem;
  color: #333;
  line-height: 1.6;
  flex: 1;                  /* let it expand */
  overflow-y: auto;          /* scroll text if too tall */
  padding-right: 0.5rem;
  width: 100%;
}

.splash-text::-webkit-scrollbar {
  width: 8px;
}
.splash-text::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

/* Enter Map button */
#enter-btn {
  background-color: #e67300; /* trail orange */
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.85rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease;
  margin-top: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

#enter-btn:hover {
  background-color: #cc6600;
  transform: translateY(-2px);
}

#enter-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Custom Marker Colors */
.icon-blue {
  filter: brightness(0) saturate(100%) invert(21%) sepia(90%) 
          saturate(1500%) hue-rotate(200deg) brightness(80%) contrast(115%)
          drop-shadow(0 0 5px rgba(255,255,255,0.9));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.icon-red {
  filter: brightness(0) saturate(100%) invert(15%) sepia(100%) 
          saturate(3500%) hue-rotate(350deg) brightness(75%) contrast(120%)
          drop-shadow(0 0 5px rgba(255,255,255,0.9));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.icon-blue:hover,
.icon-red:hover {
  transform: scale(1.15);
  filter: brightness(1.1) saturate(130%) 
          drop-shadow(0 0 7px rgba(255,255,255,1));
}

/* Legend */
.legend {
  background: white;
  padding: 10px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

.legend h4 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #2f7c31; /* trail green */
  font-weight: bold;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

.legend-line {
  display: inline-block;
  width: 22px;
  height: 4px;
  margin-right: 8px;
  border-radius: 2px;
  background: repeating-linear-gradient(
    to right,
    #e67e22,
    #e67e22 10px,
    transparent 10px,
    transparent 16px
  );
}


.legend-icon {
  width: 18px;
  height: 18px;
  margin-right: 6px;
}

/* Hide map controls until splash is gone */
.hidden-controls .leaflet-control {
  display: none !important;
}

/* Trail styling */
.leaflet-interactive {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trail-outline {
  stroke: #ffffff;
  stroke-width: 8;
  stroke-opacity: 0.6;
}

.trail-line {
  stroke: #e67e22;          /* orange */
  stroke-width: 5;
  stroke-opacity: 0.9;
  stroke-dasharray: 10, 6;  /* dash length, gap length */
  stroke-linecap: round;    /* rounded dashes for smooth look */
  filter: drop-shadow(0 0 3px rgba(0,0,0,0.3)); /* subtle shadow for contrast */
}


/* Popup habitat themes */
.popup-lakemichigan .leaflet-popup-content-wrapper { border: 3px solid #6baed6; }
.popup-riverine    .leaflet-popup-content-wrapper { border: 3px solid #08519c; }
.popup-woodland    .leaflet-popup-content-wrapper { border: 3px solid #228b22; }
.popup-wetland     .leaflet-popup-content-wrapper { border: 3px solid #8fbc8f; }
.popup-grassland   .leaflet-popup-content-wrapper { border: 3px solid #7cfc00; }
.popup-other       .leaflet-popup-content-wrapper { border: 3px solid #999; }

.popup-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  font-weight: bold;
}

/* ================================
   Conservation Efforts Page
   ================================ */
.content-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
  color: #ffffff;
  font-family: 'Merriweather', serif;
}

.content-container h2 {
  font-family: 'Dancing Script', cursive;
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-align: center;
}

.conservation-section {
  margin-bottom: 2rem;
}

.conservation-section h3 {
  font-family: 'Dancing Script', cursive;
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.conservation-section h4 {
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.conservation-section p,
.conservation-section ul,
.conservation-section li {
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.conservation-section ul {
  margin: 0.5rem 0 1rem 1.5rem;
  list-style-type: disc;
}

.section-light {
  padding-bottom: 3rem;
}

.conservation-quote {
  margin: 3rem auto;
  padding: 1.5rem;
  font-size: 1.4rem;
  font-style: italic;
  font-family: 'Dancing Script', cursive;
  color: #226622;
  background: #dde3b8;
  border-left: 6px solid #010401;
  border-radius: 8px;
  max-width: 700px;
  text-align: center;
  line-height: 1.6;
}

.conservation-quote span {
  display: block;
  margin-top: 0.5rem;
  font-weight: bold;
  font-family: 'Merriweather', serif;
  color: #17341b;
}

.content-container,
.page-section:last-of-type {
  padding-bottom: 1rem;
}

/* For the Birds link lists */
.link-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.link-list li a {
  display: inline-block;
  color: #17341b;
  background: #dde3b8;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.link-list li a:hover {
  background: #2f7c31;
  color: #fff;
}

/* About Page Credits */
.conservation-section p {
  margin-bottom: 0.6rem;
}

.conservation-section em {
  display: block;
  margin-top: 1.5rem;
  font-style: italic;
  color: #17341b;
}

/* Sponsors Page */
.sponsor-card {
  background: #dde3b8;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin: 1rem 0;
  color: #17341b;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.sponsor-card h4 {
  font-family: 'Dancing Script', cursive;
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
  color: #2f7c31;
}

.sponsor-card a {
  display: inline-block;
  margin: 0.3rem 0;
  color: #2f7c31;
  text-decoration: none;
  font-weight: bold;
}

.sponsor-card a:hover {
  text-decoration: underline;
  color: #e67e22;
}

.sponsor-card .mission {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 0.5rem;
}
/* Hide hamburger by default (desktop view) */
.hamburger {
  display: none;
}

/* ================================
   Mobile Adjustments
   ================================ */
@media (max-width: 768px) {
  /* Navbar */
  #navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: auto;
    padding: 0.6rem 1rem;
    position: relative;
  }

  /* Hamburger button (visible only on mobile) */
  .hamburger {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: #333;
  }

  /* Nav links hidden until toggled */
    .nav-links {
    display: none;
    flex-direction: column;
    background: #9ec9ec;
    width: 100%;
    position: absolute; /* ensures it drops *below* navbar */
    top: 75px;          /* 60px navbar height + 4px green border */
    left: 0;
    padding: 0.5rem 0;
    border-top: 2px solid #2f7c31;
    z-index: 2000;       /* stay on top of map */
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 0.6rem 1rem;
    width: 100%;
  }
}


  .splash-card {
    width: 95%;
    padding: 1rem;
  }

  .splash-text {
    font-size: 0.9rem;
  }

  #enter-btn {
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
  }

  .link-list {
    grid-template-columns: 1fr;
  }

  #map {
    height: calc(100vh - 60px);
  }

  .sponsor-card {
    padding: 0.8rem 1rem;
  }

