/* RESYD RUNTIME CSS — stable UI states for all partials */

:root {
    --runtime-z-header: 1000;
    --runtime-z-search: 9999;
    --runtime-z-modal: 10000;
    --runtime-z-toast: 11000;
}

[hidden],
.is-hidden,
.resyd-hidden {
    display: none !important;
}

.resyd-runtime-ready [data-runtime-cloak],
.resyd-hydrated [data-runtime-cloak] {
    visibility: visible;
    opacity: 1;
}

[data-runtime-cloak] {
    visibility: hidden;
    opacity: 0;
}

.resyd-main-content {
    min-height: 70vh;
}

.resyd-section-ready {
    opacity: 1;
}

.resyd-section-loading,
.is-loading,
.loading {
    pointer-events: none;
    opacity: .72;
}

.is-loading::after,
.loading::after {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-left: 10px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,.15);
    border-top-color: var(--resyd-brand-3, #ad8340);
    animation: resydRuntimeSpin .75s linear infinite;
}

.resyd-skeleton {
    position: relative;
    overflow: hidden;
    min-height: 18px;
    border-radius: 999px;
    background: rgba(0,0,0,.08);
}

.resyd-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent);
    animation: resydRuntimeShimmer 1.25s ease-in-out infinite;
}

.resyd-card-skeleton {
    min-height: 360px;
    border-radius: 28px;
    background: linear-gradient(135deg,#fff,#faf8f1);
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 18px 52px rgba(0,0,0,.07);
}

.resyd-zip-suggestions {
    z-index: var(--runtime-z-search);
}

.resyd-zip-suggestions[hidden] {
    display: none !important;
}

.resyd-zip-suggestion[aria-selected="true"],
.resyd-zip-suggestion.is-active {
    background: #fff4d7;
    transform: translateX(3px);
}

.resyd-mobile-nav[hidden] {
    display: none !important;
}

body.nav-open {
    overflow: hidden;
}

.form-step:not(.active):not(.is-active) {
    display: none !important;
}

.form-step.active,
.form-step.is-active {
    display: block;
}

.resyd-form-progress-bar {
    width: 0;
}

.resyd-form-success[hidden],
.resyd-form-error[hidden] {
    display: none !important;
}

.resyd-lead-form input.error,
.resyd-lead-form select.error,
.resyd-lead-form textarea.error {
    border-color: rgba(229,9,20,.62) !important;
    box-shadow: 0 0 0 4px rgba(229,9,20,.10) !important;
}

.resyd-lead-form input.valid,
.resyd-lead-form select.valid,
.resyd-lead-form textarea.valid {
    border-color: rgba(20,184,106,.48) !important;
    box-shadow: 0 0 0 4px rgba(20,184,106,.10) !important;
}

.resyd-faq-item[data-open="false"] .resyd-faq-answer {
    display: none;
}

.resyd-faq-item[data-open="true"] .resyd-faq-answer {
    display: block;
}

.resyd-faq-item[data-open="true"] .resyd-faq-question strong {
    transform: rotate(45deg);
}

.resyd-property-slide,
.resyd-listing-slide {
    opacity: 0;
    pointer-events: none;
}

.resyd-property-slide.is-active,
.resyd-property-slide.active,
.resyd-listing-slide.is-active,
.resyd-listing-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.resyd-gallery-nav:disabled,
.resyd-gallery-open:disabled,
#loadMoreListings:disabled,
[data-loadmore]:disabled {
    cursor: not-allowed;
    opacity: .55;
    filter: grayscale(.2);
}

.resyd-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: var(--runtime-z-toast);
    max-width: min(420px, calc(100vw - 36px));
    padding: 14px 16px;
    border-radius: 18px;
    background: #101114;
    color: #fff;
    box-shadow: 0 24px 70px rgba(0,0,0,.25);
}

.resyd-toast.success {
    background: #087443;
}

.resyd-toast.error {
    background: #9f1239;
}

.resyd-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: var(--runtime-z-modal);
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(5,6,8,.72);
    backdrop-filter: blur(18px);
}

.resyd-modal {
    width: min(980px, 100%);
    max-height: min(760px, 90vh);
    overflow: auto;
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(0,0,0,.35);
}

.resyd-runtime-error {
    padding: 18px;
    border-radius: 22px;
    color: #9f1239;
    background: rgba(229,9,20,.10);
    border: 1px solid rgba(229,9,20,.20);
    font-weight: 900;
}

.resyd-runtime-empty {
    padding: 28px;
    border-radius: 28px;
    text-align: center;
    color: #626c78;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 18px 52px rgba(0,0,0,.07);
}

.resyd-runtime-empty strong {
    display: block;
    margin-bottom: 8px;
    color: #101114;
    font-size: 24px;
    font-weight: 1000;
}

.resyd-meter-safe {
    width: min(100%, var(--meter-value, 0%));
}

.resyd-hydration-warning {
    outline: 2px dashed rgba(229,9,20,.4);
    outline-offset: 4px;
}

@keyframes resydRuntimeSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes resydRuntimeShimmer {
    to {
        transform: translateX(100%);
    }
}

@media (max-width: 760px) {
    .resyd-toast {
        left: 14px;
        right: 14px;
        bottom: 14px;
        max-width: none;
    }

    .resyd-modal-backdrop {
        padding: 12px;
    }

    .resyd-modal {
        border-radius: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}




html.resyd-gallery-lock,
body.resyd-gallery-lock {
    overflow: hidden !important;
}

.resyd-gallery-modal-v200[hidden] {
    display: none !important;
}

.resyd-gallery-modal-v200 {
    position: fixed;
    inset: 0;
    z-index: 999999;
    color: #fff;
}

.resyd-gallery-modal-backdrop-v200 {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 10%, rgba(229,9,20,.22), transparent 32rem),
        radial-gradient(circle at 85% 10%, rgba(216,179,106,.20), transparent 36rem),
        rgba(5,6,8,.94);
    backdrop-filter: blur(18px);
}

.resyd-gallery-modal-shell-v200 {
    position: absolute;
    inset: clamp(10px, 2vw, 28px);
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 14px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 28px;
    background: rgba(10,11,15,.78);
    box-shadow: 0 35px 120px rgba(0,0,0,.62);
    overflow: hidden;
}

.resyd-gallery-modal-top-v200 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.06);
}

.resyd-gallery-modal-brand-v200 strong {
    display: block;
    font-size: 18px;
    font-weight: 1000;
    letter-spacing: -.03em;
    color: #f2d48a;
}

.resyd-gallery-modal-brand-v200 span,
.resyd-gallery-modal-count-v200 {
    color: rgba(255,255,255,.72);
    font-size: 13px;
    font-weight: 850;
}

.resyd-gallery-modal-close-v200,
.resyd-gallery-modal-nav-v200 {
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.12);
    color: #fff;
    backdrop-filter: blur(14px);
    transition: transform .22s ease, background .22s ease;
}

.resyd-gallery-modal-close-v200 {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
}

.resyd-gallery-modal-close-v200:hover,
.resyd-gallery-modal-nav-v200:hover {
    transform: scale(1.06);
    background: linear-gradient(135deg, #e50914, #d8b36a);
}

.resyd-gallery-modal-stage-v200 {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 0;
    padding: 12px clamp(50px, 7vw, 92px);
}

.resyd-gallery-modal-media-v200 {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 28px 90px rgba(0,0,0,.42);
    animation: resydGalleryZoomV200 .35s ease both;
}

.resyd-gallery-modal-nav-v200 {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    transform: translateY(-50%);
    font-size: 42px;
    line-height: 1;
}

.resyd-gallery-modal-nav-v200.prev {
    left: 18px;
}

.resyd-gallery-modal-nav-v200.next {
    right: 18px;
}

.resyd-gallery-modal-thumbs-v200 {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px 14px 16px;
    border-top: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.055);
    scrollbar-width: thin;
}

.resyd-gallery-thumb-v200 {
    flex: 0 0 92px;
    width: 92px;
    height: 66px;
    border: 2px solid transparent;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,.10);
    opacity: .68;
    transition: opacity .22s ease, border-color .22s ease, transform .22s ease;
}

.resyd-gallery-thumb-v200 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resyd-gallery-thumb-v200:hover,
.resyd-gallery-thumb-v200.is-active {
    opacity: 1;
    transform: translateY(-2px);
    border-color: #d8b36a;
}

@keyframes resydGalleryZoomV200 {
    from {
        opacity: 0;
        transform: scale(.985);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 760px) {
    .resyd-gallery-modal-shell-v200 {
        inset: 0;
        border-radius: 0;
    }

    .resyd-gallery-modal-stage-v200 {
        padding: 8px 10px;
    }

    .resyd-gallery-modal-nav-v200 {
        width: 44px;
        height: 44px;
        font-size: 34px;
        background: rgba(0,0,0,.36);
    }

    .resyd-gallery-modal-nav-v200.prev {
        left: 10px;
    }

    .resyd-gallery-modal-nav-v200.next {
        right: 10px;
    }

    .resyd-gallery-thumb-v200 {
        flex-basis: 74px;
        width: 74px;
        height: 54px;
    }
}