/* HERE */


@media (max-width: 480px) {
    .overlay-modal-close {
        top: 7px;
        right: 7px;
    }

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

    .share-container {
        position: fixed;
        top: 50%;
        left: 5px;
        transform: translateY(-50%);
        border-radius: 50%;
        transition: all 0.3s ease;
        z-index: 9999;
        touch-action: none;
        cursor: move;
        -moz-user-select: none;
             user-select: none;
        -webkit-user-select: none;
        /* Add these for Android */
        -webkit-touch-callout: none;
        will-change: transform;
    }

    .footer__holder.fh-bottom-links-disclaimer {
        padding: 10px 0 20px;
    }

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

    #selling-title-container {
        text-align: left;
    }

    #selling-boxes.selling-boxes {
        flex-direction: column;
    }

    .member-listings {
        top: 122px;
    }

    .left-profile, .right-profile {
        margin-bottom: 35px;
    }

    .cta-description {
        text-align: left;
    }

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

    .team-row {
        flex-direction: column;
        padding-left: 1px;
    }

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

    .section-sub-wrapper-1 {
        display: block !important;
        grid-template-columns: none !important;
        gap: 0 !important;
        align-items: initial !important;
    }

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

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

    .property-description-wrapper {
        background: white;
        overflow: visible;
        width: 100%;
    }

    .cta-button-design-preview {
        width: 100%;
        margin: 2px 5px !important;
        position: relative;
        right: 16px;
    }

    .sb-sticky-bar .sb-sticky-bar__close {
        right: 20px !important;
        transform: none;
        top: -5px !important;
    }

    .hero-image-container {
        position: relative;
        cursor: pointer;
        overflow: hidden;
    }

    .hero-image-container:hover .photo-overlay-main {
        opacity: 1;
    }

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

    /* Alternative: Always show overlay on main image */
    .photo-overlay-main.always-visible {
        opacity: 1;
    }

    /* Make all gallery triggers have pointer cursor */
    .gallery-trigger {
        cursor: pointer;
    }

}

@media (max-width: 768px) {

    #sticky-bar .sb-sticky-bar__wrap {
        display: flex !important;
        flex-wrap: nowrap !important;
        padding: 5.5px 0 0;
    }

    #sticky-bar {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
        padding: 0;
        animation: shake 0.3s;
        height: auto;
        min-height: 35px;
        flex-flow: wrap;
        bottom: unset;
        background-color: rgb(0, 0, 0);
        border-bottom: 0px solid rgb(0, 0, 0);
    }

    .fr-element-view-span {
        font-size: 9px;
        color: rgb(140, 39, 140);
        font-family: 'Montserrat', serif;
    }

    .fr-element-span {
        color: #FFF;
        font-family: 'Montserrat', serif;
        font-size: 8px;
        font-style: normal;
        font-weight: 500;
        line-height: 120%; /* 13.2px */
        letter-spacing: -0.11px;
    }

    .sb-sticky-bar__p .fr-wrapper p {
        color: #fff;
        font-size: 30px;
        line-height: 0.3;
        margin: 0;
        text-align: left;
    }

    .sb-sticky-bar__p {
        width: 100%;
        padding-right: 0;
        box-sizing: border-box;
        padding-left: 12px;
        margin: 2px 0 !important;
    }
}

/* Tools Section CSS */

@media (max-width: 768px) {

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

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

    .tools-section {
        padding-bottom: 0;
    }

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

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

    .tools-grid {
        display: none;
    }

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

    .tools-container {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .tools-header {
        width: 100%;
    }

    .tools-title-1 {
        white-space: normal;
        color: #000;
        text-align: center;
        font-family: 'Montserrat', serif;
        font-size: 15px;
        font-style: normal;
        font-weight: 600;
        line-height: 120%; /* 18px */
        letter-spacing: -0.15px;
    }

    .tools-grid {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

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

    .tool-text {
        white-space: normal;
        font-size: 0.9375rem;
    }
}

/* Hero Property Section CSS */

@media (max-width: 768px) {
    .gallery-wrapper {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }

    .gallery-nav {
        width: 44px;
        height: 44px;
        z-index: 999;
    }

    .nav-prev {
        left: 1rem;
        display: none;
    }

    .nav-next {
        right: 1rem;
        display: none;
    }

    .gallery-actions {
        bottom: 8rem;
        right: 1.5rem;
        gap: 0.5rem;
        display: flex;
    }

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

    .action-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .action-btn span {
        display: none;
    }

    .gallery-thumbnails-container {
        padding: 0.5rem 2rem;
    }

    .gallery-thumbnail {
        width: 60px;
        height: 45px;
    }
    .hero-property-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .hero-image-container {
        height: 300px;
    }

    .gallery-container {
        display: none;
    }

    .gallery-thumbnail,
    .gallery-thumbnail-1 {
        height: 120px;
    }

    .price-and-specs {
        gap: 1.5rem;
        align-items: flex-start;
    }

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

    .property-specs {
        gap: 0.5rem;
        margin-left: 0;
    }

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

    .spec-label {
        font-size: 10px;
    }

    .listing-info {
        display: none;
    }

    .carousel-image-container {
        width: 90vw;
        height: 70vh;
    }
}

/* Property Description CSS */

@media (max-width: 768px) {
    .property-nav-tabs {
        display: flex;
        width: 100%;
    }

    .nav-tab {
        font-size: 12px;
    }

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

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

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

    .request-showing-btn {
        display: flex;
        width: 130px;
        padding: 16px 24px;
        justify-content: center;
        align-items: center;
        gap: 10px;
        color: #FFF;
        font-size: 11px;
        font-style: normal;
        font-weight: 600;
        line-height: 110%;
        letter-spacing: -0.12px;
    }
}

/* Tools Section 2 CSS */

@media (max-width: 768px) {
    .tools-section-wrapper {
        /*display: none;*/
    }

    .tools-title {
        font-size: 1.1rem;
    }
}

/* CTA Section V2 CSS */

@media (max-width: 768px) {
    .cta-content {
        flex-direction: column;
        text-align: center;
        align-items: flex-start;
    }

    .cta-left {
        max-width: 100%;
    }

    .cta-right {
        align-items: flex-start;
    }

    .cta-card {
        padding: 2rem;
    }

    .cta-card h2 {
        font-size: 1.55rem;
        text-align: left;
    }

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

/* Schools Section CSS */

@media (max-width: 768px) {
    .schools-container {
        display: flex;
        flex-wrap: wrap;
    }

    .school-item {
        flex: 1 1 100%;
        padding-bottom: 1rem;
    }

    .school-item:not(:last-child)::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 1px;
    }

    .schools-section {
        padding: 1.5rem;
    }
}

/* Property Details CSS */

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

    .accordion-list {
        flex-direction: column;
    }

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

/* Team Section 2 CSS */

@media (max-width: 480px) {
    .team-member {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .agent-details {
        flex-direction: column;
        text-align: center;
        width: 104%;
    }
}

.mobile-tools-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0 8px 8px 8px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 70px;
    }

    .mobile-tools-container {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        animation: smoothShow 0.1s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .tool-title-icon-arrow {
        width: 12px;
        height: 0;
        transform: rotate(-192.812deg);
        stroke-width: 2px;
        stroke: #ffffff;
        top: 10px;
        position: relative;
        left: 10px;
    }

    .tools-section-wrapper {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .mobile-tools-container {
        height: 0;
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    .mobile-tools-container {
        height: auto;
        overflow: visible;
    }
}

.tools-expand-btn {
    width: 100%;
    background-color: #EA6A38;
    color: white;
    border: none;
    padding: 20px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    border-radius: 0;
}

.tools-expand-btn:active {
    background-color: #d85a28;
}

.arrow-icon {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid white;
    transition: transform 0.3s ease;
}

.tools-expand-btn.expanded .arrow-icon {
    transform: rotate(180deg);
}

.tools-content {
    background-color: #EA6A38;
    max-height: 0;
    overflow: hidden;
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);

    /* Set initial values for margins */
    margin-left: 8px;
    margin-right: 8px;
    padding: 0 20px;

    /* Include margins in the transition */
    transition: max-height 0.5s ease-out,
    padding .1s ease-out,
    margin-left 0.5s ease-out,
    margin-right 0.5s ease-out;
}

.tools-content.expanded {
    max-height: 400px;
    padding: 20px;
    overflow-y: auto;
    margin-right: 8px;
    margin-left: 8px;
}

.mobile-tool-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease 0.2s, transform 0.3s ease 0.2s;
}

.tools-content.expanded .mobile-tool-list {
    opacity: 1;
    transform: translateY(0);
}

.mobile-tool-link {
    background-color: white;
    padding: 16px 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #0841A3;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.mobile-tool-link:active {
    transform: scale(0.98);
}

@keyframes smoothHide {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    30% {
        transform: scale(0.8, 0.95) translateY(5px);
        opacity: 0.8;
    }
    60% {
        transform: scale(0.3, 0.8) translateY(20px);
        opacity: 0.5;
    }
    100% {
        transform: scale(0, 0.5) translateY(40px);
        opacity: 0;
    }
}


@keyframes smoothShow {
    0% {
        transform: translateY(100px) scale(0.3, 0);
        opacity: 0;
        filter: blur(4px);
    }
    30% {
        transform: translateY(30px) scale(0.7, 0.3);
        opacity: 0.4;
        filter: blur(2px);
    }
    60% {
        transform: translateY(10px) scale(0.9, 0.7);
        opacity: 0.7;
        filter: blur(1px);
    }
    80% {
        transform: translateY(-5px) scale(1.05, 1.1);
        opacity: 0.9;
    }
    90% {
        transform: translateY(2px) scale(0.98, 1.02);
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(1, 1);
        opacity: 1;
        filter: blur(0px);
    }
}

.mobile-tools-container.mobile-hide {
    animation: smoothHide 0.5s ease forwards;
}

.mobile-tools-container:not(.mobile-hide) {
    animation: smoothShow 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (max-width: 768px) {
    .mobile-tools-container {
        transform-origin: bottom center;
        will-change: transform, opacity, filter;
    }
}

.mobile-tools-container:not(.mobile-hide) .tools-expand-btn {
    box-shadow: 0 4px 20px rgba(234, 106, 56, 0.3);
    transition: box-shadow 0.8s ease;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(234, 106, 56, 0.3);
    }
    50% {
        box-shadow: 0 4px 30px rgba(234, 106, 56, 0.6);
    }
}

.mobile-tools-container:not(.hidden) .tools-expand-btn {
    animation: pulseGlow 2s ease-in-out;
}

