#map {
    width: 100%;
    height: 100%;
    background-color: #F8F8FB;
}

foreignObject {
    pointer-events: none;
}

.map-container {
    position: relative;
    height: 70vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-top: 20px;
    margin-bottom: 50px;
}

.left-controls {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 300;
    display: flex;
    flex-direction: row;
    gap: 5px;
}

.left-controls .btn {
    font-size: 20px;
}

.popup {
    position: absolute;
    max-width: 350px;
    width: 350px;
    height: auto;
    left: 100px;
    top: 100px;
    background: #fff;
    box-shadow: 0 6px 12px rgb(0 0 0 / 44%);
    border-radius: 8px;
    padding: 16px;
    z-index: 1100;
    cursor: move;
    display: none;
}

.popup-header h3 {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin: 0 auto;
}

.popup p {
    text-align: left;
}

.popup p strong {
    font-weight: bold;
}

.popup-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto; /* Optionnel : pour centrer l'image */
}

.coordinates {
    text-align: center;
    display: block;
    margin-bottom: 8px;
}

.close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.popup-footer {
    display: flex;
    justify-content: center;
}

.controls {
    position: relative;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
}

#visit-button,
#interact-button {
    display: inline-block;
    margin-top: 16px;
}

#sub-zone-type {
    display: none;
    margin-top: 10px;
}

.right-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bulldozer-control .btn {
    font-size: 20px;
}

.right-controls .btn svg {
    fill: white;
}

.right-controls .btn.bulldozer-active svg {
    fill: black;
}

/* Classe de base pour les hexagones */
.hexagon {
    transition: stroke 0.1s ease-out, stroke-width 0.1s ease-out, opacity 0.1s ease-out;
}

.hexagon-hover {
    stroke: red;
    stroke-width: 3px;
    opacity: 1;
}

#fpsMeter {
    display: none; /* Masqué par défaut */
    position: fixed;
    top: 25px;
    right: 25px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    color: rgba(255, 255, 255, 0.75);
    font-family: Monospace;
    font-size: 24px;
    z-index: 10000;
}