/***************************************************
/* CSS Variables and Global Styles */
/***************************************************/

:root {
    --primaryColor: #0067B1;
    --secondaryColor: #B5985A;
    --tertiaryColor: #2A465A;
    --color-grey-dark: #5E717F;
    --color-grey-mid: #64727C;
    --color-grey-light: #8A9AA5;
    --highest-zindex: 2147483647;
    --bodyFont: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --headerFont: Georgia, serif;
}

/***************************************************
/* Global Layout and Utilities */
/***************************************************/

.flex-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.grid-item {
    height: 100%;
}

.grid-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

@media (max-width: 900px) {
    .desktop-only {
        display: none;
    }
}

.mobile-only {
    display: none;
}

@media (max-width: 900px) {
    .mobile-only {
        display: block;
    }
}

@media (max-width: 900px) {
    .mobile-fullwidth {
        margin-left: -1.5rem;
        margin-right: -1.5rem;
    }
}

main {
    padding: 0 1.5rem;
}

@media (max-width: 900px) {
    main {
        padding: 0;
    }
}

/***************************************************
/* Splide Slider Styles */
/***************************************************/

/* Custom pagination */
.custom-pagination {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background-color: #3333339c;
    z-index: 100000;
    padding: 5px 10px 6px;
    line-height: 1;
    color: #fff;
    backdrop-filter: blur(2px);
    border-radius: 4px;
    font-size: 12px;
}

@media (max-width: 900px) {
    .splide__arrows {
        display: none;
    }
}

.splide__arrow {
    background-color: #fff !important;
    opacity: 1 !important;
    color: var(--primaryColor) !important;
    border-radius: 0;
    height: 60px;
    width: 60px;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 10px 0px #00000033 !important;
    border-radius: 50% !important;
}

.splide__arrow svg {
    fill: var(--primaryColor) !important;
}

.splide__arrow[disabled] {
    opacity: 0 !important;
}

.splide__arrow--next {
    right: 0;
    transform: translateX(50%) translateY(-130%);
}

.splide__arrow--prev {
    left: 0;
    transform: translateX(-50%) translateY(-130%);
}

/* Quick Move-In Homes Slider */
#quick_move_content .splide__slide {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #DDDDDD;
    display: flex;
    flex-direction: column;
    background: #fff;
}

@media (max-width: 900px) {
    #quick_move_content .splide__slide:first-child {
        margin-left: 1.5rem;
    }
}

#quick_move_content .splide__track::after {
    content: "";
    width: 20%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(270deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
}

#quick_move_content .featured-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

#quick_move_content .featured-image img {
    height: 250px;
    object-fit: cover;
    width: 100%;
    display: block;
}

#quick_move_content .featured-image span.badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.6rem 1.2rem;
    background-color: var(--primaryColor);
    color: #fff;
    font-weight: 500;
    border-radius: 0;
    border-bottom-left-radius: 8px;
    z-index: 10;
}

#quick_move_content .home-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #fff;
}

#quick_move_content .home-info h3 {
    margin: 0 0 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #DDDDDD;
    line-height: 1;
}

#quick_move_content .home-info h3 a {
    color: var(--tertiaryColor);
    font-size: 1.25rem;
    line-height: 1;
    text-decoration: none;
}

#quick_move_content .home-info h4 {
    margin: 0 0 1rem;
    color: var(--color-grey-mid);
    font-size: 1rem;
    font-weight: 400;
}

#quick_move_content .home-info a {
    line-height: 1;
    border-radius: 6px;
    font-size: 0.85rem;
    text-align: center;
    text-decoration: none;
}

#quick_move_content .home-info a:hover {
    filter: brightness(0.9);
}

#quick_move_content .home-info .global-btn {
    white-space: nowrap;
    margin: auto 0 0;
    background-color: var(--primaryColor);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

#quick_move_content .home-info .global-btn:hover {
    background-color: var(--tertiaryColor);
    color: #fff;
}

#quick_move_content .specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 0 0 1rem;
}

#quick_move_content .specs > span {
    background-color: #F1F1F1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    border-radius: 4px;
    line-height: 1;
    font-weight: 500;
    font-size: 14px;
    color: var(--tertiaryColor);
}

/* Floor Plans Slider */
#floor-plans .splide__slide {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #DDDDDD;
    display: flex;
    flex-direction: column;
    background: #fff;
}

@media (max-width: 900px) {
    #floor-plans .splide__slide:first-child {
        margin-left: 1.5rem;
    }
}

#floor-plans .splide__track::after {
    content: "";
    width: 20%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(270deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
}

#floor-plans .featured-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

#floor-plans .featured-image img {
    height: 250px;
    object-fit: cover;
    width: 100%;
    display: block;
}

#floor-plans .home-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #fff;
}

#floor-plans .home-info h3 {
    margin: 0 0 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #DDDDDD;
    line-height: 1;
}

#floor-plans .home-info h3 a {
    color: var(--tertiaryColor);
    font-size: 1.25rem;
    line-height: 1;
    text-decoration: none;
}

#floor-plans .home-info h4 {
    margin: 0 0 1rem;
    color: var(--color-grey-mid);
    font-size: 1rem;
    font-weight: 400;
}

#floor-plans .home-info a {
    line-height: 1;
    border-radius: 6px;
    font-size: 0.85rem;
    text-align: center;
    text-decoration: none;
}

#floor-plans .home-info a:hover {
    filter: brightness(0.9);
}

#floor-plans .home-info .global-btn {
    white-space: nowrap;
    margin: auto 0 0;
    background-color: var(--primaryColor);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

#floor-plans .home-info .global-btn:hover {
    background-color: var(--tertiaryColor);
    color: #fff;
}

/* Action Icons for Floor Plans */
#floor-plans .inner-icons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

#floor-plans .inner-icons button {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    background-color: #F1F1F1;
}

#floor-plans .inner-icons button:hover {
    background-color: var(--primaryColor);
    color: #fff;
}

#floor-plans .inner-icons button:hover svg {
    fill: #fff;
}

#floor-plans .inner-icons button svg {
    width: 20px;
    height: 20px;
    fill: var(--tertiaryColor);
    transition: all 0.3s ease;
}

/* Specs Grid for Floor Plans - Adjusted for pills */
#floor-plans .specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 0 0 1rem;
}

#floor-plans .specs > span {
    background-color: #F1F1F1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    border-radius: 4px;
    line-height: 1;
    font-weight: 500;
    font-size: 14px;
    color: var(--tertiaryColor);
}

/* Handle pills when they're inside specs grid */
#floor-plans .specs > span:has(.pills) {
    grid-column: 1 / -1; /* Span full width */
    height: auto;
    min-height: 45px;
    padding: 0.75rem;
    background-color: #F8F9FA;
    border: 1px solid #E9ECEF;
    align-items: flex-start;
    justify-content: flex-start;
}

#floor-plans .specs > span:has(.pills) .pills {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    width: 100%;
}

/* Pills for Floor Plans - Adjusted layout */
#floor-plans .pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: #F8F9FA;
    border-radius: 4px;
    border: 1px solid #E9ECEF;
}

#floor-plans .pills a {
    background-color: var(--primaryColor);
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

#floor-plans .pills a:hover {
    background-color: var(--tertiaryColor);
}

@media (max-width: 900px) {
    #floor-plans .specs > span {
        font-size: 0.8rem;
    }
    
    #floor-plans .specs > span:has(.pills) {
        padding: 0.5rem;
    }
    
    #floor-plans .pills {
        padding: 0.5rem;
    }
    
    #floor-plans .pills a {
        font-size: 11px;
        padding: 0.2rem 0.4rem;
    }
}

/***************************************************
/* Section Base Styles */
/***************************************************/

section {
    max-width: 1300px !important;
    margin: 0 auto !important;
}

section.bordered {
    padding-block: 3rem;
    border-bottom: 1px solid #DBE5ED;
}

section.inner {
    padding-block: 3rem;
}

section:last-child {
    padding-bottom: 0;
}

@media (max-width: 900px) {
    section {
        padding-block: 3rem !important;
        padding-inline: 1.5rem !important;
        max-width: 100vw !important;
    }
}

section h2.title {
    text-align: left;
    margin: 0 0 1.75rem;
    line-height: 1;
    font-size: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--tertiaryColor);
}

@media (max-width: 900px) {
    section h2.title {
        font-size: 2rem;
        justify-content: center;
    }
}

section h2.title span {
    font-family: var(--bodyFont);
    font-weight: 300;
    font-size: 1.15rem;
    color: var(--color-grey-mid);
}

section h2.title .title-callout {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    font-family: var(--bodyFont);
    font-weight: 300;
    font-size: 1.15rem;
}

section p:last-of-type {
    margin: 0;
}

/***************************************************
/* Navigation */
/***************************************************/

nav.tabs {
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    gap: 2rem;
    border-width: 1px;
    border-style: solid;
    border-color: #0000001A;
    box-shadow: 0px 4px 32px 0px #0000000F;
    position: sticky;
    top: 0;
    z-index: calc(var(--highest-zindex) - 67) !important;
    margin: 0;
    padding: 0;
}

@media (max-width: 900px) {
    nav.tabs {
        display: none;
    }
}

nav.tabs a {
    font-family: var(--bodyFont);
    color: var(--tertiaryColor);
    font-weight: 500;
    font-size: 16px;
    position: relative;
    padding-block: 1.5rem;
    text-decoration: none;
}

nav.tabs a.active,
nav.tabs a:hover {
    color: var(--primaryColor);
}

nav.tabs a.active::after,
nav.tabs a:hover::after {
    content: "";
    display: block;
    width: 100%;
    height: 5px;
    background-color: var(--primaryColor);
    position: absolute;
    bottom: -1px !important;
    left: 0;
}

/***************************************************
/* Content Layout */
/***************************************************/

#content {
    display: flex;
    gap: 80px;
    padding: 2rem 0;
    max-width: 1300px !important;
    margin: 0 auto !important;
}

@media (max-width: 900px) {
    #content {
        padding: 0 !important;
        max-width: 100vw !important;
        flex-direction: column;
        gap: 0;
    }
}

.content-container {
    width: 60%;
}

@media (max-width: 900px) {
    .content-container {
        width: 100%;
    }
}

/***************************************************
/* Title Section (matching listings.css) */
/***************************************************/

.status-badge {
    color: var(--primaryColor);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    border: 2px solid var(--primaryColor);
    background-color: #0067b112;
}

@media (max-width: 900px) {
    .mobile-only h1 {
        color: #fff;
        text-align: center;
        font-size: 4rem !important;
        padding-bottom: 8px;
    }
    .mobile-only p.status-badge {
        border: none !important;
        color: white;
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        letter-spacing: -0.05ch;
        text-align: center;
        font-weight: 300;
    }
}

#top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 0;
    margin: 0;
}

@media (max-width: 900px) {
    #top {
        padding: 0 !important;
        display: block;
    }
}

#top .title {
    color: var(--tertiaryColor);
    font-size: 3.75rem;
    line-height: 1;
    margin: 0;
    padding: 0;
    font-weight: 400;
}

.breadcrumbs {
    display: flex !important;
    gap: 8px;
    font-family: var(--bodyFont);
    align-items: center;
    margin: 0 0 0.75rem;
}

@media (max-width: 900px) {
    .breadcrumbs {
        padding: 1rem;
        margin: 0;
        border-width: 1px 0 1px 0;
        border-style: solid;
        border-color: #0000001A;
    }
}

.breadcrumbs a {
    color: var(--color-grey-dark);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
}

.breadcrumbs a:not(:first-of-type) {
    color: var(--color-grey-light);
}

@media (max-width: 900px) {
    .breadcrumbs a:not(:first-of-type) {
        display: none;
    }
}

@media (max-width: 900px) {
    .breadcrumbs span {
        display: none;
    }
}

.breadcrumbs svg {
    transform: translateY(1px);
    margin-right: 0.5rem;
}

/***************************************************
/* Title Gallery Section (matching listings.css) */
/***************************************************/

#title-gallery {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 10px;
    overflow: hidden;
    border-radius: 1.25rem;
    height: 440px;
    position: relative;
}

@media (max-width: 900px) {
    #title-gallery {
        display: block;
        height: auto;
        border-radius: 0;
        padding: 0 !important;
    }
}

@media (max-width: 900px) {
    #title-gallery .mobile-fullwidth {
        margin-left: unset !important;
        margin-right: unset !important;
    }
}

#title-gallery .grid-container--featured {
    position: relative;
    max-height: 440px;
}

@media (max-width: 900px) {
    #title-gallery .grid-container--featured {
        display: flex;
        flex-direction: column-reverse;
    }
}

#title-gallery .grid-container--images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: 10px;
}

#title-gallery .grid-container--images:has(.grid-item:only-of-type) {
    grid-template-columns: 1fr;
}

@media (max-width: 900px) {
    #title-gallery .grid-container--images {
        display: none !important;
    }
}

#title-gallery a.btn {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    border: 2px solid #949494;
    background-color: #fff;
    border-radius: 8px;
    color: var(--tertiaryColor);
    padding: 0.75rem 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    text-decoration: none;
}

@media (max-width: 900px) {
    #title-gallery a.btn {
        display: none;
    }
}

#title-gallery a.btn:hover {
    background-color: var(--primaryColor);
    border-color: var(--primaryColor);
    color: #fff;
}

#title-gallery a.btn:hover svg * {
    fill: #fff !important;
}

#title-gallery a.btn svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}



/***************************************************
/* Single Featured Image Layout */
/***************************************************/

#title-gallery.single-featured-image {
    display: block;
    grid-template-columns: none;
    gap: 0;
    height: auto;
    overflow: hidden;
    border-radius: 1.25rem;
    position: relative;
}

#title-gallery.single-featured-image .single-featured-container {
    width: 100%;
    position: relative;
}

#title-gallery.single-featured-image .single-featured-container a {
    display: block;
    width: 100%;
    position: relative;
}

#title-gallery.single-featured-image .single-featured-container {
    position: relative;
}

#title-gallery.single-featured-image .single-featured-container img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    border-top-left-radius: 1.25rem;
    border-bottom-right-radius: 1.25rem;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
}

@media (max-width: 900px) {
    #title-gallery.single-featured-image {
        border-radius: 0;
        max-height: none;
    }
    
    #title-gallery.single-featured-image .single-featured-container img {
        border-radius: 0;
    }
}

/***************************************************
/* Community Info Section */
/***************************************************/

#community-info {
    padding-block: 3rem;
}

#community-info .coll-info {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #0000001A;
    overflow: hidden;
}

#community-info .nav-tabs {
    margin: 0;
    padding: 1rem 0;
    display: flex;
    justify-content: flex-start;
}

#community-info .nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--color-grey-mid);
    font-weight: 500;
    padding: 1rem 1.5rem;
}

#community-info .nav-tabs .nav-link.active,
#community-info .nav-tabs .nav-link:hover {
    color: var(--primaryColor);
    border-bottom-color: var(--primaryColor);
    background: transparent;
}

#community-info .tab-content {
    padding: 0;
}

#community-info .btn {
    background-color: var(--primaryColor);
    border-color: var(--primaryColor);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    transition: all 0.3s ease;
}

#community-info .btn:hover {
    background-color: var(--tertiaryColor);
    border-color: var(--tertiaryColor);
}

#community-info ul {
    padding-left: 0 !important;
}

.open-house {
    background: #F7F7F7;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid var(--primaryColor);
}

/***************************************************
/* 360 Viewer Section */
/***************************************************/

#viewer-section {
    padding-block: 3rem;
}

#viewer {
    width: 100%;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #0000001A;
    background: #f5f5f5;
}

@media (max-width: 900px) {
    #viewer {
        height: 300px;
        border-radius: 0;
    }
}

/***************************************************
/* Plat Map Section */
/***************************************************/

#plat-map {
    padding-block: 3rem;
}

#plat {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #0000001A;
    margin-top: 1.5rem;
}

#plat iframe {
    width: 100%;
    border: none;
    display: block;
}

#plat img {
    width: 100%;
    height: auto;
    display: block;
}

/***************************************************
/* Nearby Amenities Section */
/***************************************************/

section#community {
    max-width: 1300px !important;
    margin: 0 auto !important;
    padding-block: 3rem;
}

#community .title img {
    max-width: 200px;
}

#community .community-subsection {
    margin-top: 3rem;
}

#community .community-subsection h3 {
    margin: 0 0 2rem;
    position: relative;
}

#community .community-subsection h3::after {
    content: "";
    height: 2px;
    background-color: #0000001A;
    position: absolute;
    right: 0;
    top: 50%;
    flex: 0 0 auto;
    width: 100%;
}

#community .community-subsection h3 span {
    background-color: #ffffff;
    padding: 5px 2rem 5px 0;
    border-radius: 4px;
    z-index: 1000;
    position: relative;
}

#community .grid-container--amenities {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 767px) {
    #community .grid-container--amenities {
        display: flex;
        flex-direction: column;
    }
}

#community .grid-container--amenities .grid-item {
    display: flex;
    justify-content: flex-start;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 180px;
    color: #fff;
}

@media (max-width: 767px) {
    #community .grid-container--amenities .grid-item {
        min-height: 180px;
    }
}

#community .grid-container--amenities .grid-item:after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#community .grid-container--amenities .grid-item .grid-item__content {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1rem;
    position: relative;
    z-index: 2;
}

#community .grid-container--amenities .grid-item .drive-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background-color: #00000080;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    z-index: 10;
    border: 1px solid #fff;
    line-height: 1;
    font-size: 12px;
    text-transform: uppercase;
    transition: all 0.5s ease;
}

#community .grid-container--amenities .grid-item .drive-time svg {
    width: 30px;
    height: 12px;
}

#community .grid-container--amenities .grid-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

#community .grid-container--amenities .grid-item h4 {
    margin: 0;
    color: #fff;
    z-index: 1;
    font-family: var(--bodyFont);
    transition: all 0.5s ease;
}

#community .grid-container--amenities .grid-item p {
    margin: 0;
    color: #fff;
    z-index: 1;
    opacity: 0;
    height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: all 0.5s ease;
    font-size: 12px;
    line-height: 1.35;
}

#community .grid-container--amenities .grid-item:hover .drive-time,
#community .grid-container--amenities .grid-item:focus .drive-time,
#community .grid-container--amenities .grid-item:active .drive-time {
    top: 0.75rem;
    bottom: unset;
}

#community .grid-container--amenities .grid-item:hover p,
#community .grid-container--amenities .grid-item:focus p,
#community .grid-container--amenities .grid-item:active p {
    margin-top: 0.5rem;
    opacity: 1;
    height: auto;
    overflow: visible;
    visibility: visible;
}

/***************************************************
/* Quick Move Homes & Floor Plans */
/***************************************************/

#quick_move_content,
#floor-plans {
    padding-block: 3rem;
}

.floor-pans {
    margin: 0;
}

.floor-plan-list {
    margin: unset !important;
}
@media (max-width: 900px) {
    .floor-plan-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.floorplan {
    width: calc((100% - (3 * var(--gap))) / 2) !important;
}
.floorplan:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.floorplan .sale {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primaryColor);
    color: white;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 14px;
    border-bottom-left-radius: 8px;
    z-index: 10;
}

.floorplan .imgcol {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.floorplan .imgcol img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.floorplan:hover .imgcol img {
    transform: scale(1.02);
}

.floorplan .info {
    padding: 1.5rem;
}

.floorplan .head h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    line-height: 1.2;
}

.floorplan .head h3 a {
    color: var(--tertiaryColor);
    text-decoration: none;
}

.floorplan .head h3 a:hover {
    color: var(--primaryColor);
}

.floorplan .head h4 {
    margin: 0 0 1rem;
    font-size: 1rem;
    color: var(--color-grey-mid);
    font-weight: 400;
}

.floorplan .specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.floorplan .spec {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
    color: var(--color-grey-dark);
}

.floorplan .spec .icon {
    width: 18px;
    height: 18px;
    color: var(--primaryColor);
}

.floorplan .inner-icons {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    justify-content: center;
}

.floorplan .inner-icons button {
    background: #F7F7F7;
    border: 1px solid #0000001A;
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floorplan .inner-icons button:hover {
    background: var(--primaryColor);
    border-color: var(--primaryColor);
}

.floorplan .inner-icons button:hover svg {
    fill: white;
}

.floorplan .pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.floorplan .pills a {
    background: var(--primaryColor);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 12px;
    text-decoration: none;
    font-weight: 500;
}

.floorplan .global-btn {
    background: var(--primaryColor);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.floorplan .global-btn:hover {
    background: var(--tertiaryColor);
    color: white;
}

/* Owl Carousel Styling */
.floor_planslider {
    margin-bottom: 1rem;
}

/***************************************************
/* Video Section */
/***************************************************/

#commmunity-video {
    padding-block: 3rem;
}

#commmunity-video .video-container {
    margin-top: 1.5rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #0000001A;
}

#commmunity-video iframe {
    width: 100%;
    height: 400px;
    border: none;
}

@media (max-width: 900px) {
    #commmunity-video iframe {
        height: 250px;
    }
}

/***************************************************
/* Photo Gallery */
/***************************************************/

#commmunity-photos {
    padding-block: 3rem;
}

/* Splide Gallery Styles for Community Photos */
/* Media Gallery Slider */
#commmunity-photos .splide__slide {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #DDDDDD;
}

@media (max-width: 900px) {
    #commmunity-photos .splide__slide {
        border-radius: 0;
    }
}

#commmunity-photos .splide__slide img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    display: block;
}

@media (max-width: 900px) {
    #commmunity-photos .splide__slide img {
        border-radius: 0;
    }
}

#commmunity-photos .splide__track::after {
    content: "";
    width: 20%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(270deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
}

.property-img.owl-carousel {
    margin-top: 1.5rem;
}

.property-img .item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
}

.property-img .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-img .item:hover img {
    transform: scale(1.02);
}

.property-img .img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.property-img .item:hover .img-overlay {
    opacity: 1;
}

.property-img .overlayIcon {
    background: var(--primaryColor);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/***************************************************
/* Map Section */
/***************************************************/

#community-map {
    padding-block: 3rem;
}
@media (max-width: 900px) {
    #community-map {
        padding: 0;
        margin: 0 !important;
        border-radius: 0 !important;
    }
}

#map {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #0000001A;
}

/***************************************************
/* Aside Styling */
/***************************************************/

aside {
    width: 40%;
    position: sticky;
    top: var(--scroll-offset, 80px);
    align-self: flex-start;
    border-radius: 16px;
    overflow: hidden;
    background: #F7F7F7;
    border: 1px solid #0000001A;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

aside .intro {
    margin: 0 0 1.5rem;
    line-height: 1;
    color: #9AA3AA;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    position: relative;
}

aside .intro::after {
    content: "";
    height: 2px;
    background-color: #0000001A;
    position: absolute;
    right: 0;
    top: 50%;
    flex: 0 0 auto;
    width: 100%;
}

aside .intro span {
    background-color: #f7f7f7;
    padding: 5px 2rem 5px 0;
    border-radius: 4px;
    z-index: 1000;
    position: relative;
}

aside h3 {
    color: var(--primaryColor);
    font-size: 1.5rem;
    margin: 0;
    font-family: var(--bodyFont);
    font-weight: 600;
}

aside .agent-flex {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 1rem;
}

aside .agent-flex img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    object-fit: cover;
}

aside .agent-info .position {
    margin: 0;
    color: #8A9AA5;
    font-size: 14px;
    font-family: var(--bodyFont);
}

aside .phone {
    color: var(--primaryColor);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

aside .social-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

aside .social-links a {
    width: 32px;
    height: 32px;
    background: var(--primaryColor);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

aside .social-links a:hover {
    background: var(--tertiaryColor);
}

aside .desc {
    color: #5E717F;
    font-size: 14px;
    font-weight: 300;
    margin: 1rem 0;
}

aside .gform_wrapper {
    width: 100%;
}

aside .gform_wrapper input:not([type="submit"]),
aside .gform_wrapper textarea {
    border: 1px solid #0000001A;
    padding: 0.75rem !important;
    line-height: 1;
    font-size: 0.85rem !important;
    font-weight: 300;
    border-radius: 4px;
    width: 100%;
}

aside .gform_wrapper input:not([type="submit"])::placeholder,
aside .gform_wrapper textarea::placeholder {
    font-weight: 300;
    font-size: 14px !important;
}

aside .gform_wrapper textarea {
    line-height: 1.25;
    resize: vertical;
}

aside .gform-grid-col {
    padding: 0 !important;
}

aside .gform_fields {
    grid-row-gap: 8px !important;
}

aside .ginput_complex {
    display: flex;
    flex-flow: row wrap;
    gap: 8px;
}

aside .gform-footer {
    padding: 0 !important;
    margin: 1rem 0 0 !important;
    border-radius: 4px;
    overflow: hidden;
}

aside label,
aside legend {
    display: none !important;
}

aside input[type="submit"] {
    width: 100%;
    border-radius: 4px;
    font-family: var(--bodyFont) !important;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--primaryColor);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

aside input[type="submit"]:hover {
    background: var(--tertiaryColor);
}

/***************************************************
/* Responsive Overrides */
/***************************************************/

@media (max-width: 900px) {
    aside {
        width: 100%;
        border: none;
        border-radius: 0;
        padding-top: 3rem;
        position: relative;
        top: unset;
    }
    
    #content {
        flex-direction: column;
        gap: 0;
    }
    
    .content-container {
        width: 100%;
    }
    
    section {
        padding-inline: 1.5rem !important;
    }
    
    .floor-plan-list {
        grid-template-columns: 1fr;
    }
    
    #top {
        border-radius: 0;
        margin-left: -1.5rem;
        margin-right: -1.5rem;
    }
}

/***************************************************
/* Community Info Section - Mobile Responsive Fixes */
/***************************************************/

@media (max-width: 900px) {
    #community-info {
        padding-block: 2rem;
        max-width: 100vw; /* Ensure it doesn't exceed viewport width */
        overflow-x: hidden; /* Prevent horizontal overflow */
    }
    
    #community-info .coll-info {
        border-radius: 0;
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        border-left: none;
        border-right: none;
        max-width: 100vw; /* Ensure it doesn't exceed viewport width */
        overflow-x: hidden; /* Prevent horizontal overflow */
    }
    
    /* Fix flex-container overflow */
    #community-info .flex-container {
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
        justify-content: flex-start; /* Override space-between */
        flex-wrap: nowrap;
        box-sizing: border-box;
        position: relative;
    }
    
    /* Ensure flex items don't cause container expansion */
    #community-info .flex-container > * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Compact Horizontal Tab Navigation */
    #community-info .nav-tabs {
        padding: 0;
        margin: 0 0 1rem 0;
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        border: none;
        background: transparent;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        max-width: 100%; /* Constrain to container width */
        width: 100%; /* Take full width of container */
        box-sizing: border-box; /* Include padding in width calculation */
        position: relative; /* Create new stacking context */
        /* Ensure this container doesn't affect parent width */
        min-width: 0; /* Allow container to shrink */
        flex-shrink: 1; /* Allow container to shrink */
        /* Ensure pills start from the left edge */
        justify-content: flex-start;
        align-items: flex-start;
        
    }
    
    /* Ensure the pills container doesn't affect parent width */
    #community-info .nav-tabs::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        pointer-events: none;
        z-index: -1;
    }
    
    /* Hide scrollbar for Chrome/Safari */
    #community-info .nav-tabs::-webkit-scrollbar {
        display: none;
    }
    
    /* Ensure pills don't cause container to expand */
    #community-info .nav-tabs > li {
        flex-shrink: 0;
        min-width: 0;
        margin: 0;
        padding: 0;
    }
    
    #community-info .nav-tabs .nav-link {
        border: 1px solid #e9ecef;
        border-radius: 6px;
        color: var(--color-grey-dark);
        font-weight: 500;
        padding: 0.75rem 1rem;
        text-align: center;
        background: #fff;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        white-space: nowrap;
        flex-shrink: 0; /* Prevent pills from shrinking */
        min-width: 80px;
        font-size: 14px;
        box-sizing: border-box; /* Include border in width calculation */
        margin: 0;
    }
    
    #community-info .nav-tabs .nav-link.active {
        color: #fff;
        background: var(--primaryColor);
        border-color: var(--primaryColor);
    }
    
    #community-info .nav-tabs .nav-link:hover {
        background: #f8f9fa;
        color: var(--primaryColor);
        border-color: var(--primaryColor);
    }
    
    /* Remove arrow indicators for cleaner look */
    #community-info .nav-tabs .nav-link::after {
        display: none;
    }
    
    /* Content area - ensure it stays within viewport */
    #community-info .tab-content {
        padding: 0;
        background: #fff;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden; /* Prevent content overflow */
    }
    
    /* Mobile Button Redesign - match content width */
    #community-info .btn {
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
        padding: 0.75rem 1.5rem;
        border-radius: 6px;
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        font-size: 14px;
    }
    
    /* Create a button group for mobile */
    #community-info .btn-group {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin: 1rem 0;
    }
    
    .open-house {
        margin: 1rem 0;
        border-radius: 6px;
        border-left: 4px solid var(--primaryColor);
        background: #f8f9fa;
    }
    
    /* Mobile-specific content styling */
    #community-info .tab-pane {
        padding: 0;
    }
}

/* Additional mobile fixes for content overflow */
@media (max-width: 900px) {
    /* Ensure content doesn't overflow horizontally */
    body {
        overflow-x: hidden;
    }
    
    /* Fix any potential width issues */
    .container,
    .container-fluid {
        max-width: 100vw;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    /* Ensure all content fits within viewport */
    main {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    /* Fix tab content overflow */
    .tab-pane {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Ensure images don't cause overflow */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Fix any table overflow issues */
    table {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        display: block;
    }
}

/***************************************************
/* Bootstrap Tab Overrides */
/***************************************************/

.nav-tabs {
    border-bottom: 1px solid #dee2e6;
}

.nav-tabs .nav-link {
    border: 1px solid transparent;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
    color: var(--color-grey-mid);
    padding: 0.75rem 1rem;
}

.nav-tabs .nav-link:hover {
    border-color: #e9ecef #e9ecef #dee2e6;
    isolation: isolate;
    color: var(--primaryColor);
}

.nav-tabs .nav-link.active {
    color: var(--primaryColor);
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}

.tab-content {
    border: none;
}

.tab-pane {
    padding: 1.5rem 0;
}

