html, body {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

section {
    display: flex;
    flex-direction: column;
}

.map-toggle-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin: 0;
    padding: 0;
}

.map-toggle-buttons button {
    background-color: rgb(151, 112, 96);
    color: rgb(250, 235, 215);
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 40px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    max-width: 100%;
}

.map-toggle-buttons button:hover {
    background-color: antiquewhite;
    color: rgb(151, 112, 96);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}

.map-toggle-buttons button:active {
    transform: translateY(1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.info-btn {
    background-color: rgb(151, 112, 96);
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.info-btn i {
    color: antiquewhite;
    font-size: 20px;
}

.info-btn:hover {
    background-color: antiquewhite;
    color: rgb(151, 112, 96);
    transform: translateY(-2px);
}

.info-btn:hover i {
    color: rgb(151, 112, 96);
}

/* NEW RESPONSIVE LOGIC */
.button-group-mobile {
    display: none;
}

.info-mobile {
    display: none;
}

.info-desktop {
    display: inline-flex;
}

@media (max-width: 768px) {
    .map-toggle-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .button-group-mobile {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .button-group-desktop,
    .info-desktop {
        display: none;
    }

    .info-mobile {
        display: inline-flex;
    }

    .map-toggle-buttons button {
        margin-bottom: 0.5rem;
    }
}

.story-map-container {
    margin: 0;
    background-color: rgb(227, 218, 208);
    border-radius: 8px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);    
    overflow-y: hidden;
}

.custom-btn-storymap {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    background-color:rgb(51, 51, 51);
    color: rgb(255, 255, 255);
    text-decoration: none;
}

.custom-btn-storymap:hover {
    background-color: rgb(151, 112, 96);
}

#map {
    width: 100%;
    height: 80vh;
    min-height: 400px;
}

.mapboxgl-popup-content {
    background-color: rgb(227, 218, 208) !important;
    color: rgb(51, 51, 51) !important;
    font-size: 14px;
    line-height: 1.2;
    padding: 8px;
    border-radius: 8px;
    max-height: 60vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.popup-content {
    max-height: 100%;
    overflow-y: auto;
    padding-right: 5px;
}

.popup-content img {
    max-width: 100%;
    height: 80px;
    object-fit: contain;
    display: block;
    margin: 10px auto;
    border-radius: 6px;
}

.mapboxgl-popup-content h4 {
    font-size: 23px;
    font-family: 'Judson', serif;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    color: rgb(61, 19, 2) !important;
}

.popup-content p {
    margin: 8px 0;
    font-family: 'Inter', sans-serif;
    font-size: small;
    color: rgb(61, 19, 2);
}

.mapboxgl-popup-close-button {
    display: none !important;
}

.popup-content::-webkit-scrollbar {
    width: 6px;
}

.popup-content::-webkit-scrollbar-thumb {
    background-color: rgb(136, 136, 136);
    border-radius: 4px;
}

.popup-content::-webkit-scrollbar-thumb:hover {
    background-color: rgb(85, 85, 85);
}
