/* North America Chess Map (Leaflet)
-------------------------------------------------- */
.chessmap-section {
    width: 100%;
}

/* The Leaflet map container. A fixed, responsive height keeps the home page tidy. */
.chessmap-leaflet {
    width: 100%;
    height: 460px;
    border: 1px solid var(--bs-border-color, #adb5bd);
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
}

@media (max-width: 575.98px) {
    .chessmap-leaflet {
        height: 360px;
    }
}

/* Marker popups */
.chessmap-popup {
    min-width: 170px;
}

.chessmap-popup-title {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 6px;
    text-align: center;
}

.chessmap-popup-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    margin-top: 4px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.8rem;
    border: 1px solid transparent;
}

.chessmap-popup-link.organizers {
    color: var(--bs-primary, #0d6efd);
    background-color: rgba(13, 110, 253, 0.08);
}

.chessmap-popup-link.organizers:hover {
    background-color: rgba(13, 110, 253, 0.18);
    border-color: var(--bs-primary, #0d6efd);
}

.chessmap-popup-link.events {
    color: var(--bs-success, #198754);
    background-color: rgba(25, 135, 84, 0.08);
}

.chessmap-popup-link.events:hover {
    background-color: rgba(25, 135, 84, 0.18);
    border-color: var(--bs-success, #198754);
}

.chessmap-popup-link .badge {
    font-size: 0.7rem;
}
