#heroSlider,
.carousel-inner,
.carousel-item {
    height: 100vh; /* Fallback for older browsers */
    height: 100svh; /* Modern fix for mobile browser bars */
    position: relative;
}

#panorama,
#panorama2,
#panorama3 {
    width: 100%;
    height: 100vh; /* Fallback */
    height: 100svh; /* Modern fix */
}

/* Fix pannellum canvas background */
.pnlm-container {
    height: 100% !important;
}
.pnlm-controls-container,
.pnlm-about-msg {
    display: none !important;
}

/* ==================================================== */
/* Custom Transparent Animated Text Overlays            */
/* ==================================================== */
.carousel-item .custom-caption-content h1.carousal_slider_h1{
    color: #f1ebe3 !important;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgb(0 0 0 / 0%) 0%, rgb(0 0 0 / 33%) 65%);
    z-index: 1;
    pointer-events: none; 
}

.custom-caption-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    pointer-events: none; 
}

.custom-caption-content {
    pointer-events: auto; 
    max-width: 700px;
    color: #ffffff;
    margin-left: 8%;
}

.custom-caption-content .sub-title {
    font-size: 1.15rem;
    font-weight: 500;
    font-family: "Urbanist", serif;
    color: #f5f5f5;
    margin-bottom: 0.8rem;
    text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.6);
    display: block;
    animation-delay: 0.1s;
}

.custom-caption-content h1 {
    font-size: 4.8rem;
    font-weight: 800;
    font-family: "Marcellus", serif;
    letter-spacing: 3px;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: capitalize;
    text-shadow: 2px 4px 12px rgb(0 0 0 / 0%);
    animation-delay: 0.3s;
}

.custom-caption-content .action-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 5px;
    display: inline-block;
    transition: all 0.3s ease;
    animation-delay: 0.5s;
}

.custom-caption-content .action-link:hover {
    color: #f08767;
    border-bottom-color: #f08767;
    padding-left: 5px;
}

.drag-indicator {
    position: absolute;
    right: 15%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    color: #e2791d;
    text-align: center;
    pointer-events: none;
    text-shadow: 1px 2px 8px rgba(0,0,0,0.6);
}

.drag-indicator i {
    font-size: 2.5rem;
    margin-bottom: 5px;
    animation: pulse 2s infinite;
}

.drag-indicator span {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ==================================================== */
/* =============== Navigation Menu Styling ============ */
/* ==================================================== */
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: auto;
    bottom: 40px;
    width: 65px;
    height: 65px;
    background: #c87936;
    border: 1px solid rgb(231 121 29);
    border-radius: 50%;
    opacity: .7;
    z-index: 5;
    transition: all 0.3s ease;
}

.carousel-control-prev { left: auto; right: 125px; }
.carousel-control-next { right: 40px; }

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: #ffffff;
    color: #000000;
    transform: scale(1.05);
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    filter: invert(1);
}

.carousel-fade .carousel-inner .carousel-item {
    display: block !important;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 1s ease-in-out;
    pointer-events: none; 
}
.carousel-fade .carousel-inner .carousel-item.active {
    opacity: 1;
    position: relative;
    pointer-events: auto; 
}

#roof-sim-container {
    width: 100%;
    height: 100vh; /* Fallback */
    height: 100svh; /* Modern fix */
    overflow: hidden; 
    position: relative;
}
#roof-sim-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

#scene {
    width: 100%;
    height: 100vh; /* Fallback */
    height: 100svh; /* Modern fix */
    overflow: hidden; 
    position: relative;
}
#scene canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}
#floor {
    width: 100%;
    height: 100vh; /* Fallback */
    height: 100svh; /* Modern fix */ 
    background-color: #e9e2d6;
    overflow: hidden; 
    position: relative;
}
#floor canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.twm-hvillas-2slider .swiper-slide .people__card .slide__gradient {
    background-image: linear-gradient(45deg, #0000008c, rgba(0, 0, 0, 0.15) 60%) !important;
}

.form-control.address {
    height: auto !important;
}

.nice-select.open .list {
    width: 100%;
}
.request-form-wrap .form-item .form-control {
    z-index: 1;
}

.header .primary-header.fixed .primary-header-inner .header-logo img {
    max-width: 135px;
}


/* ==========================================
MODAL VISUAL STYLES
========================================== */

/* Overlay Background */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
    overflow: auto;
}

/* Active State for Overlay */
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Modal Container */
.modal-container {
    background-color: #1c1511;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100dvh !important;
    border-radius: 0px;
    overflow: auto;
    position: relative;
    display: flex;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999999 !important;
}

.modal-container .form-control{
    margin-bottom: 10px !important;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 0px;
    right: 20px;
    background: none;
    border: none;
    font-size: 70px;
    color: #94a3b8;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: color 0.2s;
}
.modal-close:hover {
    color: #94a3b8;
}

/* Left Side: Info Panel */
.modal-info-side .section-heading .section-title.title-2 {
    font-size: 45px;
}

.modal-info-side .request-content .request-item-wrap .request-item p, .modal-info-side .request-content .request-item-wrap .request-item a {
    font-family: var(--tl-ff-body);
    color: var(--tl-color-common-white);
    font-size: 16px !important;
    font-weight: 500;
    display: block;
    max-width: 255px;
}

.modal-info-side {
    flex: 1;
    padding: 40px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #1c151196;
}

.info-header h3 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.info-header p {
    color: #bfdbfe;
    font-size: 15px;
    line-height: 1.5;
}

.info-details {
    list-style: none;
    font-size: 14px;
    color: #eff6ff;
}

.info-details li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Right Side: Contact Form Area */
.modal-content-side {
    flex: 1.3;
    padding: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #1c151196;
}

.modal-content-side h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .modal-container {
        flex-direction: column;
        height: auto;
        max-width: 100vw;
    }
    .modal-info-side {
        padding: 30px;
        gap: 20px;
    }
    .modal-content-side {
        padding: 30px 24px;
    }
}
/* for popup end */

@media (max-width: 992px) {
    #heroSlider,
    .carousel-inner,
    .carousel-item {
        height: 100vh; /* Fallback */
        height: 100svh; /* Modern fix */
        position: relative;
    }
    #panorama,
    #panorama2,
    #panorama3 {
        width: 100%;
        height: 100vh; /* Fallback */
        height: 100svh; /* Modern fix */
    }

    .carousel-control-prev {
        left: auto;
        right: 85px !important;
    }
    .carousel-control-next {
        right: 10px !important;
    }
    .carousel-control-prev, .carousel-control-next {
        bottom: 15px !important;
    }

    /* #roof-sim-container {
        height: 25vh !important;
    }
    #scene {
        height: 25vh !important;
    }

    .twm-slider1-wrap .twm-slider1 {
        height: 35vh !important;
    } */

    #roof-sim-container {
        height: 50vh; /* Fallback */
        height: 50svh; /* Modern fix */
    }
    #scene {
        height: 50vh; /* Fallback */
        height: 50svh; /* Modern fix */
    }
    #floor {
        height: 50vh; /* Fallback */
        height: 50svh; /* Modern fix */
    }

    .twm-slider1-wrap .twm-slider1 {
        height: 50vh; /* Fallback */
        height: 50svh; /* Modern fix */
    }

    .twm-slider1-wrap .twm-slider1-content {
        height: 50vh; /* Fallback */
        height: 50svh; /* Modern fix */
    }

    .twm-slider1 {
        padding-bottom: 0px !important;
        padding-top: 0px !important;
    }

    .twm-slider1-wrap {
        /* height: 852px; */
    }

}

/* @media (768px <= width <= 991px) {
    #heroSlider,
    .carousel-inner,
    .carousel-item {
        height: 100vh !important;
        position: relative;
    }
    #panorama,
    #panorama2,
    #panorama3 {
        width: 100%;
        height: 100vh !important;
    }
    .slider-circle-pic-wrap {
        background-color: #e9e2d6 !important;
        height: 100vh !important;
    }
    #roof-sim-container {
        height: 50vh !important;
    }
    #scene {
        height: 50vh !important;
    }
    #floor {
        height: 50vh !important;
    }

    .twm-slider1-wrap .twm-slider1 {
        height: 50vh !important;
    }

    .twm-slider1-wrap .twm-slider1-content {
        height: 50% !important;
    }

    .twm-slider1 {
        padding-bottom: 0px !important;
        padding-top: 0px !important;
    }

    .site-button {
        float: left !important;
    }

    .twm-slider1-wrap {
        height: 100vh !important;
    }

    .gallary-section .gallary-text span {
        font-size: 170px !important;
    }
} */
@media (768px <= width <= 991px) {
    .twm-slider1-wrap .twm-slider1-content-inner .twm-slider1-content-inner-detail .wt-title {
        font-size: 75px !important;
        line-height: 75px !important;
    }
}

@media (max-width: 575px) {
    .custom-caption-content h1 {
        font-size: 2.5rem !important;
    }
    .drag-indicator {
        right: 5% !important;
        top: 60% !important;
    }
}

.twm-slider1-wrap .twm-slider1-content {
    background: #e9e2d6 !important
}
.twm-slider1-wrap .twm-slider1 {
    background: #e9e2d6;
}
.twm-slider1-wrap .twm-slider1-content-inner .twm-slider1-content-inner-detail .wt-title {
    color: #2c2c2c !important;
}
.header-style-2 .header-nav .nav > li > a {
    color: #fff !important;
}
.twm-slider1-wrap .xl-title span {
    opacity: 0.2 !important;
    -webkit-text-stroke: 2px #ff7700 !important;
    text-stroke: 2px #ff7700 !important;
}
.twm-slider1-wrap .twm-slider1-content-inner .twm-slider1-content-inner-detail .sm-title {
    color: #2c2c2c !important;
}

@media (max-width: 991px) {
    #contactModal{
        /* display: none !important; */
    }
    .modal-info-side{
        display: none !important;
    }
    .modal-content-side{
        padding-top: 20px !important;
    }
    .modal-content-side h2 {
        padding-top: 20px !important;
    }
}

.header .primary-header-inner .header-menu-wrap ul li a {
    color: #2e2e2e;
}

.header .primary-header.fixed .primary-header-inner .header-menu-wrap ul li a {
    color: #fff;
}

.sticky-logo{
    display: none;
}

.header .primary-header.fixed .sticky-logo {
    display: block !important;
}

.header .primary-header.fixed .primary-logo {
    display: none !important;
}

.header .primary-header-inner .header-menu-wrap ul li a {
    color: #2e2e2e;
}

header.first-slide-active .primary-header-inner .header-menu-wrap ul li a {
    color: #fff;
}
header.first-slide-active .primary-header-inner .header-menu-wrap ul li a:hover, .primary-header-inner .header-menu-wrap ul li a:hover {
    color: #e2791d !important;
}

header.first-slide-active .primary-header-inner .header-menu-wrap ul li.menu-item-has-children ul li a , header.first-slide-active .primary-header.fixed .primary-header-inner .header-menu-wrap ul li.menu-item-has-children ul li a {
    color: #000;
}

.primary-header-inner .header-menu-wrap ul li.menu-item-has-children ul li a , .primary-header.fixed .primary-header-inner .header-menu-wrap ul li.menu-item-has-children ul li a {
    color: #000;
}

.primary-header-inner .header-menu-wrap ul li.menu-item-has-children ul li a:hover , .primary-header.fixed .primary-header-inner .header-menu-wrap ul li.menu-item-has-children ul li a:hover {
    color: #e2791d !important;
}

header.first-slide-active .primary-header-inner .header-menu-wrap ul li.menu-item-has-children ul li a:hover {
    color: #e2791d !important;
}

.header.first-slide-active .primary-header-inner .header-right-wrap .sidebar-icon .sidebar-trigger, .header .primary-header-inner .header-right-wrap .search-icon {
    background: rgba(216, 218, 223, .13);
    color: #fff !important;
}

.header .primary-header-inner .header-right-wrap .sidebar-icon .sidebar-trigger, .header .primary-header-inner .header-right-wrap .search-icon {
    background: rgba(216, 218, 223, .13);
    color: #000000;
}

.header .primary-header.fixed .primary-header-inner .header-right-wrap .sidebar-icon .sidebar-trigger {
    background: rgba(216, 218, 223, .13);
    color: #fff !important;
}

.header .primary-header-inner.fixed .header-right-wrap .sidebar-icon .sidebar-trigger, .header .primary-header-inner .header-right-wrap .search-icon {
    background: rgba(216, 218, 223, .13);
    color: #fff !important;
}

/* First slider active */
.header.first-slide-active .header-logo .primary-logo {
    display: none !important;
}

.header.first-slide-active .header-logo .sticky-logo {
    display: block !important;
}

.scroll-indicator{
    position:absolute;
    left:50%;
    bottom:65px;
    cursor: pointer;
    transform:translateX(-50%);
    animation:mouseBounce 1.8s infinite ease-in-out;
}

.scroll-indicator span{
    position: absolute;
    color: #fff;
    top: -25px;
    left: -20px;
}

@media (min-width: 992px) {
    .scroll-indicator{
        display: none !important;
    }
}

@media (769px <= width <= 991px) {
    .drag-indicator {
        top: 30% !important;
    }
}

.scroll-indicator {
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* This hides the loader for all pannellum viewers */
.pnlm-error-msg {
    display: none !important;
}
.pnlm-load-box {
    display: none !important;
}
