.emergency-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 20px;
}

@media (min-width: 992px) {
    .emergency-layout {
        grid-template-columns: 2fr 1fr;
    }
}

/* Glowing Crimson Theme for Emergency on Light Mode */
.emergency-card {
    border-color: rgba(225, 29, 72, 0.25);
    background: rgba(255, 241, 242, 0.85);
}

.emergency-card:hover {
    border-color: var(--emergency-red);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05), 0 0 25px rgba(225, 29, 72, 0.15);
}

.emergency-glowing-title {
    color: var(--emergency-red);
    text-shadow: 0 0 8px rgba(225, 29, 72, 0.25);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Bed Status Display */
.bed-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}

.bed-row {
    background: white;
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.01);
}

.bed-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.bed-counter {
    text-align: right;
}

.bed-number {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1;
}

.bed-number.available {
    color: var(--accent-emerald);
}

.bed-number.total {
    color: var(--text-muted);
}

.bed-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    margin-top: 8px;
    overflow: hidden;
}

.bed-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

.bed-progress-fill.high {
    background: linear-gradient(to right, #0ea5e9, var(--accent-emerald));
}

.bed-progress-fill.low {
    background: linear-gradient(to right, #f97316, var(--emergency-red));
}

/* Map Simulator (High-tech Dark Command Center View) */
.map-simulator {
    width: 100%;
    height: 380px;
    background-color: #0b0f19;
    background-image: 
        radial-gradient(rgba(2, 132, 199, 0.15) 1px, transparent 0),
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 0),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 0);
    background-size: 24px 24px, 24px 24px, 24px 24px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
}

.map-radar-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 1px solid rgba(2, 132, 199, 0.3);
    border-radius: 50%;
    animation: radar-sweep 4s infinite linear;
    pointer-events: none;
}

@keyframes radar-sweep {
    0% {
        width: 0px;
        height: 0px;
        opacity: 0.8;
    }
    100% {
        width: 600px;
        height: 600px;
        opacity: 0;
    }
}

.map-hospital-node {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
}

.map-hospital-node::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 1px solid var(--accent-emerald);
    border-radius: 50%;
    animation: node-pulse 2s infinite ease-out;
}

.map-patient-node {
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--primary-cyan);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--primary-cyan);
    z-index: 4;
}

.map-ambulance-node {
    position: absolute;
    width: 22px;
    height: 22px;
    background: var(--emergency-red);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--emergency-red);
    color: white;
    font-size: 10px;
    font-weight: bold;
    z-index: 5;
    transition: left 0.5s linear, top 0.5s linear;
}

.map-road-network {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

@keyframes node-pulse {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* ETA Panel */
.eta-panel {
    background: rgba(225, 29, 72, 0.05);
    border: 1px solid rgba(225, 29, 72, 0.15);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.eta-time {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--emergency-red);
}

/* Blood Availability Search Grid */
.blood-search-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.blood-btn {
    background: white;
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 50px !important;
    text-align: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 200;
    font-size: 1.1rem;
    color: var(--text-primary);
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.01);
}

.blood-btn:hover, .blood-btn.active {
    background: rgba(225, 29, 72, 0.08);
    border-color: var(--emergency-red);
    color: var(--emergency-red);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.15);
}

/* First Aid Guide Grid */
.first-aid-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.first-aid-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.01);
}

.first-aid-item:hover {
    background: rgba(99, 102, 241, 0.04);
    border-color: var(--primary-violet);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(99, 102, 241, 0.08);
}

.first-aid-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

.first-aid-title {
    font-weight: 700;
    color: var(--text-primary);
}
