/* =====================================================
   map.css — Leaflet mapa + markery
   ===================================================== */

/* ─── Layout ──────────────────────────────────────── */

.game-container {
    height: calc(100dvh - 56px);
    /* Mapa vyplní celý prostor pod hlavičkou */
    overflow: hidden;
}

#map {
    width: 100%;
    height: 100%;
    position: relative;
    background: #e8edf3;
}

/* ─── Mapy.com atribuce (povinná) ────────────────── */

.mapy-attribution {
    position: fixed;
    top: calc(56px + 8px);
    right: 8px;
    z-index: 400;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, .88);
    border-radius: 4px;
    padding: 2px 5px;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}

.mapy-attribution img {
    height: 18px;
    display: block;
}

/* ─── Leaflet overrides ───────────────────────────── */

.leaflet-container {
    font-family: inherit;
    background: #e8edf3;
}

.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18) !important;
}

.leaflet-control-zoom a {
    background: #fff !important;
    color: #374151 !important;
    font-weight: 700 !important;
    border: none !important;
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
    font-size: 16px !important;
}

.leaflet-control-zoom a:hover {
    background: #f1f5f9 !important;
    text-decoration: none !important;
}

/* ─── Mapy.com logo control ───────────────────────── */

.mapy-logo-ctrl {
    padding: 0 0 6px 6px;
}

.mapy-logo-ctrl img {
    display: block;
    opacity: .85;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .3));
}

/* ─── Layer switcher ──────────────────────────────── */

/* Spodní levý roh Leaflet controls musí být pod patičkou (z-index 500),
   aby switcher patička překrývala — při skrytí patičky se zpřístupní */
.leaflet-bottom.leaflet-left {
    z-index: 400;
}

.map-layer-switcher {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px !important;
    margin-left: 8px !important;
}

.map-layer-btn {
    width: 34px;
    height: 34px;
    background: #fff;
    border: none;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, box-shadow .15s;
}

.map-layer-btn:hover {
    background: #f1f5f9;
    text-decoration: none;
}

.map-layer-btn.active {
    background: #0d6efd;
    box-shadow: 0 2px 8px rgba(13, 110, 253, .35);
}

@keyframes markerPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, .4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(13, 110, 253, 0);
    }
}