﻿

.lg-outer .lg-current .lg-img-wrap,
.lg-outer .lg-current .lg-content {
    position: relative !important;
}

/* Force horizontal scrolling for thumbnail strip */
.lg-thumb-outer {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    padding-bottom: 4px; /* optional */
}

.lg-thumb {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
}

.lg-thumb-item {
    flex: 0 0 auto;
    margin-right: 8px; /* optional spacing */
}

.lg-thumb-outer {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    cursor: grab;
}


/* LightGallery fullscreen favorite overlay */
.lg-outer .lg-fave-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 9999;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.45);
    backdrop-filter: blur(4px);
    cursor: pointer;
    pointer-events: auto;
}

    .lg-outer .lg-fave-btn i {
        font-size: 20px;
    }


        /* optional: make saved pop visually */
        .lg-outer .lg-fave-btn i.saved {
            /* pick whatever matches your design system */
            color: var(--primary);
        }


.zoom-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    opacity: 0.85;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 10;
}


@media (min-width: 992px) and (max-width: 1150px) {
    #photo-gallery .zoom-hint {
        bottom: 60px;
    }
}

.swiper-slide {
    height: auto;
}

    .swiper-slide:hover .zoom-hint {
        opacity: 1;
    }

.zoom-hint:before {
    content: '\02295';
    font-family: serif;
    font-size: 1.5em;
    speak: none;
    text-align: center;
    vertical-align: -2px;
    margin-right: 6px;
}

.layout-swiper {
    width: 100%;
    max-width: 100%; /* <-- don't cap it on small screens */
    margin: 0 auto;
    overflow: hidden; /* avoid tiny horizontal scrollbars */
}

    .layout-swiper .swiper-slide {
        flex-shrink: 0;
        width: 100% !important; /* <-- critical: override inline 800px */
        box-sizing: border-box;
    }

        .layout-swiper .swiper-slide a,
        .layout-swiper .swiper-slide img {
            display: block;
            width: 100%;
            height: auto;
        }

h1 {
    font-size: 33px;
}

@media (min-width: 768px) {
    h1 {
        font-size: 42px;
    }
}

/* Allow flex children to actually shrink */
.plan-layout-row > div {
    min-width: 0;
}

/* On big screens, give each side a percentage instead of content dictating width */
@media (min-width: 1400px) {
    .plan-layout-row > div:first-child {
        flex: 0 0 55%; /* floor-plan / swiper column */
    }

    .plan-layout-row .description-box {
        flex: 0 0 45%; /* text column */
    }
}

@media (min-width: 992px) {
    .layout-swiper {
        max-width: 800px;
    }
}


/* employee stats on house plan page */
.employee-stats {
    /* background: rgba(255, 255, 255, 0.1); */
    background-color: #fff;
    border-radius: 8px;
    padding: 14px 18px;
    color: var(--secondary);
    width: fit-content;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
}

    .employee-stats:hover {
        transform: translateY(-4px);
    }

.employee-heading {
    color: var(--accent-light);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.employee-table {
    width: 100%;
    border-collapse: collapse;
}

    .employee-table td {
        font-size: 14px;
        padding: 5px 0;
        border-bottom: 1px solid var(--gray-55);
    }

        .employee-table td:first-child {
            color: var(--secondary);
            font-weight: 500;
        }

        .employee-table td:last-child {
            text-align: right;
            font-weight: 600;
            color: var(--secondary);
        }

.photo-swiper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

    .photo-swiper .swiper-slide {
        flex-shrink: 0;
        width: 100% !important;
        box-sizing: border-box;
    }

    .photo-swiper img {
        width: 100%;
        height: auto;
        display: block;
    }

/* Swiper slide overlay */
.hm-photo-slide {
    position: relative;
}

.fave-heart {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 5;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 0;
    background: rgba(255,255,255,.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .fave-heart i {
        font-size: 1.4rem;
        color: var(--accent);
    }

.lg-fave-overlay {
    position: fixed; /* <-- key change */
    z-index: 9999;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 0;
    background: rgba(255,255,255,.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
}

    .lg-fave-overlay i {
        font-size: 1.4rem;
        color: var(--accent);
    }

.plan-share-btn {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 0;
    background: rgba(255,255,255,.45);
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .plan-share-btn i {
        font-size: 1.75rem;
        font-weight: 600;
        color: var(--accent);
    }

.lg-share-overlay {
    position: fixed;
    z-index: 9999;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 0;
    background: rgba(255,255,255,.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
}

    .lg-share-overlay i {
        font-size: 1.2rem;
        color: var(--accent);
    }

.floorplan-fixed-nav {
    /* position: static !important; */
    margin-top: 58px;
}


/*hero images*/
.overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.35);
    z-index: 1;
    pointer-events: none;
}

.hide-scrollbar {
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

    .hide-scrollbar::-webkit-scrollbar {
        display: none;
    }


.nav-link {
    white-space: nowrap;
    font-weight: 600;
    color: var(--secondary);
}


.fancybox__content {
    width: 50vw !important;
    height: 60vh !important;
    max-width: none !important;
    max-height: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background-color: #000;
    border-radius: 0 !important;
    padding: 0 !important;
    overflow: hidden !important; /* crop overflow */
}

.fancybox__image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* ensures consistent size and fills the box */
    display: block;
    margin: 0 auto;
}




.description-box {
    max-width: 700px;
}

.divider-dot {
    width: 3px;
    height: 20px;
    background-color: var(--accent);
    display: inline-block;
}

#tour360Modal .modal-dialog {
    max-width: 1400px;
}

/*Floor Plan*/

.floor-plan-section {
    width: 95%;
}

.left-radius {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.swiper-button-next,
.swiper-button-prev {
    width: 45px !important;
    border-radius: 50% !important;
    background-color: var(--gray-25) !important;
    color: var(--secondary) !important;
}

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 25px !important;
        font-weight: 600;
    }


.plan-name {
    font-size: 32px;
}

.style-label {
    font-family: var(--font-sans);
    color: var(--gray-dark);
    font-weight: 600;
    font-size: 20px;
}


/* employee stats on house plan page */
.employee-stats {
    /* background: rgba(255, 255, 255, 0.1); */
    background-color: #fff;
    border-radius: 8px;
    padding: 14px 18px;
    color: var(--secondary);
    width: fit-content;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
}

    .employee-stats:hover {
        transform: translateY(-4px);
    }

.employee-heading {
    color: var(--accent-light);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.employee-table {
    width: 100%;
    border-collapse: collapse;
}

    .employee-table td {
        font-size: 14px;
        padding: 5px 0;
        border-bottom: 1px solid var(--gray-55);
    }

        .employee-table td:first-child {
            color: var(--secondary);
            font-weight: 500;
        }

        .employee-table td:last-child {
            text-align: right;
            font-weight: 600;
            color: var(--secondary);
        }

/*Sticky Menu*/
.sticky-menu {
    position: sticky;
    top: 0px;
    /* top:70px; */
    z-index: 10;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}


.sticky-menu::-webkit-scrollbar {
    display: none;
}

#stickyMenu {
    transition: padding-top 0.3s ease;
}


@media (max-width: 1408px) {
    .floor-plan-container {
        flex-direction: column;
        margin-left: 0;
    }

    .right-column {
        margin-top: 1rem;
    }


    .floorplan-fixed-nav {
        margin-top: 96px;
    }


}

@media(max-width: 1600px) {
    .plan-details {
        flex-direction: column !important;
    }
}

@media (max-width: 768px) {
    .fancybox__content {
        width: 90vw !important;
        height: 90vh !important;
        padding: 0 !important;
    }

    .fancybox__thumbs {
        bottom: 6px !important;
        max-height: 64px !important;
    }

    .fancybox__image {
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
    }

    .fancybox__button--arrow_next,
    .fancybox__button--arrow_prev {
        transform: none !important;
    }
}

@media (max-width: 576px) {

    .floor-plan-section {
        margin-top: 0px;
        width: 96%;
    }


    .plan-name {
        font-size: 22px;
    }

    .video-container {
        width: 100%;
        padding-inline: 0;
    }

    .style-label {
        font-size: 16px;
        font-family: var(--font-sans);
        color: var(--gray-dark);
        font-weight: 600;
    }

}
