html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Main Remax CSS */

.status-btn {
    display: inline-flex;
    overflow: hidden;
    position: relative;
}

.status-btn:before {
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, .3), transparent);
    transform: rotate(45deg);
    animation: 3s infinite buttonshimmer;
    content: "";
    position: absolute;
    opacity: 0;
    width: 100px;
    height: 20px;
}

.status-btn-span {
    color: white;
    padding: 10px 24px;
    border-radius: 100px;
    border: none;
    font-size: 16px;
    position: absolute;
    top: 15px;
    right: 15px;
}

@keyframes buttonshimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
        opacity: 1;
    }
    100% {
        transform: translateX(100%) rotate(45deg);
        opacity: 0;
    }
}


.phone-link {
    color: blue !important;
    text-decoration: underline !important;
}

.phone-link:hover {
    color: darkblue !important;
    text-decoration: none !important;
}

.fa-remove:before, .fa-close:before, .fa-times:before {
    content: "\00d7";
    font-weight: 500;
    font-size: 35px;
    top: 1px;
    position: relative;
}

.main-content-grid-v1 {
    margin: 0 auto;
    max-width: 1400px;
    padding: 0 1rem;
}

.section-wrapper-1 {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-sub-wrapper-1 {
    display: grid;
    grid-template-columns: 1fr 426px;
    gap: 2rem;
    align-items: start;
}

.section-sub-wrapper-1-left {
    display: flex;
    flex-direction: column;
    width: 98%;
}

.cta-section-v2-container-1 {
    padding: 0 0 3rem;
}

.cta-v2-schedule-showing-container {
    padding: 39px 0;
}

.team-section-container {
    border-bottom: 1px solid #C6C6C6;
}

.selling-box-container {
    padding-top: 40px;
}

.team-section-right-container {
    position: sticky;
    top: 2rem;
}

/* Selling House CSS */

#selling-title-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    display: flex;
    margin-bottom: 20px;
}

/* Image container */
#selling-image-container.mobile-none {
    display: flex;
    height: 0;
    flex-direction: row;
    justify-content: flex-end;
}

/* Options section */
#selling-options.selling-options {
    position: relative;
    text-align: center;
}

/* Title */
#selling-title {
    color: #292C3D;
    font-family: 'Montserrat', serif;
    font-size: 22px;
    font-style: normal;
    font-weight: 600;
    line-height: 110%; /* 24.2px */
    letter-spacing: -0.22px;
}

/* Description */
#selling-description.font-18 {
    color: #292C3D;
    font-family: 'Montserrat', serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%; /* 14px */
    letter-spacing: -0.14px;
}

/* Subtitle */
#selling-subtitle {
    color: #292C3D;
    font-family: 'Montserrat', serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: -0.14px;
}

/* Boxes container */
#selling-boxes.selling-boxes {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 16px;
}

/* Box styles */
#buying-box.selling-box,
#selling-box.selling-box,
#buying-selling-box.selling-box {
    display: flex;
    position: relative;
    border: 2px solid rgb(55, 92, 251);
    flex-direction: column;
    justify-content: flex-end;
}

/* Box images */
#buying-image.fr-fic.fr-dii,
#selling-image.fr-fic.fr-dii,
#buying-selling-image.fr-fic.fr-dii {
    padding: 15px 10px 25px;
}

/* Button styles */
#buying-button.blue-box-button,
#selling-button.blue-box-button,
#buying-selling-button.blue-box-button,
.blue-box-button {
    display: inline-flex;
    width: 100%;
    padding: 15px;
    color: rgb(255, 255, 255);
    background-color: #0841A3;
    border: 1px solid #0841A3;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    justify-content: center;
}

/* Share Container CSS */

.share-container {
    position: fixed;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 9999;
}

.share-button {
    display: flex;
    align-items: center;
}

.share-button img {
    width: 40px;
    height: auto;
    margin-right: 10px;
}

.social-icons {
    position: absolute;
    display: none;
    transform: scale(0);
    transition: transform 0.3s ease-in-out;
    left: 65px;
    top: 50%;
    transform-origin: center;
}

.social-icons a {
    position: absolute;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-icons img {
    width: 25px;
    height: 25px;
    border-radius: 50px;
}

.social-icons a:nth-child(1) {
    transform: translate(-50px, -60px);
}

.social-icons a:nth-child(2) {
    transform: translate(-10px, -30px);
}

.social-icons a:nth-child(3) {
    transform: translate(-50px, 35px);
}

.social-icons a:nth-child(4) {
    transform: translate(-10px, 15px);
}

/* Footer CSS */

.a-company-name {
    font-weight: 300;
}

.logos-list {
    padding-bottom: 9px;
}

.footer-links {
    list-style: none;
    padding: 0;
    position: relative;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    margin: 0 -8px 5px;
    font-weight: 400;
    color: #292C3D;
    text-align: center;
    font-family: 'Montserrat', serif;
    font-size: 12px;
    font-style: normal;
    line-height: 140%; /* 16.8px */
    letter-spacing: -0.12px;
}

.footer__holder.fh-bottom-links-disclaimer {
    display: flex !important;
    flex-direction: column-reverse;
    padding: 20px 0 20px;
    border-color: rgba(0, 0, 0, .08);
    align-items: center;
}

.footer-image-logo {
    width: 45px;
    height: 48px;
    flex-shrink: 0;
    aspect-ratio: 15/16;
}

.disclaimer-footer-links-rights {
    color: #292C3D;
    text-align: center;
    font-family: 'Montserrat', serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 300;
    line-height: 140%; /* 16.8px */
    letter-spacing: -0.12px;
    padding-bottom: 10px;
}

.footer-links-list-item {
    border-color: rgba(86, 89, 89, 1.00);
    padding: 0 8px;
    border-right: 1px solid;
}

.footer-links-list-a {
    color: rgba(86, 89, 89, 1.00);
}

.footer-links-list-item-3 {
    padding: 0 8px;
}

/* Team Section 2 CSS */

#profile-image {
    width: 161px;
    border-radius: 50%;
    -o-object-fit: cover;
       object-fit: cover;
    aspect-ratio: 1 / 1;
}

#member-name, .member-name {
    color: #292C3D;
    font-family: 'Montserrat', serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 110%; /* 17.6px */
    letter-spacing: -0.16px;
    padding-bottom: 11px;
}

.member-title {
    color: #292C3D;
    font-family: 'Montserrat', serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%; /* 16.8px */
    letter-spacing: -0.14px;
}

.member-company {
    color: #292C3D;
    font-family: 'Montserrat', serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%; /* 16.8px */
    letter-spacing: -0.14px;
    padding-bottom: 11px;
}

.member-phone {
    color: #292C3D;
    font-family: 'Montserrat', serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%; /* 16.8px */
    letter-spacing: -0.14px;
}

.profile-details {
    position: relative;
    width: 100%;
}

#agent-profile-container {
    position: relative;
    top: 10px;
}

#main-agent-profile {
    position: relative;
    top: 12px;
}

#description-footer {
    position: relative;
    top: 10px;
}

.member-listings {
    font-weight: 400;
    font-family: 'Montserrat', serif;
    top: 128px;
    /*font-style: italic;*/
    font-size: 13px;
}

.member-license {
    color: #292C3D;
    font-family: 'Montserrat', serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%; /* 16.8px */
    letter-spacing: -0.14px;
}

#team-member-desc--header {
    color: #292C3D;
    font-family: 'Montserrat', serif;
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%; /* 16.8px */
    letter-spacing: -0.14px;
}

#team-member-desc-body {
    color: #292C3D;
    font-family: 'Montserrat', serif;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%; /* 16.8px */
    letter-spacing: -0.14px;
}

.agent-profile {
    padding-top: 20px;
}

.footer-text {
    font-family: 'Montserrat', serif;
}

#meet-your-team-heading {
    font-size: 1.75rem;
    font-weight: 600;
    color: #111;
}

.team-profiles {
    margin: 25px 0;
    gap: 100px;
}

.left-profile,
.right-profile {
    flex-basis: 50%;
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 25px;
}

.team-row {
    display: flex;
    margin-bottom: 15px;
}

/* Tools Section CSS */

.logo-container-v1 {
    text-align: center;
    padding: 1rem 0 1.5rem 0;
    display: flex;
    justify-content: center;
}

.logo-v1 {
    height: 60px;
    width: auto;
}

.tools-section {
    padding-bottom: 1.5rem;
    max-width: 1400px;
}

.tools-container {
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    gap: 30px;
}

.tools-header {
    flex-shrink: 0;
}

.tools-title-1 {
    color: #000;
    font-family: 'Montserrat', serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 120%; /* 24px */
    letter-spacing: -0.2px;
    white-space: pre-line;
}

.tools-grid {
    display: flex;
    gap: 30px;
    flex: 1;
}

.tool-item-1 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 600;
    flex: 1;
    justify-content: flex-start;
    min-width: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tool-item-1.tool-mortgage {
    background: #F5F6F9 !important;
    color: #0841A3 !important;
}

.tool-item-1.tool-mortgage:hover {
    background: #bbdefb !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(21, 101, 192, 0.2);
}

.tool-item-1.tool-preapproved {
    background: #F5F6F9 !important;
    color: #0841A3 !important;
}

.tool-item-1.tool-preapproved:hover {
    background: #bbdefb !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(21, 101, 192, 0.2);
}

.tool-item-1.tool-value {
    background: #F5F6F9 !important;
    color: #0841A3 !important;
}

.tool-item-1.tool-value:hover {
    background: #bbdefb !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(21, 101, 192, 0.2);
}

.tool-icon-1 {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e40af;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .tools-container {
        gap: 2rem;
    }

    .tools-grid {
        gap: 0.75rem;
    }

    .tool-item-1 {
        padding: 0.875rem 1.25rem;
    }
}

/* Version 1: Floating Pulse + 3D Tilt */
.tool-button-v1 {
    position: relative;
    display: flex;
    transform: translate3d(var(--tw-translate-x), var(--tw-translate-y), 0) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.75rem;
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
    animation: float 3s ease-in-out infinite;
    perspective: 1000px;
}

.tool-button-v1:hover {
    --tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    animation: none;
    transform: rotateX(-10deg) rotateY(10deg) translateZ(20px);
    font-family: 'Montserrat', serif !important;
}

.tool-button-v1:hover .tool-icon-wrapper-v1 {
    animation: spin-bounce 0.6s ease-in-out;
}

@keyframes spin-bounce {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

.tool-text-v1 {
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(31 41 55 / var(--tw-text-opacity, 1));
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
    font-family: 'Montserrat', serif !important;
}

.tool-button-v1:hover .tool-text-v1 {
    --tw-text-opacity: 1;
    color: rgb(37 99 235 / var(--tw-text-opacity, 1));
    letter-spacing: 0.5px;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 110%; /* 17.6px */
    font-family: 'Montserrat', serif !important;
}

/* Hero Property Section CSS */

.photo-overlay-main {
    position: absolute;
    bottom: 2px;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5000;
}

.hero-property-section {
    max-width: 1400px;
    padding: 1.5rem 0;
    background: white;
}

/* Wrapper container for consistent width */
.hero-property-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-property-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 44px;
    margin-bottom: 1.5rem;
}

.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 44px;
    height: 435px;
}

.gallery-thumbnail,
.gallery-thumbnail-1 {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: calc((435px - 2.5rem) / 2);
}

.hero-image-container {
    overflow: hidden;
    height: 435px;
    position: relative;
}

.hero-image {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    -webkit-backdrop-filter: blur(2px);
            backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    gap: 0.5rem;
    font-weight: 600;
    padding: 1.5rem 1rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.photo-overlay svg {
    fill: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.gallery-trigger:hover .photo-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
    padding-bottom: 1.2rem;
    cursor: pointer;
}

.property-details-section {
    background: white;
}

.property-main-info {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 45px;
    align-items: flex-start;
    width: 100%;
}

.price-and-specs {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 363px;
    width: 100%;
    flex: 1;
}

.property-price {
    font-family: 'Montserrat', serif !important;
    color: #292C3D;
    font-size: 36px;
    font-style: normal;
    font-weight: 500;
    line-height: 110%; /* 39.6px */
    letter-spacing: -0.36px;
}

.property-specs {
    display: flex;
    gap: 34px;
    align-items: center;
    margin-left: auto;
}

.spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.spec-number {
    font-family: 'Montserrat', serif !important;
    color: #292C3D;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 110%; /* 26.4px */
    letter-spacing: -0.24px;
}

.spec-label {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.25rem;
}

.listing-info {
    display: flex;
    width: 265px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.listed-by-label {
    color: #868686;
    font-family: 'Montserrat', serif !important;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: 110%; /* 13.2px */
    letter-spacing: 0.24px;
    text-transform: uppercase;
}

.listing-company {
    color: #000;
    font-family: 'Montserrat', serif !important;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 110%; /* 17.6px */
    letter-spacing: -0.16px;
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
    .hero-property-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 1024px) {
    .property-main-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .listing-info {
        align-items: flex-start;
        text-align: left;
        margin-top: 1rem;
    }

    .property-specs {
        gap: 2rem;
    }
}

/* Modern Photo Gallery Styles */
.photo-gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
}

.gallery-wrapper {
    position: relative;
    width: 95vw;
    height: 95vh;
    max-width: 1600px;
    background: #000;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
}

/* Gallery Header */
.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.gallery-info h3 {
    margin: 0;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
}

.gallery-counter {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 0.25rem;
    display: block;
}

.gallery-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.gallery-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Main Gallery Area */
.gallery-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 5rem 2rem 2rem;
}

.gallery-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 0;
}

.gallery-image-wrapper {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main-image {
    max-width: 100%;
    max-height: calc(95vh - 200px);
    -o-object-fit: contain;
       object-fit: contain;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-main-image.loaded {
    opacity: 1;
}

.image-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.gallery-main-image.loaded + .image-loader {
    display: none;
}

/* Navigation Buttons */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.nav-prev {
    left: 2rem;
}

.nav-next {
    right: 2rem;
}

/* Thumbnails */
.gallery-thumbnails-container {
    position: relative;
    padding: 1rem 3rem;
    background: rgba(0, 0, 0, 0.5);
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    max-width: 100%; /* Add this */
}

.gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden; /* Add this */
    scroll-behavior: smooth;
    padding: 0.5rem 0;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    max-width: 100%; /* Add this */
    height: 70px; /* Add fixed height */
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.gallery-thumbnail {
    flex: 0 0 80px; /* Changed from flex-shrink: 0 */
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s;
    border: 2px solid transparent;
    scroll-snap-align: start;
    display: inline-block; /* Add this */
}

.gallery-thumbnail:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.gallery-thumbnail.active {
    opacity: 1;
    border-color: white;
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    display: block; /* Add this */
}

.thumb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.thumb-nav:hover {
    background: black;
}

.thumb-prev {
    left: 0.5rem;
}

.thumb-next {
    right: 0.5rem;
}

/* Gallery Actions */
.gallery-actions {
    position: absolute;
    bottom: 7rem;
    right: 5rem;
    gap: 1rem;
    z-index: 10;
    display: grid;
}

.action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    font-size: 0.9rem;
    font-weight: 500;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Keyboard navigation hint */
.gallery-stage::after {
    content: 'Use arrow keys to navigate';
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    opacity: 0;
    animation: fadeInOut 4s ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0;
    }
    10%, 90% {
        opacity: 1;
    }
}

/* Touch gestures for mobile */
@media (pointer: coarse) {
    .gallery-stage {
        touch-action: pan-y pinch-zoom;
    }
}

/* Property Tools Layout CSS */

.property-tools-section {
    padding: 5px 0;
}

.property-tools-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

.property-description-column {
    min-width: 0; /* Prevents grid blowout */
}

.tools-section-column {
    position: relative;
    top: 5px;
    right: 48px;
}

@media (max-width: 1024px) {
    .property-tools-container {
        grid-template-columns: 1fr;
        margin-bottom: -35px;
    }

    .tools-section-column {
        position: static;
    }
}

/* Property Description CSS */
.property-description-wrapper {
    background: white;
    overflow: visible;
    width: 96.5%;
}

.property-description-paragraph {
    color: #292C3D;
    font-family: 'Montserrat', serif !important;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 19.6px */
    letter-spacing: -0.14px;
}

.property-nav-tabs {
    display: inline-flex;
    background: white;
    width: 96.5%;
    border-top: 1px solid #d1d5db;
    border-bottom: 1px solid #d1d5db;
    z-index: 9000 !important;
    position: relative;
}

.nav-tab {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    white-space: nowrap;
    text-align: left;
    padding: 1rem 36px 1rem 0;
    color: #292C3D;
    font-family: 'Montserrat', serif !important;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 110%; /* 15.4px */
    z-index: 500 !important;
}

.nav-tab:hover {
    color: #374151;
}

.property-info-section {
    padding: 2rem 2rem 2rem 0;
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 2rem;
}

.property-address-info {
    flex: 1;
}

.property-title {
    color: #000;
    font-family: 'Montserrat', serif !important;
    font-size: 26px;
    font-style: normal;
    font-weight: 600;
    line-height: 110%; /* 28.6px */
    letter-spacing: -0.26px;
    padding-bottom: 14px;
}

.property-location {
    margin: 0;
    color: #292C3D;
    font-family: 'Montserrat', serif !important;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 110%; /* 15.4px */
    letter-spacing: -0.14px;
}

.property-description-content {
    position: relative;
}

.property-description p {
    margin: 0;
}

.property-description {
    color: #6b7280;
    font-size: 1.125rem;
    line-height: 1.75;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth easing */
    overflow: hidden;
    padding-bottom: 10px;
    max-height: none; /* Remove fixed height */
}

.property-description.collapsed {
    max-height: 8.75rem;
    position: relative;
}

.property-description.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2.5em;
    background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
}

.read-more-btn {
    display: flex;
    width: 122px;
    height: 39px;
    padding: 18px 24px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #0841A3;
    font-family: 'Montserrat', serif !important;
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    line-height: 110%; /* 15.4px */
    letter-spacing: -0.14px;
    border: 1px solid #C2C6D6;
    margin-top: 1rem;
}

.read-more-btn:hover {
    opacity: 0.8;
}

.request-showing-btn {
    border: 1px solid #C2C6D6;
    background: #0841A3;
    padding: 18px 34px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    color: #FFF;
    font-family: 'Montserrat', serif !important;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 110%; /* 15.4px */
    letter-spacing: -0.14px;
}

.request-showing-btn:hover {
    background: #2563eb;
}

/* Tools Section 2 CSS */

.tools-section-wrapper {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 1.5rem;
    height: -moz-fit-content;
    height: fit-content;
}

.tools-title {
    color: #000;
    font-family: 'Montserrat', serif !important;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 110%; /* 19.8px */
    letter-spacing: -0.18px;
}

.tools-section-title {
    display: flex;
    height: 38px;
    padding: 0 17px 0 0;
    align-items: flex-start;
    gap: 1px;
    align-self: stretch;
}

.tools-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tool-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
    cursor: pointer;
    height: 69px;
    padding: 12px 17px;
    gap: 19px;
    align-self: stretch;
    border: 1px solid #C2C6D6;
    background: #F5F6F9;
}

.tool-item:hover {
    background: #f8f9fa;
    border-color: #1e40af;
    transform: translateX(2px);
}

.tool-icon {
    display: flex;
    justify-content: center;
    color: #0841A3;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 10px 9px;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border: 1px solid #E7E7E7;
    background: #FFF;
}

.tool-icon svg {
    width: 28px;
    height: 28px;
}

.tool-title {
    color: #0841A3;
    font-family: 'Montserrat', serif !important;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 110%; /* 15.4px */
    letter-spacing: -0.14px;
}

.tool-title-icon-arrow {
    width: 12px;
    height: 0;
    transform: rotate(-9.812deg);
    stroke-width: 2px;
    stroke: #000;
    top: 3px;
    position: relative;
    left: 7px;
}

/* CTA Section V2 CSS */

.cta-section-contain-3 {
    padding: 3rem 0;
}

.cta-card {
    background: #F5F6F9;
    display: flex;
    padding: 37px 25px;
    align-items: center;
    gap: 51px;
    max-width: 1400px;
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cta-left {
    flex: 1;
    max-width: 65%;
}

.cta-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.cta-card h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 0.75rem 0;
    line-height: 1.2;
}

.cta-description {
    color: #292C3D;
    font-family: 'Montserrat', serif !important;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    letter-spacing: -0.14px;
}

.cta-button {
    color: white;
    border: none;
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    display: flex;
    padding: 18px 33px !important;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: #DA2034;
}

.cta-button:hover {
    background: #b91c1c;
}

.cta-note {
    color: #666;
    font-size: 0.875rem;
    margin: 0;
    text-align: center;
    white-space: nowrap;
}

/* Schools Section CSS */

.schools-section-wrapper {
    padding-bottom: 35px;
    max-width: 1400px;
}

.schools-section {
    background: white;
    border: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
    padding: 20px 3rem 0; /* Increase for more centered look */
}

.schools-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #111;
    margin: 0 0 1.5rem 0;
}

.google-maps-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #111;
    margin: 0 0 1.5rem 0;
}

.google-maps-wrapper {
    padding-bottom: 35px;
    max-width: 1400px;
}

.schools-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem 3rem; /* Adjust column gap if needed */
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.school-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 1.5rem;
    position: relative;
    gap: 12px;
}

.school-rating {
    color: #000;
    font-family: 'Montserrat', serif !important;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 110%;
    letter-spacing: -0.2px;
}

.school-info {
    flex: 1;
}

.school-name {
    color: #292C3D;
    font-family: 'Montserrat', serif !important;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
    letter-spacing: -0.14px;
    padding-bottom: 6px;
}

.school-distance {
    color: #292C3D;
    font-family: 'Montserrat', serif !important;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    letter-spacing: -0.12px;
}

/* Interior Section CSS */

.interior-section {
    background: white;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    max-width: 1400px;
}

.interior-toggle {
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
    border: 1px solid #C2C6D6;
    opacity: 0.78;
    background: #F5F6F9;
    height: 56px;
}

.interior-toggle:hover {
    background: #f8f9fa;
}

.toggle-text {
    color: #000;
    font-family: 'Montserrat', serif !important;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 110%;
    letter-spacing: -0.18px;
}

.toggle-icon {
    stroke-width: 2px;
    stroke: #4B4B4B;
    color: #4B4B4B;
    transition: transform 0.3s ease;
}

.toggle-icon.rotate-180 {
    transform: rotate(180deg);
}

.interior-content {
    border-top: 1px solid #e0e0e0;
    background: #ffffff;
    padding: 0 2rem 2rem;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-title {
    padding: 10px 0px;
    cursor: pointer;
    display: flex !important;
    justify-content: flex-start;
    align-items: center;
    color: #000;
    font-size: 26px;
    font-family: 'Montserrat', serif !important;
    line-height: 100%;
    gap: 15px;
    position: relative;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    opacity: 0; /* Start with content hidden */
    transition: max-height 1.2s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.8s ease-in-out,
    padding 0.8s ease-in-out;
}

input[type="radio"] {
    display: none !important;
}

input[type="radio"]:checked + .accordion-title + .accordion-content {
    padding: 10px 0;
    max-height: 2000px;
    opacity: 1; /* Fade content in */
    transition: max-height 0.6s cubic-bezier(1, 0, 1, 0), opacity 0.3s ease-in, padding 0.3s ease;
}


.accordion-title::after {
    font-size: 26px;
    font-weight: 600;
    font-family: 'Montserrat', serif !important;
    color: #000;
    transition: transform 0.3s ease, content 0.2s;
    position: absolute;
    right: 0;
}

.accordion-content h6 {
    font-size: 16px;
    color: #000;
    font-family: 'Montserrat', serif !important;
    font-weight: 600 !important;
    line-height: 100% !important;
    margin-top: 30px !important;
    margin-bottom: 12px !important;
}

.accordion-list {
    display: flex;
    margin-top: -30px;
    justify-content: space-between;
}

.list-left,
.list-right {
    flex-basis: 45%;
}

.accordion-list ul {
    list-style-type: none;
    padding: 0;
}

.accordion-list ul li {
    position: relative;
    padding-left: 25px;
    font-size: 14px;
    color: #505050;
    line-height: 170%;
    font-family: 'Montserrat', serif !important;
    font-weight: 400;
}

.accordion-list ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 15px;
    height: 15px;
    background-image: url('https://images.lp-images1.com/images1/2/21652/pics/21652_252_1_9_120_126_126_8_1721835743_vector3.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.accordion-closed {
    max-height: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
}

.accordion-content[style*="max-height: 0"] {
    display: none !important;
}

/* Property Details CSS */

.property-details-wrapper {
    max-width: 1400px;
}

.property-section {
    background: white;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    max-width: 1400px;
    margin-bottom: 16px;
}

.property-section:first-child {
    border-radius: 8px 8px 0 0;
}

.property-section:last-child {
    border-radius: 0 0 8px 8px;
}

.property-section:only-child {
    border-radius: 8px;
}

.property-toggle {
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
    border: 1px solid #C2C6D6;
    opacity: 0.78;
    background: #F5F6F9;
    height: 56px;
}

.property-toggle:hover {
    background: #f8f9fa;
}

.property-content {
    border-top: 1px solid #e0e0e0;
    background: #ffffff;
    padding: 0 2rem 2rem;
}

.mobile-none {
    display: block;
}

/* Team Section 2 CSS */

.team-section {
    background: white;
    padding: 2rem 0;
    width: 100%;
}

.team-container {
    max-width: 400px;
}

.team-title-1 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #666;
    letter-spacing: 0.05em;
    margin: 0 0 2rem 0;
    text-align: start;
}

.team-members {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.team-member {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.member-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    -o-object-fit: cover;
       object-fit: cover;
    flex-shrink: 0;
}

.member-info {
    flex: 1;
}

.member-contact {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.member-phone {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

.member-phone a {
    color: inherit;
    text-decoration: none;
}

.member-phone a:hover {
    text-decoration: underline;
}

.member-license {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

.member-listings {
    margin-top: 0.5rem;
}

.listings-link {
    color: #dc2626;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.listings-link:hover {
    text-decoration: underline;
}

.team-description-1 {
    padding-top: 0;
    width: 85%;
    margin-bottom: 1.5rem;
}

.description-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.description-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.description-cta {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
}

.cta-link {
    color: #dc2626;
    text-decoration: none;
    font-weight: 500;
}

.cta-link:hover {
    text-decoration: underline;
}

/* Agent profile styles */
.agent-profile {
    margin-top: 2rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e5e5e5;
}

.footer-text {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
    display: block;
    margin-bottom: 1rem;
}

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

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

.agent-info {
    font-family: 'Montserrat', serif;
    flex: 1;
}

.agent-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111;
    margin: 0 0 0.25rem 0;
}

.agent-title {
    font-size: 0.9rem;
    color: #666;
    font-weight: normal;
}

.agent-company {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.additional-agents-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111;
    margin: 1.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #C6C6C6;
}

.additional-agent {
    padding: 0.5rem 0;
}

.additional-agent-info {
    font-size: 0.875rem;
    color: #666;
    display: flex;
    align-items: center;
}

.separator {
    margin: 0 0.5rem;
}

.font-medium {
    font-weight: 500;
}


