/* ═══════════════════════════════════════════════
   CYBERSPEED — Map Styles
   Google Maps container and overlay controls
   ═══════════════════════════════════════════════ */

.map-wrapper {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-medium);
}

.map-container {
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    position: relative;
}

/* Placeholder before map loads */
.map-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-sm);
    background: var(--bg-secondary);
    z-index: 2;
    transition: opacity 0.5s ease;
}

.map-placeholder.fade-out {
    opacity: 0;
    pointer-events: none;
}

.map-placeholder-icon {
    font-size: 2.5rem;
    animation: float 3s ease-in-out infinite;
}

.map-placeholder-text {
    font-family: var(--font-display);
    font-size: var(--fs-md);
    color: var(--neon-cyan);
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(var(--neon-cyan-rgb), 0.4);
}

.map-placeholder-sub {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Map Controls */
.map-controls {
    position: absolute;
    bottom: var(--sp-sm);
    right: var(--sp-sm);
    display: flex;
    flex-direction: column;
    gap: var(--sp-xs);
    z-index: 5;
}

.map-ctrl-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    color: var(--neon-cyan);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.map-ctrl-btn:hover {
    background: rgba(var(--neon-cyan-rgb), 0.15);
    border-color: var(--neon-cyan);
    box-shadow: var(--shadow-neon-cyan);
}

/* ── Dark Map Styling Override (applied via Google Maps Styles) ── */
/* Custom Google Maps dark theme is set programmatically */

/* Expanded map mode */
.dashboard.map-expanded .info-panel {
    width: 55%;
}

.dashboard.map-expanded .speedo-panel {
    flex: 0.8;
}