.sub-heading {
    font-size: 120px;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translateX(-50%);
    color: #000;
    letter-spacing: -5px;
}

.jarallax-img {
    object-fit: cover !important;
    object-position: 10% 46% !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

@media (max-width: 768px) {
    .jarallax-img {
        object-position: 40% 90% !important;
    }
}

.about-hero-section {
    min-height: 50vh;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .about-hero-section {
        min-height: 30vh;
    }
}

/* About page: larger featured image (Meet the Builder) */
.about-featured-image-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.about-featured-img {
    width: 100%;
    min-height: 380px;
    max-height: 520px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.about-featured-badge {
    font-size: 1rem;
    letter-spacing: 0.02em;
}

@media (min-width: 992px) {
    .about-featured-img {
        min-height: 420px;
        max-height: 560px;
    }

    .about-featured-badge {
        font-size: 1.1rem;
    }
}

/* About page: Our Vision image gallery - balanced 2x2 grid */
.about-vision-gallery.about-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
}

.about-vision-cell {
    min-height: 0;
}

.about-vision-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    border-radius: 12px;
}

.about-vision-img-wrap .about-vision-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.about-vision-img-wrap:hover .about-vision-img {
    transform: scale(1.04);
}

@media (min-width: 768px) {
    .about-vision-gallery.about-vision-grid {
        gap: 1rem;
    }

    .about-vision-img-wrap {
        aspect-ratio: 4/3;
    }
}

@media (min-width: 992px) {
    .about-vision-gallery.about-vision-grid {
        gap: 1.25rem;
    }
}

/* About page: Meet the Team section - slider with hover effects */
#section-meet-team {
    background: #fff;
    padding-bottom: 80px !important;
}

#section-meet-team .subtitle {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

#section-meet-team h2 {
    font-size: 1.5rem;
    font-weight: 500;
    font-style: italic;
    color: #6c757d !important;
}

.about-team-swiper-wrap {
    padding: 0 3.5rem;
    position: relative;
}

/* Override theme's dark swiper background and absolute positioning */
#section-meet-team .about-team-swiper.swiper {
    background: transparent !important;
    overflow: hidden;
    margin: 0;
    padding: 0;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    left: auto !important;
    top: auto !important;
}

#section-meet-team .about-team-swiper .swiper-wrapper {
    align-items: stretch;
}

#section-meet-team .about-team-swiper .swiper-slide {
    background: transparent !important;
    height: auto;
    box-sizing: border-box;
}

/* Fallback when Swiper JS is not loaded: show slides in a row */
.about-team-swiper.about-team-swiper-fallback {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.about-team-swiper.about-team-swiper-fallback .swiper-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    width: 100%;
}

.about-team-swiper.about-team-swiper-fallback .swiper-slide {
    flex: 0 0 auto;
    width: calc(100% - 2rem);
    max-width: 260px;
}

@media (min-width: 576px) {
    .about-team-swiper.about-team-swiper-fallback .swiper-slide {
        width: calc(50% - 1rem);
        max-width: none;
    }
}

@media (min-width: 768px) {
    .about-team-swiper.about-team-swiper-fallback .swiper-slide {
        width: calc(33.333% - 1rem);
    }
}

@media (min-width: 992px) {
    .about-team-swiper.about-team-swiper-fallback .swiper-slide {
        width: calc(25% - 1.125rem);
    }
}

.about-team-card {
    padding: 0 0.5rem;
    background: #fff;
    border-radius: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-team-card-img-wrap {
    position: relative;
    aspect-ratio: 1;
    width: 100%;
    max-width: 280px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}

.about-team-card-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.about-team-card:hover .about-team-card-img-wrap::after {
    opacity: 1;
}

.about-team-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.45s ease, filter 0.35s ease;
}

.about-team-card:hover .about-team-card-img {
    transform: scale(1.06);
    filter: brightness(1.02);
}

.about-team-card-name {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.3;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 0.35rem;
}

.about-team-card-role {
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

.about-team-swiper-prev,
.about-team-swiper-next {
    color: #fff;
    width: 2.5rem;
    height: 2.5rem;
    margin-top: -1.25rem;
    border-radius: 50%;
    background: #000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.about-team-swiper-prev::after,
.about-team-swiper-next::after {
    font-size: 0.75rem;
    font-weight: 700;
}

.about-team-swiper-prev:hover,
.about-team-swiper-next:hover {
    background: #1a1a1a;
    color: #fff;
    transform: scale(1.08);
}

.about-team-swiper-prev {
    left: 0;
}

.about-team-swiper-next {
    right: 0;
}

.about-team-swiper-wrap .about-team-swiper-prev,
.about-team-swiper-wrap .about-team-swiper-next {
    position: absolute;
    top: 50%;
    z-index: 20;
}

@media (max-width: 767px) {
    .about-team-swiper-wrap {
        padding: 0 2.5rem;
    }

    .about-team-swiper-prev::after,
    .about-team-swiper-next::after {
        font-size: 0.65rem;
    }
}

.rounded-border {
    border-radius: 6px !important;
}

.plyr--video .plyr__controls {
    border-radius: 8px !important;
}

.plyr__video-wrapper {
    border-radius: 8px !important;
}

/* Button fx-slide animation support (same as a.btn-main.fx-slide on index/contact) */
button.btn-main.fx-slide {
    position: relative;
    overflow: hidden;
    display: inline-block;
    color: #000 !important;
}

button.btn-main.fx-slide span {
    display: block;
    position: relative;
    transition: all 0.3s ease-in-out;
    color: #000 !important;
}

button.btn-main.fx-slide:hover span {
    transform: translate(0, 40px);
    opacity: 0;
    color: #000 !important;
}

button.btn-main.fx-slide:hover:before {
    opacity: 1;
    transform: translate(0, 0);
}

button.btn-main.fx-slide:before {
    content: attr(data-hover);
    position: absolute;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translate(0, -100%);
    transition: all 0.3s ease-in-out;
}

/* Contact form submit button – loading state with spinner */
button.btn-main.fx-slide .btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: btn-spinner-rotate 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes btn-spinner-rotate {
    to {
        transform: rotate(360deg);
    }
}

button.btn-main.fx-slide.btn-loading .btn-spinner {
    display: inline-block;
}

button.btn-main.fx-slide.btn-loading span.btn-content {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

/* Disable hover animation while loading (exclude .btn-spinner so it can rotate) */
button.btn-main.fx-slide.btn-loading:hover span:not(.btn-spinner),
button.btn-main.fx-slide.btn-loading span:not(.btn-spinner) {
    transform: none !important;
    opacity: 1 !important;
}

button.btn-main.fx-slide.btn-loading:hover:before {
    opacity: 0 !important;
}


.letter-spacing-wrap {
    letter-spacing: 5px;
    text-transform: uppercase;
}

.letter-spacing-heading {
    letter-spacing: 5px;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 60px;
    text-align: left;
}

.hero-section {
    /* min-height: calc(100vh); */
}

/* Hero background video (Interior Walkthrough) */
.hero-section .mh-800 {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-video-wrap {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Hero heading: elegant serif, bold (800), larger size */
.hero-heading {
    /* font-family: 'Source Serif 4', Georgia, serif; */
    font-weight: 800 !important;
    font-size: 6rem !important;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #fff;
    text-align: left;
    text-transform: none;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
    width: 80%;
    font-style: italic;
    margin: 0 auto;
    text-align: center;
}

@media (max-width: 768px) {
    .hero-heading {
        font-size: 3rem !important;
        line-height: 1.18;
        letter-spacing: 0.012em;
        width: 100%;
    }
}

.bg-navy {
    background-color: #1a2a44;
}

.bg-dark-boxed {
    background-color: #111111;
}

.max-w-1290 {
    max-width: 1290px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.icon-primary {
    filter: brightness(0) saturate(100%) invert(81%) sepia(48%) saturate(2501%) hue-rotate(351deg) brightness(103%) contrast(104%);
}

.about-content-wrap {
    max-width: 850px;
}

.about-video-wrap {
    padding-left: 0;
    margin: 0 0 0 -50px;
}

@media (max-width: 1540px) {
    .about-video-wrap {
        padding: 0 0 0 30px;
        margin: 0;
    }
}

@media (max-width: 992px) {
    .about-video-wrap {
        padding: 50px 20px 0;
        margin: 0;
    }
}

@media (max-width: 1540px) {
    .about-section-wrap {
        padding-top: 0 !important;
    }
}

.id-color-line {
    width: 80px;
    height: 2px;
    background: var(--primary-color);
    display: block;
    margin: 0 0 20px 0;
}

/* Design Packages section: responsive iframe (client interactive tour) */
.design-packages-iframe-wrap {
    position: relative;
    width: 100%;
    background: #0d1520;
    aspect-ratio: 16 / 10;
    min-height: 280px;
}

.design-packages-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Design Packages image slider */
.design-packages-swiper-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 280px;
    border-radius: 10px;
    overflow: hidden;
}

.design-packages-swiper {
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.design-packages-swiper .swiper-slide {
    height: 100%;
}

.design-packages-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.design-packages-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
    transition: background 0.25s ease, transform 0.25s ease;
}

.design-packages-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color, #ffc200);
    transform: scale(1.2);
}

.design-packages-swiper .swiper-button-prev,
.design-packages-swiper .swiper-button-next {
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: background 0.25s ease, color 0.25s ease;
}

.design-packages-swiper .swiper-button-prev:after,
.design-packages-swiper .swiper-button-next:after {
    font-size: 18px;
    font-weight: 700;
}

.design-packages-swiper .swiper-button-prev:hover,
.design-packages-swiper .swiper-button-next:hover {
    background: var(--primary-color, #ffc200);
    color: #000;
}

@media (max-width: 575px) {
    .design-packages-swiper-wrap {
        aspect-ratio: 4 / 3;
        min-height: 220px;
    }

    .design-packages-swiper .swiper-button-prev,
    .design-packages-swiper .swiper-button-next {
        width: 36px;
        height: 36px;
    }

    .design-packages-swiper .swiper-button-prev:after,
    .design-packages-swiper .swiper-button-next:after {
        font-size: 14px;
    }
}

/* Floor plan listing cards: image hover */
.floorplan-card img {
    transition: transform 0.3s ease;
}

.floorplan-card:hover img {
    transform: scale(1.05);
}

/* Floor plan stats: Font Awesome icons (reliable rendering) */
.floorplan-stat-icon {
    color: var(--primary-color);
    font-size: 1rem;
    width: 1.25em;
    text-align: center;
}

@supports not (aspect-ratio: 16 / 10) {
    .design-packages-iframe-wrap::before {
        content: "";
        display: block;
        padding-bottom: 62.5%;
    }
}

.offset-left-content {
    margin-left: -100px;
    position: relative;
    z-index: 5;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, .3);
}

.play-button-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.play-button-wrap .btn-play {
    width: 80px !important;
    height: 80px !important;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #000 !important;
    transition: all .3s ease;
    box-shadow: 0 0 0 0 rgba(255, 194, 0, 0.4);
    animation: pulse 2s infinite;
    text-decoration: none !important;
}

.play-button-wrap .btn-play svg {
    margin-left: 5px;
    display: block;
    width: 32px;
    height: 32px;
}

.mfp-bg,
.mfp-wrap {
    z-index: 10000 !important;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 194, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(255, 194, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 194, 0, 0);
    }
}

.play-button-wrap .btn-play:hover {
    background: #fff;
    color: #000;
    transform: scale(1.1);
    animation: none;
}

@media (max-width: 992px) {
    .offset-left-content {
        margin-left: 0;
    }
}

@media (max-width: 1440px) {
    .letter-spacing-heading {
        font-size: 110px;
    }
}

@media (max-width: 1200px) {
    .letter-spacing-heading {
        font-size: 80px;
    }
}

@media (max-width: 992px) {
    .letter-spacing-heading {
        font-size: 60px;
    }
}

@media (max-width: 456px) {
    .letter-spacing-heading {
        font-size: 32px;
    }
}

.image-wrap-shedule {
    display: block;
}

@media (max-width: 768px) {
    .image-wrap-shedule {
        display: none;
    }
}

.bg-grey {
    background-color: #f2f2f2;
}

.video-wrapper {
    position: relative;
    overflow: hidden;
    background: #000;
}

.video-wrapper::before,
.video-wrapper::after {
    content: none !important;
}

/* Native video or poster: fill frame, no black bars */
.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center center !important;
    display: block;
}


.icon-black {
    filter: brightness(0) saturate(100%);
}

.subtitle {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 8px;
}

.subtitle::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #000;
    /* black accent */
}

.black-text {
    color: #000;
}

.yellow-text {
    color: #ffc200;
}

/* Location Highlights Section Improvements */
.location-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    border-color: var(--primary-color);
}

.location-icon-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 194, 0, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

.location-card:hover .location-icon-wrapper {
    background: var(--primary-color);
}

.location-card:hover .location-icon-wrapper i {
    color: #000 !important;
}

.location-tabs li {
    padding: 12px 24px;
    margin-right: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
    font-weight: 500;
}

.location-tabs li:hover {
    background: rgba(255, 255, 255, 0.2);
}

.location-tabs .active-tab {
    background: #fff;
    color: #000;
    font-weight: 600;
    position: relative;
}

.location-tabs .active-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

/* Floor plan category tabs */
.floorplan-tabs-wrap {
    width: 100%;
}

.floorplan-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .floorplan-tabs-nav {
        border-bottom: none;
    }
}

/* Tab button */
.floorplan-tab-btn {
    position: relative;
    padding: 0.75rem 0.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.25s ease;
    white-space: nowrap;
}

/* Bottom border (hidden by default) */
.floorplan-tab-btn::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 3px;
    background: var(--primary-color, #ffc200);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

/* Hover */
.floorplan-tab-btn:hover {
    color: #000;
}

/* Active tab */
.floorplan-tab-btn.active {
    color: #000;
}

.floorplan-tab-btn.active::after {
    transform: scaleX(1);
}

/* Accessibility */
.floorplan-tab-btn:focus-visible {
    outline: none;
}

/* Mobile responsive */
@media (max-width: 575px) {
    .floorplan-tabs-nav {
        gap: 1rem;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 0.25rem;
        scrollbar-width: none;
    }

    .floorplan-tabs-nav::-webkit-scrollbar {
        display: none;
    }

    .floorplan-tab-btn {
        flex: 0 0 auto;
        font-size: 0.95rem;
    }
}


/* Default: show only 1.5 Story tab content (no flash before JS) */
.floorplan-col[data-floorplan-tab="1-5-story-reverse"],
.floorplan-col[data-floorplan-tab="2-story"] {
    display: none;
}

.floorplan-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.floorplan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2) !important;
}

.floorplan-card img {
    transition: transform 0.5s ease;
    min-height: 300px;
    object-fit: cover;
}

/* Floor plan cards use .hover on the link - same hover effect as gallery (handled by theme) */

/* Floor Plan Detail Page Styles */
.btn-main-outline {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.btn-main-outline:hover {
    background: var(--primary-color);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 194, 0, 0.3);
}

.btn-main-outline span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-main-outline:hover span {
    transform: translateX(5px);
}

/* Floor Plan Detail Page - Key Features Text Wrapping */
#key-features li,
.bg-white.rounded-1.shadow-sm ul.list-unstyled li {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

#key-features li i,
.bg-white.rounded-1.shadow-sm ul.list-unstyled li i {
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    width: auto !important;
    min-width: 20px !important;
    margin-top: 10px !important;
}

#key-features li span,
.bg-white.rounded-1.shadow-sm ul.list-unstyled li span {
    min-width: 0 !important;
    width: auto !important;
    max-width: calc(100% - 30px) !important;
    flex: 1 1 auto !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    white-space: normal !important;
    display: block !important;
    box-sizing: border-box !important;
}

#key-features,
.bg-white.rounded-1.shadow-sm ul.list-unstyled {
    overflow: visible !important;
    width: 100% !important;
    max-width: 100% !important;
}

.bg-white.rounded-1.shadow-sm.p-4 {
    overflow: visible !important;
}

/* Floor Plan Detail Page - View All Floor Plans Link */
.floorplan-link-back {
    color: #000;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.floorplan-link-back:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.list-unstyled li {
    display: flex !important;
    align-items: flex-start !important;
}

/* Floor Plans Page - Text Truncation */
.floorplan-card p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    max-height: 3em;
}

.floorplan-card .p-4 p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    max-height: 3em;
}

/* Gallery Image Standardization – varied heights (masonry) */
#section-gallery .image-popup .relative,
#section-gallery .fancybox-gallery .relative {
    height: auto;
    min-height: 200px;
    width: 100%;
    background-color: #f8f8f8;
    /* Placeholder color while loading */
    transition: opacity 0.4s ease;
}

.img-gallery-item {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

#section-gallery .image-popup img,
#section-gallery .fancybox-gallery img {
    height: auto;
    width: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* Unified Scrollbar Fix */
html {
    height: auto !important;
    overflow-y: scroll !important;
    /* Force single root scrollbar */
    overflow-x: hidden !important;
}

body {
    height: auto !important;
    min-height: 100vh;
    overflow-y: visible !important;
    overflow-x: hidden !important;
}

/* Lenis Smooth Scroll Compatibility */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* Custom Loader Logo */
.loader-logo {
    width: 150px;
    /* Adjust size as needed */
    height: auto;
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-30px);
    }

    60% {
        transform: translateY(-15px);
    }
}

/* Ensure loader background matches theme */
#de-loader {
    background: #ffffff !important;
}

.dark-scheme #de-loader {
    background: var(--bg-dark-1) !important;
}

/* Mobile Responsiveness for Gallery – keep varied heights */
@media (max-width: 768px) {

    #section-gallery .image-popup .relative,
    #section-gallery .fancybox-gallery .relative {
        height: auto;
    }
}

@media (max-width: 576px) {

    #section-gallery .image-popup .relative,
    #section-gallery .fancybox-gallery .relative {
        height: auto;
    }
}

/* --------------------------------------------------
 * extra | active menu state
 * --------------------------------------------------*/
#mainmenu li a.active {
    color: var(--primary-color) !important;
    position: relative;
}

#mainmenu li a.active::after {
    content: "" !important;
    display: block !important;
    width: 100% !important;
    height: 2px !important;
    background: var(--primary-color) !important;
    position: absolute !important;
    bottom: 22px !important;
    left: -2px !important;
    z-index: 99 !important;
    visibility: visible !important;
}

@media screen and (max-width: 1299px) {
    #mainmenu li a.active::after {
        left: -16px !important;
    }
}

@media screen and (max-width: 992px) {
    #mainmenu li a.active::after {
        bottom: 8px !important;
    }
}

@media screen and (max-width: 768px) {
    #mainmenu li a.active::after {
        bottom: 12px !important;
        left: -2px !important;
    }
}

/* Video Aspect Ratio Fix – fill frame with image/video, no black bars */
.video-wrapper .plyr {
    position: relative;
    aspect-ratio: 16/9;
    height: auto;
    overflow: hidden;
}

.video-wrapper .plyr__video-wrapper {
    position: absolute !important;
    left: 0;
    top: 0;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden;
}

.video-wrapper .plyr__video-wrapper video,
.video-wrapper .plyr video {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
}

/* About Section Video Fix */
:root {
    --plyr-color-main: #ffc200;
}

.about-video-wrap .plyr {
    aspect-ratio: 16/12;
    /* Square ratio for increased height */
    width: 100%;
}

.about-video-wrap .plyr video {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

/* Enhanced Magnific Popup Zoom Animation for Floorplans */
.mfp-with-zoom .mfp-container,
.mfp-with-zoom.mfp-bg {
    opacity: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: all 0.3s ease-out;
}

.mfp-with-zoom.mfp-ready .mfp-container {
    opacity: 1;
}

.mfp-with-zoom.mfp-ready.mfp-bg {
    opacity: 0.8;
}

.mfp-with-zoom.mfp-removing .mfp-container,
.mfp-with-zoom.mfp-removing.mfp-bg {
    opacity: 0;
}

/* Zoom effect on image */
.mfp-with-zoom .mfp-img {
    transform: scale(0.8);
    transition: transform 0.3s ease-in-out;
}

.mfp-with-zoom.mfp-ready .mfp-img {
    transform: scale(1);
}

.mfp-with-zoom.mfp-removing .mfp-img {
    transform: scale(0.8);
}

/* Enhance floorplan popup appearance */
.mfp-image-holder .mfp-close,
.mfp-iframe-holder .mfp-close {
    color: #ffc200;
    background: rgba(0, 0, 0, 0.6);
    width: 44px;
    height: 44px;
    line-height: 44px;
    border-radius: 50%;
    text-align: center;
    padding: 0;
    right: 8px;
    top: 8px;
}

.mfp-image-holder .mfp-close:hover,
.mfp-iframe-holder .mfp-close:hover {
    background: #ffc200;
    color: #000;
}

/* =====================================================
   Gallery Masonry Layout (CSS columns - packed, no JS)
   ===================================================== */
.gallery-masonry {
    column-count: 3;
    column-gap: 1.5rem;
    margin: 0;
}

.gallery-masonry-sizer {
    display: none;
}

.gallery-masonry-item {
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 1.5rem;
    display: inline-block;
    width: 100%;
    vertical-align: top;
}

.gallery-masonry-item a {
    display: block;
}

.gallery-masonry-item .relative {
    min-height: 200px;
    /* Removed aspect-ratio to prevent image cropping - masonry handles height dynamically */
}

.gallery-masonry-item img {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.gallery-masonry-item img.loaded {
    opacity: 1;
}

.gallery-masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
}

@media (max-width: 991px) {
    .gallery-masonry {
        column-count: 2;
        column-gap: 1.25rem;
    }

    .gallery-masonry-item {
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 575px) {
    .gallery-masonry {
        column-count: 1;
        column-gap: 0;
    }

    .gallery-masonry-item {
        margin-bottom: 1rem;
    }
}

.menu_side_area {
    margin-left: 0 !important;
}

/* About page – Experience & Counter sections */

#section-experience {
    background-color: #f5f5f5;
}

#section-experience .about-experience-icon {
    width: 4rem;
    height: 4rem;
    background: rgba(0, 0, 0, 0.06);
}

#section-experience .about-experience-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#section-experience .about-experience-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1) !important;
}

#section-counter .about-counter-number {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
    color: #fff;
}

#section-counter .about-counter-suffix {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: rgba(255, 255, 255, 0.9);
}

#section-counter.bg-white .about-counter-number,
#section-counter.bg-white .about-counter-suffix {
    color: #212529;
}

#section-counter.bg-white .about-counter-suffix {
    color: rgba(33, 37, 41, 0.9);
}

#section-counter .about-counter-item {
    padding: 0.5rem 0;
}

/* Contact page – info cards (Address, Phone, Email) */
#section-contact-cards {
    background-color: #fff;
}

.contact-info-card {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.contact-info-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-2px);
    background-color: #f2f2f2;
}

.contact-info-icon {
    color: #000;
}

.contact-info-icon i {
    display: inline-block;
}

.contact-info-title {
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

.contact-info-detail {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.contact-info-detail:hover {
    color: var(--primary-color, #ffc200) !important;
    opacity: 1;
}

.floor-plan-btn {
    font-size: 16px !important;
}

.stacked-wrap {
    padding-left: 100px !important;
    padding-top: 120px !important;
    padding-bottom: 120px !important;
}

@media (max-width: 1024px) {
    .stacked-wrap {
        padding-left: 30px !important;
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }
}

@media (max-width: 768px) {
    .stacked-wrap {
        padding-left: 30px !important;
    }
}

.stacked-wrap h2 {
    font-weight: 400 !important;
    font-size: 50px;
}

@media (max-width: 1440px) {
    .stacked-wrap h2 {
        font-size: 40px;
    }
}

@media (max-width: 1024px) {
    .stacked-wrap h2 {
        font-size: 30px;
    }
}

/* Featured Homes Card Hover Effects */
.featured-home-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-home-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.featured-home-card img {
    transition: transform 0.5s ease;
    display: block;
    width: 100%;
}

.featured-home-card:hover img {
    transform: scale(1.05);
}

.stacked-wrap-left {
    padding-right: 100px !important;
    padding-top: 120px !important;
    padding-bottom: 120px !important;
}

@media (max-width: 1024px) {
    .stacked-wrap-left {
        padding-right: 30px !important;
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }
}

@media (max-width: 768px) {
    .stacked-wrap-left {
        padding-right: 30px !important;
    }
}

.stacked-wrap-left h2 {
    font-weight: 400 !important;
    font-size: 50px !important;
}

@media (max-width: 1440px) {
    .stacked-wrap-left h2 {
        font-size: 40px !important;
    }
}

@media (max-width: 1024px) {
    .stacked-wrap-left h2 {
        font-size: 30px !important;
    }
}


.split-section {
    min-height: 480px !important;
}

@media (min-width: 992px) {
    .split-section {
        min-height: 560px !important;
    }
}

.logos-wrap {
    width: 100%;
    background-color: white;
    margin: 15px auto 0;
    padding: 10px;
    border-radius: 6px;
}