/* ============================================================
   FS SEDES — Estilos del popup de mapa y mejoras del grid
   Frontera Sur Festival
   ============================================================ */

/* ── OVERLAY ──────────────────────────────────────────────── */
.fs-mapa-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.fs-mapa-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* ── MODAL ────────────────────────────────────────────────── */
.fs-mapa-modal {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}

.fs-mapa-overlay.is-open .fs-mapa-modal {
    transform: translateY(0) scale(1);
}

/* ── CERRAR ───────────────────────────────────────────────── */
.fs-mapa-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.fs-mapa-close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

/* ── HEADER ───────────────────────────────────────────────── */
.fs-mapa-header {
    padding: 32px 32px 16px;
}

.fs-mapa-label {
    font-family: 'Nunito', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: #C80C26;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.fs-mapa-title {
    font-family: 'Nunito', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 8px;
    line-height: 1.2;
}

.fs-mapa-address {
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.5;
}

/* ── MAPA ─────────────────────────────────────────────────── */
.fs-mapa-embed-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.fs-mapa-iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
    filter: grayscale(20%) invert(5%);
}

/* ── ACCIONES ─────────────────────────────────────────────── */
.fs-mapa-actions {
    display: flex;
    gap: 10px;
    padding: 20px 32px 28px;
    flex-wrap: wrap;
}

.fs-mapa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.fs-mapa-btn--whatsapp {
    background: #25D366;
    color: #fff;
    border-color: #25D366;
}

.fs-mapa-btn--whatsapp:hover {
    background: transparent;
    color: #25D366;
}

.fs-mapa-btn--copy {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
}

.fs-mapa-btn--copy:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.05);
}

.fs-mapa-btn--gmaps {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    margin-left: auto;
}

.fs-mapa-btn--gmaps:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* ── LINKS DE SEDES EN SIDEBAR ────────────────────────────── */
.fs-sede-link {
    display: block;
    color: #959CA0 !important;
    text-decoration: none !important;
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    padding: 4px 0;
    line-height: 1.6;
    transition: color 0.2s ease, padding-left 0.2s ease;
    border-left: 2px solid transparent;
    padding-left: 0;
}

.fs-sede-link:hover {
    color: #fff !important;
    padding-left: 8px;
    border-left-color: #C80C26;
}

.fs-sede-link::after {
    content: ' ↗';
    font-size: 10px;
    opacity: 0.4;
    transition: opacity 0.2s;
}

.fs-sede-link:hover::after {
    opacity: 1;
}

/* ── MEJORAS DEL GRID DE PELÍCULAS ───────────────────────── */

/* Forzar que los ítems del post-grid sean más anchos (mín 320px)
   Esto convierte las 6 columnas actuales en ~3-4 columnas */
.post-grid-layout-wrap .item,
.post-grid-items .item,
[class*="post-grid"] .item {
    min-width: 320px !important;
}

/* Dar más espacio al contenido textual de cada tarjeta */
.post-grid-layout-wrap .layer-content,
.post-grid-items .layer-content,
[class*="post-grid"] .layer-content {
    padding: 12px 4px !important;
}

/* Títulos de las películas: más prominentes */
.post-grid-layout-wrap .element.title a,
.post-grid-items .element.title a,
[class*="post-grid"] .element.title a {
    font-size: 13px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
}

/* Excerpt/metadata con más respiro */
.post-grid-layout-wrap .element.excerpt,
.post-grid-items .element.excerpt,
[class*="post-grid"] .element.excerpt {
    font-size: 11.5px !important;
    line-height: 1.6 !important;
    margin-top: 6px !important;
    color: #959CA0 !important;
}

/* Imágenes: mayor alto mínimo */
.post-grid-layout-wrap .layer-media img,
.post-grid-items .layer-media img,
[class*="post-grid"] .layer-media img {
    min-height: 200px !important;
    object-fit: cover !important;
}

/* Responsive: en mobile stack a 1 columna */
@media (max-width: 640px) {
    .post-grid-layout-wrap .item,
    .post-grid-items .item,
    [class*="post-grid"] .item {
        min-width: 100% !important;
        width: 100% !important;
    }
}

/* ── RESPONSIVE DEL MODAL ─────────────────────────────────── */
@media (max-width: 600px) {
    .fs-mapa-modal {
        max-height: 95vh;
    }

    .fs-mapa-header {
        padding: 24px 20px 14px;
    }

    .fs-mapa-actions {
        padding: 16px 20px 24px;
        flex-direction: column;
    }

    .fs-mapa-btn--gmaps {
        margin-left: 0;
    }
}
