
:root {
    --festejos-map-border: #e6e9ef;
    --festejos-map-text: #182233;
    --festejos-map-muted: #687386;
    --festejos-map-bg: #f6f8fb;
    --festejos-map-card: #ffffff;
    --festejos-map-accent: #1769aa;
}

.festejos-map-page {
    background: var(--festejos-map-bg);
    min-height: 70vh;
}

.festejos-map-shell {
    width: min(1600px, 100%);
    margin: 0 auto;
    padding: 34px 24px 42px;
    color: var(--festejos-map-text);
}

.festejos-map-toolbar {
    background: var(--festejos-map-card);
    border: 1px solid var(--festejos-map-border);
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: 0 8px 30px rgba(25, 35, 55, .06);
}

.festejos-map-heading {
    margin-bottom: 18px;
}

.festejos-map-kicker {
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--festejos-map-accent);
    margin-bottom: 6px;
}

.festejos-map-heading h1 {
    margin: 0 0 4px;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.05;
}

.festejos-map-heading p {
    margin: 0;
    color: var(--festejos-map-muted);
}

.festejos-map-filters {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) minmax(170px, 1fr) minmax(170px, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.festejos-map-filters label {
    display: grid;
    gap: 6px;
    margin: 0;
}

.festejos-map-filters label > span {
    font-size: 12px;
    font-weight: 700;
    color: var(--festejos-map-muted);
}

.festejos-map-filters input,
.festejos-map-filters select {
    width: 100%;
    height: 44px;
    border: 1px solid #d7dce5;
    border-radius: 10px;
    background: #fff;
    color: var(--festejos-map-text);
    padding: 0 12px;
    outline: 0;
}

.festejos-map-filters input:focus,
.festejos-map-filters select:focus {
    border-color: var(--festejos-map-accent);
    box-shadow: 0 0 0 3px rgba(23,105,170,.12);
}

#festejos-map-clear {
    height: 44px;
    border: 0;
    border-radius: 10px;
    padding: 0 18px;
    background: #182233;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.festejos-map-layout {
    display: grid;
    grid-template-columns: minmax(330px, 38%) 1fr;
    min-height: 640px;
    background: #fff;
    border: 1px solid var(--festejos-map-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(25, 35, 55, .06);
}

.festejos-map-list-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-right: 1px solid var(--festejos-map-border);
    background: #fff;
}

.festejos-map-summary {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--festejos-map-border);
    color: var(--festejos-map-muted);
}

.festejos-map-summary strong {
    font-size: 20px;
    color: var(--festejos-map-text);
}

.festejos-map-list {
    overflow-y: auto;
    padding: 10px;
    max-height: 640px;
}

.festejos-event-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: .16s ease;
}

.festejos-event-card:hover,
.festejos-event-card.is-active {
    border-color: #cbd7e6;
    background: #f8fbff;
    transform: translateY(-1px);
}

.festejos-event-thumb {
    width: 92px;
    height: 92px;
    border-radius: 10px;
    object-fit: cover;
    background: #eef2f7;
}

.festejos-event-thumb--placeholder {
    display: grid;
    place-items: center;
    font-size: 26px;
    font-weight: 800;
    color: #9aa6b6;
}

.festejos-event-body {
    min-width: 0;
}

.festejos-event-category {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--festejos-map-accent);
}

.festejos-event-title {
    margin: 3px 0 6px;
    font-size: 16px;
    line-height: 1.2;
    color: var(--festejos-map-text);
}

.festejos-event-meta {
    margin: 2px 0;
    color: var(--festejos-map-muted);
    font-size: 13px;
    line-height: 1.35;
}

.festejos-event-link {
    display: inline-block;
    margin-top: 5px;
    font-size: 12px;
    font-weight: 800;
    color: var(--festejos-map-accent);
    text-decoration: none;
}

.festejos-event-no-pin {
    display: inline-block;
    margin-top: 5px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #f0f2f5;
    color: #747f8e;
    font-size: 11px;
}

.festejos-map-canvas-wrap {
    position: relative;
    min-width: 0;
    min-height: 640px;
}

#festejos-map-canvas {
    width: 100%;
    height: 100%;
    min-height: 640px;
    background: #e8edf3;
}

.festejos-map-empty {
    position: absolute;
    z-index: 500;
    left: 50%;
    top: 24px;
    transform: translateX(-50%);
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,.96);
    border: 1px solid var(--festejos-map-border);
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
    font-weight: 700;
}

.festejos-popup {
    min-width: 210px;
}

.festejos-popup strong {
    display: block;
    font-size: 15px;
    margin-bottom: 5px;
}

.festejos-popup p {
    margin: 3px 0;
    font-size: 12px;
    line-height: 1.4;
}

.festejos-popup a {
    display: inline-block;
    margin-top: 6px;
    font-weight: 800;
}

@media (max-width: 980px) {
    .festejos-map-shell {
        padding: 20px 12px 30px;
    }

    .festejos-map-filters {
        grid-template-columns: 1fr 1fr;
    }

    #festejos-map-clear {
        width: 100%;
    }

    .festejos-map-layout {
        grid-template-columns: 1fr;
    }

    .festejos-map-list-panel {
        border-right: 0;
        border-bottom: 1px solid var(--festejos-map-border);
    }

    .festejos-map-list {
        max-height: 420px;
    }

    .festejos-map-canvas-wrap,
    #festejos-map-canvas {
        min-height: 520px;
    }
}

@media (max-width: 620px) {
    .festejos-map-filters {
        grid-template-columns: 1fr;
    }

    .festejos-map-toolbar {
        padding: 16px;
    }

    .festejos-event-card {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .festejos-event-thumb {
        width: 76px;
        height: 76px;
    }

    .festejos-map-canvas-wrap,
    #festejos-map-canvas {
        min-height: 430px;
    }
}
