/* Fix 1: Facility Description - Stack them properly without overlap */
#facilityPicContainer {
    position: relative;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Both captions should have same styling and be stacked */
#facilityCaption1,
#facilityCaption2 {
    background-color: rgba(70, 130, 180, 0.9);
    padding: 30px;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
    box-sizing: border-box;
}

    #facilityCaption1 p,
    #facilityCaption2 p {
        margin: 0;
        line-height: 1.8;
        color: #fff;
        font-size: 16px;
    }

/* Remove the gap between the two captions */
#facilityPicContainer + .container-fluid {
    margin-top: 0;
    padding-top: 0;
}

    #facilityPicContainer + .container-fluid > .row {
        margin-top: 0;
    }

    /* Ensure both caption containers have consistent column widths */
    #facilityPicContainer .col-md-10,
    #facilityPicContainer + .container-fluid .col-md-10 {
        padding-left: 15px;
        padding-right: 15px;
    }

/* Remove extra nested row margins that cause misalignment */
.container-fluid > .row > .row {
    margin-left: 0;
    margin-right: 0;
}

/* Make sure the rows don't add extra margins */
#facilityPicContainer .row,
#facilityPicContainer + .container-fluid .row {
    margin-left: 0;
    margin-right: 0;
}

/* Fix 2: Carousel Controls Positioning */
.carousel-control {
    z-index: 15 !important;
    cursor: pointer;
    pointer-events: auto !important;
}

    .carousel-control.left,
    .carousel-control.right {
        background-image: none !important;
        width: 50px;
        height: 50px;
        top: 50%;
        transform: translateY(-50%);
        opacity: 0.8;
    }

    .carousel-control:hover {
        opacity: 1;
    }

    .carousel-control .glyphicon {
        font-size: 30px;
        color: #fff;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }

/* Fix 3: Carousel Container for Better Mobile Support */
.carousel-inner {
    position: relative;
}

.carousel-showmanymoveone .item {
    transition: transform 0.6s ease-in-out;
}

/* Fix 4: Ensure carousel items display properly on all screen sizes */
@media (max-width: 767px) {
    .carousel-showmanymoveone .item {
        display: block;
        width: 100%;
    }

    .carousel-control.left {
        left: 10px;
    }

    .carousel-control.right {
        right: 10px;
    }

    #facilityCaption1,
    #facilityCaption2 {
        padding: 20px;
        font-size: 14px;
    }
}

/* Fix 5: Prevent carousel controls from being covered */
.mobileWindowWrapperOrange {
    position: relative;
}

.threeTileWrapper {
    position: relative;
    z-index: 1;
}

/* Fix 6: Market pics text container */
.marketPics {
    text-align: center;
    padding: 10px;
    text-transform: capitalize;
}
