/* Part of the mobile_premium cascade — see mobile_premium__focus-dive.css for the cascade header. */

/* ─── MAP SUMMARY ──────────────────────────────────── */
@media (max-width: 768px) {
    /* The map-summary content owner is the visible state; the [hidden]
       attribute on #selected-card or its descendants keeps the card
       hidden, so opacity:1 here is the declarative replacement for the
       legacy JS-side inline-style writer. */
    body.is-active[data-panel-surface='map-focus-search'] #selected-card[data-content-owner='selected-map-summary'] {
        opacity: 1;
    }

    body.is-active[data-panel-surface='map-focus-search'] .selected-empty {
        display: none;
        visibility: hidden;
        pointer-events: none;
    }

    body.is-active[data-panel-surface='map-focus-search'] #selected-map-summary[hidden] {
        display: none;
    }

    body.is-active[data-panel-surface='map-focus-search'] #selected-map-summary.selected-map-summary:not([hidden]) {
        display: flex;
        min-height: 0;
        flex-direction: column;
        gap: 8px;
        pointer-events: auto;
    }

    body.is-active[data-panel-surface='map-focus-search'] .selected-map-summary-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        padding: 0 0 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    }

    body.is-active[data-panel-surface='map-focus-search'] .selected-map-summary-main {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    body.is-active[data-panel-surface='map-focus-search'] .selected-map-summary-kicker {
        color: rgba(255, 226, 132, 0.78);
        font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
        font-size: 9px;
        font-weight: 800;
        line-height: 1.1;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    body.is-active[data-panel-surface='map-focus-search'] #selected-map-summary-name {
        margin: 0;
        color: rgba(240, 255, 252, 0.98);
        font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
        font-size: 16px;
        font-weight: 800;
        line-height: 1.12;
        letter-spacing: 0;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    body.is-active[data-panel-surface='map-focus-search'] .selected-map-summary-what {
        color: rgba(207, 225, 222, 0.82);
        font-size: 11px;
        line-height: 1.25;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    body.is-active[data-panel-surface='map-focus-search'] .selected-map-summary-role {
        max-width: 118px;
        padding: 4px 8px;
        border: 1px solid rgba(var(--color-primary-tint-rgb), 0.22);
        border-radius: 999px;
        color: rgba(var(--color-primary-tint-rgb), 0.9);
        background: rgba(var(--color-primary-tint-rgb), 0.06);
        font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
        font-size: 8px;
        font-weight: 800;
        line-height: 1.1;
        letter-spacing: 0.04em;
        text-align: center;
        text-transform: uppercase;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    body.is-active[data-panel-surface='map-focus-search'] .selected-map-summary-match {
        padding: 8px 9px;
        max-height: 64px;
        border-radius: 10px;
        background: rgba(var(--color-primary-tint-rgb), 0.06);
        border: 1px solid rgba(var(--color-primary-tint-rgb), 0.16);
        overflow: hidden;
    }

    body.is-active[data-panel-surface='map-focus-search'] .selected-map-summary-match-label {
        margin-bottom: 3px;
        color: rgba(255, 226, 132, 0.72);
        font-size: 8px;
        line-height: 1.1;
        letter-spacing: 0.08em;
    }

    body.is-active[data-panel-surface='map-focus-search'] .selected-map-summary-match-copy {
        display: -webkit-box;
        color: rgba(230, 243, 240, 0.86);
        font-size: 10px;
        line-height: 1.28;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}
