/* ==========================================================================
   Morgan Real Estates — public site
   Type: Big Shoulders Display (signage, prices, addresses) + Public Sans (UI)
   Color: cobalt on white, night navy, yard-sign status colors
   ========================================================================== */

@font-face { font-family: "Big Shoulders Display"; font-weight: 600; font-display: swap; src: url("../fonts/big-shoulders-display-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 700; font-display: swap; src: url("../fonts/big-shoulders-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 800; font-display: swap; src: url("../fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-display: swap; src: url("../fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 500; font-display: swap; src: url("../fonts/public-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-display: swap; src: url("../fonts/public-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 700; font-display: swap; src: url("../fonts/public-sans-latin-700-normal.woff2") format("woff2"); }

:root {
    --white: #ffffff;
    --paper: #f3f5f9;
    --ink: #111a33;
    --ink-2: #4b5571;
    --ink-3: #7b849b;
    --line: #e1e5ee;
    --line-2: #c9d0dd;
    --cobalt: #1d3fd8;
    --cobalt-700: #1531b0;
    --cobalt-50: #ebefff;
    --night: #0b1330;
    --pending: #f0a51a;
    --sold: #d4382b;
    --rent: #0b8b73;

    --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
    --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --gutter: clamp(16px, 4vw, 40px);
    --wrap: 1280px;
    --header-h: 72px;
    --filters-h: 69px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    font: 400 16px/1.6 var(--sans);
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p, dl, dd, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; border-radius: 4px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.page-pad { padding-top: clamp(32px, 5vw, 56px); }
.muted { color: var(--ink-2); }
.lede { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 52ch; }
.ico { width: 1.2em; height: 1.2em; flex: none; }

/* ---------------------------------------------------------------- buttons */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 48px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent;
    font: 600 15.5px/1 var(--sans); text-decoration: none; white-space: nowrap;
    transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s;
}
.btn--primary { background: var(--cobalt); color: #fff; }
.btn--primary:hover { background: var(--cobalt-700); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--cobalt-700); }
.btn--light:hover { background: var(--cobalt-50); }
.btn--sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .6; pointer-events: none; }

.link-strong { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--cobalt); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.link-strong:hover { color: var(--cobalt-700); }
.link-strong .ico { width: 16px; height: 16px; }

.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--ink); }
.icon-btn:hover { border-color: var(--ink); }

/* ------------------------------------------------------------- status tags */

.tag {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 10px 6px 9px; border-radius: 4px;
    font: 700 12.5px/1 var(--sans); letter-spacing: .015em;
    background: var(--cobalt); color: #fff;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.tag--pending { background: var(--pending); color: #2b1c00; }
.tag--sold { background: var(--sold); }
.tag--for-rent { background: var(--rent); }

/* ----------------------------------------------------------------- header */

.site-header {
    position: sticky; top: 0; z-index: 50; height: var(--header-h);
    background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line);
    backdrop-filter: saturate(1.4) blur(8px);
    transition: background-color .3s, border-color .3s, color .3s;
}
.site-header__inner { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); height: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter) + 160px); margin: 0 auto; padding: 0 var(--gutter); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cobalt); }
.logo-mark { width: 36px; height: 29px; flex: none; }
.brand__word { display: flex; flex-direction: column; line-height: 1; color: var(--ink); }
.brand__word b { font: 800 27px/0.9 var(--display); letter-spacing: .01em; }
.brand__word span { font: 500 12.5px/1.2 var(--sans); color: var(--ink-2); margin-top: 3px; letter-spacing: .01em; }

.site-nav { display: flex; gap: 2px; }
.site-nav a { padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 15px; text-decoration: none; }
.site-nav a:hover { background: rgba(17, 26, 51, .06); }
.site-nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--cobalt); text-decoration-thickness: 2px; text-underline-offset: 8px; }

.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.saved-link { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink); }
.saved-link:hover { border-color: currentColor; }
.saved-link__count { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--sold); color: #fff; font: 700 11px/19px var(--sans); text-align: center; }
.header-phone .ico { width: 16px; height: 16px; }
.menu-toggle { display: none; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; }

.mobile-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(11, 19, 48, .35); padding: 8px 0 16px; }
.mobile-nav a { display: flex; align-items: center; gap: 10px; padding: 14px var(--gutter); font-weight: 600; font-size: 18px; text-decoration: none; }
.mobile-nav a:hover { background: var(--paper); }
.mobile-nav__phone { color: var(--cobalt); }

/* Transparent header over the homepage hero */
.page-home .site-header:not(.is-solid) { background: transparent; border-color: transparent; color: #fff; backdrop-filter: none; }
.page-home .site-header:not(.is-solid) .brand,
.page-home .site-header:not(.is-solid) .brand__word,
.page-home .site-header:not(.is-solid) .brand__word span { color: #fff; }
.page-home .site-header:not(.is-solid) .saved-link,
.page-home .site-header:not(.is-solid) .menu-toggle { color: #fff; border-color: rgba(255, 255, 255, .45); }
.page-home .site-header:not(.is-solid) .header-phone { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.page-home .site-header:not(.is-solid) .site-nav a:hover { background: rgba(255, 255, 255, .14); }
.page-home .site-header:not(.is-solid) :focus-visible { outline-color: #fff; }

/* ------------------------------------------------------------------- hero */

.hero {
    position: relative; overflow: hidden; color: #fff; background: var(--night);
    height: min(90vh, 880px); min-height: 600px;
    margin-top: calc(-1 * var(--header-h));
}
.hero--empty { height: 520px; min-height: 0; background: linear-gradient(160deg, var(--cobalt) 0%, var(--night) 70%); }
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide { opacity: 0; visibility: hidden; transition: opacity 1.1s ease, visibility 0s linear 1.1s; }
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity 1.1s ease, visibility 0s; }
.hero__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.07); transform-origin: 60% 50%; }
.hero__slide.is-active .hero__img { transform: scale(1); transition: transform 9s cubic-bezier(.25, .1, .25, 1); }
.hero__shade {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(11, 19, 48, .68) 0%, rgba(11, 19, 48, .2) 16%, rgba(11, 19, 48, 0) 30%),
        linear-gradient(0deg, rgba(11, 19, 48, .92) 0%, rgba(11, 19, 48, .45) 34%, rgba(11, 19, 48, 0) 62%);
}
.hero__copy { position: absolute; left: 0; right: 0; bottom: 156px; z-index: 2; }
.hero--empty .hero__copy { bottom: 120px; }
.hero__addr {
    margin: 18px 0 22px; max-width: 11ch;
    font: 800 clamp(58px, 9.4vw, 152px)/.86 var(--display);
    letter-spacing: -.012em; text-wrap: balance;
}
.hero__addr a { text-decoration: none; }
.hero__addr a:hover { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 10px; }
.hero__city { font-size: clamp(16px, 1.5vw, 19px); font-weight: 500; opacity: .92; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; margin-top: 18px; }
.hero__price { font: 700 clamp(32px, 3.4vw, 46px)/1 var(--display); letter-spacing: .01em; }
.hero__facts { display: flex; gap: 18px; font-weight: 600; font-size: 16px; opacity: .92; }

/* The one orchestrated moment: each new slide's copy rises in. */
.hero__slide.is-active .tag,
.hero__slide.is-active .hero__addr,
.hero__slide.is-active .hero__city,
.hero__slide.is-active .hero__meta { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero__slide.is-active .hero__addr { animation-delay: .08s; }
.hero__slide.is-active .hero__city { animation-delay: .18s; }
.hero__slide.is-active .hero__meta { animation-delay: .26s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

.hero__nav { position: absolute; left: 0; right: 0; bottom: 88px; z-index: 3; display: flex; justify-content: flex-end; align-items: flex-end; gap: 14px; }
.hero__dot { width: 112px; padding: 10px 0 0; border: 0; background: none; color: #fff; text-align: left; }
.hero__dot-bar { display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .32); overflow: hidden; }
.hero__dot-bar i { display: block; height: 100%; width: 0; background: #fff; }
.hero__dot.is-active .hero__dot-bar i { animation: progress var(--slide-ms, 7000ms) linear forwards; }
.hero.is-paused .hero__dot.is-active .hero__dot-bar i { animation-play-state: paused; }
.hero__dot-label { display: block; margin-top: 8px; font-size: 13px; font-weight: 600; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__dot.is-active .hero__dot-label, .hero__dot:hover .hero__dot-label { opacity: 1; }
@keyframes progress { from { width: 0; } to { width: 100%; } }
.hero__pause { width: 32px; height: 32px; margin-left: 6px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); background: transparent; display: grid; place-items: center; }
.hero__pause span { width: 8px; height: 10px; border-left: 2.5px solid #fff; border-right: 2.5px solid #fff; }
.hero.is-paused .hero__pause span { width: 0; height: 0; border: 0; border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }

/* ----------------------------------------------------------------- finder */

.finder { position: relative; z-index: 6; margin-top: -58px; padding-inline: 12px; }
.finder__form.wrap {
    max-width: 1180px; padding: 8px 8px 8px;
    background: #fff; border-radius: 18px;
    box-shadow: 0 30px 70px -30px rgba(11, 19, 48, .5), 0 0 0 1px rgba(11, 19, 48, .06);
}
.finder__tabs { display: flex; gap: 4px; padding: 6px 10px 0; border-bottom: 1px solid var(--line); }
.finder__tabs label { position: relative; }
.finder__tabs input { position: absolute; opacity: 0; pointer-events: none; }
.finder__tabs span { display: block; padding: 10px 14px 12px; font-weight: 600; font-size: 15px; color: var(--ink-2); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.finder__tabs input:checked + span { color: var(--ink); border-color: var(--cobalt); }
.finder__tabs input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: -3px; border-radius: 6px; }
.finder__fields { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr)) auto; align-items: stretch; padding-top: 6px; }
.finder__field { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 10px 18px; border-right: 1px solid var(--line); cursor: text; }
.finder__field:nth-last-child(2) { border-right: 0; }
.finder__field > span { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.finder__field input, .finder__field select { width: 100%; border: 0; padding: 2px 0; background: transparent; font-size: 17px; font-weight: 500; outline: none; appearance: none; -webkit-appearance: none; }
.finder__field select { cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%237b849b' stroke-width='1.8'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 2px center; padding-right: 18px; }
.finder__field:focus-within { background: var(--paper); border-radius: 10px; }
.finder__go { height: auto; min-height: 60px; padding: 0 28px; margin: 4px; font-size: 16px; border-radius: 12px; }
.finder__go .ico { width: 20px; height: 20px; }

/* ------------------------------------------------------------ data line */

.pulse { padding-top: clamp(56px, 8vw, 96px); }
.pulse__line { font: 800 clamp(32px, 4.4vw, 60px)/1.04 var(--display); letter-spacing: -.005em; max-width: 30ch; text-wrap: balance; }
.pulse__line a { white-space: nowrap; }
.pulse__line a { color: var(--cobalt); text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 8px; text-decoration-color: rgba(29, 63, 216, .3); }
.pulse__line a:hover { text-decoration-color: var(--cobalt); }

/* --------------------------------------------------------------- sections */

.section { padding-block: clamp(44px, 6vw, 72px); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section__title { font: 800 clamp(34px, 3.8vw, 50px)/1 var(--display); letter-spacing: -.005em; }
.section__title--page { font-size: clamp(44px, 6vw, 72px); line-height: .95; margin-bottom: 8px; }

/* ------------------------------------------------------------------ cards */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 28px; }
.card { position: relative; min-width: 0; }
.card__media { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--cobalt-50); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.card__new { padding: 6px 9px; border-radius: 4px; background: #fff; color: var(--ink); font: 700 12.5px/1 var(--sans); }
.card__photos { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 6px; background: rgba(11, 19, 48, .66); color: #fff; font: 600 12.5px/1 var(--sans); }
.card__photos .ico { width: 14px; height: 14px; }
.card__body { padding-top: 14px; }
.card__price { font: 800 31px/1 var(--display); letter-spacing: .005em; }
.card__facts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }
.card__facts b { color: var(--ink); font-weight: 600; }
.card__addr { margin-top: 6px; font: 600 16px/1.35 var(--sans); }
.card__addr a { text-decoration: none; }
.card__addr a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 12px; }
.card:hover .card__addr a { text-decoration: underline; text-underline-offset: 3px; }
.card__addr a:focus-visible { outline: none; }
.card__addr a:focus-visible::after { outline: 3px solid var(--cobalt); outline-offset: 4px; }
.card__city { font-size: 14.5px; color: var(--ink-2); }
.card.is-hover .card__media { outline: 3px solid var(--cobalt); outline-offset: 3px; }

.save-btn {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    border: 0; background: rgba(255, 255, 255, .94); color: var(--ink);
    box-shadow: 0 2px 8px rgba(11, 19, 48, .18);
}
.save-btn .ico { width: 20px; height: 20px; }
.save-btn:hover { color: var(--sold); }
[data-save][aria-pressed="true"] .ico { fill: var(--sold); stroke: var(--sold); }
[data-save].pop .ico { animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.3); } }

/* ----------------------------------------------------------------- cities */

.section--cities .section__head { margin-bottom: 22px; }
.scroller-btns { display: flex; gap: 8px; }
.cities {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
    padding-bottom: 6px;
}
.cities::-webkit-scrollbar { display: none; }
.city { position: relative; flex: 0 0 clamp(220px, 23vw, 300px); aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; color: #fff; text-decoration: none; scroll-snap-align: start; background: var(--night); }
.city img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.city::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 19, 48, .85) 0%, rgba(11, 19, 48, 0) 55%); }
.city__name { position: absolute; left: 18px; right: 18px; bottom: 40px; z-index: 1; font: 800 40px/.95 var(--display); }
.city__meta { position: absolute; left: 18px; bottom: 16px; z-index: 1; font-size: 14px; font-weight: 500; opacity: .9; }
.city:hover .city__name { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* ------------------------------------------------------------------- sell */

.sell { margin-top: clamp(24px, 4vw, 48px); background: var(--cobalt); color: #fff; padding-block: clamp(56px, 8vw, 96px); }
.sell__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.sell h2 { font: 800 clamp(48px, 6.4vw, 92px)/.9 var(--display); letter-spacing: -.01em; max-width: 8ch; }
.sell__copy p { margin-top: 20px; font-size: 18px; line-height: 1.6; max-width: 40ch; color: rgba(255, 255, 255, .88); }
.sell__form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sell__form .field > span { color: rgba(255, 255, 255, .8); }
.sell__form .field em { color: rgba(255, 255, 255, .6); }
.sell__form .field input { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); color: #fff; }
.sell__form .field input::placeholder { color: rgba(255, 255, 255, .6); }
.sell__form .field input:focus { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }
.sell__form .btn { align-self: end; height: 48px; }
.sell__form .form-status { grid-column: 1 / -1; color: #fff; }
.sell :focus-visible { outline-color: #fff; }

/* ----------------------------------------------------------------- agents */

.agents { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 28px; }
.agent { display: flex; align-items: center; gap: 16px; }
.agent__photo { width: 76px; height: 76px; border-radius: 16px; object-fit: cover; flex: none; background: var(--cobalt-50); }
.agent__photo--initials { display: grid; place-items: center; color: var(--cobalt); font: 800 30px/1 var(--display); }
.agent__name { font: 800 26px/1 var(--display); }
.agent__title { font-size: 14.5px; color: var(--ink-2); margin-top: 3px; }
.agent__contact { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; font-size: 14.5px; }
.agent__contact a { display: inline-flex; align-items: center; gap: 6px; color: var(--cobalt); font-weight: 600; text-decoration: none; }
.agent__contact a:hover { text-decoration: underline; }
.agent__contact .ico { width: 15px; height: 15px; }
.agent-full { padding: 24px; border: 1px solid var(--line); border-radius: 16px; }
.agent-full__bio { margin-top: 16px; color: var(--ink-2); font-size: 15.5px; }

/* ----------------------------------------------------------------- footer */

.site-footer { margin-top: clamp(48px, 7vw, 96px); background: var(--night); color: rgba(255, 255, 255, .74); padding: clamp(56px, 7vw, 80px) 0 32px; font-size: 15px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer :focus-visible { outline-color: #fff; }
.site-footer__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.site-footer__brand { display: inline-flex; align-items: center; gap: 14px; color: #fff; }
.site-footer__brand .logo-mark { width: 48px; height: 38px; color: #8ea2ff; }
.site-footer__brand span { font: 800 clamp(36px, 4.5vw, 56px)/.9 var(--display); }
.site-footer__tag { max-width: 36ch; }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; padding: 40px 0; }
.site-footer__cols h2 { font: 600 14px/1.4 var(--sans); color: #fff; margin-bottom: 12px; }
.site-footer__cols a, .site-footer__cols address { display: block; line-height: 2; font-style: normal; }
.site-footer__legal { display: grid; gap: 10px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: rgba(255, 255, 255, .58); }
.eho-line { display: flex; align-items: center; gap: 10px; }
.eho { width: 26px; height: 26px; flex: none; color: rgba(255, 255, 255, .8); }

/* ------------------------------------------------------------------ toast */

.toast {
    position: fixed; top: calc(var(--header-h) + 14px); right: 16px; z-index: 90; max-width: min(420px, calc(100vw - 32px));
    padding: 14px 46px 14px 16px; border-radius: 12px; background: var(--night); color: #fff;
    box-shadow: 0 20px 40px -16px rgba(11, 19, 48, .5); border-left: 4px solid var(--rent); font-size: 15px;
    animation: toast-in .35s cubic-bezier(.2, .7, .2, 1);
}
.toast--error { border-left-color: var(--sold); }
.toast button { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; display: grid; place-items: center; border: 0; background: none; color: rgba(255, 255, 255, .7); }
.toast.is-leaving { opacity: 0; transform: translateY(-8px); transition: .25s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px); } }

/* --------------------------------------------------------------- listings */

.page-listings .site-footer { margin-top: 0; }
.filters { position: sticky; top: var(--header-h); z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.filters__inner { display: flex; align-items: center; gap: 12px; padding: 12px var(--gutter); }
.filters__search { flex: 0 1 340px; min-width: 200px; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-3); }
.filters__search:focus-within { border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt-50); }
.filters__search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 15px; color: var(--ink); }
.filters__row { position: relative; display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.pill-select, .filters__search, .sort { position: relative; }
.filters__row::-webkit-scrollbar { display: none; }
.pill-select select, .sort select {
    height: 44px; padding: 0 34px 0 16px; border: 1px solid var(--line-2); border-radius: 999px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23111a33' stroke-width='1.8'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;
    font-size: 14.5px; font-weight: 600; appearance: none; -webkit-appearance: none; cursor: pointer; white-space: nowrap;
}
.pill-select select:hover, .sort select:hover { border-color: var(--ink); }
.pill-select select.is-set { border-color: var(--cobalt); background-color: var(--cobalt-50); color: var(--cobalt-700); }
.filters__clear { flex: none; padding: 0 8px; font-size: 14.5px; font-weight: 600; color: var(--cobalt); white-space: nowrap; }

.results__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 43%); }
.results__list { padding: 28px var(--gutter) 72px; min-width: 0; }
.results__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.results__title { font: 800 clamp(34px, 3.4vw, 46px)/1 var(--display); }
.results__count { color: var(--ink-2); margin-top: 6px; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.sort select { height: 40px; color: var(--ink); }
.cards--results { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 36px 22px; }
.results__map { position: sticky; top: calc(var(--header-h) + var(--filters-h)); height: calc(100vh - var(--header-h) - var(--filters-h)); border-left: 1px solid var(--line); }
.map { width: 100%; height: 100%; background: #e4e9f0; }
.map__empty { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 500; padding: 8px 14px; border-radius: 99px; background: #fff; box-shadow: 0 4px 14px rgba(11, 19, 48, .18); font-size: 14px; }
.view-toggle { display: none; }

.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 48px; }
.pager__step { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 999px; font-weight: 600; text-decoration: none; }
.pager__step:hover { border-color: var(--ink); }
.pager__step .ico { width: 16px; height: 16px; }
.pager__now { color: var(--ink-2); font-size: 15px; }

.empty { text-align: center; padding: 64px 16px; max-width: 520px; margin: 0 auto; }
.empty h1, .empty h2 { font: 800 36px/1 var(--display); margin: 18px 0 10px; }
.empty p { color: var(--ink-2); margin-bottom: 24px; }
.empty__mark, .empty__icon { width: 64px; height: 52px; margin: 0 auto; color: var(--cobalt); }
.empty__code { font: 800 120px/.9 var(--display); color: var(--cobalt); }
.empty--page { padding-block: 96px; }

/* Map pins */
.leaflet-container { font-family: var(--sans); }
.pin-wrap { background: none; border: 0; }
.pin {
    position: absolute; left: 0; top: 0; transform: translate(-50%, calc(-100% - 6px));
    padding: 6px 9px; border-radius: 999px; background: #fff; color: var(--ink);
    font: 700 13px/1 var(--sans); white-space: nowrap; cursor: pointer;
    box-shadow: 0 2px 6px rgba(11, 19, 48, .28), 0 0 0 1px rgba(11, 19, 48, .08);
    transition: background-color .15s, color .15s, transform .15s;
}
.pin::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: inherit; transform: translateX(-50%) rotate(45deg); box-shadow: 2px 2px 3px rgba(11, 19, 48, .12); z-index: -1; }
.pin--for-rent { color: var(--rent); }
.pin--sold { color: var(--ink-3); }
.pin--pending { color: #8a5a00; }
.pin.is-active, .pin:hover { background: var(--cobalt); color: #fff; transform: translate(-50%, calc(-100% - 6px)) scale(1.08); z-index: 10; }
/* Zoomed out: price pills shrink to dots so nearby homes don't pile up. Hover shows the price. */
.map.is-far .pin { width: 16px; height: 16px; padding: 0; font-size: 0; border: 3px solid #fff; background: var(--cobalt); transform: translate(-50%, -50%); }
.map.is-far .pin--for-rent { background: var(--rent); }
.map.is-far .pin--pending { background: var(--pending); }
.map.is-far .pin--sold { background: var(--ink-3); }
.map.is-far .pin::after { display: none; }
.map.is-far .pin.is-active, .map.is-far .pin:hover { width: auto; height: auto; padding: 6px 9px; font-size: 13px; border: 0; color: #fff; background: var(--cobalt); transform: translate(-50%, calc(-100% - 6px)); }
.leaflet-marker-icon.is-front { z-index: 9999 !important; }
.leaflet-popup-content-wrapper { border-radius: 14px; padding: 0; overflow: hidden; box-shadow: 0 20px 40px -12px rgba(11, 19, 48, .45); }
.leaflet-popup-content { margin: 0; width: 248px !important; }
.leaflet-popup-tip { box-shadow: none; }
.leaflet-container a.leaflet-popup-close-button { width: 30px; height: 30px; top: 8px; right: 8px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); font: 400 20px/30px var(--sans); }
.map-pop { display: block; text-decoration: none; color: var(--ink); }
.map-pop img { width: 100%; height: 150px; object-fit: cover; background: var(--cobalt-50); }
.map-pop__body { padding: 12px 14px 14px; }
.map-pop__price { font: 800 26px/1 var(--display); }
.map-pop__facts { margin-top: 6px; font-size: 13px; color: var(--ink-2); white-space: pre; }
.map-pop__addr { margin-top: 4px; font-weight: 600; font-size: 14px; line-height: 1.35; }
.map-pop:hover .map-pop__addr { text-decoration: underline; }

/* --------------------------------------------------------------- property */

.preview-bar { background: var(--pending); color: #2b1c00; text-align: center; padding: 10px 16px; font-weight: 600; font-size: 14.5px; }
.preview-bar a { margin-left: 8px; }
.prop-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ink-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.prop-top__actions { display: flex; gap: 8px; }
.prop-top__actions .ico { width: 17px; height: 17px; }

.gallery { position: relative; display: grid; gap: 8px; margin-top: 16px; height: clamp(300px, 48vw, 580px); }
.gallery > * { border-radius: 0; }
.gallery--5 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery--5 .gallery__item--main { grid-row: 1 / 3; }
.gallery--2, .gallery--3, .gallery--4 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery--2 .gallery__item--main, .gallery--3 .gallery__item--main, .gallery--4 .gallery__item--main { grid-row: 1 / 3; }
.gallery--2 .gallery__item:nth-child(2) { grid-row: 1 / 3; }
.gallery--4 .gallery__item:nth-child(4) { display: none; }
.gallery--1 { grid-template-columns: 1fr; }
.gallery__item { position: relative; padding: 0; border: 0; overflow: hidden; background: var(--cobalt-50); cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: filter .2s; }
.gallery__item:hover img { filter: brightness(.9); }
.gallery__item--main { border-radius: 16px 0 0 16px !important; }
.gallery--1 .gallery__item--main { border-radius: 16px !important; }
.gallery--5 .gallery__item:nth-child(3) { border-top-right-radius: 16px !important; }
.gallery--5 .gallery__item:nth-child(5) { border-bottom-right-radius: 16px !important; }
.gallery--2 .gallery__item:nth-child(2) { border-radius: 0 16px 16px 0 !important; }
.gallery--3 .gallery__item:nth-child(2), .gallery--4 .gallery__item:nth-child(2) { border-top-right-radius: 16px !important; }
.gallery--3 .gallery__item:nth-child(3), .gallery--4 .gallery__item:nth-child(3) { border-bottom-right-radius: 16px !important; }
.gallery__all { position: absolute; right: calc(var(--gutter) + 16px); bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 0; border-radius: 10px; background: #fff; color: var(--ink); font-weight: 600; font-size: 14.5px; box-shadow: 0 6px 18px rgba(11, 19, 48, .25); }
.gallery__all .ico { width: 17px; height: 17px; }

.prop { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: clamp(32px, 5vw, 72px); padding-top: 32px; align-items: start; }
.prop__head { padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.prop__status { display: flex; align-items: center; gap: 12px; }
.prop__listed { font-size: 14px; color: var(--ink-2); }
.prop__price { margin-top: 16px; font: 800 clamp(52px, 6.6vw, 84px)/.9 var(--display); letter-spacing: -.01em; }
.prop__addr { margin-top: 12px; font: 700 clamp(26px, 2.6vw, 34px)/1.05 var(--display); }
.prop__city { margin-top: 4px; font-size: 17px; color: var(--ink-2); }
.prop__facts { display: flex; flex-wrap: wrap; gap: 18px 0; margin-top: 26px; }
.prop__facts div { display: flex; flex-direction: column-reverse; padding-right: clamp(20px, 3vw, 36px); margin-right: clamp(20px, 3vw, 36px); border-right: 1px solid var(--line); }
.prop__facts div:last-child { border-right: 0; margin-right: 0; }
.prop__facts dd { font: 800 40px/1 var(--display); }
.prop__facts dt { margin-top: 4px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.prop__section { padding-block: 36px; border-bottom: 1px solid var(--line); }
.prop__section:last-child { border-bottom: 0; }
.prop__section h2 { font: 800 32px/1.05 var(--display); margin-bottom: 18px; text-wrap: balance; }
.prop__section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.prop__section-head h2 { margin: 0; }
.prose p { max-width: 66ch; font-size: 17px; line-height: 1.75; color: #283150; }
.prose p + p { margin-top: 1em; }
.prose--lg p { font-size: 19px; }
.tour-link { margin-top: 22px; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px 24px; }
.features li { display: flex; align-items: center; gap: 10px; font-size: 16px; }

.facts-table { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.facts-table div { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.facts-table dt { color: var(--ink-2); }
.facts-table dd { font-weight: 600; text-align: right; }
.map--single { height: 380px; border-radius: 14px; overflow: hidden; }
.map__addr { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--ink-2); font-size: 15px; }
.map__addr .ico { width: 17px; height: 17px; color: var(--cobalt); }
.house-pin { width: 44px; height: 44px; border-radius: 50% 50% 50% 0; transform: translate(-50%, -100%) rotate(-45deg); background: var(--cobalt); box-shadow: 0 6px 14px rgba(11, 19, 48, .35); position: absolute; display: grid; place-items: center; }
.house-pin svg { width: 22px; height: 18px; color: #fff; transform: rotate(45deg); }

.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 28px; border-radius: 16px; background: var(--paper); }
.calc__total { font: 800 60px/1 var(--display); }
.calc__total small { font: 600 18px var(--sans); color: var(--ink-2); margin-left: 4px; }
.calc__bar { display: flex; gap: 3px; height: 14px; margin: 18px 0 20px; border-radius: 99px; overflow: hidden; }
.calc__bar i { display: block; height: 100%; transition: flex-grow .3s; }
.calc__bar [data-seg="pi"], .k-pi { background: var(--cobalt); }
.calc__bar [data-seg="tax"], .k-tax { background: #7b93f5; }
.calc__bar [data-seg="ins"], .k-ins { background: var(--pending); }
.calc__bar [data-seg="hoa"], .k-hoa { background: var(--rent); }
.calc__legend li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 15px; }
.calc__legend li i { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.calc__legend b { margin-left: auto; font-weight: 600; }
.calc__in { display: grid; gap: 16px; align-content: start; }
.calc__in input[type="range"] { height: auto; padding: 0; border: 0; accent-color: var(--cobalt); background: none; box-shadow: none; }
.calc__in output { float: right; color: var(--ink); font-weight: 600; }
.calc__note { font-size: 13.5px; color: var(--ink-2); }

.prop__side { position: sticky; top: calc(var(--header-h) + 20px); }
.contact-card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 24px 50px -30px rgba(11, 19, 48, .4); }
.contact-card__agent { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.contact-card__agent .agent__photo { width: 64px; height: 64px; border-radius: 14px; font-size: 26px; }
.contact-card__name { font: 800 24px/1 var(--display); }
.contact-card__role { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.contact-card__phone { display: inline-block; margin-top: 4px; font-weight: 600; font-size: 15px; color: var(--cobalt); text-decoration: none; }
.contact-card__note { margin-bottom: 14px; padding: 12px 14px; border-radius: 10px; background: var(--paper); font-size: 14.5px; }
.contact-card__fine { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); text-align: center; }
.inquiry { display: grid; gap: 14px; }

.seg-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: var(--paper); }
.seg-tabs label, .seg-mini label, .chip-group label, .day { position: relative; }
.seg-tabs input, .seg-mini input, .chip-group input, .day input { position: absolute; opacity: 0; pointer-events: none; }
.seg-tabs span { display: block; padding: 10px 8px; border-radius: 9px; text-align: center; font-weight: 600; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.seg-tabs input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(11, 19, 48, .14); }
.seg-tabs input:focus-visible + span, .seg-mini input:focus-visible + span, .chip-group input:focus-visible + span, .day input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 2px; }

.tour-days { border: 0; padding: 0; margin: 0; min-width: 0; }
.tour-days legend { padding: 0; margin-bottom: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.tour-days__track { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; padding-bottom: 4px; }
.day { flex: none; scroll-snap-align: start; }
.day span { display: flex; flex-direction: column; align-items: center; width: 62px; padding: 9px 0 8px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; line-height: 1.15; }
.day small { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.day b { font: 800 28px/1 var(--display); margin: 2px 0; }
.day input:checked + span { border: 2px solid var(--cobalt); padding: 8px 0 7px; background: var(--cobalt-50); }
.day input:checked + span small { color: var(--cobalt-700); }
.seg-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; border: 0; padding: 0; margin: 0; }
.seg-mini span { display: block; padding: 9px 4px; border: 1px solid var(--line-2); border-radius: 9px; text-align: center; font-size: 14px; font-weight: 600; cursor: pointer; }
.seg-mini input:checked + span { border-color: var(--cobalt); background: var(--cobalt-50); color: var(--cobalt-700); }

.sticky-cta { display: none; }

/* ---------------------------------------------------------------- fields */

.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
    width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 9px;
    background: #fff; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt-50); }
.field--wide { grid-column: 1 / -1; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-status { font-size: 14.5px; font-weight: 600; min-height: 0; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--rent); }
.form-status.is-error { color: var(--sold); }
.sell__form .form-status.is-ok, .sell__form .form-status.is-error { color: #fff; }
.form-done { padding: 20px; border-radius: 12px; background: #e7f6f2; color: #064e40; font-weight: 600; display: flex; gap: 10px; align-items: flex-start; }
.form-done .ico { color: var(--rent); width: 22px; height: 22px; margin-top: 1px; }
.sell__form .form-done { grid-column: 1 / -1; background: rgba(255, 255, 255, .14); color: #fff; }
.sell__form .form-done .ico { color: #fff; }

/* --------------------------------------------------------- contact/about */

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact__ways { display: grid; gap: 18px; margin-top: 36px; }
.contact__ways dt { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.contact__ways dd { font: 700 26px/1.2 var(--display); }
.contact__ways a { text-decoration: none; color: var(--cobalt); }
.contact__ways a:hover { text-decoration: underline; }
.contact__form { display: grid; gap: 16px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: 18px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.chip-group legend { width: 100%; padding: 0; margin-bottom: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.chip-group span { display: block; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-weight: 600; font-size: 14.5px; cursor: pointer; }
.chip-group input:checked + span { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }

.about__title { font: 800 clamp(52px, 8vw, 112px)/.88 var(--display); letter-spacing: -.012em; max-width: 12ch; text-wrap: balance; }
.about__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); margin-top: 40px; align-items: start; }
.about__facts { display: grid; gap: 4px; }
.about__facts div { display: flex; flex-direction: column-reverse; padding: 18px 0; border-bottom: 1px solid var(--line); }
.about__facts dd { font: 800 72px/.9 var(--display); color: var(--cobalt); }
.about__facts dt { margin-top: 6px; color: var(--ink-2); font-weight: 600; }
.agents--full { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; }
.cta-band h2 { font: 800 clamp(36px, 4vw, 52px)/1 var(--display); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* --------------------------------------------------------------- lightbox */

.lightbox { position: fixed; inset: 0; z-index: 120; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: rgba(6, 10, 26, .97); color: #fff; }
.lightbox__top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; }
.lightbox__count { font-weight: 600; font-size: 15px; opacity: .8; }
.lightbox__close, .lightbox__nav { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .2); }
.lightbox__close .ico, .lightbox__nav .ico { width: 24px; height: 24px; }
.lightbox__stage { display: grid; place-items: center; padding: 0 84px; min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; user-select: none; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }
.lightbox__thumbs { display: flex; gap: 8px; justify-content: safe center; overflow-x: auto; padding: 14px 18px 18px; scrollbar-width: none; }
.lightbox__thumbs button { flex: none; width: 76px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: none; opacity: .55; }
.lightbox__thumbs button.is-active { border-color: #fff; opacity: 1; }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lightbox :focus-visible { outline-color: #fff; }
body.no-scroll { overflow: hidden; }

/* ------------------------------------------------------------- responsive */

@media (max-width: 1180px) {
    .header-phone span { display: none; }
    .header-phone { width: 42px; padding: 0; border-radius: 50%; }
}

@media (max-width: 1024px) {
    .results__body { grid-template-columns: 1fr; }
    .results__map { display: none; position: fixed; inset: calc(var(--header-h) + var(--filters-h)) 0 0 0; height: auto; top: calc(var(--header-h) + var(--filters-h)); z-index: 25; border: 0; }
    .results.show-map .results__map { display: block; }
    .view-toggle { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 40; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--night); color: #fff; font-weight: 600; font-size: 15px; box-shadow: 0 10px 24px rgba(11, 19, 48, .35); }
    .view-toggle span { display: inline-flex; align-items: center; gap: 8px; }
    .view-toggle .ico { width: 18px; height: 18px; }
    .view-toggle__list, .results.show-map .view-toggle__map { display: none !important; }
    .results.show-map .view-toggle__list { display: inline-flex !important; }

    .prop { grid-template-columns: 1fr; }
    .prop__side { position: static; }
    .sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -20px rgba(11, 19, 48, .4); transform: translateY(110%); transition: transform .3s; }
    .sticky-cta.is-visible { transform: none; }
    .sticky-cta__price { font: 800 26px/1 var(--display); }
    .sticky-cta__facts { display: flex; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
    .page-property .site-footer { padding-bottom: 96px; }
}

@media (max-width: 960px) {
    .site-nav { display: none; }
    .menu-toggle { display: grid; }
    .finder__fields { grid-template-columns: 1fr 1fr; }
    .finder__field--grow { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
    .finder__field:nth-child(3) { border-right: 0; }
    .finder__field:nth-child(4) { grid-column: 1 / 2; border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
    .finder__go { grid-column: 2 / 3; margin: 6px; min-height: 52px; }
    .sell__inner, .contact, .about__grid { grid-template-columns: 1fr; }
    .calc { grid-template-columns: 1fr; }
    .hero__nav { justify-content: flex-start; }
}

@media (max-width: 640px) {
    :root { --header-h: 64px; --filters-h: 121px; }
    .brand__word b { font-size: 24px; }
    .brand__word span { font-size: 11.5px; }
    .logo-mark { width: 32px; height: 26px; }
    .header-phone { display: none; }
    .hero { height: 86svh; min-height: 560px; }
    .hero__copy { bottom: 150px; }
    .hero__addr { font-size: clamp(54px, 15vw, 80px); }
    .hero__meta { gap: 6px 18px; }
    .hero__nav { bottom: 82px; gap: 8px; }
    .hero__dot { width: auto; flex: 1; }
    .hero__dot-label { display: none; }
    .finder { margin-top: -48px; }
    .finder__field { padding: 10px 14px; }
    .cards { grid-template-columns: 1fr; gap: 32px; }
    .scroller-btns { display: none; }
    .sell__form, .grid-2, .facts-table { grid-template-columns: 1fr; }
    .filters__inner { flex-direction: column; align-items: stretch; gap: 10px; }
    .filters__search { flex: none; }
    .results__head { flex-direction: column; align-items: flex-start; }
    .gallery { height: 300px; margin-inline: 0; padding-inline: 0; grid-template-columns: 1fr !important; grid-template-rows: 1fr !important; }
    .gallery__item:not(.gallery__item--main) { display: none; }
    .gallery__item--main { border-radius: 0 !important; grid-row: auto !important; }
    .gallery__all { right: 12px; bottom: 12px; }
    .prop__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .prop__facts div { padding-right: 12px; margin-right: 12px; }
    .prop__facts div:nth-child(3n) { border-right: 0; margin-right: 0; }
    .prop__facts dd { font-size: 32px; }
    .crumbs > :nth-child(n+4) { display: none; }
    .prop-top__actions .btn { width: 40px; padding: 0; }
    .prop-top__actions .btn span { display: none; }
    .lightbox__stage { padding: 0 8px; }
    .lightbox__nav { width: 40px; height: 40px; background: rgba(0, 0, 0, .4); }
    .lightbox__nav--prev { left: 8px; }
    .lightbox__nav--next { right: 8px; }
    .toast { left: 16px; right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .hero__img, .hero__slide.is-active .hero__img { transform: none !important; }
}

/* ==========================================================================
   v2: motion, icons and new sections
   ========================================================================== */

/* ---------------------------------------------------------- scroll reveal */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .card[data-reveal] { transform: translateY(34px) scale(.98); }
.js .card[data-reveal].is-in { transform: none; }

/* -------------------------------------------------------------- shared icons */
.h-ico { display: flex; align-items: center; gap: 12px; }
.h-ico > .ico { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: var(--cobalt-50); color: var(--cobalt); stroke-width: 2; box-sizing: content-box; }
.ico-link { display: flex !important; align-items: flex-start; gap: 10px; }
.ico-link .ico { width: 17px; height: 17px; margin-top: .45em; opacity: .7; }
.mobile-nav a .ico { width: 20px; height: 20px; color: var(--cobalt); }
.header-mail .ico { width: 19px; height: 19px; }

/* Buttons: arrow nudge, shine sweep */
.btn .ico, .link-strong .ico { transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.btn:hover .ico-arrow-right, .link-strong:hover .ico-arrow-right { transform: translateX(4px); }
.btn--shine { position: relative; overflow: hidden; isolation: isolate; }
.btn--shine::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); }
.btn--shine:hover::after { transform: translateX(120%); transition: transform .8s ease; }
.btn--primary:hover { box-shadow: 0 10px 24px -10px rgba(29, 63, 216, .7); }

/* ---------------------------------------------------------------- header */
.site-header { animation: drop-in .6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes drop-in { from { transform: translateY(-100%); } }

/* ------------------------------------------------------------------ hero */
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero__type { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 4px; background: rgba(11, 19, 48, .55); backdrop-filter: blur(6px); font: 600 12.5px/1 var(--sans); }
.hero__type .ico { width: 15px; height: 15px; }
.hero__addr .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__addr .w > span { display: inline-block; }
.hero__slide.is-active .hero__addr { animation: none; }
.hero__slide.is-active .hero__addr .w > span { animation: word-up .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.1s + var(--w) * 90ms); }
@keyframes word-up { from { transform: translateY(105%); } to { transform: none; } }
.hero__city { display: flex; align-items: center; gap: 6px; }
.hero__city .ico { width: 18px; height: 18px; }
.hero__facts span { display: inline-flex; align-items: center; gap: 6px; }
.hero__facts .ico { width: 18px; height: 18px; opacity: .85; }
.hero__meta { align-items: center; }
.hero__cta { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; transition: gap .2s, box-shadow .2s; }
.hero__cta:hover { gap: 12px; box-shadow: 0 10px 28px -10px rgba(0, 0, 0, .6); }
.hero__cta .ico { width: 18px; height: 18px; }

/* ----------------------------------------------------------------- finder */
.finder__tabs span { display: inline-flex; align-items: center; gap: 7px; }
.finder__tabs span .ico { width: 17px; height: 17px; }
.finder__tabs input:checked + span .ico { color: var(--cobalt); }
.finder__field > span { display: inline-flex; align-items: center; gap: 6px; }
.finder__field > span .ico { width: 14px; height: 14px; color: var(--cobalt); }
.finder { animation: finder-in .8s .3s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes finder-in { from { opacity: 0; transform: translateY(30px); } }

/* ----------------------------------------------------------------- ticker */
.ticker { position: relative; display: flex; align-items: center; margin-top: clamp(40px, 6vw, 64px); background: var(--night); color: #fff; overflow: hidden; height: 54px; }
.ticker__label { position: relative; z-index: 2; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 100%; padding: 0 22px 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2)); background: var(--cobalt); font: 700 14px/1 var(--sans); box-shadow: 18px 0 24px -6px var(--night); }
.ticker__label .ico { width: 17px; height: 17px; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.ticker__track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker__row { display: flex; width: max-content; animation: ticker var(--ticker-s, 60s) linear infinite; }
.ticker:hover .ticker__row, .ticker:focus-within .ticker__row { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker__item { display: inline-flex; align-items: center; gap: 10px; padding: 0 28px; color: rgba(255, 255, 255, .82); text-decoration: none; font-size: 14.5px; white-space: nowrap; border-right: 1px solid rgba(255, 255, 255, .12); }
.ticker__item b { font: 800 21px/1 var(--display); color: #fff; letter-spacing: .01em; }
.ticker__item .ico { width: 18px; height: 18px; color: #8ea2ff; }
.ticker__item:hover span { color: #fff; text-decoration: underline; }
.ticker__item:focus-visible { outline-color: #fff; outline-offset: -4px; }
.ticker__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cobalt); box-shadow: 0 0 0 3px rgba(29, 63, 216, .3); }
.ticker__dot--for-rent { background: var(--rent); box-shadow: 0 0 0 3px rgba(11, 139, 115, .3); }
.ticker__dot--pending { background: var(--pending); box-shadow: 0 0 0 3px rgba(240, 165, 26, .3); }

/* ------------------------------------------------------------------ stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-top: clamp(44px, 6vw, 72px); }
.stat { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; overflow: hidden; transition: border-color .2s, transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s; }
.stat::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--cobalt-50); transition: transform .4s cubic-bezier(.2, .7, .2, 1); z-index: -1; }
.stat { isolation: isolate; }
.stat:hover { border-color: var(--cobalt); transform: translateY(-4px); box-shadow: 0 18px 36px -24px rgba(29, 63, 216, .55); }
.stat:hover::after { transform: scale(2.6); }
.stat__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--cobalt); color: #fff; margin-bottom: 10px; }
.stat__ico .ico { width: 22px; height: 22px; }
.stat__num { font: 800 clamp(40px, 4.4vw, 58px)/1 var(--display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stat__label { color: var(--ink-2); font-weight: 600; font-size: 15px; }

/* ------------------------------------------------------------------ cards */
.card__media { transition: box-shadow .35s, transform .35s cubic-bezier(.2, .7, .2, 1); isolation: isolate; }
.card__img { position: absolute; inset: 0; transition: transform .9s cubic-bezier(.2, .7, .2, 1), opacity .5s; }
.card__img--alt { opacity: 0; }
@media (hover: hover) {
    .card:hover .card__media { transform: translateY(-6px); box-shadow: 0 26px 40px -24px rgba(11, 19, 48, .55); }
    .card:hover .card__img { transform: scale(1.06); }
    .card:hover .card__img--alt { opacity: 1; }
}
.card__media.is-loading::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(100deg, var(--cobalt-50) 30%, #f7f9ff 50%, var(--cobalt-50) 70%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.card__media .card__badges, .card__media .card__photos, .card__media .card__type { z-index: 2; }
.card__new { display: inline-flex; align-items: center; gap: 4px; }
.card__new .ico { width: 13px; height: 13px; color: var(--cobalt); }
.card__type { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 6px; background: rgba(255, 255, 255, .92); color: var(--ink); font: 600 12px/1 var(--sans); transform: translateY(8px); opacity: 0; transition: .3s cubic-bezier(.2, .7, .2, 1); }
.card__type .ico { width: 14px; height: 14px; color: var(--cobalt); }
.card:hover .card__type, .card:focus-within .card__type { transform: none; opacity: 1; }
.card__facts span { display: inline-flex; align-items: center; gap: 5px; }
.card__facts .ico { width: 16px; height: 16px; color: var(--cobalt); }
.card__city { display: flex; align-items: center; gap: 5px; }
.card__city .ico { width: 14px; height: 14px; flex: none; opacity: .7; }
.card__go { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 700; font-size: 14px; color: var(--cobalt); }
.card__go .ico { width: 16px; height: 16px; transition: transform .25s; }
.card:hover .card__go .ico { transform: translateX(5px); }

/* Heart: pop + burst */
.save-btn { transition: transform .2s, color .2s; }
.save-btn:hover { transform: scale(1.08); }
.burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.burst i { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--sold); animation: burst .6s cubic-bezier(.2, .7, .2, 1) forwards; transform: rotate(var(--a)) translateY(0); }
.burst i:nth-child(even) { background: var(--pending); width: 5px; height: 5px; }
@keyframes burst { to { transform: rotate(var(--a)) translateY(-26px) scale(.3); opacity: 0; } }

/* ------------------------------------------------------------- home types */
.section--tint { background: var(--paper); margin-top: clamp(24px, 4vw, 48px); }
.types { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.type-tile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px 18px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-decoration: none; transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, border-color .3s; }
.type-tile:hover { transform: translateY(-6px); border-color: var(--cobalt); box-shadow: 0 22px 40px -26px rgba(29, 63, 216, .6); }
.type-tile__ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 12px; border-radius: 14px; background: var(--cobalt-50); color: var(--cobalt); transition: background-color .3s, color .3s, transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.type-tile__ico .ico { width: 28px; height: 28px; stroke-width: 1.7; }
.type-tile:hover .type-tile__ico { background: var(--cobalt); color: #fff; transform: rotate(-6deg) scale(1.08); }
.type-tile__name { font: 800 24px/1 var(--display); }
.type-tile__count { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.type-tile__go { position: absolute; right: 16px; top: 22px; width: 18px; height: 18px; color: var(--cobalt); opacity: 0; transform: translateX(-6px); transition: .25s; }
.type-tile:hover .type-tile__go { opacity: 1; transform: none; }
.type-tile.is-empty { opacity: .6; }

/* ------------------------------------------------------------------ steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 8%; right: 8%; top: 34px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 16px); z-index: 0; }
.step { position: relative; z-index: 1; padding: 0 8px; counter-increment: step; }
.step__ico { position: relative; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: #fff; border: 2px solid var(--cobalt); color: var(--cobalt); margin-bottom: 18px; transition: background-color .3s, color .3s; }
.step__ico::after { content: counter(step); position: absolute; right: -6px; top: -6px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--night); color: #fff; font: 800 15px/1 var(--display); }
.step__ico .ico { width: 30px; height: 30px; }
.step:hover .step__ico { background: var(--cobalt); color: #fff; }
.step h3 { font: 800 28px/1.05 var(--display); margin-bottom: 8px; }
.step p { color: var(--ink-2); max-width: 34ch; }
.js .step.is-in .step__ico { animation: pop-in .6s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--i, 0) * 120ms + .1s); }
@keyframes pop-in { from { transform: scale(.4); } }

/* ------------------------------------------------------------------ perks */
.perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: clamp(24px, 3vw, 36px); border-radius: 20px; background: var(--night); color: #fff; }
.perk { padding: 8px; }
.perk__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(142, 162, 255, .16); color: #8ea2ff; margin-bottom: 14px; transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.perk:hover .perk__ico { transform: translateY(-4px) rotate(-6deg); }
.perk__ico .ico { width: 24px; height: 24px; }
.perk h3 { font: 800 24px/1.05 var(--display); margin-bottom: 6px; }
.perk p { color: rgba(255, 255, 255, .72); font-size: 15px; }

/* ------------------------------------------------------------------ sell */
.sell { position: relative; overflow: hidden; }
.sell__deco { position: absolute; right: -6%; bottom: -18%; width: 46%; max-width: 640px; color: rgba(255, 255, 255, .07); pointer-events: none; animation: float 9s ease-in-out infinite; }
.sell__mark { width: 100%; height: auto; }
@keyframes float { 50% { transform: translateY(-18px) rotate(-2deg); } }
.sell__inner { position: relative; }
.sell__list { display: grid; gap: 10px; margin-top: 24px; }
.sell__list li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.sell__list .ico { width: 22px; height: 22px; color: #b9c7ff; }
.sell__form .btn .ico { width: 18px; height: 18px; }

/* ------------------------------------------------------------ email band */
.email-band { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px 28px; margin-top: clamp(24px, 4vw, 48px); padding: clamp(22px, 3vw, 32px); border-radius: 20px; background: linear-gradient(120deg, var(--cobalt-50), #fff 70%); border: 1px solid #d5ddff; }
.email-band__ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--cobalt); color: #fff; animation: wiggle 4s ease-in-out infinite; }
.email-band__ico .ico { width: 30px; height: 30px; }
@keyframes wiggle { 0%, 86%, 100% { transform: none; } 90% { transform: rotate(-10deg); } 94% { transform: rotate(8deg); } }
.email-band h2 { font: 800 clamp(28px, 3vw, 38px)/1.05 var(--display); }
.email-band p { color: var(--ink-2); margin-top: 4px; max-width: 56ch; }
.email-band__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.email-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: 12px; background: var(--cobalt); color: #fff; font-weight: 700; font-size: 15.5px; text-decoration: none; transition: background-color .2s, box-shadow .2s; max-width: 100%; }
.email-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.email-chip:hover { background: var(--cobalt-700); box-shadow: 0 12px 26px -12px rgba(29, 63, 216, .8); }
.email-chip .ico { width: 18px; height: 18px; flex: none; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.email-chip:hover .ico { transform: translate(3px, -3px); }
.email-chip--block { width: 100%; justify-content: center; }
.btn.is-copied { border-color: var(--rent); color: var(--rent); }

/* --------------------------------------------------------------- to top */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 45; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 10px 26px -10px rgba(11, 19, 48, .45); transition: transform .3s cubic-bezier(.2, .7, .2, 1), opacity .3s; }
.to-top.is-hidden { transform: translateY(20px) scale(.8); opacity: 0; pointer-events: none; }
.to-top > .ico { width: 20px; height: 20px; position: relative; }
.to-top:hover > .ico { animation: bob .6s ease infinite alternate; }
@keyframes bob { to { transform: translateY(-3px); } }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke: var(--line); stroke-width: 3; }
.to-top__ring .to-top__bar { stroke: var(--cobalt); stroke-linecap: round; stroke-dasharray: 132; stroke-dashoffset: 132; }
.page-property .to-top, .page-listings .to-top { bottom: 92px; }

/* --------------------------------------------------------------- property */
.prop__facts dt { display: inline-flex; align-items: center; gap: 6px; }
.prop__facts dt .ico { width: 16px; height: 16px; color: var(--cobalt); }
.features { gap: 12px; }
.features li { gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-weight: 500; transition: border-color .2s, background-color .2s; }
.features li:hover { border-color: var(--cobalt); background: var(--cobalt-50); }
.features__ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--cobalt-50); color: var(--cobalt); flex: none; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.features li:hover .features__ico { transform: scale(1.12) rotate(-6deg); background: #fff; }
.features .features__ico .ico { width: 21px; height: 21px; stroke-width: 1.8; }
.facts-table dt { display: inline-flex; align-items: center; gap: 8px; }
.facts-table dt .ico { width: 17px; height: 17px; color: var(--cobalt); opacity: .85; }
.contact-card__phone { display: inline-flex; align-items: center; gap: 6px; }
.contact-card__phone .ico { width: 15px; height: 15px; }
.contact-card__note { display: flex; gap: 8px; align-items: flex-start; }
.contact-card__note .ico { width: 18px; height: 18px; margin-top: 2px; color: var(--sold); flex: none; }
.inquiry__head { display: flex; align-items: center; gap: 12px; }
.inquiry__ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--cobalt); color: #fff; flex: none; }
.inquiry__ico .ico { width: 23px; height: 23px; }
.inquiry__title { font: 800 28px/1 var(--display); }
.inquiry__sub { font-size: 13.5px; color: var(--ink-2); margin-top: 3px; }
.seg-tabs span { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 100%; transition: background-color .2s, color .2s, box-shadow .2s; }
.seg-tabs span .ico { width: 17px; height: 17px; }
.seg-tabs input:checked + span .ico { color: var(--cobalt); }
.day span { transition: transform .2s, border-color .2s, background-color .2s; }
.day:hover span { transform: translateY(-2px); border-color: var(--cobalt); }
.inquiry .btn .ico { width: 18px; height: 18px; }
.ask { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line-2); display: grid; gap: 8px; }
.ask__title { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.ask__title .ico { width: 19px; height: 19px; color: var(--cobalt); }
.ask__sub { font-size: 14px; color: var(--ink-2); margin-top: -4px; }
.ask__copy { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px; border: 0; background: none; color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.ask__copy:hover { color: var(--cobalt); }
.ask__copy .ico { width: 15px; height: 15px; }
.ask__copy.is-copied { color: var(--rent); }
.form-done { animation: pop-done .5s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes pop-done { from { transform: scale(.94); opacity: 0; } }
.form-done .ico { animation: draw .6s .2s ease both; stroke-dasharray: 30; }
@keyframes draw { from { stroke-dashoffset: 30; } to { stroke-dashoffset: 0; } }
.read-bar { position: fixed; left: 0; top: 0; z-index: 60; height: 3px; width: 100%; background: var(--cobalt); transform-origin: 0 50%; transform: scaleX(0); }

/* Map pins drop in */
.pin { animation: pin-drop .55s cubic-bezier(.3, 1.5, .5, 1) both; animation-delay: var(--d, 0ms); }
@keyframes pin-drop { from { opacity: 0; translate: 0 -18px; } }

/* --------------------------------------------------------------- contact */
.mailbox { margin-top: 28px; padding: 22px; border-radius: 18px; background: var(--paper); }
.mailbox__label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.mailbox__topics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.topic { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 600; transition: border-color .2s, transform .25s cubic-bezier(.2, .7, .2, 1); }
.topic:hover { border-color: var(--cobalt); transform: translateY(-2px); }
.topic__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--cobalt-50); color: var(--cobalt); flex: none; }
.topic__ico .ico { width: 18px; height: 18px; }
.topic__go { width: 16px; height: 16px; margin-left: auto; color: var(--cobalt); transition: transform .25s; }
.topic:hover .topic__go { transform: translateX(4px); }
.mailbox__addr { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.contact__ways dt { display: inline-flex; align-items: center; gap: 6px; }
.contact__ways dt .ico { width: 16px; height: 16px; color: var(--cobalt); }
.contact__ways dd a { font-size: inherit; }
.about__facts dt { display: inline-flex; align-items: center; gap: 6px; }
.about__facts dt .ico { width: 17px; height: 17px; color: var(--cobalt); }
.cta-band .btn .ico { width: 18px; height: 18px; }

/* --------------------------------------------------------- v2 responsive */
@media (max-width: 1100px) {
        .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .email-band { grid-template-columns: auto minmax(0, 1fr); }
    .email-band__actions { grid-column: 1 / -1; justify-content: flex-start; }
    .header-mail { display: none; }
}
@media (max-width: 760px) {
    .steps { grid-template-columns: 1fr; gap: 28px; }
    .steps::before { left: 33px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line-2) 0 8px, transparent 8px 16px); }
    .step { display: grid; grid-template-columns: 68px minmax(0, 1fr); column-gap: 18px; padding: 0; }
    .step__ico { grid-row: 1 / 3; margin: 0; }
}
@media (max-width: 640px) {
    .types { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .type-tile { padding: 16px 14px; }
    .type-tile__name { font-size: 21px; }
    .perks { grid-template-columns: 1fr; }
    .stats { gap: 10px; }
    .stat { padding: 16px; }
    .stat__ico { width: 38px; height: 38px; margin-bottom: 6px; }
    .ticker { height: 48px; }
    .ticker__label { padding-left: 16px; padding-right: 14px; font-size: 13px; }
    .ticker__item b { font-size: 18px; }
    .email-band { grid-template-columns: 1fr; text-align: left; }
    .email-band__ico { width: 52px; height: 52px; }
    .mailbox__topics { grid-template-columns: 1fr; }
    .hero__cta { display: none; }
    .hero__facts .ico { display: none; }
    .card__type { opacity: 1; transform: none; }
    .to-top { right: 14px; width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
    .js [data-reveal] { opacity: 1 !important; transform: none !important; }
    .ticker__row { animation: none; }
    .ticker__track { overflow-x: auto; }
    .sell__deco, .email-band__ico { animation: none; }
}

@media print {
    .site-header, .site-footer, .prop__side, .sticky-cta, .gallery__all, .prop-top__actions, .finder, .filters { display: none !important; }
}
