/* Gallery Page Styles */

@media (min-width: 1400px) {
    .container {
        max-width: 1820px;
    }
}

/* Image map hover effects */
area {
    cursor: pointer;
}

.hover-overlay.active {
    background: rgba(255, 0, 0, 0.3) !important;
    border: 2px solid red;
}

/* Modal slider text indicators */
.slider-text-indicator {
    background: none !important;
    border: none !important;
    padding: 5px 10px;
    margin: 0 5px;
    color: #631203;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease;
}

.slider-text-indicator:hover,
.slider-text-indicator.active {
    color: #ab6503 !important;
}

/* Modal background color only (no image) */
.modal-bg-color {
    background-color: #eeedd9;
}

/* Gallery image styling */
.gallery-image {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gallery-item {
    padding: 2px;
}

.gallery-item p {
    color: #631203;
}

/* Modal unit text styling */
.modal-unit-name {
    color: #631203;
    font-size: 1.1rem;
}

.modal-unit-description {
    font-size: 0.9rem;
}

/* Responsive image map styling */
#sitemapImage {
    width: 100%;
    height: auto;
    max-width: 100%;
}

.disclaimer-txt {
    max-width: 40%;
}

/* Mobile responsive styles */
@media (max-width: 767.98px) {
    /* Center sitemap buttons with spacing */
    .sitemap-section .row.justify-content-center .col-auto {
        text-align: center;
        width: 100%;
    }
    
    .sitemap-btn {
        margin: 0 10px !important;
        display: inline-block;
        margin-bottom: 10px !important;
    }
    
    /* Keep legend beside sitemap on desktop, but fix mobile */
    .sitemap-section .col-md-1 {
        text-align: center;
    }
    
    .sitemap-section .col-md-9 {
        width: 100%;
        max-width: 100%;
    }
    
    /* Move legend below sitemap on mobile */
    .sitemap-section .row.mt-4 {
        flex-direction: column-reverse;
    }
    
    .sitemap-section .col-md-1 {
        margin-top: 20px;
    }
    
    /* Modal spacing adjustments */
    .modal-dialog {
        margin: 10px !important;
        width: calc(100% - 20px) !important;
        max-width: none !important;
    }
    
    #modalUnitImage {
        margin-bottom: 20px !important;
    }
    
    .modal .d-flex.flex-column.gap-2 {
        margin-top: 15px;
        padding-bottom: 20px;
    }

    .disclaimer-txt {
        max-width: 85%;
    }
}

/* Additional responsive adjustments for very small screens */
@media (min-width: 576px) and (max-width: 767.98px) {
    .sitemap-section .row.mt-4 {
        flex-direction: row;
    }
    
    .sitemap-section .col-md-1 {
        margin-top: 0;
    }
}


@media (min-width: 1200px) {
    .modal-xl {
        --bs-modal-width: 1400px !important;
    }
}