/* =====================================================
   EmberGuardian – Global Styles
   ===================================================== */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Map fills the full viewport below the navbar */
#map {
    position: fixed;
    top: 56px; /* navbar height */
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Vehicle detail panel (floating over the map) */
.vehicle-panel {
    position: fixed;
    top: 70px;
    right: 12px;
    width: 280px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
    padding: 14px;
    z-index: 500;
    animation: slideIn .2s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Vehicle type badge colors */
.badge-fire_truck  { background-color: #dc3545 !important; }
.badge-ambulance   { background-color: #0d6efd !important; }
.badge-police      { background-color: #0a58ca !important; }
.badge-other       { background-color: #6c757d !important; }

/* Admin pages */
.admin-sidebar {
    min-height: calc(100vh - 56px);
    background: #212529;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,.75);
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,.1);
    border-radius: 4px;
}

.flash-message {
    position: fixed;
    top: 70px;
    right: 16px;
    z-index: 9999;
    min-width: 280px;
}

/* Emoji vehicle pin marker */
.veh-pin {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 2.5px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
}

/* Heading arrow – full-size overlay that rotates around the pin centre */
.veh-heading {
    position: absolute;
    top: 0;
    left: 0;
    width: 44px;
    height: 44px;
    transform-origin: 22px 22px;
    pointer-events: none;
}

/* Vehicle emoji displayed inside the pin */
.veh-emoji {
    font-size: 24px;
    line-height: 1;
    position: relative;
    z-index: 1;
    pointer-events: none;
}

/* Map legend (bottom-left corner, inside the #map container) */
.map-legend {
    position: absolute;
    bottom: 30px;
    left: 12px;
    background: rgba(255,255,255,.92);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
    padding: 10px 14px;
    z-index: 500;
    font-size: 0.82rem;
    line-height: 1.6;
}

.map-legend-title {
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #444;
}

.map-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-emoji {
    font-size: 18px;
}
