/* MAPA · Sauneando · estilos específicos */

.map-meta {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-soft);
  align-items: center;
}
.map-meta strong { color: var(--ember); font-family: 'Fraunces', serif; font-size: 17px; }

/* TOOLBAR · filtros */
.mapa-toolbar {
  background: var(--bg-light);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  position: sticky;
  top: 56px;
  z-index: 30;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.filter-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wood-dark);
  font-weight: 700;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.chip:hover { border-color: var(--ember); color: var(--ember); }
.chip.active {
  background: var(--ember);
  border-color: var(--ember);
  color: white;
}

/* LAYOUT mapa + sidebar */
.mapa-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  height: calc(100vh - 56px);
  min-height: 600px;
  max-height: 820px;
  border-top: 1px solid var(--line);
}
.mapa-sidebar {
  background: white;
  border-right: 1px solid var(--line);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.sidebar-head {
  position: sticky;
  top: 0;
  background: var(--bg-warm);
  padding: 12px 20px;
  font-size: 12px;
  color: var(--wood-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  z-index: 2;
}
.sidebar-head strong { color: var(--ember); font-family: 'Fraunces', serif; font-size: 15px; }
.sauna-items { padding: 4px 0; }
.sauna-item {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.12s;
}
.sauna-item:hover { background: var(--bg-warm); }
.sauna-item.is-active { background: var(--bg-warm); border-left: 3px solid var(--ember); padding-left: 17px; }
.sauna-item .si-nombre {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.25;
}
.sauna-item .si-ciudad {
  font-size: 12px;
  color: var(--wood-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 8px;
}
.sauna-item .si-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}
.sauna-item .si-tag {
  background: var(--bg-warm);
  color: var(--wood-dark);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.sauna-item .si-tag.destacado { background: var(--ember); color: white; }
.sauna-item .si-tag.loyly { background: var(--steam); color: var(--wood-dark); }
.sauna-item .si-ritual {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
  font-style: italic;
}

.mapa-canvas { width: 100%; height: 100%; }

/* MapLibre popup override */
.maplibregl-popup-content {
  border-radius: 14px !important;
  padding: 16px 18px 18px !important;
  font-family: 'Inter', sans-serif;
  box-shadow: var(--shadow-lg) !important;
  border: 1px solid var(--line);
  min-width: 240px;
}
.maplibregl-popup-tip { border-top-color: white !important; }
.popup-foto {
  width: calc(100% + 36px);
  height: 140px;
  margin: -16px -18px 14px;
  background-color: var(--bg-warm);
  background-size: cover;
  background-position: center;
  border-radius: 12px 12px 0 0;
}
.popup-nombre {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.2;
}
.popup-ciudad {
  font-size: 11px;
  color: var(--wood-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 10px;
}
.popup-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.popup-tag {
  font-size: 10px;
  background: var(--bg-warm);
  color: var(--wood-dark);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
}
.popup-tag.destacado { background: var(--ember); color: white; }
.popup-ritual { font-size: 13px; color: var(--ink-soft); margin-bottom: 12px; line-height: 1.5; }
.popup-meta { font-size: 12px; color: var(--ink-soft); margin-bottom: 6px; }
.popup-meta strong { color: var(--ink); }
.popup-cta {
  display: inline-block;
  background: var(--ember);
  color: white !important;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
  text-decoration: none;
}
.popup-cta:hover { background: var(--wood-dark); }

/* Custom marker · wrap externo (posicionado por MapLibre) + inner (visual + hover) */
.sauna-marker-wrap {
  width: 22px;
  height: 22px;
  cursor: pointer;
  display: block;
}
.sauna-marker {
  width: 100%;
  height: 100%;
  background: var(--ember);
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(43, 32, 24, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  transform-origin: center center;
  will-change: transform;
}
.sauna-marker-wrap:hover .sauna-marker {
  transform: scale(1.3);
  box-shadow: 0 4px 12px rgba(200, 71, 43, 0.5);
}
.sauna-marker-wrap.destacado { width: 26px; height: 26px; }
.sauna-marker-wrap.destacado .sauna-marker {
  background: linear-gradient(135deg, #c8472b, #e07a4d);
  border-width: 2.5px;
}
.sauna-marker-wrap.tipo-banya .sauna-marker { background: #8b5a3c; }
.sauna-marker-wrap.tipo-temazcal .sauna-marker { background: #6f4e37; }
.sauna-marker-wrap.tipo-hammam .sauna-marker { background: #b8956b; }
.sauna-marker-wrap.tipo-tradicional .sauna-marker { background: var(--ember); }
.sauna-marker-wrap.tipo-infrarroja .sauna-marker { background: #d96b3d; }
.sauna-marker-wrap.tipo-turca .sauna-marker { background: #a8743f; }
.sauna-marker-wrap.tipo-mixta .sauna-marker { background: #8a4f30; }

/* Close button del popup · grande y visible */
.maplibregl-popup-close-button {
  width: 28px !important;
  height: 28px !important;
  font-size: 22px !important;
  line-height: 1 !important;
  color: var(--wood-dark) !important;
  background: var(--bg-warm) !important;
  border-radius: 50% !important;
  right: 10px !important;
  top: 10px !important;
  border: 1px solid var(--line) !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 400 !important;
  cursor: pointer;
  transition: all 0.15s;
}
.maplibregl-popup-close-button:hover {
  background: var(--ember) !important;
  color: white !important;
  border-color: var(--ember) !important;
}

/* Chips de elementos · sidebar + popup */
.elementos-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 8px 0 10px;
}
.elemento-chip {
  font-size: 10.5px;
  background: var(--bg-light);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
}
.elemento-chip.highlight {
  background: var(--steam);
  border-color: var(--wood-light);
  color: var(--wood-dark);
  font-weight: 600;
}

/* FOOTER */
.site-footer {
  background: var(--bg-warm);
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-logo {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-style: italic;
  font-size: 24px;
  color: var(--ember);
  margin-bottom: 12px;
}
.footer-tagline { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.footer-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wood-dark);
  font-weight: 700;
  margin-bottom: 12px;
}
.site-footer a {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 3px 0;
}
.site-footer a:hover { color: var(--ember); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--wood-dark);
}

/* MOBILE */
@media (max-width: 880px) {
  .mapa-layout {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
  }
  .mapa-sidebar {
    order: 2;
    border-right: 0;
    border-top: 1px solid var(--line);
    max-height: 480px;
  }
  .mapa-canvas {
    order: 1;
    height: 520px;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}
