body {
    /* background: url("./bg-pokeball.png"); */
    background: url("./bg-2.png");
    font-family: 'Bahnschrift';
}

.container {
    width: 1000px;
    margin: 0 auto;
    border: 1px dashed red;
    padding: 8px;
    background: whitesmoke;
}

@media only screen and (max-width: 1000px) {
    .container {
        width: unset;
    }
}

p {
    margin-top: 8px;
}

#map {
    height: 600px;
    /* width: 200px; */
    border: 1px solid red;
    text-align: center;
    margin: 0 auto;
    margin-bottom: 16px;
    background: white;
    position: relative;
}

/* Positionné par-dessus la carte */
.map-loader {
    position: absolute;
    inset: 0;
    /* couvre toute la div parente */
    z-index: 1000;
    /* au-dessus des tuiles Leaflet (z-index max ~1000) */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    /* flou */
    -webkit-backdrop-filter: blur(4px);
    /* compat Safari */
    color: #fff;
    font-size: 1.2rem;
}

/* Petit spinner animé */
.loader-spinner {
    width: 48px;
    height: 48px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* État masqué */
.map-loader.hidden {
    display: none;
}

#pokemon-list {
    height: 200px;
    overflow-y: auto;
    background: white;
    color: black;
    border: 1px solid red;
    margin: 0;
}