﻿/* ============================================================
   IMPERDIBLES — Estilos del Mapa Interactivo Aburrá Sur
   ============================================================ */

/* Contenedor del mapa */
#mapa-interactivo-aburra {
  width: 100%;
  height: 480px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  z-index: 1;
  border: 2px solid rgba(0,0,0,0.08);
  background-color: #e8e0d5;  /* color crema claro mientras cargan los tiles */
}

/* Sección wrapper del mapa */
.section-mapa-interactivo {
  background: var(--crema-oscura, #f2ede6);
  padding: 48px 0 56px;
}

.section-mapa-interactivo .mapa-header {
  text-align: center;
  margin-bottom: 28px;
}

.section-mapa-interactivo .mapa-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--negro, #1a1a1a);
  margin-bottom: 8px;
}

.section-mapa-interactivo .mapa-header p {
  font-size: 1rem;
  color: #6b5e4e;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Leyenda de municipios */
.mapa-leyenda {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.mapa-leyenda-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #3b2f24;
  background: #fff;
  padding: 5px 14px;
  border-radius: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.mapa-leyenda-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.14);
}

.mapa-leyenda-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Tooltip del mapa */
.mapa-tooltip-container {
  background: rgba(30, 20, 10, 0.92) !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 0 !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
}

.mapa-tooltip-container::before {
  display: none !important;
}

.mapa-tooltip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 8px 14px;
  gap: 2px;
}

.mapa-tooltip strong {
  font-size: 0.9rem;
  color: #fff;
  font-weight: 700;
}

.mapa-tooltip span {
  font-size: 0.75rem;
  color: #f5c518;
}

/* ── PINES Y POPUPS DE EXPERIENCIAS (HITO 1) ───────────────── */
.marker-pin-custom {
  background: #1a2e1a;
  border: 2px solid #f5c518;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.marker-pin-custom:hover, .marker-pin-active {
  transform: scale(1.3);
  background: #f5c518;
  color: #1a1a1a;
  border-color: #1a1a1a;
  z-index: 1000 !important;
}

.popup-exp-card {
  width: 220px;
  border-radius: 12px;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

.popup-exp-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.popup-exp-body {
  padding: 10px 12px 12px;
  background: #fff;
}

.popup-exp-muni {
  font-size: 0.65rem;
  font-weight: 700;
  color: #C8793A;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.popup-exp-titulo {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.25;
  margin-bottom: 8px;
}

.popup-exp-btn {
  display: block;
  width: 100%;
  padding: 6px 0;
  background: #1a2e1a;
  color: #fff !important;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  border-radius: 20px;
  text-decoration: none !important;
  transition: background 0.2s;
}

.popup-exp-btn:hover {
  background: #2d4a1e;
}

/* Customizar Leaflet Popup Container */
.leaflet-popup-content-wrapper {
  padding: 0 !important;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25) !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  line-height: 1.4 !important;
}

.leaflet-popup-tip {
  background: #fff !important;
}

/* Hint de interacción */
.mapa-hint {
  text-align: center;
  margin-top: 14px;
  font-size: 0.8rem;
  color: #9e8672;
  font-style: italic;
}

@media (max-width: 768px) {
  #mapa-interactivo-aburra {
    height: 320px;
    border-radius: 10px;
  }
  .section-mapa-interactivo {
    padding: 32px 0 40px;
  }
  .section-mapa-interactivo .mapa-header h2 {
    font-size: 1.5rem;
  }
}
