/* Full-viewport map — sits flush under nav */
.map-section {
  height: calc(100vh - 72px);
  background: var(--dark);
  position: relative;
}

#map {
  width: 100%; height: 100%;
}

/* Slight warmth on tiles to complement the palette */
.leaflet-tile-pane { filter: saturate(0.8) sepia(0.15); }

/* Label overlay */
.map-label {
  position: absolute; top: 32px; left: 50%; transform: translateX(-50%);
  z-index: 500; text-align: center; pointer-events: none;
  background: rgba(253,250,244,0.92);
  border: 1px solid rgba(58,32,16,0.15);
  padding: 16px 32px;
}
.map-label .eyebrow {
  font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 4px;
  color: var(--gold); text-transform: uppercase; margin-bottom: 4px;
}
.map-label h2 {
  font-family: 'Cormorant Garamond', serif; font-size: 32px;
  font-weight: 300; color: var(--text); margin: 0;
}

/* Custom pin markers */
.pin-marker {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--crimson, #7B1C1C);
  border: 2px solid var(--gold, #C9A84C);
  box-shadow: 0 0 0 4px rgba(123,28,28,0.3), 0 0 12px rgba(201,168,76,0.4);
  animation: pulse 2s ease-in-out infinite;
  cursor: pointer;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(123,28,28,0.3), 0 0 12px rgba(201,168,76,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(123,28,28,0.15), 0 0 20px rgba(201,168,76,0.6); }
}

/* Leaflet popup — light style */
.leaflet-popup-content-wrapper {
  background: var(--white, #FDFAF4) !important;
  border: 1px solid rgba(58,32,16,0.15) !important;
  border-radius: 0 !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18) !important;
  padding: 0 !important;
}
.leaflet-popup-content {
  margin: 0 !important;
  font-family: 'Cormorant Garamond', serif !important;
  color: var(--text, #3A2010) !important;
  min-width: 200px;
}
.leaflet-popup-tip { background: var(--white, #FDFAF4) !important; }
.leaflet-popup-close-button { display: none !important; }

.popup-inner { padding: 18px 20px; }
.popup-type {
  font-family: 'Cinzel', serif; font-size: 8px; letter-spacing: 2px;
  color: var(--gold, #C9A84C); text-transform: uppercase; margin-bottom: 6px;
}
.popup-title {
  font-family: 'Cormorant Garamond', serif; font-size: 18px;
  font-weight: 600; color: var(--text, #3A2010); margin-bottom: 6px; line-height: 1.3;
}
.popup-location {
  font-size: 13px; color: var(--text-light, #6B4C35); margin-bottom: 14px;
}
.popup-link {
  display: inline-block;
  font-family: 'Cinzel', serif; font-size: 8px; letter-spacing: 2px;
  color: var(--crimson, #7B1C1C); text-decoration: none; text-transform: uppercase;
  border-bottom: 1px solid rgba(123,28,28,0.3); padding-bottom: 2px;
  transition: border-color 0.2s;
}
.popup-link:hover { border-color: var(--crimson, #7B1C1C); }

/* Leaflet attribution */
.leaflet-control-attribution {
  background: rgba(255,255,255,0.7) !important;
  color: rgba(58,32,16,0.4) !important;
  font-size: 10px !important;
}
.leaflet-control-attribution a { color: rgba(123,28,28,0.5) !important; }
.leaflet-popup-content a { color: var(--crimson); }
.leaflet-popup-content a:hover { color: var(--crimson-light); }

/* Multi-profile marker badge */
.pin-marker-multi {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--crimson, #7B1C1C);
  border: 2px solid var(--gold, #C9A84C);
  box-shadow: 0 0 0 4px rgba(123,28,28,0.3);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif; font-size: 9px; font-weight: 700;
  color: var(--cream, #F5EFE0);
  cursor: pointer;
  animation: pulse 2s ease-in-out infinite;
}

/* Multi-profile popup */
.popup-profile {
  padding: 10px 0;
  border-bottom: 1px solid rgba(58,32,16,0.08);
}
.popup-profile:last-child { border-bottom: none; }
.popup-divider { height: 1px; background: rgba(58,32,16,0.1); margin: 8px 0; }