.letter-spacing-wrap {
    letter-spacing: 5px;
    text-transform: uppercase;
}

.letter-spacing-heading {
    letter-spacing: 10px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 80px;
    text-align: right;
    max-width: 580px;
}

@media (max-width: 768px) {
    .letter-spacing-heading {
        font-size: 40px;
    }
}

.bg-grey {
    background-color: #f2f2f2;
}

.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 Plans Page Styles */
.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;
    border-color: var(--primary-color);
}

.floorplan-card img {
    transition: transform 0.5s ease;
    min-height: 300px;
    object-fit: cover;
}

.floorplan-card:hover img {
    transform: scale(1.05);
}

.floorplan-card .overlay-black-5.hover-op-1 {
    opacity: 0 !important;
}

.floorplan-card:hover .overlay-black-5.hover-op-1,
.floorplan-card:hover .overlay-black-5 {
    opacity: 0.7 !important;
}

.floorplan-card .fa-expand {
    transition: all 0.3s ease;
    opacity: 0 !important;
    transform: scale(0.8);
}

.floorplan-card:hover .fa-expand {
    opacity: 1 !important;
    transform: scale(1);
}

/* 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 */
#section-gallery .image-popup .relative,
#section-gallery .fancybox-gallery .relative {
    height: 350px;
    width: 100%;
}

#section-gallery .image-popup img,
#section-gallery .fancybox-gallery img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

/* Unified Scrollbar Fix */
html {
    height: 100%;
    overflow-y: scroll;
    /* Force vertical scrollbar to prevent layout shift */
}

body {
    min-height: 100%;
    overflow: hidden;
}

/* 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 */
@media (max-width: 768px) {

    #section-gallery .image-popup .relative,
    #section-gallery .fancybox-gallery .relative {
        height: 300px;
    }
}

@media (max-width: 576px) {

    #section-gallery .image-popup .relative,
    #section-gallery .fancybox-gallery .relative {
        height: 250px;
    }
}