:root {
    --palette-accent: #84bc63;
    --palette-top-scrim: rgb(16 43 78 / 88%);
    --palette-bottom-scrim: rgb(8 25 45 / 92%);
    --palette-text: #fff;
    --palette-muted: #d4dfea;
    --palette-mls: var(--palette-accent);
    --palette-shadow: rgb(0 0 0 / 65%);
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: Roboto, Arial, sans-serif;
    background: #222;
    cursor: none;
}

body.palette-kw {
    --palette-accent: #d33632;
    --palette-top-scrim: rgb(77 77 77 / 88%);
    --palette-bottom-scrim: rgb(0 0 0 / 92%);
    --palette-text: #fff;
    --palette-muted: #ccc;
    --palette-mls: #ccc;
    --palette-shadow: rgb(0 0 0 / 75%);
}

html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
    font-family: inherit;
    pointer-events: none;
}

#loading-css {
    display: none;
}

#loading-js {
    display: block;
}

.status {
    position: absolute;
    z-index: 4;
    left: 10vw;
    top: 10vh;
    margin: 0;
    color: #aaa;
    font-size: clamp(24px, 4vw, 64px);
}

.status.error {
    color: #ff8a80;
}

.force-show {
    display: block !important;
}

.force-hide {
    display: none !important;
}

div.listing,
div.promo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    contain: layout paint style;
    isolation: isolate;
}

div.listing {
    z-index: 0;
}

div.promo {
    z-index: 3;
    background: #000;
}

div.promo.fadein {
    animation: 2s ease-out fadein both;
}

div.promo.fadeout {
    animation: 2s ease-in fadeout both;
}

body .preload {
    visibility: hidden;
    animation-play-state: paused !important;
}

body .preload * {
    animation-play-state: paused !important;
}

.photos,
.photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.photos {
    z-index: 1;
}

.photo {
    --motion-duration: 6s;
}

.photo.squarish {
    --motion-duration: 3s;
}

.photo.long {
    --motion-duration: 8s;
}

.photo.slideup {
    --motion-name: slideup;
}

.photo.slidedown {
    --motion-name: slidedown;
}

.photo.slideleft {
    --motion-name: slideleft;
}

.photo.slideright {
    --motion-name: slideright;
}

.photo.zoom {
    --motion-name: zoom;
}

.photo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    backface-visibility: hidden;
}

.photo.animating img {
    will-change: transform, opacity;
}

.photo-grid {
    display: grid;
    gap: clamp(3px, 0.35vw, 7px);
    padding: clamp(3px, 0.35vw, 7px);
    background: #111;
    opacity: 0;
}

.photo-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

.photo-grid-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

.photo-grid.grid-active {
    animation: 2s ease-out fadein, 7s linear noop;
    animation-fill-mode: both;
}

.photo-grid.animating {
    will-change: opacity;
}

.photo-grid img {
    min-width: 0;
    min-height: 0;
}

.content-wrapper {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
    color: var(--palette-text);
    animation: 1.2s ease-out fadein both;
}

body.paused .photo.animating img,
body.paused .photo-grid.animating,
body.paused .content-wrapper {
    animation-play-state: paused !important;
}

.property-header {
    position: absolute;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: clamp(24px, 3vw, 64px);
    inset-inline: 0;
    top: 0;
    width: 100%;
    min-height: clamp(140px, 14vw, 230px);
    padding: clamp(22px, 2vw, 40px) clamp(28px, 3vw, 60px);
    background: linear-gradient(
        to bottom,
        var(--palette-top-scrim) 0%,
        rgb(0 0 0 / 32%) 52%,
        transparent 100%
    );
}

.property-address {
    min-width: 0;
    overflow: hidden;
    font-size: clamp(30px, 2.7vw, 54px);
    font-weight: 700;
    line-height: 1.08;
    text-shadow: 0 2px 10px var(--palette-shadow);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.property-summary {
    display: grid;
    justify-items: end;
    min-width: max-content;
    text-shadow: 0 2px 10px var(--palette-shadow);
}

.property-mls {
    color: var(--palette-mls);
    font-size: clamp(14px, 1.15vw, 23px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.property-price {
    margin-top: 0.2em;
    font-size: clamp(34px, 2.9vw, 58px);
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.property-footer {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: end;
    gap: clamp(24px, 3vw, 60px);
    inset-inline: 0;
    bottom: 0;
    width: 100%;
    min-height: clamp(150px, 14vw, 230px);
    padding: clamp(22px, 2vw, 40px) clamp(28px, 3vw, 60px);
    background: linear-gradient(
        to top,
        var(--palette-bottom-scrim) 0%,
        rgb(0 0 0 / 38%) 52%,
        transparent 100%
    );
}

.property-stats {
    display: flex;
    align-items: stretch;
    gap: clamp(24px, 2.8vw, 56px);
    flex: 0 0 auto;
}

.property-stat {
    display: grid;
    grid-template-areas:
        "icon value"
        "icon label";
    grid-template-columns: clamp(34px, 2.5vw, 50px) auto;
    grid-template-rows: auto auto;
    column-gap: clamp(10px, 0.8vw, 16px);
    align-items: center;
    min-width: max-content;
    text-shadow: 0 2px 9px var(--palette-shadow);
}

.stat-icon {
    grid-area: icon;
    width: clamp(34px, 2.5vw, 50px);
    height: clamp(34px, 2.5vw, 50px);
    background-color: var(--palette-accent);
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    mask-mode: alpha;
}

.property-stat.beds .stat-icon {
    -webkit-mask-image: url(bed.svg);
    mask-image: url(bed.svg);
}

.property-stat.baths .stat-icon {
    -webkit-mask-image: url(bath.svg);
    mask-image: url(bath.svg);
}

.property-stat.acres .stat-icon {
    -webkit-mask-image: url(acres.svg);
    mask-image: url(acres.svg);
}

.property-stat.square-feet .stat-icon {
    -webkit-mask-image: url(ruler.svg);
    mask-image: url(ruler.svg);
}

.property-stat.water .stat-icon {
    -webkit-mask-image: url(water.svg);
    mask-image: url(water.svg);
}

.property-stat.water {
    display: flex;
    align-items: center;
    gap: clamp(10px, 0.8vw, 16px);
}

.property-stat.water .stat-value {
    align-self: center;
    max-width: clamp(170px, 20vw, 400px);
    overflow: hidden;
    font-size: clamp(20px, 1.5vw, 30px);
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stat-value {
    grid-area: value;
    align-self: end;
    font-size: clamp(28px, 2.2vw, 44px);
    font-weight: 900;
    line-height: 0.9;
}

.stat-value.compact {
    font-size: clamp(24px, 1.9vw, 38px);
}

.stat-label {
    grid-area: label;
    align-self: start;
    margin-top: 0.3em;
    color: var(--palette-muted);
    font-size: clamp(13px, 0.95vw, 19px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.property-contact {
    display: grid;
    justify-items: end;
    min-width: 0;
    margin-left: auto;
    text-align: right;
    text-shadow: 0 2px 9px var(--palette-shadow);
}

.contact-office {
    max-width: 44vw;
    overflow: hidden;
    color: var(--palette-muted);
    font-size: clamp(14px, 1.15vw, 23px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.035em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-phone {
    margin-top: 0.25em;
    font-size: clamp(26px, 2.3vw, 46px);
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: auto;
    object-fit: contain;
    background: #000;
}

:is(body.anim-translate, body.anim-objposition) .photo.fadein img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: 2s ease-out fadein, 6s linear noop;
    animation-fill-mode: both;
}

:is(body.anim-translate, body.anim-objposition)
    .photo:is(.slideup, .slidedown, .slideleft, .slideright, .zoom) img {
    animation: 2s ease-out fadein, var(--motion-duration) linear var(--motion-name);
    animation-fill-mode: both;
}

@keyframes zoom {
    from { transform: scale3d(1.03, 1.03, 1); }
    to { transform: scale3d(1.2, 1.2, 1); }
}

@keyframes noop {}

@keyframes fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeout {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes slideup {
    from { transform: translate3d(0, 4%, 0) scale3d(1.16, 1.16, 1); }
    to { transform: translate3d(0, -4%, 0) scale3d(1.16, 1.16, 1); }
}

@keyframes slidedown {
    from { transform: translate3d(0, -4%, 0) scale3d(1.16, 1.16, 1); }
    to { transform: translate3d(0, 4%, 0) scale3d(1.16, 1.16, 1); }
}

@keyframes slideleft {
    from { transform: translate3d(4%, 0, 0) scale3d(1.16, 1.16, 1); }
    to { transform: translate3d(-4%, 0, 0) scale3d(1.16, 1.16, 1); }
}

@keyframes slideright {
    from { transform: translate3d(-4%, 0, 0) scale3d(1.16, 1.16, 1); }
    to { transform: translate3d(4%, 0, 0) scale3d(1.16, 1.16, 1); }
}
