/* HERO */
.lug-hero {
    height: var(--hero-h);
    background-image: url('../assets/banners/vado_de_panaholma.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.lug-hero-overlay {
    width: 100%;
    padding: 4rem var(--hero-pad-x);
    background: linear-gradient(to top, rgba(40,15,10,0.75) 0%, transparent 100%);
    color: #fff;
}

.lug-hero-label {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.72rem;
    font-weight: 700;
    margin: 0 0 0.7rem;
    color: var(--salmon);
}

.lug-hero-title {
    font-family: var(--font-head);
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 400;
    margin: 0;
    line-height: 1.12;
    color: #fff;
    text-shadow: 0 3px 24px rgba(0,0,0,0.35);
}

/* SHARED SECTION */
.lug-section {
    padding: var(--section-y) 0;
}

.lug-container {
    width: var(--content-w);
    margin: 0 auto;
}

/* Excepción deliberada: el mapa necesita más ancho que el eje de texto */
.lug-container--wide {
    width: 90%;
    max-width: 1400px;
}

.lug-section-tag {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--bordo);
    margin-bottom: 0.9rem;
}

.lug-section-title {
    font-family: var(--font-head);
    font-size: clamp(1.9rem, 3.8vw, 2.8rem);
    font-weight: 400;
    color: var(--bordo);
    margin: 0 0 2rem;
    line-height: 1.18;
}

.lug-lead {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--muted);
    max-width: 68ch;
    margin: 0;
}

/* MAP SECTION */
.lug-map-section {
    border-top: 1px solid rgba(119,26,28,0.1);
    border-bottom: 1px solid rgba(119,26,28,0.1);
    background: #fff;
}

.lug-filters-wrap {
    padding: 1.75rem 0 1.25rem;
}

.lug-filters {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.lug-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 1.1rem;
    border: 1.5px solid #ccc;
    border-radius: 999px;
    background: transparent;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.lug-filter:hover,
.lug-filter.active {
    border-color: var(--bordo);
    color: var(--bordo);
    background: rgba(119,26,28,0.05);
}

.lug-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.lug-dot--naturaleza { background: #3a7d44; }
.lug-dot--cultura    { background: #c77b2e; }
.lug-dot--pueblos    { background: #2d6a9f; }
.lug-dot--recreacion { background: #9c3a7d; }
.lug-dot--salud      { background: #d1495b; }
.lug-dot--servicios  { background: #4a7c7e; }

#map {
    width: 100%;
    height: 85vh;
    min-height: 600px;
}

/* Fallback cuando el mapa no carga */
.map-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0ece8;
    min-height: 520px;
}

.map-fallback p {
    color: #888;
    font-size: .9rem;
}

.map-fallback--error p {
    color: var(--bordo);
}

/* Contenedor del marcador (punto + etiqueta) */
.map-marker-wrap {
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* Etiquetas permanentes de los marcadores */
.map-label {
    margin-left: 6px;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 1px 5px rgba(0,0,0,0.18);
    border-radius: 4px;
    padding: 3px 8px;
    font-family: 'MontserratCustom', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #222;
    white-space: nowrap;
    pointer-events: none;
}

.map-label--home {
    color: var(--bordo);
}

/* Marcadores del mapa */
.map-marker {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.map-marker--home {
    width: 18px;
    height: 18px;
    background: var(--bordo);
    box-shadow: 0 0 0 3px #fff, 0 1px 6px rgba(0,0,0,.35);
}

/* CTA */
.lug-cta-section {
    padding: var(--section-y) 0;
    text-align: center;
    border-top: 1px solid rgba(119,26,28,0.15);
}

.lug-cta-text {
    font-family: var(--font-head);
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--bordo);
    margin: 0 0 2rem;
}

.lug-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.lug-cta-btn {
    display: inline-block;
    background: var(--bordo);
    color: var(--salmon);
    text-decoration: none;
    padding: 0.9rem 2.4rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 10px 26px rgba(119, 26, 28, 0.22);
    transition: background 0.25s ease, transform 0.25s ease;
}

.lug-cta-btn:hover {
    background: var(--bordo-dark);
    color: var(--salmon);
    transform: translateY(-3px);
    text-decoration: none;
}

.lug-cta-btn--outline {
    background: transparent;
    border: 2px solid var(--bordo);
    color: var(--bordo);
    box-shadow: none;
}

.lug-cta-btn--outline:hover {
    background: var(--bordo);
    color: var(--salmon);
}

/* Popup del mapa */
.lug-popup { min-width: 200px; }

.lug-popup-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.lug-popup-cat {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.lug-popup-dist {
    font-size: .75rem;
    color: #aaa;
}

.lug-popup-title {
    font-size: .95rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 .5rem;
    line-height: 1.3;
}

.lug-popup-desc {
    font-size: .82rem;
    line-height: 1.65;
    color: #555;
    margin: 0 0 .85rem;
}

.lug-popup-nav {
    display: block;
    background: var(--bordo);
    color: #fff !important;
    text-decoration: none !important;
    padding: .45rem 1rem;
    border-radius: 4px;
    font-size: .82rem;
    font-weight: 700;
    text-align: center;
    transition: background 0.2s;
}

.lug-popup-nav:hover {
    background: #5a1315 !important;
    text-decoration: none !important;
}

/* Override estilos por defecto de MapLibre en links */
.maplibregl-popup-content a.lug-popup-nav { color: #fff !important; }

/* Ajustes del popup de MapLibre */
.maplibregl-popup-content {
    padding: 14px 16px;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.maplibregl-popup-close-button {
    font-size: 1.1rem;
    color: #999;
    padding: 0 6px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .lug-hero-overlay {
        padding: 3rem var(--hero-pad-x);
    }

    .lug-filters-wrap {
        padding: 1.25rem 0 1rem;
    }

    #map {
        height: 70vh;
        min-height: 420px;
    }

}
