* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
}

body {
    overflow: hidden;
    background: #050505;
    color: #e8e8e8;
    font-family: Arial, Helvetica, sans-serif;
}

#map {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #101010;
}

/* Give the map a darker, colder atmosphere without hiding geography. */
.leaflet-tile-pane {
    filter: grayscale(1) brightness(0.68) contrast(1.12);
}

.leaflet-control-attribution {
    background: rgba(0, 0, 0, 0.62) !important;
    color: #888;
    font-size: 10px;
}

.leaflet-control-attribution a {
    color: #aaa;
}

.map-header,
.map-panel,
.return-button,
.reset-button {
    position: fixed;
    z-index: 1000;
}

.map-header {
    top: 24px;
    left: 24px;
    pointer-events: none;
}

.brand {
    font-size: 23px;
    font-weight: 500;
    letter-spacing: 8px;
}

.label {
    margin-top: 5px;
    color: #777;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 4px;
}

.map-panel {
    top: 24px;
    right: 24px;
    min-width: 135px;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(5, 5, 5, 0.72);
    backdrop-filter: blur(8px);
}

.panel-label {
    color: #777;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 2px;
}

.pin-count {
    margin-top: 4px;
    font-size: 27px;
    line-height: 1;
    font-weight: 400;
}

.map-status {
    margin-top: 7px;
    color: #666;
    font-size: 9px;
    letter-spacing: 0.5px;
}

.return-button,
.reset-button {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(5, 5, 5, 0.74);
    color: #ddd;
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: 180ms ease;
}

.return-button {
    left: 24px;
    bottom: 24px;
    padding: 12px 17px;
    color: #ccc;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
}

.reset-button {
    right: 24px;
    bottom: 24px;
    width: 42px;
    height: 42px;
    font-size: 22px;
}

.return-button:hover,
.reset-button:hover {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(235, 235, 235, 0.92);
    color: #050505;
}

.unknown-pin {
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #111;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.09), 0 0 16px rgba(255, 255, 255, 0.4);
}

.map-corners {
    position: fixed;
    z-index: 999;
    width: 26px;
    height: 26px;
    opacity: 0.32;
    pointer-events: none;
}

.corner-tl { top: 24px; left: 24px; border-top: 1px solid #aaa; border-left: 1px solid #aaa; }
.corner-tr { top: 24px; right: 24px; border-top: 1px solid #aaa; border-right: 1px solid #aaa; }
.corner-bl { bottom: 24px; left: 24px; border-bottom: 1px solid #aaa; border-left: 1px solid #aaa; }
.corner-br { right: 24px; bottom: 24px; border-right: 1px solid #aaa; border-bottom: 1px solid #aaa; }

@media (max-width: 600px) {
    .map-header { top: 16px; left: 16px; }
    .brand { font-size: 19px; letter-spacing: 6px; }
    .map-panel { top: 16px; right: 16px; min-width: 112px; }
    .return-button { left: 16px; bottom: 16px; }
    .reset-button { right: 16px; bottom: 16px; }
    .map-corners { width: 20px; height: 20px; }
    .corner-tl, .corner-tr { top: 16px; }
    .corner-bl, .corner-br { bottom: 16px; }
    .corner-tl, .corner-bl { left: 16px; }
    .corner-tr, .corner-br { right: 16px; }
}
