html.ukam-full,
body.ukam-full {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    height: 100% !important;
    width: 100% !important;
}

body.ukam-full #wpadminbar {
    display: none !important;
}

.ukam-wrap.is-alert-red {
    background: #2a0505;
}

.ukam-wrap.is-alert-red .ukam-toolbar {
    background: #4a0b0b;
    border-bottom-color: #c0392b;
}

.ukam-wrap.is-alert-red .leaflet-tile-pane {
    filter: grayscale(0.15) sepia(0.55) hue-rotate(-25deg) saturate(2.2) brightness(0.72);
}

.ukam-wrap.is-alert-red .leaflet-overlay-pane,
.ukam-wrap.is-alert-red .leaflet-marker-pane {
    filter: drop-shadow(0 0 6px rgba(255, 40, 40, 0.45));
}

.ukam-alert-veil {
    display: none;
    pointer-events: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 36px;
    bottom: 0;
    z-index: 450;
    background:
        radial-gradient(ellipse at center, rgba(255, 30, 30, 0.08), rgba(90, 0, 0, 0.42));
    box-shadow: inset 0 0 80px rgba(160, 0, 0, 0.35);
}

.ukam-wrap.is-alert-red .ukam-alert-veil {
    display: block;
}

.ukam-wrap {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    margin: 0;
    background: #0b0f14;
    color: #e8edf2;
    font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
    border: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 99990;
}

.ukam-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    padding: 4px 10px;
    background: #10161d;
    border-bottom: 1px solid #243040;
    z-index: 500;
    position: relative;
    min-height: 36px;
}

.ukam-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.08em;
    font-size: 13px;
}

.ukam-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #9fe870;
}

.ukam-live i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9fe870;
    box-shadow: 0 0 0 0 rgba(159, 232, 112, 0.7);
    animation: ukam-pulse 1.6s infinite;
}

@keyframes ukam-pulse {
    70% { box-shadow: 0 0 0 8px rgba(159, 232, 112, 0); }
}

.ukam-stats {
    display: flex;
    gap: 12px;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: #9aa8b5;
}

.ukam-stats span {
    color: #fff;
    font-weight: 700;
    margin-right: 4px;
}

.ukam-search input {
    background: #0b0f14;
    border: 1px solid #2a3a4c;
    color: #e8edf2;
    padding: 4px 8px;
    min-width: 180px;
    border-radius: 2px;
    font-size: 12px;
}

.ukam-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: auto;
}

.ukam-btn {
    background: #1a232d;
    color: #d5dde5;
    border: 1px solid #334155;
    padding: 4px 8px;
    font-size: 10px;
    letter-spacing: 0.08em;
    cursor: pointer;
    border-radius: 2px;
}

.ukam-btn:hover {
    border-color: #9fe870;
    color: #fff;
}

.ukam-btn.is-on {
    background: #111;
    color: #9fe870;
    border-color: #9fe870;
}

#ukam-map {
    width: 100%;
    flex: 1;
    min-height: 400px;
    background: #1b2834;
}

.ukam-status {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: rgba(10, 14, 18, 0.82);
    border: 1px solid #2a3a4c;
    padding: 6px 10px;
    font-size: 12px;
    z-index: 500;
    pointer-events: none;
}

.ukam-plane {
    width: 34px;
    height: 34px;
}

.ukam-plane svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    display: block;
}

.ukam-plane.is-civ svg {
    filter: drop-shadow(0 1px 1px rgba(255,255,255,.55));
}

.ukam-plane.is-mil svg {
    filter: drop-shadow(0 1px 1px rgba(0,0,0,.55));
}

.ukam-wrap .leaflet-popup-content-wrapper {
    background: #0d1218;
    color: #e8edf2;
    border: 1px solid #2d3d4f;
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    padding: 0;
    font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
}

.ukam-wrap .leaflet-popup-content {
    margin: 0;
    min-width: 220px;
    font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
}

.ukam-wrap .leaflet-popup-tip {
    background: #0d1218;
    box-shadow: none;
}

.ukam-wrap .leaflet-popup-close-button {
    color: #9aa8b5 !important;
    top: 8px;
    right: 8px;
    font-size: 18px;
}

.ukam-popup {
    font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
    font-size: 12px;
    line-height: 1.35;
    padding: 14px 16px 12px;
}

.ukam-popup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #243040;
}

.ukam-popup-call {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
}

.ukam-popup-badge {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.ukam-popup-badge.is-mil {
    background: #fff;
    color: #111;
    border-color: #111;
}

.ukam-popup-badge.is-civ {
    background: #9fe870;
    color: #111;
}

.ukam-popup-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 0;
}

.ukam-popup-row span {
    color: #8b98a6;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 10px;
}

.ukam-popup-row b {
    color: #f4f7fa;
    font-weight: 600;
    font-size: 12px;
    text-align: right;
}

.ukam-metar {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #243040;
}

.ukam-metar-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9fe870;
    margin-bottom: 6px;
}

.ukam-metar-raw {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    line-height: 1.45;
    color: #f4f7fa;
    background: #161d26;
    border: 1px solid #2a3a4c;
    border-radius: 6px;
    padding: 8px 9px;
    white-space: pre-wrap;
    word-break: break-word;
}

.ukam-wrap .leaflet-popup-content {
    min-width: 250px;
}

.ukam-wind {
    background: #0b0f14;
    color: #9fe870;
    border: 1px solid #9fe870;
    border-radius: 3px;
    padding: 2px 6px 2px 4px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ukam-wind .arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 12px solid #9fe870;
}

.ukam-ap-dot {
    width: 10px;
    height: 10px;
    margin-left: -5px;
    margin-top: -5px;
    background: #111;
    border: 2px solid #111;
    border-radius: 50%;
}

.leaflet-popup-content-wrapper {
    border-radius: 2px;
}

@media (max-width: 900px) {
    .ukam-search input { min-width: 140px; }
    .ukam-toolbar { gap: 8px; }
}
