html, body {
    width: 100%; height: 100%;
    margin: 0; padding: 0;
    background: #080808;
    font-family: "Share Tech Mono", monospace;
    font-size: 16px;
}

#map {
    height: calc(100vh - 72px);
    width: 100%;
    image-rendering: pixelated;
    background: #0a0a0c;
}

#map-wrap { position: relative; }

.map-loading {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: #0a0a0c;
    z-index: 50;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.map-loading.hidden { opacity: 0; visibility: hidden; }

.map-loader {
    display: flex; flex-direction: column;
    align-items: center; gap: 14px;
}
.map-loader-ring {
    width: 32px; height: 32px;
    border: 2px solid rgba(255,255,255,0.05);
    border-top-color: #F4511E;
    border-radius: 50%;
    animation: map-spin 0.9s linear infinite;
}
.map-loader-text {
    font-family: "Share Tech Mono", monospace;
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.08em;
}

@keyframes map-spin { to { transform: rotate(360deg); } }

.ol-tile { transition: opacity 0.25s ease; }

.mouseposition,
div.ol-mouse-position {
    background: rgba(8,8,8,0.92);
    color: #c8c8c8;
    padding: 6px 10px;
    border: 1px solid rgba(244,81,30,0.25);
    border-radius: 4px;
    font-family: "Share Tech Mono", monospace;
    font-size: 12px;
}

.ol-ctx-menu-container {
    font-size: 13px;
    background: rgba(20,20,20,0.98);
    border: 1px solid rgba(58,58,58,0.6);
    border-radius: 6px;
    color: #c8c8c8;
    backdrop-filter: blur(12px);
}
.ol-ctx-menu-container li {
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.15s;
}
.ol-ctx-menu-container li:hover {
    background: rgba(244,81,30,0.12);
    color: #fff;
}

.ol-scale-step-text {
    font-family: "Share Tech Mono", monospace;
    font-weight: 700;
    font-size: 12px;
    color: #c8c8c8;
}
.ol-scale-singlebar-odd { background: rgba(58,58,58,0.4); }
.ol-scale-singlebar-even { background: rgba(58,58,58,0.6); }

.toastify {
    color: #c8c8c8;
    background: rgba(8,8,8,0.95);
    border: 1px solid rgba(58,58,58,0.6);
    border-radius: 6px;
    font-family: "Share Tech Mono", monospace;
}
.toastify.success { border-color: rgba(244,81,30,0.5); }

.ol-zoom { top: auto; bottom: 2rem; }
.ol-rotate { top: auto; bottom: 6rem; right: 0.5rem; }

.ol-control button {
    background: rgba(20,20,20,0.9) !important;
    color: #c8c8c8 !important;
    border: 1px solid rgba(58,58,58,0.6) !important;
    border-radius: 4px !important;
    font-size: 18px !important;
    transition: border-color 0.2s;
}
.ol-control button:hover {
    background: rgba(30,30,30,0.95) !important;
    border-color: #F4511E !important;
}

.map-attribution {
    background: rgba(8,8,8,0.8) !important;
    color: rgba(255,255,255,0.4) !important;
    font-family: "Share Tech Mono", monospace !important;
    font-size: 10px !important;
    padding: 4px 8px !important;
}
.map-attribution a {
    color: rgba(244,81,30,0.6) !important;
}
