/* css/locations-map.css - Locations Map page specific styles */

/* MAP HEADER */
.map-header {
  padding-top: 72px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
}
.map-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/map-header-bg.jpg') center/cover no-repeat;
  opacity: 0.15;
}
.map-header-content {
  position: relative;
  z-index: 2;
  padding: 60px 80px;
}
@media (max-width: 900px) {
  .map-header-content {
    padding: 50px 28px;
  }
}
.map-header .page-h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 16px;
}
.map-header .page-h1 em {
  font-style: italic;
  color: var(--gold);
}
.map-header .page-sub {
  font-size: 17px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.65);
  max-width: 560px;
  line-height: 1.75;
}

/* MAP SECTION */
.map-section {
  padding: 60px 80px;
  background: var(--light);
}
@media (max-width: 900px) {
  .map-section {
    padding: 40px 20px;
  }
}
.map-container {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(10, 34, 64, 0.1);
  border: 1px solid var(--border);
}
#namibia-map {
  width: 100%;
  height: 550px;
  background: #e8e4dc;
}
@media (max-width: 900px) {
  #namibia-map {
    height: 450px;
  }
}
@media (max-width: 600px) {
  #namibia-map {
    height: 380px;
  }
}
.map-controls {
  padding: 16px 24px;
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.map-search {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 200px;
}
.map-search input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color var(--trans);
}
.map-search input:focus {
  border-color: var(--gold);
}
.map-search button {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--trans);
}
.map-search button:hover {
  background: var(--gold);
}
.map-stats {
  font-size: 13px;
  color: var(--text-muted);
}
.map-stats strong {
  color: var(--navy);
  font-weight: 700;
}

/* LOCATIONS SIDEBAR */
.locations-sidebar {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4px;
  background: var(--white);
}
@media (max-width: 900px) {
  .locations-sidebar {
    grid-template-columns: 1fr;
  }
}
.locations-list-panel {
  background: var(--white);
  border: 1px solid var(--border);
  overflow-y: auto;
  max-height: 600px;
}
.locations-list-panel h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  padding: 20px 24px 12px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 10;
}
.locations-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.location-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--trans);
}
.location-list-item:hover {
  background: var(--gold-pale);
}
.location-list-item.active {
  background: var(--gold-pale);
  border-left: 3px solid var(--gold);
}
.location-name {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}
.location-region {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.location-coord {
  font-size: 10px;
  color: var(--text-muted);
  font-family: monospace;
}

/* LOCATION DETAIL PANEL */
.location-detail-panel {
  background: var(--light);
  border: 1px solid var(--border);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.location-detail-panel .empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.4;
}
.location-detail-panel .detail-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.location-detail-panel .detail-region {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.location-detail-panel .detail-description {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.detail-stats {
  display: flex;
  gap: 24px;
  margin: 20px 0;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.detail-stat {
  text-align: center;
}
.detail-stat-n {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  display: block;
}
.detail-stat-l {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.btn-map {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  padding: 12px 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--navy);
  transition: background var(--trans), border-color var(--trans);
}
.btn-map:hover {
  background: var(--gold);
  border-color: var(--gold);
}
.btn-map-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--border);
}
.btn-map-outline:hover {
  border-color: var(--gold);
  background: var(--gold-pale);
}
.region-tag {
  display: inline-block;
  background: var(--gold-pale);
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border-radius: 20px;
  margin-bottom: 12px;
}

/* MAP LEGEND */
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  padding: 16px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.legend-marker {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--gold);
}
.legend-marker.large {
  width: 16px;
  height: 16px;
  background: var(--navy);
}

/* CUSTOM LEAFLET POPUP */
.custom-popup .popup-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.custom-popup .popup-region {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.custom-popup .popup-link {
  font-size: 11px;
  color: var(--blue);
  text-decoration: none;
}
.custom-popup .popup-link:hover {
  text-decoration: underline;
}

/* ATTRACTION CHIPS */
.attr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

/* SCROLL REVEAL */
.rev {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s, transform 0.6s;
}
.rev.in {
  opacity: 1;
  transform: translateY(0);
}
.rev-d1 {
  transition-delay: 0.1s;
}