/* ─── NEST Location Map Widget ──────────────────────────────────────────────── */

.nest-map-heading {
    margin-bottom: 1rem;
}

/* Map pane full-width when list is hidden */
.nest-map-pane--full {
    width: 100% !important;
}

/* Hide mobile toggle when list panel is not shown */
.nest-map-area:not(:has(.nest-map-list)) ~ .nest-map-mobile-toggle,
.nest-map-wrapper:has(.nest-map-pane--full) .nest-map-mobile-toggle {
    display: none !important;
}

/* ── Outer wrapper ──────────────────────────────────────────────────────────── */

.nest-map-area {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    overflow: hidden;
    border: 1px solid #e1e1e1;
}

/* ── List panel ─────────────────────────────────────────────────────────────── */

.nest-map-list {
    width: 310px;           /* overridden by Elementor slider control */
    height: 720px;          /* overridden by Elementor slider control */
    flex-shrink: 0;
    overflow-y: auto;
    border-right: 1px solid #e1e1e1;
    background: #ffffff;
    -webkit-overflow-scrolling: touch;
}

.nest-map-list-header {
    background-color: #cc0033;  /* overridden by Elementor colour control */
    color: #ffffff;
    padding: 18px 20px;
    font-size: 1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.nest-map-list-inner {
    padding: 0;
}

.nest-map-venue-item {
    padding: 16px 16px 16px 18px;
    border-bottom: 1px solid #ebebeb;
}

.nest-map-venue-item:last-child {
    border-bottom: none;
}

.nest-map-venue-title {
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 4px;
}

.nest-map-venue-title a {
    color: #cc0033;         /* overridden by Elementor colour control */
    text-decoration: none;
}

.nest-map-venue-title a:hover {
    text-decoration: underline;
}

.nest-map-venue-address {
    font-size: 0.85em;
    color: #555555;
    line-height: 1.5;
}

.nest-map-venue-address div {
    margin: 0;
}

.nest-map-cta-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.8em;
    font-weight: 600;
    color: #cc0033;         /* overridden by Elementor colour control */
    text-decoration: none;
}

.nest-map-cta-link:hover {
    text-decoration: underline;
}

/* ── Map pane ───────────────────────────────────────────────────────────────── */

.nest-map-pane {
    flex: 1 1 auto;
    height: 720px;          /* overridden by Elementor slider control */
    position: relative;
}

.nest-map-canvas {
    width: 100%;
    height: 100%;
    padding-bottom: 720px;  /* overridden by Elementor slider control */
    position: relative;
}

/* ── Error / empty states ───────────────────────────────────────────────────── */

.nest-map-error,
.nest-map-empty {
    padding: 1rem;
    background: #fff8f0;
    border-left: 4px solid #cc0033;
    color: #555555;
    font-size: 0.9rem;
    border-radius: 2px;
}

/* ── Info window link ───────────────────────────────────────────────────────── */

.nest-map-info-link {
    color: #cc0033;
    font-weight: 600;
    text-decoration: none;
}

.nest-map-info-link:hover {
    text-decoration: underline;
}

/* ── Mobile toggle buttons ──────────────────────────────────────────────────── */

.nest-map-mobile-toggle {
    display: none;
    width: 100%;
    overflow: hidden;
}

.nest-map-toggle-btn {
    display: inline-block;
    width: 50%;
    padding: 8px 10px;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.85em;
    font-weight: 600;
    background: #e1e1e1;
    color: #cc0033;
    cursor: pointer;
    box-sizing: border-box;
    user-select: none;
}

.nest-map-toggle-btn.active {
    background: #cc0033;
    color: #ffffff;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 767px) {

    .nest-map-mobile-toggle {
        display: none !important;
    }

    .nest-map-area {
        flex-direction: column;
    }

    .nest-map-list {
        display: none !important;
    }

    .nest-map-pane {
        width: 100% !important;
        height: 480px !important;
        overflow: visible !important;
        position: relative;
    }

    .nest-map-canvas {
        height: 480px;
        padding-bottom: 0 !important;
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
    }
}
