/* ── Unit status colours ──────────────────────────────────────────────────── */
.sitemap-unit { cursor: pointer; transition: opacity 0.2s; }
.sitemap-unit:hover { opacity: 0.8; }
.status-available   { fill: #568EBF; }
.status-unavailable { fill: #DEDEDE; cursor: default !important; }
.status-reserved    { fill: #F1BF5E; cursor: default !important; }
.status-model       { fill: #63732A; }

/* ── Desktop popover ──────────────────────────────────────────────────────── */
.sitemap-popup {
    position: absolute;
    z-index: 9999;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 1.25rem 1.5rem 1.5rem;
    width: 280px;
    text-align: center;
    --arrow-left: 50%;
}

/* Arrow pointing down (popover is above the unit) */
.sitemap-popup[data-arrow="down"]::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: var(--arrow-left);
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-bottom: none;
    border-top-color: #fff;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}

/* Arrow pointing up (popover is below the unit) */
.sitemap-popup[data-arrow="up"]::after {
    content: '';
    position: absolute;
    top: -10px;
    left: var(--arrow-left);
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-top: none;
    border-bottom-color: #fff;
    filter: drop-shadow(0 -2px 2px rgba(0,0,0,0.1));
}

/* ── Mobile backdrop ──────────────────────────────────────────────────────── */
.sitemap-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

/* ── Mobile bottom sheet ──────────────────────────────────────────────────── */
.sitemap-bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
    padding: 0.75rem 1.5rem 2.5rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sitemap-bottom-sheet.is-open {
    transform: translateY(0);
}

.sitemap-sheet-handle {
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 0 auto 1.25rem;
}

/* ── Shared content styles ────────────────────────────────────────────────── */
.sitemap-popup h3,
.sitemap-bottom-sheet h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.sitemap-popup p,
.sitemap-bottom-sheet p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.sitemap-popup-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: #888;
    padding: 0;
}

.sitemap-popup-close:hover { color: #000; }

.sitemap-reserve-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.4rem;
    background: #012b60;
    color: #fff !important;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.2s;
}

.sitemap-reserve-btn:hover {
    background: #fb6b05;
    text-decoration: none !important;
}

/* ── Breakpoint guards ────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .sitemap-popup { display: none !important; }
}

@media (min-width: 768px) {
    .sitemap-bottom-sheet { display: none !important; }
    .sitemap-backdrop { display: none !important; }
}
