/* Map Page Styles */

/* Map Page Body - Absolute White */
body {
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
  background-color: #ffffff;
  font-family: "Segoe UI", sans-serif;
  color: #003975;
}

/* Headings - Centered with Normal Black Font */
h1, h2, h3 {
  text-align: center;
  color: #000000;
  font-family: "Segoe UI", sans-serif;
  font-weight: 600;
}

/* Fixed Header (Always Visible) */
.map-header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  box-sizing: border-box;
  padding: 0 20px;
}

.map-sitename {
  text-align: center;
  flex: 1;
}

.map-sitename .brand-link {
  font-size: 1.5em;
  color: #003975;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5em;
  display: inline-block;
  transition: all 0.3s ease;
}

.map-sitename .brand-link:hover,
.map-sitename .brand-link:focus {
  background-color: #f56505;
  color: white;
  border-radius: 4px;
}

/* Toggle Icon (Hamburger Lines) */
.toggle-icon {
  position: absolute;
  right: 20px;
  width: 30px;
  height: 24px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1001;
  transition: all 0.3s ease;
}

.toggle-icon span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #003975;
  transition: all 0.3s ease;
}

.toggle-icon:hover span {
  background-color: #f56505;
}

.toggle-icon.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.toggle-icon.active span:nth-child(2) {
  opacity: 0;
}

.toggle-icon.active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* Collapsible Menu */
.map-menu {
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 900;
  transition: transform 0.3s ease-in-out, opacity 0.5s ease;
  padding: 0.5em 0;
}

.map-menu.collapsed {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.map-menu.expanded {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.map-menu.fading {
  transform: translateY(0);
  opacity: 0;
  pointer-events: none;
}

.map-menu .menu-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.map-menu .menu-list li {
  display: inline-block;
}

.map-menu .pure-menu-link {
  color: #003975;
  text-decoration: none;
  padding: 0.5em 1em;
  display: block;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-weight: 600;
}

.map-menu .pure-menu-link:hover,
.map-menu .pure-menu-link:focus {
  background-color: #f56505;
  color: white;
}

/* Content Container */
.map-content {
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  height: calc(100vh - 60px);
  overflow-y: auto;
  background-color: #ffffff;
  padding: 5px;
  box-sizing: border-box;
  transition: top 0.3s ease-in-out;
}

.map-content.menu-open {
  top: 120px;
  height: calc(100vh - 120px);
}

.map-content p {
  color: #003975;
  margin: 5px;
  font-size: 0.95em;
}

#map {
  width: 100%;
  height: calc(100vh - 100px);
  margin: 5px 0;
  border: 1px solid #e0e0e0;
}

/* Mobile Styles */
@media screen and (max-width: 35.5em) {
  .map-header-fixed {
    height: 50px;
  }

  .map-sitename .brand-link {
    font-size: 1.1em;
  }

  .toggle-icon {
    right: 10px;
    width: 25px;
    height: 20px;
  }

  .toggle-icon span {
    height: 2px;
  }

  .map-content {
    top: 50px;
    height: calc(100vh - 50px);
    padding: 3px;
  }

  .map-content.menu-open {
    top: 100px;
    height: calc(100vh - 100px);
  }

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

  .map-content p {
    font-size: 0.85em;
  }
}

/* Reset button (Leaflet control) */
.map-reset-button {
  background: #fff;
  border: 1px solid #ccc;
  padding: 6px 10px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}

.map-reset-button:hover {
  background: #f4f4f4;
}

/* Hidden until map interaction */
.map-reset-button--hidden {
  display: none;
}
