/* ============================================
   EXPLORADOR DE DESTINO — Estilos específicos
   Depende de style.css (tokens, nav, botones,
   tipografía, layout, reveal)
   ============================================ */

/* ── PAGE HEADER ───────────────────────────────────────────────────────── */
.page-header {
  padding: 7rem 0 3rem;
  background-color: var(--cream);
  background-image: radial-gradient(circle, #C0B49E 1px, transparent 1px);
  background-size: 22px 22px;
  text-align: center;
}
.page-header p {
  max-width: 520px;
  margin: 0.75rem auto 0;
}

/* ── WRAPPER PRINCIPAL ─────────────────────────────────────────────────── */
.explorer-wrap {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  height: calc(100vh - 5rem);
  max-height: 680px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  margin: -2rem auto 0;
  max-width: 1160px;
}

/* ── SIDEBAR ───────────────────────────────────────────────────────────── */
.sidebar {
  background: var(--white);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  overflow: hidden;
}

.sidebar-top {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-top h2 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.sidebar-top p {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── FILTROS DE CAPA ───────────────────────────────────────────────────── */
.layer-filters {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.layer-btn {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5625rem 0.875rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--white);
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all 0.18s;
  text-align: left;
}

.layer-btn .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.layer-btn:not(.active) .dot {
  border: 2px solid var(--border);
  background: transparent;
}
.layer-btn.active .dot {
  background: rgba(247, 245, 240, 0.7);
}

/* Colores activos por categoría */
.layer-btn.active {
  border-color: transparent;
  color: var(--white);
}
.layer-btn.active.cat-restaurant { background: #B56A4D; }
.layer-btn.active.cat-mercado    { background: #2F5D50; }
.layer-btn.active.cat-mirador    { background: #5E7A5C; }
.layer-btn.active.cat-circuito   { background: #8B5E3C; }
.layer-btn.active.cat-hotel      { background: #1E3D34; }

/* ── PANEL POI ─────────────────────────────────────────────────────────── */
.poi-panel {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}

.poi-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--muted);
  gap: 0.75rem;
  padding: 2rem 1rem;
}
.poi-empty i {
  font-size: 2rem;
  color: var(--border);
}
.poi-empty p {
  font-size: 0.8125rem;
  line-height: 1.55;
}

.poi-card { display: none; }
.poi-card.active { display: block; }

.poi-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.poi-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 100px;
  margin-bottom: 0.625rem;
  color: var(--white);
}

.poi-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.375rem;
}

.poi-dist {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.poi-desc {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 1.125rem;
}

.poi-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--ink);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  width: 100%;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.poi-cta:hover { background: #1E3D34; }

/* ── DISTANCIAS RÁPIDAS ────────────────────────────────────────────────── */
.dist-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--border);
}

.dist-badge {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.72rem;
  color: var(--ink-soft);
  background: var(--cream);
  border-radius: 100px;
  padding: 0.25rem 0.625rem;
}
.dist-badge i {
  font-size: 0.65rem;
  color: var(--gold);
}

/* ── MAPA ──────────────────────────────────────────────────────────────── */
#map {
  flex: 1;
  z-index: 1;
}

/* Leaflet overrides — temperatura de paleta */
.leaflet-container {
  font-family: var(--font-body);
  background: #EDE8DE;
}
.leaflet-control-zoom a {
  color: var(--ink) !important;
  border-color: var(--border) !important;
}
.leaflet-control-zoom a:hover {
  background: var(--cream) !important;
}
.leaflet-control-attribution {
  font-size: 10px !important;
}

/* ── MARCADORES CUSTOM ─────────────────────────────────────────────────── */
.custom-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 3px 10px rgba(47, 93, 80, 0.3);
  border: 2px solid rgba(247, 245, 240, 0.8);
}
.custom-marker i {
  transform: rotate(45deg);
  font-size: 13px;
  color: var(--white);
}

.custom-marker.hotel-pin {
  background: #1E3D34;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transform: none;
  border: 3px solid var(--white);
}
.custom-marker.hotel-pin i {
  transform: none;
  font-size: 16px;
}

/* ── POPUP LEAFLET ─────────────────────────────────────────────────────── */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-float) !important;
  border: none !important;
  padding: 0 !important;
  overflow: hidden;
}
.leaflet-popup-content {
  margin: 0 !important;
  width: 220px !important;
}
.leaflet-popup-tip-container { display: none; }
.leaflet-popup-close-button {
  color: var(--white) !important;
  font-size: 18px !important;
  right: 8px !important;
  top: 6px !important;
  z-index: 10;
}

.popup-inner img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}
.popup-body { padding: 0.875rem; }

.popup-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
  color: var(--white);
  display: inline-block;
  margin-bottom: 0.375rem;
}
.popup-name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.popup-dist {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.625rem;
}
.popup-btn {
  display: block;
  text-align: center;
  background: var(--ink);
  color: var(--white);
  border-radius: 100px;
  padding: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.popup-btn:hover { background: #1E3D34; }

/* ── NOTA DEMO ─────────────────────────────────────────────────────────── */
.demo-note {
  background: var(--cream);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.875rem 1.25rem;
  margin: 2.5rem auto;
  max-width: 1160px;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.demo-note i {
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.demo-note p {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.demo-note strong { color: var(--ink); }