/* Map styles from leitstelle.css, scoped to the landing-page preview. */
/* Keep Leaflet panes and controls inside their own stacking context. */
.preview-section .leaflet-container { isolation: isolate; z-index: 0; }
.preview-section .einsatz-map-leaflet-popup .leaflet-popup-content-wrapper,
.preview-section .einsatz-map-leaflet-popup .leaflet-popup-tip {
    color: #e8eef8;
    background: #111b2b;
    border: 1px solid rgba(148, 163, 184, .25);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .4);
}
.preview-section .einsatz-map-leaflet-popup .leaflet-popup-content-wrapper { border-radius: 16px; }
.preview-section .einsatz-map-leaflet-popup .leaflet-popup-content { width: 270px !important; margin: 17px; }
.preview-section .einsatz-map-leaflet-popup .leaflet-popup-close-button { top: 9px; right: 10px; color: #9eacc0; font-size: 20px; }
.preview-section .einsatz-map-popup { display: grid; gap: 13px; }
.preview-section .einsatz-map-popup__eyebrow { color: #60a5fa; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.preview-section .einsatz-map-popup h3 { margin: -8px 22px 0 0; color: #f8fafc; font-size: 18px; line-height: 1.3; }
.preview-section .einsatz-map-popup__priority-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #9eacc0; font-size: 12px; }
.preview-section .einsatz-map-priority { padding: 5px 9px; color: #e2e8f0; background: rgba(148, 163, 184, .14); border-radius: 999px; font-size: 10px; letter-spacing: .04em; }
.preview-section .einsatz-map-priority.is-niedrig { color: #86efac; background: rgba(34, 197, 94, .14); }
.preview-section .einsatz-map-priority.is-mittel { color: #fde68a; background: rgba(234, 179, 8, .14); }
.preview-section .einsatz-map-priority.is-hoch { color: #fdba74; background: rgba(249, 115, 22, .16); }
.preview-section .einsatz-map-priority.is-kritisch { color: #fca5a5; background: rgba(239, 68, 68, .18); }
.preview-section .einsatz-map-popup__needs { display: grid; gap: 8px; padding-top: 11px; border-top: 1px solid rgba(148, 163, 184, .14); }
.preview-section .einsatz-map-popup__section-title { color: #becbdc; font-size: 11px; font-weight: 700; }
.preview-section .einsatz-map-requirements { display: flex; flex-wrap: wrap; gap: 7px; }
.preview-section .einsatz-map-requirement { display: grid; grid-template-columns: auto auto; align-items: center; gap: 4px; padding: 7px 9px; color: #e2e8f0; background: rgba(30, 41, 59, .9); border: 1px solid rgba(148, 163, 184, .15); border-radius: 9px; font-size: 12px; }
.preview-section .einsatz-map-requirement b { color: #bfdbfe; }
.preview-section .einsatz-map-requirement small { grid-column: 1 / -1; color: #9eacc0; font-size: 10px; }
.preview-section .einsatz-map-no-needs { color: #9eacc0; font-size: 11px; }
.preview-section .einsatz-map-location { overflow: hidden; color: #9eacc0; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.preview-section .einsatz-map-alarm-button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 42px; padding: 10px 13px; color: #fff; background: linear-gradient(135deg, #dc2626, #b91c1c); border: 1px solid rgba(252, 165, 165, .3); border-radius: 10px; box-shadow: 0 6px 16px rgba(185, 28, 28, .22); cursor: pointer; font-size: 12px; font-weight: 750; }
.preview-section .einsatz-map-alarm-button:hover { background: linear-gradient(135deg, #ef4444, #dc2626); }
.preview-section .einsatz-map-alarm-button:focus-visible { outline: 2px solid #fca5a5; outline-offset: 2px; }
.preview-section .einsatz-marker-wrapper,
.preview-section .wachen-marker-wrapper { background: transparent; border: 0; }
.preview-section .einsatz-marker-icon,
.preview-section .wachen-marker-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .72); border-radius: 14px; box-shadow: 0 5px 16px rgba(0, 0, 0, .4), inset 0 1px rgba(255, 255, 255, .25); font-size: 21px; line-height: 1; transition: transform .16s ease, box-shadow .16s ease; }
.preview-section .einsatz-marker-icon { background: linear-gradient(145deg, #ef4444, #991b1b); }
.preview-section .wachen-marker-icon { background: linear-gradient(145deg, #10b981, #065f46); }
.preview-section .wachen-marker-icon--polizei { background: linear-gradient(145deg, #3b82f6, #1e3a8a); }
.preview-section .wachen-marker-icon--rettung { background: linear-gradient(145deg, #f97316, #9a3412); }
.preview-section .einsatz-map-leaflet-popup .leaflet-popup-content { width: 245px !important; margin: 15px; }
.preview-section .fahrzeug-marker-wrapper {
    background: transparent;
    border: 0;
}
.preview-section .fahrzeug-marker {
    position: relative;

    width: 46px;
    height: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(15, 23, 42, 0.95);

    border: 2px solid rgba(255, 255, 255, 0.25);

    border-radius: 50%;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.35);

    font-size: 22px;

    
    transform-origin: center center;

    transition:
        transform 0.2s ease;
}
.preview-section .fahrzeug-marker-status {
    position: absolute;

    right: -5px;
    bottom: -4px;

    width: 20px;
    height: 20px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #111827;

    border-radius: 50%;

    font-size: 12px;

    border: 1px solid rgba(255, 255, 255, 0.2);
}
.preview-section .fahrzeug-marker.status-frei {
    border-color: #2ecc71;
}
.preview-section .fahrzeug-marker.status-bereit {
    border-color: #f1c40f;
}
.preview-section .fahrzeug-marker.status-unterwegs {
    border-color: #f39c12;
}
.preview-section .fahrzeug-marker.status-einsatz {
    border-color: #e74c3c;
}
.preview-section .fahrzeug-marker.status-rueckfahrt {
    border-color: #3498db;
}
.preview-section .fahrzeug-marker.status-ausser-dienst {
    border-color: #95a5a6;
}
.preview-section .fahrzeug-marker-stack {
    position: relative;

    width: 60px;
    height: 60px;

    pointer-events: none;
}
.preview-section .fahrzeug-marker-stack-item {
    position: absolute;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}
.preview-section .fahrzeug-marker-stack:not(.offen)
.fahrzeug-marker-stack-item:nth-child(1) {
    transform:
        translate(-50%, -50%);
}
.preview-section .fahrzeug-marker-stack:not(.offen)
.fahrzeug-marker-stack-item:nth-child(2) {
    transform:
        translate(
            calc(-50% + 4px),
            calc(-50% - 4px)
        );
}
.preview-section .fahrzeug-marker-stack:not(.offen)
.fahrzeug-marker-stack-item:nth-child(3) {
    transform:
        translate(
            calc(-50% - 4px),
            calc(-50% + 4px)
        );
}
.preview-section .fahrzeug-marker-stack.offen
.fahrzeug-marker-stack-item:nth-child(1) {
    transform:
        translate(
            -50%,
            calc(-50% - 32px)
        );
}
.preview-section .fahrzeug-marker-stack.offen
.fahrzeug-marker-stack-item:nth-child(2) {
    transform:
        translate(
            calc(-50% + 32px),
            -50%
        );
}
.preview-section .fahrzeug-marker-stack.offen
.fahrzeug-marker-stack-item:nth-child(3) {
    transform:
        translate(
            calc(-50% - 32px),
            -50%
        );
}
.preview-section .fahrzeug-marker-stack.offen
.fahrzeug-marker-stack-item:nth-child(4) {
    transform:
        translate(
            -50%,
            calc(-50% + 32px)
        );
}
.preview-section .fahrzeug-marker-stack-item
.fahrzeug-marker {
    pointer-events: auto;
    cursor: pointer;
}
.preview-section .fahrzeug-marker-cluster { overflow: visible; }
.preview-section .einsatz-marker-wrapper,
.preview-section .einsatz-marker-icon { overflow: visible; }
.preview-section .einsatz-marker-icon { position: relative; }
.preview-section .einsatz-marker-count { position: absolute; top: -7px; right: -7px; display: grid; place-items: center; min-width: 23px; height: 23px; padding: 0 5px; color: #fff; border: 2px solid #111827; border-radius: 999px; box-shadow: 0 2px 7px rgba(0, 0, 0, .4); font: 800 11px/1 system-ui, sans-serif; }
.preview-section .einsatz-marker-count.is-empty { background: #475569; }
.preview-section .einsatz-marker-count.is-dispatched { background: #2563eb; }
.preview-section .einsatz-marker-count.is-arrived { background: #15803d; }
.preview-section .einsatz-marker-count.is-waiting { background: #ea580c; }
.preview-section .fahrzeug-marker-count { position: absolute; top: -7px; right: -7px; display: grid; place-items: center; min-width: 23px; height: 23px; padding: 0 5px; color: #fff; background: #2563eb; border: 2px solid #111827; border-radius: 999px; box-shadow: 0 2px 7px rgba(0, 0, 0, .4); font-size: 11px; font-weight: 800; }
.preview-section .fahrzeug-marker.status-angekommen { border-color: #a855f7; }
.preview-section .preview-legend { display:flex; flex-wrap:wrap; gap:8px 16px; margin-top:14px; color:#94a3b8; font-size:12px; }
.preview-section .preview-legend span { display:flex; align-items:center; gap:6px; }
.preview-section .preview-legend i { width:9px; height:9px; border-radius:50%; background:var(--legend-color); }
.preview-section .map-overlay { pointer-events:none; }
.preview-section .map-wrapper { height:400px; }
@media(max-width:600px) { .preview-section .map-wrapper { height:340px; } }
.preview-section .leaflet-routing-container { display: none !important; }

/* Keep the mirrored vehicle centered within its circular preview marker. */
.preview-section .fahrzeug-marker .fahrzeug-marker-icon {display:grid !important;place-items:center;flex:none;width:30px;height:30px;font-size:22px;line-height:1;margin:0;padding:0;}
