/* Fix 0: Header Logo - Correct dimensions to prevent stretching */
/* The image is 244x76 but site.v01.css forces 300x75 causing horizontal stretch */
#headerLogo {
    width: 244px !important;
    height: 76px !important;
}

/* Fix 0b: Inventory list container - balance between white gap and CLS */
/* Original was 3975px/5559px (huge gap), auto causes CLS */
/* Use moderate values to reserve space without huge gaps */
#DesktopList {
    min-height: 800px !important;
}

#MobileList {
    min-height: 1200px !important;
}

/* Fix 1: Facility Description - Stack them properly without overlap */
#facilityPicContainer {
    position: relative;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Both captions: keep original gradient from site.v01.css, ensure box-sizing */
#facilityCaption1,
#facilityCaption2 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

    #facilityCaption1 p,
    #facilityCaption2 p {
        margin: 0;
        color: #fff;
    }

/* 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;
    }

    /* Fix 1b: Facility caption mobile - remove absolute positioning so it flows naturally */
    #facilityCaption1 {
        position: static !important;
        bottom: auto !important;
        margin-top: -60px;
        z-index: 2;
    }

    #facilityCaption1,
    #facilityCaption2 {
        padding: 20px;
    }

        /* Override the 1.5rem from site.v01.css #facilityCaption1 p / #facilityCaption2 p */
        #facilityCaption1 p,
        #facilityCaption2 p {
            font-size: 0.95rem !important;
            line-height: 1.65;
            padding: 10px 15px;
        }

    #facilityCaption2 {
        margin-bottom: 30px;
    }
}

/* Fix 1c: Extra-narrow phones */
@media (max-width: 480px) {
    #facilityCaption1 {
        margin-top: -40px;
    }

        #facilityCaption1 p,
        #facilityCaption2 p {
            font-size: 0.85rem !important;
            line-height: 1.55;
            padding: 8px 10px;
        }
}

/* 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;
}





/* Fix double scrollbar */
html {
    overflow-y: scroll !important;
    overflow-x: hidden !important;
}

body,
.no-scroll,
.container,
.container-fluid,
.row,
.wrapper-container,
header,
footer {
    overflow: visible !important;
}





/* Fix market dropdown click area */
.marketChevron {
    position: relative;
    cursor: pointer;
}

    .marketChevron .glyphicon {
        pointer-events: none;
    }
