/* --- CUSTOM HEADER & FOOTER MAPA --- */
.map-custom-header {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  height: 80px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
  overflow: hidden;
  font-family: system-ui, -apple-system, sans-serif;
}

.map-custom-header-left {
  display: flex;
  align-items: center;
  padding-left: 15%;
  flex: 1;
  background: #ffffff;
  z-index: 2;
}

.map-custom-header-left h1 {
  font-size: 32px;
  color: #333333;
  margin: 0;
  font-weight: 600;
}

.map-custom-header-right {
  background: linear-gradient(90deg, #00CF00 8%, #00AC00 100%);
  border-bottom-left-radius: 50px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  z-index: 2;
}

.map-custom-nav {
  display: flex;
  gap: 25px;
  margin: 0;
}

.map-custom-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: opacity 0.2s;
}

.map-custom-nav a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.map-custom-nav-select {
  display: none;
  width: 100%;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 14px;
  background: white;
  color: #009933;
  font-family: inherit;
  outline: none;
}

.map-custom-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #00872C;
  padding: 20px 40px;
  font-family: system-ui, -apple-system, sans-serif;
}

.map-custom-footer-logos {
  display: flex;
  align-items: center;
  gap: 20px;
}

.map-custom-footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.map-custom-footer-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: opacity 0.2s;
}

.map-custom-footer-nav a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

@media (max-width: 900px) {

  /* Header maintains 2-column row layout */
  .map-custom-header {
    height: 70px;
    /* Flex-direction defaults to row, which is correct */
  }

  .map-custom-header-left {
    padding-left: 20px;
    padding-right: 20px;
    flex: 0 0 35%;
  }

  .map-custom-header-left h1 {
    font-size: 24px;
  }

  .map-custom-header-right {
    border-bottom-left-radius: 30px;
    padding: 0 20px;
    flex: 1;
    justify-content: flex-end;
  }

  /* Hide standard nav, show select */
  .map-custom-nav {
    display: none;
  }

  .map-custom-nav-select {
    display: block;
    max-width: 200px;
  }

  /* Footer tweaks */
  .map-custom-footer {
    padding: 20px;
    justify-content: center;
  }

  .map-custom-footer-logos {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Hide the footer options on mobile */
  .map-custom-footer-nav {
    display: none;
  }
}