@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 {
        font-weight: bold !important;
    }

/* Modal background color only (no image) */
.modal-bg-color {
    background-color: #eeedd9;
}

/* 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%;
}

/* #sitemapContainer {
            position: relative;
            width: 100%;
        }
         */
/* 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;
    }

        /* Reduce spacing between plan-square and plan-text on mobile */
        .sitemap-section .col-md-1 .row {
            margin-left: 0 !important;
            margin-right: 0 !important;
            display: flex !important;
            align-items: center;
            justify-content: center;
        }

            .sitemap-section .col-md-1 .row .col-3 {
                flex: 0 0 auto !important;
                width: auto !important;
                max-width: none !important;
                padding: 0 !important;
                margin: 0 !important;
            }

            .sitemap-section .col-md-1 .row .col-9 {
                flex: 0 0 auto !important;
                width: auto !important;
                max-width: none !important;
                padding: 0 !important;
                margin: 0 !important;
                padding-left: 8px !important;
            }

    .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;
    }
}

/* 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;
    }
}

.plan1-square {
    width: 30px;
    height: 30px;
    background-color: #DDE7F3;
    border: 2px solid #631203;
    display: inline-block;
}

.plan2-square {
    width: 30px;
    height: 30px;
    background-color: #EDE8DB;
    border: 2px solid #631203;
    display: inline-block;
}

.plan-text {
    font-size: 0.9rem;
    color: #631203;
    line-height: 1.4;
}

/* Carousel controls */
.carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.carousel-control-prev,
.carousel-control-next {
    position: static !important;
    width: 50px;
    height: 50px;
    background-color: white !important;
    border: 1px solid #ddd;
    opacity: 1 !important;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        background-color: #f8f9fa !important;
    }

    .carousel-control-prev span,
    .carousel-control-next span {
        display: none;
    }

    .carousel-control-prev::before {
        content: '<';
        font-size: 40px;
        color: #000;
        line-height: 1;
    }

    .carousel-control-next::before {
        content: '>';
        font-size: 40px;
        color: #000;
        line-height: 1;
    }

#unitSlider {
    max-width: 100%;
}

/* Content section text animation and sizing */
.content-section p {
    font-size: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile text size adjustments */
@media (max-width: 767.98px) {
    .content-section p {
        font-size: 0.875rem;
    }

    .animated-text li {
        font-size: 0.875rem;
    }
}

