/* =========================================================================
   RESPONSIVE — iPad portrait and smaller
   ========================================================================= */

@media (max-width: 768px) {
    :root {
        --sidebar-width: 300px;
    }
}

@media (max-width: 600px) {
    :root {
        --sidebar-width: 260px;
    }
}

/* iPad landscape — more map space, sidebar can breathe */
@media (min-width: 1024px) {
    :root {
        --sidebar-width: 400px;
    }
}

/* Phone landscape — sidebar crushes map at these heights.
   Shrink sidebar so map remains usable. sidebar.js auto-collapses
   on narrow landscape viewports for an even better experience. */
@media (max-height: 500px) and (orientation: landscape) {
    :root {
        --sidebar-width: 220px;
    }
}

.status-loading .status-icon {
    animation: spin 1s linear infinite;
}

/* ===========================================
   MAP WELCOME OVERLAY — First-load guidance
   =========================================== */

.map-welcome {
    position: absolute;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.map-welcome-card {
    text-align: center;
    padding: var(--space-xl) var(--space-2xl);
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.map-welcome-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.map-welcome-subtitle {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}


/* Stats bar removed — replaced by .sidebar-lot-title in layout.css */
