/* ViewHomes floating contact widget. */
.viewhomes-floating-contact {
    --vh-float-deep: #0b2735;
    --vh-float-navy: #123f53;
    --vh-float-panel: #143f53;
    --vh-float-cyan: #00aeff;
    --vh-float-aqua: #26d6ff;
    --vh-float-text: #ffffff;
    --vh-float-muted: rgba(255, 255, 255, .72);
    --vh-float-line: rgba(255, 255, 255, .14);
    position: fixed;
    right: max(22px, env(safe-area-inset-right));
    bottom: max(22px, env(safe-area-inset-bottom));
    z-index: 99920;
    font-family: var(--viewhomes-site-font, 'Manrope', Arial, sans-serif);
    color: var(--vh-float-text);
    pointer-events: none;
}

.viewhomes-floating-contact * {
    box-sizing: border-box;
}

.viewhomes-floating-contact__panel,
.viewhomes-floating-contact__launcher {
    pointer-events: auto;
}

.viewhomes-floating-contact__panel {
    position: absolute;
    right: 0;
    bottom: 86px;
    width: min(376px, calc(100vw - 32px));
    max-height: calc(100vh - 124px);
    overflow: auto;
    padding: 18px;
    border: 1px solid var(--vh-float-line);
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)),
        linear-gradient(145deg, var(--vh-float-deep), var(--vh-float-navy));
    box-shadow: 0 28px 70px rgba(7, 27, 47, .32);
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) rotateX(8deg) rotateY(-13deg) scale(.93);
    transform-origin: right bottom;
    transition:
        opacity .28s ease,
        visibility .28s ease,
        transform .42s cubic-bezier(.16, 1, .3, 1);
}

.viewhomes-floating-contact.is-open .viewhomes-floating-contact__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) rotateX(0) rotateY(0) scale(1);
}

.viewhomes-floating-contact__gloss {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
}

.viewhomes-floating-contact__gloss::before {
    content: "";
    position: absolute;
    top: -40%;
    left: -85%;
    width: 70%;
    height: 180%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .18), transparent);
    transform: rotate(18deg);
    animation: viewhomes-contact-gloss 8s ease-in-out infinite;
}

.viewhomes-floating-contact__header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.viewhomes-floating-contact__brand {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
}

.viewhomes-floating-contact__logo,
.viewhomes-floating-contact__launcher-logo,
.viewhomes-floating-contact__launcher-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.viewhomes-floating-contact__logo {
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 18px;
    background: rgba(255, 255, 255, .08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
    overflow: hidden;
}

.viewhomes-floating-contact__logo img,
.viewhomes-floating-contact__launcher-logo img {
    display: block;
    width: auto;
    max-width: none;
    max-height: none;
    object-fit: unset;
    object-position: left center;
}

.viewhomes-floating-contact__logo img {
    height: 44px;
    transform: translateX(-1px);
}

.viewhomes-floating-contact__launcher-logo img {
    height: 38px;
    transform: translateX(-1px);
}

.viewhomes-floating-contact__logo span,
.viewhomes-floating-contact__launcher-logo span {
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0;
}

.viewhomes-floating-contact__brand strong,
.viewhomes-floating-contact__brand small {
    display: block;
}

.viewhomes-floating-contact__brand strong {
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.15;
}

.viewhomes-floating-contact__brand small {
    max-width: 210px;
    color: var(--vh-float-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
}

.viewhomes-floating-contact__close {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
    transition: transform .22s ease, background .22s ease, border-color .22s ease;
}

.viewhomes-floating-contact__close:hover,
.viewhomes-floating-contact__close:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(38, 214, 255, .48);
    background: rgba(38, 214, 255, .16);
    outline: none;
}

.viewhomes-floating-contact__actions {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 0 0 13px;
}

.viewhomes-floating-contact__action {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 11px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 16px;
    background: rgba(255, 255, 255, .075);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
    text-align: left;
    text-decoration: none;
    transition: transform .22s ease, background .22s ease, border-color .22s ease, color .22s ease;
}

.viewhomes-floating-contact__action i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 999px;
    background: rgba(0, 174, 255, .16);
    color: var(--vh-float-aqua);
    font-size: 14px;
}

.viewhomes-floating-contact__action:hover,
.viewhomes-floating-contact__action:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(38, 214, 255, .42);
    background: rgba(255, 255, 255, .12);
    color: #fff;
    outline: none;
}

.viewhomes-floating-contact__action--whatsapp i {
    background: rgba(37, 211, 102, .15);
    color: #35e982;
}

.viewhomes-floating-contact__action--youtube i {
    background: rgba(255, 0, 0, .14);
    color: #ff5b5b;
}

.viewhomes-floating-contact__action--form i {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.viewhomes-floating-contact__form {
    position: relative;
    display: grid;
    gap: 9px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 19px;
    background: rgba(255, 255, 255, .075);
}

.viewhomes-floating-contact__form label {
    display: grid;
    gap: 6px;
    margin: 0;
}

.viewhomes-floating-contact__form label span {
    color: rgba(255, 255, 255, .76);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.viewhomes-floating-contact__form input,
.viewhomes-floating-contact__form textarea {
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 13px;
    background: rgba(255, 255, 255, .08);
    box-shadow: none;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    outline: none;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.viewhomes-floating-contact__form textarea {
    min-height: 76px;
    resize: vertical;
}

.viewhomes-floating-contact__form input::placeholder,
.viewhomes-floating-contact__form textarea::placeholder {
    color: rgba(255, 255, 255, .5);
    opacity: 1;
}

.viewhomes-floating-contact__form input:focus,
.viewhomes-floating-contact__form textarea:focus {
    border-color: rgba(38, 214, 255, .7);
    background: rgba(255, 255, 255, .11);
    box-shadow: 0 0 0 3px rgba(0, 174, 255, .16);
}

.viewhomes-floating-contact__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    margin-top: 2px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--vh-float-aqua), var(--vh-float-cyan));
    color: #fff;
    box-shadow: 0 15px 34px rgba(0, 174, 255, .28);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.viewhomes-floating-contact__submit:hover,
.viewhomes-floating-contact__submit:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 18px 38px rgba(0, 174, 255, .34);
    filter: brightness(1.04);
    outline: none;
}

.viewhomes-floating-contact__submit:disabled {
    cursor: wait;
    opacity: .72;
}

.viewhomes-floating-contact__submit.is-loading i {
    animation: viewhomes-contact-spin .8s linear infinite;
}

.viewhomes-floating-contact__status {
    min-height: 17px;
    color: rgba(255, 255, 255, .72);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.35;
}

.viewhomes-floating-contact__status.is-success {
    color: #74f0ab;
}

.viewhomes-floating-contact__status.is-error {
    color: #ffb4b4;
}

.viewhomes-floating-contact__launcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 190px;
    height: 68px;
    padding: 0 24px 0 14px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #27c7f5, #0794df);
    color: #fff;
    box-shadow: 0 22px 56px rgba(7, 27, 47, .18);
    cursor: pointer;
    overflow: hidden;
    transform: translateZ(0);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.viewhomes-floating-contact__launcher::after {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: inherit;
    border: 1px solid rgba(39, 199, 245, .34);
    opacity: .58;
    animation: viewhomes-contact-pulse 2.8s ease-in-out infinite;
    pointer-events: none;
}

.viewhomes-floating-contact__launcher:hover,
.viewhomes-floating-contact__launcher:focus-visible,
.viewhomes-floating-contact.is-peeking .viewhomes-floating-contact__launcher {
    transform: translateY(-3px);
    box-shadow: 0 26px 62px rgba(7, 27, 47, .24);
    outline: none;
}

.viewhomes-floating-contact__launcher-shine {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
}

.viewhomes-floating-contact__launcher-shine::before {
    content: "";
    position: absolute;
    top: -45%;
    left: -85%;
    width: 62%;
    height: 190%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .3), transparent);
    transform: rotate(18deg);
    animation: viewhomes-contact-gloss 6s ease-in-out infinite;
}

.viewhomes-floating-contact__launcher-logo {
    position: relative;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform .42s cubic-bezier(.16, 1, .3, 1), opacity .22s ease;
}

.viewhomes-floating-contact__launcher-icon {
    position: absolute;
    left: 14px;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 18px;
    opacity: 0;
    transform: rotateY(-180deg) scale(.86);
    transition: transform .42s cubic-bezier(.16, 1, .3, 1), opacity .22s ease;
}

.viewhomes-floating-contact.is-open .viewhomes-floating-contact__launcher-logo {
    opacity: 0;
    transform: rotateY(180deg) scale(.86);
}

.viewhomes-floating-contact.is-open .viewhomes-floating-contact__launcher-icon {
    opacity: 1;
    transform: rotateY(0) scale(1);
}

.viewhomes-floating-contact__launcher-text {
    position: relative;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
}

body .back-to-top-wrap {
    position: fixed !important;
    right: max(22px, env(safe-area-inset-right)) !important;
    bottom: calc(max(22px, env(safe-area-inset-bottom)) + 86px) !important;
    left: auto !important;
    width: 48px !important;
    height: 48px !important;
    transform: none !important;
    z-index: 99930 !important;
}

body .back-to-top-wrap #scroll-top.btn-back-to-top,
body .back-to-top-wrap .btn-back-to-top {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 !important;
    border: 1px solid rgba(18, 185, 242, .42) !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #0794df !important;
    box-shadow: 0 14px 32px rgba(7, 27, 47, .16) !important;
    transform: none !important;
}

body .back-to-top-wrap #scroll-top.btn-back-to-top i,
body .back-to-top-wrap .btn-back-to-top i {
    color: #0794df !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

body .back-to-top-wrap #scroll-top.btn-back-to-top:hover,
body .back-to-top-wrap #scroll-top.btn-back-to-top:focus-visible,
body .back-to-top-wrap .btn-back-to-top:hover,
body .back-to-top-wrap .btn-back-to-top:focus-visible {
    background: #f4fbff !important;
    border-color: rgba(18, 185, 242, .68) !important;
    color: #057fc4 !important;
    box-shadow: 0 18px 38px rgba(7, 27, 47, .2) !important;
    outline: none !important;
}

@keyframes viewhomes-contact-gloss {
    0%,
    54% {
        left: -85%;
    }
    68%,
    100% {
        left: 118%;
    }
}

@keyframes viewhomes-contact-pulse {
    0%,
    100% {
        transform: scale(.96);
        opacity: .22;
    }
    50% {
        transform: scale(1.07);
        opacity: .58;
    }
}

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

@media screen and (max-width: 767.98px) {
    .viewhomes-floating-contact {
        right: max(14px, env(safe-area-inset-right));
        bottom: max(14px, env(safe-area-inset-bottom));
    }

    .viewhomes-floating-contact__panel {
        bottom: 84px;
        width: calc(100vw - 28px);
        max-height: calc(100vh - 104px);
        padding: 14px;
        border-radius: 21px;
    }

    .viewhomes-floating-contact__launcher {
        min-width: 62px;
        width: 62px;
        height: 62px;
        padding: 8px;
    }

    .viewhomes-floating-contact__launcher-text {
        display: none;
    }

    /* Keep the mobile launcher icon centered inside the single outer button. */
    .viewhomes-floating-contact__launcher-logo,
    .viewhomes-floating-contact__launcher-icon {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 46px;
        height: 46px;
        margin: 0;
        border: 0;
        background: transparent;
        transform: translate(-50%, -50%) rotateY(-180deg) scale(.86);
    }

    .viewhomes-floating-contact__launcher-logo {
        transform: translate(-50%, -50%) rotateY(0) scale(1);
    }

    .viewhomes-floating-contact.is-open .viewhomes-floating-contact__launcher-logo {
        transform: translate(-50%, -50%) rotateY(180deg) scale(.86);
    }

    .viewhomes-floating-contact.is-open .viewhomes-floating-contact__launcher-icon {
        transform: translate(-50%, -50%) rotateY(0) scale(1);
    }

    .viewhomes-floating-contact__launcher::after {
        display: none;
    }

    .viewhomes-floating-contact__actions {
        grid-template-columns: 1fr 1fr;
    }

    .viewhomes-floating-contact__brand small {
        max-width: 180px;
    }

    body .back-to-top-wrap {
        right: max(14px, env(safe-area-inset-right)) !important;
        bottom: calc(max(14px, env(safe-area-inset-bottom)) + 76px) !important;
        width: 46px !important;
        height: 46px !important;
    }

    body .back-to-top-wrap #scroll-top.btn-back-to-top,
    body .back-to-top-wrap .btn-back-to-top {
        width: 46px !important;
        min-width: 46px !important;
        height: 46px !important;
        min-height: 46px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .viewhomes-floating-contact__panel,
    .viewhomes-floating-contact__launcher,
    .viewhomes-floating-contact__launcher-logo,
    .viewhomes-floating-contact__launcher-icon,
    .viewhomes-floating-contact__action,
    .viewhomes-floating-contact__submit {
        transition: none !important;
    }

    .viewhomes-floating-contact__gloss::before,
    .viewhomes-floating-contact__launcher::after,
    .viewhomes-floating-contact__launcher-shine::before,
    .viewhomes-floating-contact__submit.is-loading i {
        animation: none !important;
    }
}
