/* ============================================================
   ZLS Location Switcher — Modal & Pin Styles
   ============================================================ */

/* ── Overlay ── */
.zls-switcher-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99998;
    backdrop-filter: blur(2px);
}

.zls-switcher-overlay.zls-switcher--open {
    display: block;
}

/* ── Modal ── */
.zls-switcher-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 99999;
    width: 90%;
    max-width: 560px;
    max-height: 80vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0;
}

.zls-switcher-modal.zls-switcher--open {
    display: block;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.zls-switcher-modal__inner {
    padding: 32px;
}

.zls-switcher-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.15s;
}

.zls-switcher-modal__close:hover {
    background: #f0f0f0;
    color: #333;
}

.zls-switcher-modal__heading {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 20px 0;
    padding-right: 40px;
}

/* ── Territory accordion items ── */
.zls-switcher-item {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.zls-switcher-item__header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #fff;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1a1a2e;
    transition: background 0.15s;
}

.zls-switcher-item__header:hover {
    background: #f8f8f8;
}

.zls-switcher-item__chevron {
    font-size: 20px;
    color: #888;
    transition: transform 0.2s;
    line-height: 1;
}

.zls-switcher-item__header[aria-expanded="true"] .zls-switcher-item__chevron {
    transform: rotate(90deg);
}

.zls-switcher-item__body {
    border-top: 1px solid #f0f0f0;
    padding: 8px 0;
    background: #fafafa;
}

/* ── Links inside accordion ── */
.zls-switcher-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    color: #444;
    text-decoration: none;
    transition: background 0.1s, color 0.1s;
}

.zls-switcher-link:hover {
    background: #f0f0f0;
    color: #1a1a2e;
    text-decoration: none;
}

.zls-switcher-link__icon {
    color: #999;
    font-size: 16px;
    flex-shrink: 0;
}

.zls-switcher-link--home {
    font-weight: 600;
    color: #1a1a2e;
    border-bottom: 1px solid #eee;
    margin-bottom: 4px;
}

.zls-switcher-link--book {
    margin-top: 4px;
    border-top: 1px solid #eee;
    color: var(--awb-color4, #c9a84c);
    font-weight: 600;
}

.zls-switcher-link--book:hover {
    color: var(--awb-color5, #1a1a2e);
}

/* ── Prevent body scroll when modal open ── */
body.zls-switcher-modal-open {
    overflow: hidden;
}
