/* ─────────────────────────────────────────────────────────────────────────
   11web — luxury real-estate stylesheet
   ───────────────────────────────────────────────────────────────────────── */

/* ─── tokens ───────────────────────────────────────────────────────────── */

:root {
    /* Palette: stark white background, near-black ink, single subtle green. */
    --white:        #ffffff;
    --white-soft:   #f6f4f0;
    --black:        #1f1f1f;
    --black-deep:   #0a0a0a;
    --ink-soft:     #6b6b6b;
    --ink-faint:    #a8a8a4;
    --line:         #e3e1dc;
    --line-soft:    #ededea;
    --green:        #3b5d50;
    --green-deep:   #2a443b;
    --green-soft:   #d6e0d9;
    --tour-cyan:    #14213d;

    --danger:       #8a2424;
    --success:      #2f5c3a;

    --easing:       cubic-bezier(0.22, 1, 0.36, 1);
    --easing-inout: cubic-bezier(0.4, 0, 0.2, 1);

    --dur-snap: 120ms;
    --dur-fast: 220ms;
    --dur-mid:  420ms;
    --dur-slow: 800ms;
    --dur-loader: 1900ms;

    --container: 1320px;
    --gutter:    32px;
    --radius:    2px;            /* sharp, editorial — not pillowy */

    /* Typography */
    --f-display:   'Cormorant Garamond', 'Times New Roman', serif;
    --f-body:      'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --f-condensed: 'Barlow Condensed', 'Inter', sans-serif;
}

/* ─── reset ────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--white);
    color: var(--black);
    font-family: var(--f-body);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--easing); }
input, select, textarea, button { font-family: inherit; }

::selection { background: var(--black); color: var(--white); }

/* ─── typography utility ──────────────────────────────────────────────── */

.t-display     { font-family: var(--f-display); font-weight: 500; line-height: 0.95; letter-spacing: -0.01em; }
.t-display-it  { font-family: var(--f-display); font-style: italic; font-weight: 500; }
.t-condensed   { font-family: var(--f-condensed); font-weight: 300; line-height: 1; letter-spacing: 0.02em; }
.t-eyebrow     {
    font-family: var(--f-condensed);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 12px;
    font-weight: 500;
}
.t-label       {
    font-family: var(--f-condensed);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 11.5px;
    font-weight: 500;
}
.muted        { color: var(--ink-soft); }
.muted.small  { font-size: 12.5px; }

/* Default headings — kept neutral; pages override per element. */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; margin: 0 0 0.4em; line-height: 1.05; }
p { margin: 0 0 1em; }

/* ─── layout primitives ───────────────────────────────────────────────── */

.container       { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-wide  { max-width: 1480px; margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow{ max-width: 920px;  margin: 0 auto; padding: 0 var(--gutter); }

.section-pad        { padding: 96px 0; }
.section-pad-tight  { padding: 60px 0; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
    position: absolute; left: -9999px; padding: 8px 14px;
    background: var(--black); color: var(--white); z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Hairline section header. Thin line with the title sitting on it; the title
   gets a thick black overstrike on its top edge. This pattern repeats across
   the whole site as the section ID. */
.section-divider {
    position: relative;
    margin-bottom: 56px;
    display: flex;
    align-items: flex-start;
}
.section-divider::before {
    content: '';
    position: absolute; left: 0; right: 0; top: 0;
    height: 1px; background: var(--line);
}
.section-divider .section-title {
    position: relative;
    padding-top: 28px;
    margin: 0;
    font-family: var(--f-condensed);
    font-weight: 400;
    font-size: clamp(20px, 2.4vw, 32px);
    text-transform: uppercase;
    letter-spacing: 0.16em;
}
.section-divider .section-title::before {
    content: '';
    position: absolute; left: 0; top: 0;
    width: 100%; height: 3px;
    background: var(--black);
}
.section-divider .section-count {
    margin-left: auto;
    padding-top: 32px;
    font-family: var(--f-condensed);
    font-size: 14px;
    color: var(--ink-soft);
    letter-spacing: 0.18em;
}

/* ─── buttons ─────────────────────────────────────────────────────────── */

.btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    font-family: var(--f-condensed);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--black);
    transition: color var(--dur-fast) var(--easing);
    overflow: hidden;
    isolation: isolate;
    user-select: none;
}
.btn::before {
    /* hairline border drawn manually so we can layer animations on it */
    content: '';
    position: absolute; inset: 0;
    border: 1px solid currentColor;
    z-index: -1;
    transition: transform var(--dur-fast) var(--easing);
}
.btn::after {
    /* fill that wipes in on hover */
    content: '';
    position: absolute; inset: 0;
    background: var(--black);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform var(--dur-fast) var(--easing);
    z-index: -1;
}
.btn:hover { color: var(--white); }
.btn:hover::after { transform: scaleY(1); }
.btn:active { transform: translateY(1px); }

.btn-primary {
    color: var(--white);
    background: var(--black);
}
.btn-primary::before { border-color: var(--black); }
.btn-primary::after  { background: var(--green); transform: scaleY(0); }
.btn-primary:hover   { color: var(--white); }
.btn-primary:hover::after { transform: scaleY(1); }

.btn-quiet {
    padding: 8px 0;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--line);
    text-transform: uppercase;
    letter-spacing: 0.18em;
}
.btn-quiet::before, .btn-quiet::after { display: none; }
.btn-quiet:hover { color: var(--black); border-bottom-color: var(--black); }

.btn-block { width: 100%; }

.btn-danger {
    color: var(--danger);
}
.btn-danger::before { border-color: var(--danger); }
.btn-danger::after  { background: var(--danger); }
.btn-danger:hover { color: var(--white); }

/* ─── loader ──────────────────────────────────────────────────────────── */

.loader {
    position: fixed; inset: 0;
    background: var(--white);
    z-index: 200;
    display: grid; place-items: center;
    pointer-events: none;
    transition: opacity var(--dur-mid) var(--easing-inout) 200ms;
}
.loader.is-done { opacity: 0; visibility: hidden; transition-delay: 0ms; }

.loader-mark {
    position: relative;
    width: 96px; height: 96px;
    display: grid; place-items: center;
}
.loader-mark svg { width: 96px; height: 96px; overflow: visible; }
.loader-mark text {
    fill: var(--black);
    font-family: var(--f-display);
    font-style: italic;
    font-weight: 500;
    font-size: 64px;
    text-anchor: middle;
}
.loader-mark .loader-stroke {
    fill: none;
    stroke: var(--black);
    stroke-width: 1.2;
    stroke-dasharray: 360;
    stroke-dashoffset: 360;
    animation: loaderDraw var(--dur-loader) var(--easing-inout) forwards;
}
.loader-mark .loader-fill {
    opacity: 0;
    animation: loaderReveal 700ms var(--easing) forwards;
    animation-delay: calc(var(--dur-loader) - 200ms);
}
@keyframes loaderDraw   { to { stroke-dashoffset: 0; } }
@keyframes loaderReveal { to { opacity: 1; } }

.loader-word {
    position: absolute;
    bottom: -42px; left: 50%;
    transform: translateX(-50%);
    font-family: var(--f-condensed);
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-size: 12px;
    color: var(--ink-soft);
    opacity: 0;
    animation: loaderReveal 600ms var(--easing) forwards;
    animation-delay: calc(var(--dur-loader) + 100ms);
    white-space: nowrap;
}

/* ─── topnav ──────────────────────────────────────────────────────────── */

.topnav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 60;
    padding: 28px var(--gutter);
    display: flex; align-items: center; justify-content: space-between;
    pointer-events: none;
    mix-blend-mode: difference;     /* logo & button stay legible over images */
}
.topnav > * { pointer-events: auto; }
.topnav .brand,
.topnav .topnav-toggle { color: var(--white); }

.brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--f-display);
    font-style: italic;
    font-weight: 500;
    font-size: 24px;
    line-height: 1;
    letter-spacing: -0.01em;
}
.brand-mark {
    display: inline-grid; place-items: center;
    width: 38px; height: 38px;
    border: 1px solid currentColor;
    font-family: var(--f-condensed);
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0;
}
.brand-word { font-style: italic; }

.topnav-toggle {
    position: relative;
    width: 64px; height: 28px;
    background: transparent; border: none;
    display: flex; flex-direction: column; justify-content: space-between;
    align-items: flex-end;
}
.topnav-toggle span {
    display: block; height: 1px;
    background: currentColor;
    transition: width var(--dur-fast) var(--easing),
                transform var(--dur-fast) var(--easing),
                opacity var(--dur-snap);
}
.topnav-toggle span:nth-child(1) { width: 64px; }
.topnav-toggle span:nth-child(2) { width: 44px; }
.topnav-toggle span:nth-child(3) {
    width: 64px;
    align-self: flex-end;
    margin-left: auto;
    /* paired with a tiny label */
}
.topnav-toggle:hover span:nth-child(2) { width: 64px; }

.topnav-toggle-label {
    position: absolute;
    right: 0; top: -22px;
    font-family: var(--f-condensed);
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-size: 11px;
}

body.menu-open .topnav-toggle span:nth-child(1) {
    transform: translateY(13px) rotate(-45deg); width: 64px;
}
body.menu-open .topnav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .topnav-toggle span:nth-child(3) {
    transform: translateY(-13px) rotate(45deg); width: 64px;
}

/* ─── off-canvas menu ─────────────────────────────────────────────────── */

.menu {
    position: fixed; inset: 0; z-index: 55;
    background: var(--white);
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--dur-mid) var(--easing-inout),
                visibility 0s linear var(--dur-mid);
    overflow: hidden;
}
body.menu-open .menu {
    visibility: visible;
    opacity: 1;
    transition: opacity var(--dur-mid) var(--easing-inout);
}

.menu-inner {
    position: relative;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    padding: 120px var(--gutter) 48px;
}

/* Left: nav links. Massive, condensed, stacked. */
.menu-nav {
    position: relative;
    display: flex; flex-direction: column; justify-content: flex-end;
    z-index: 2;
}
.menu-nav ul { list-style: none; padding: 0; margin: 0; }
.menu-nav li {
    display: block;
    margin: -4px 0;
    overflow: hidden;
    line-height: 0.92;
}
.menu-nav a {
    display: inline-block;
    font-family: var(--f-display);
    font-weight: 500;
    font-size: clamp(56px, 11vw, 168px);
    line-height: 0.85;
    letter-spacing: -0.025em;
    color: var(--black);
    transform: translateY(110%);
    transition: transform var(--dur-mid) var(--easing) calc(var(--i, 0) * 60ms),
                color var(--dur-fast) var(--easing);
}
body.menu-open .menu-nav a { transform: translateY(0); }
.menu-nav a:hover { color: var(--green); }
.menu-nav a .it { font-style: italic; }

/* Right: category previews with image swap. */
.menu-locations {
    position: relative;
    z-index: 2;
    display: flex; flex-direction: column; justify-content: flex-end;
    gap: 12px;
}
.menu-locations-label {
    font-family: var(--f-condensed);
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-size: 12px;
    color: var(--ink-soft);
    margin-bottom: 20px;
}
.menu-loc {
    display: flex; align-items: baseline; gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    color: var(--black);
    transition: padding var(--dur-fast) var(--easing), color var(--dur-fast);
}
.menu-loc:hover { padding-left: 16px; color: var(--green); }
.menu-loc-name {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: clamp(32px, 4.5vw, 64px);
    line-height: 0.95;
}
.menu-loc-tag {
    margin-left: auto;
    font-family: var(--f-condensed);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 12px;
    color: var(--ink-soft);
}

/* Background images for menu — fade between based on hovered category. */
.menu-images {
    position: absolute; inset: 0;
    z-index: 1;
    pointer-events: none;
}
.menu-image {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity var(--dur-mid) var(--easing-inout),
                transform var(--dur-slow) var(--easing-inout);
    filter: brightness(0.92);
}
.menu-image.is-active { opacity: 0.18; transform: scale(1); }

/* Footer-ish bar inside the menu */
.menu-foot {
    grid-column: 1 / -1;
    margin-top: 40px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--f-condensed);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 12px;
    color: var(--ink-soft);
}

@media (max-width: 900px) {
    .menu-inner { grid-template-columns: 1fr; padding: 110px 24px 30px; gap: 30px; }
    .menu-nav   { justify-content: flex-start; }
    .menu-locations { justify-content: flex-start; }
    .menu-loc-name { font-size: 32px; }
}

/* ─── hero ────────────────────────────────────────────────────────────── */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    isolation: isolate;
    display: flex; align-items: flex-end;
    padding: 24px var(--gutter) 48px;
    color: var(--white);
}
.hero-bg {
    position: absolute; inset: 0; z-index: -2;
    overflow: hidden;
    background: var(--black);
}
.hero-bg-slide {
    position: absolute; inset: 0;
    background-position: center; background-size: cover;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1200ms var(--easing-inout),
                transform 9s linear;
}
.hero-bg-slide.is-active { opacity: 1; transform: scale(1); }
.hero-bg::after {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(15,15,15,0.50) 0%, rgba(15,15,15,0.10) 38%, rgba(15,15,15,0.62) 100%);
}

.hero-inner {
    position: relative;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-bottom: 16px;
}
.hero-eyebrow {
    display: inline-block;
    font-family: var(--f-condensed);
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-size: 12px;
    margin-bottom: 28px;
    opacity: 0.85;
}
.hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 36px; height: 1px; background: currentColor;
    vertical-align: middle;
    margin-right: 14px;
}
.hero-title {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: clamp(56px, 11vw, 184px);
    line-height: 0.92;
    letter-spacing: -0.025em;
    margin: 0;
    color: var(--white);
    max-width: 14ch;
}
.hero-title .it {
    font-style: italic;
    /* Cormorant italic at display sizes is the signature emphasis. */
}
.hero-foot {
    margin-top: 40px;
    display: flex; justify-content: space-between; align-items: end;
    gap: 24px;
    flex-wrap: wrap;
}
.hero-tagline {
    max-width: 42ch;
    font-family: var(--f-condensed);
    font-weight: 300;
    font-size: clamp(15px, 1.2vw, 19px);
    line-height: 1.5;
    color: rgba(255,255,255,0.92);
    margin: 0;
}
.hero-cta {
    display: inline-flex; align-items: center; gap: 12px;
    color: var(--white);
}
.hero-cta::before {
    content: '';
    display: inline-block;
    width: 60px; height: 1px;
    background: currentColor;
    transition: width var(--dur-fast) var(--easing);
}
.hero-cta:hover::before { width: 100px; }

.hero-scroll {
    position: absolute;
    bottom: 24px; right: var(--gutter);
    font-family: var(--f-condensed);
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-size: 11px;
    color: var(--white);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    opacity: 0.8;
}
.hero-scroll::after {
    content: '';
    display: block;
    width: 1px; height: 50px;
    background: currentColor;
    margin-top: 14px;
    margin-left: 5px;
    animation: scrollPulse 2.4s var(--easing-inout) infinite;
}
@keyframes scrollPulse {
    0%, 100% { transform: scaleY(0.4); transform-origin: top; }
    50%      { transform: scaleY(1);   transform-origin: top; }
}

/* ─── filter pills (under hero / in section heads) ───────────────────── */

.filter-pills {
    display: inline-flex;
    gap: 0;
    border: 1px solid var(--line);
    background: var(--white);
}
.pill {
    padding: 12px 22px;
    font-family: var(--f-condensed);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 12px;
    color: var(--ink-soft);
    transition: background var(--dur-fast) var(--easing),
                color var(--dur-fast) var(--easing);
    border-right: 1px solid var(--line);
}
.pill:last-child { border-right: none; }
.pill:hover { color: var(--black); background: var(--white-soft); }
.pill.is-active {
    background: var(--black);
    color: var(--white);
}

/* ─── search bar (slim, editorial) ───────────────────────────────────── */

.editorial-search {
    border: 1px solid var(--line);
    background: var(--white);
    display: grid;
    grid-template-columns: 1fr 160px 180px auto;
    align-items: stretch;
}
.editorial-search input,
.editorial-search select,
.editorial-search button {
    border: none;
    background: transparent;
    font-family: var(--f-condensed);
    font-size: 14px;
    letter-spacing: 0.06em;
    padding: 16px 18px;
    color: var(--black);
}
.editorial-search input:focus,
.editorial-search select:focus { outline: 2px solid var(--black); outline-offset: -2px; }
.editorial-search > * + * { border-left: 1px solid var(--line); }
.editorial-search button {
    background: var(--black); color: var(--white);
    text-transform: uppercase; letter-spacing: 0.18em;
    cursor: pointer;
    transition: background var(--dur-fast) var(--easing);
}
.editorial-search button:hover { background: var(--green); }
@media (max-width: 720px) {
    .editorial-search { grid-template-columns: 1fr; }
    .editorial-search > * + * { border-left: none; border-top: 1px solid var(--line); }
}

/* ─── listings grid ───────────────────────────────────────────────────── */

.layout-split {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 0;
    align-items: start;
}
.results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0;
    border-top: 1px solid var(--line);
}
.map-pane {
    position: sticky;
    top: 88px;
    height: calc(100vh - 110px);
    border-left: 1px solid var(--line);
    background: var(--white-soft);
    overflow: hidden;
}
.map { position: absolute; inset: 0; }

@media (max-width: 1024px) {
    .layout-split { grid-template-columns: 1fr; }
    .layout-split[data-mode="list"] .map-pane { display: none; }
    .layout-split[data-mode="map"]  .results  { display: none; }
    .layout-split[data-mode="map"]  .map-pane { height: 70vh; position: relative; top: auto; border-left: none; border-top: 1px solid var(--line); }
}

/* ─── property card (editorial, no rounding) ─────────────────────────── */

.card {
    position: relative;
    display: flex; flex-direction: column;
    background: var(--white);
    color: var(--black);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: background var(--dur-fast) var(--easing);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity var(--dur-mid) var(--easing),
                transform var(--dur-mid) var(--easing),
                background var(--dur-fast) var(--easing);
}
.card.in { opacity: 1; transform: translateY(0); }
.card:hover { background: var(--white-soft); }
.card-thumb {
    position: relative;
    aspect-ratio: 5 / 4;
    background: var(--white-soft) center/cover no-repeat;
    overflow: hidden;
}
.card-thumb::after {
    /* hairline frame inside the thumb so it reads as a "plate" not a chip */
    content: '';
    position: absolute; inset: 14px;
    border: 1px solid rgba(255,255,255,0.7);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--dur-fast) var(--easing), inset var(--dur-mid) var(--easing);
}
.card:hover .card-thumb::after { opacity: 1; inset: 18px; }
.card-thumb img,
.card-thumb-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1200ms var(--easing-inout);
}
.card:hover .card-thumb-bg { transform: scale(1.03); }

.badge {
    position: absolute; top: 16px; left: 16px;
    background: var(--white);
    color: var(--black);
    padding: 6px 12px;
    font-family: var(--f-condensed);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 11px;
    font-weight: 500;
}
.badge-rent  { background: var(--black); color: var(--white); }
.badge-sale  { background: var(--white); color: var(--black); }
.badge-tour  { left: auto; right: 16px; background: var(--green); color: var(--white); }

.card-body { padding: 22px 4px 28px; display: flex; flex-direction: column; gap: 10px; }
.card-row {
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
}
.card-title {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0;
    flex: 1;
}
.card-price {
    font-family: var(--f-condensed);
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.card-priceSuffix { font-weight: 300; color: var(--ink-soft); }
.card-addr {
    font-family: var(--f-condensed);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 11.5px;
    color: var(--ink-soft);
    margin: 0;
}
.card-facts {
    list-style: none; padding: 0; margin: 4px 0 0;
    display: flex; gap: 16px;
    font-family: var(--f-condensed);
    font-size: 13px;
    color: var(--ink-soft);
    letter-spacing: 0.06em;
}
.card-facts li::after { content: '·'; margin-left: 16px; }
.card-facts li:last-child::after { content: ''; }

.empty {
    grid-column: 1 / -1;
    padding: 96px 32px;
    text-align: center;
    color: var(--ink-soft);
    border: 1px dashed var(--line);
    margin: 32px;
}
.empty.inline { padding: 36px; margin: 0; }

/* ─── property page ───────────────────────────────────────────────────── */

.property { padding: 140px var(--gutter) 96px; max-width: var(--container); margin: 0 auto; }

.property-head {
    display: grid; grid-template-columns: auto auto;
    gap: 40px;
    margin-bottom: 56px;
    align-items: end;
}
.property-back {
    grid-column: 1 / -1;
    font-family: var(--f-condensed);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 12px;
    color: var(--ink-soft);
    margin-bottom: 24px;
}
.property-back:hover { color: var(--black); }

.property-headline { max-width: 18ch; }
.property-title {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: clamp(40px, 6.5vw, 92px);
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
}
.property-title .it { font-style: italic; }
.property-addr {
    font-family: var(--f-condensed);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 12.5px;
    color: var(--ink-soft);
    margin: 0;
}

.property-pricing {
    display: flex; flex-direction: column; align-items: flex-end;
    gap: 10px;
    text-align: right;
}
.property-price {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: clamp(28px, 3.6vw, 48px);
    line-height: 1;
    letter-spacing: -0.01em;
}

.property-hero {
    display: grid;
    grid-template-columns: 84px minmax(0, 1.05fr) minmax(0, 1fr);
    grid-template-rows: 580px;
    gap: 8px;
    margin-bottom: 80px;
}
.property-gallery {
    display: flex; flex-direction: column; gap: 6px;
    overflow-y: auto;
    padding-right: 2px;
}
.property-gallery::-webkit-scrollbar { width: 0; }
.gallery-thumb {
    flex: 0 0 84px;
    height: 84px;
    background: var(--white-soft) center/cover no-repeat;
    border: none;
    cursor: pointer;
    position: relative;
    transition: opacity var(--dur-fast) var(--easing);
    opacity: 0.5;
}
.gallery-thumb.is-active,
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.is-active::before {
    content: '';
    position: absolute; left: -6px; top: 0; bottom: 0;
    width: 1px; background: var(--black);
}
.property-photo {
    background: var(--white-soft) center/cover no-repeat;
    transition: background-image 400ms var(--easing-inout);
}
.property-tour { position: relative; background: var(--black-deep); }

.tour-empty {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    background: var(--black-deep);
    color: var(--ink-faint);
    text-align: center; padding: 30px;
}
.tour-empty p {
    font-family: var(--f-condensed);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 12px;
}

@media (max-width: 1000px) {
    .property-hero {
        grid-template-columns: 64px 1fr;
        grid-template-rows: 360px 380px;
    }
    .property-tour  { grid-column: 1 / -1; }
    .property-photo { grid-column: 2; }
    .property-gallery { grid-column: 1; }
    .gallery-thumb { flex: 0 0 64px; height: 64px; }
    .property-head { grid-template-columns: 1fr; align-items: start; }
    .property-pricing { align-items: flex-start; text-align: left; }
}

.property-details {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 64px;
}
.property-main h2 { margin-top: 0; }
.property-facts {
    list-style: none; padding: 0;
    margin: 0 0 48px;
    display: flex; flex-wrap: wrap; gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.property-facts li {
    flex: 1 1 120px;
    padding: 24px 0;
    border-right: 1px solid var(--line);
    text-align: center;
}
.property-facts li:last-child { border-right: none; }
.property-facts li strong {
    display: block;
    font-family: var(--f-display);
    font-weight: 500;
    font-size: 36px;
    line-height: 1;
    margin-bottom: 6px;
}
.property-facts li span {
    font-family: var(--f-condensed);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 11px;
    color: var(--ink-soft);
}
.property-description {
    font-family: var(--f-condensed);
    font-size: 17px;
    line-height: 1.65;
    color: var(--black);
    max-width: 64ch;
}
.block-title {
    font-family: var(--f-condensed);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-soft);
    margin: 0 0 16px;
}

.property-side {
    display: flex; flex-direction: column; gap: 32px;
    position: sticky; top: 120px;
    align-self: start;
}
.side-card {
    border: 1px solid var(--line);
    padding: 28px;
}
.side-card h3 {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: 24px;
    margin: 0 0 14px;
}
.property-map { height: 240px; background: #f5f0e8; }

@media (max-width: 900px) {
    .property-details { grid-template-columns: 1fr; gap: 40px; }
    .property-side { position: static; }
}

/* ─── viewer overrides ───────────────────────────────────────────────── */

.viewer-shell {
    position: relative; background: var(--black-deep);
    overflow: hidden; min-height: 360px;
}
.viewer { position: absolute; inset: 0; }
.viewer canvas { display: block; width: 100% !important; height: 100% !important; }
.viewer-overlay {
    position: absolute; top: 16px; left: 16px; right: 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    pointer-events: none;
}
.viewer-title {
    pointer-events: auto;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);
    padding: 8px 14px;
    font-family: var(--f-condensed);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 11px;
    color: var(--white);
    max-width: 70%;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.viewer-controls { display: flex; gap: 6px; pointer-events: auto; }
.vbtn {
    background: rgba(0,0,0,0.55); color: var(--white);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 14px;
    font-family: var(--f-condensed);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 11px;
    cursor: pointer;
    transition: background var(--dur-fast);
}
.vbtn:hover { background: rgba(255,255,255,0.18); }
.viewer-hint {
    position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
    margin: 0; padding: 6px 14px;
    background: rgba(0,0,0,0.55);
    font-family: var(--f-condensed);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--white);
    pointer-events: none;
    transition: opacity var(--dur-mid);
}
.viewer-hint.hidden { opacity: 0; }

/* ─── auth pages ──────────────────────────────────────────────────────── */

.auth-shell {
    min-height: calc(100vh - 80px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}
.auth-side {
    background: var(--black) center/cover no-repeat;
    background-image: linear-gradient(160deg, rgba(15,15,15,0.50), rgba(15,15,15,0.85)),
                      url('https://picsum.photos/seed/authside/1200/1600');
    color: var(--white);
    padding: 80px var(--gutter);
    display: flex; flex-direction: column; justify-content: space-between;
}
.auth-side .brand { color: var(--white); }
.auth-side h2 {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: clamp(36px, 4vw, 56px);
    line-height: 1.05;
    margin: 0;
    max-width: 14ch;
}
.auth-side h2 .it { font-style: italic; }
.auth-side blockquote {
    margin: 0;
    font-family: var(--f-condensed);
    font-size: 14px;
    color: rgba(255,255,255,0.78);
    border-left: 1px solid rgba(255,255,255,0.4);
    padding-left: 18px;
    max-width: 32ch;
}

.auth-form-pane {
    background: var(--white);
    padding: 80px var(--gutter);
    display: grid; place-items: center;
}
.auth-card {
    width: 100%;
    max-width: 440px;
}
.auth-card h1 {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: clamp(36px, 4vw, 52px);
    line-height: 1.05;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.auth-card h1 .it { font-style: italic; }
.auth-card .lede {
    font-family: var(--f-condensed);
    color: var(--ink-soft);
    font-size: 16px;
    margin-bottom: 36px;
}
.auth-altline {
    margin-top: 24px;
    font-family: var(--f-condensed);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 12px;
    color: var(--ink-soft);
}
.auth-altline a { color: var(--black); border-bottom: 1px solid var(--black); }

@media (max-width: 900px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-side  { min-height: 220px; padding: 60px 24px; }
    .auth-form-pane { padding: 56px 24px 90px; }
}

/* ─── form fields ─────────────────────────────────────────────────────── */

.field {
    display: flex; flex-direction: column;
    gap: 8px; margin-bottom: 22px;
}
.field > span {
    font-family: var(--f-condensed);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 11.5px;
    color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
    border: none;
    border-bottom: 1px solid var(--line);
    background: transparent;
    padding: 10px 0;
    font-family: var(--f-body);
    font-size: 16px;
    color: var(--black);
    transition: border-color var(--dur-fast) var(--easing);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-bottom-color: var(--black);
}
.field textarea { resize: vertical; min-height: 88px; }
.field-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
}

/* ─── post-listing form ───────────────────────────────────────────────── */

.post-card { max-width: 880px; margin: 0 auto; }
.post-head { margin-bottom: 56px; }
.post-head h1 {
    font-family: var(--f-display);
    font-size: clamp(40px, 5vw, 72px);
    margin: 0 0 12px;
    line-height: 1;
}
.post-head h1 .it { font-style: italic; }
.form-grid { display: flex; flex-direction: column; gap: 56px; }
.form-section {
    border: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 16px;
}
.form-section legend {
    font-family: var(--f-condensed);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 13px;
    font-weight: 500;
    color: var(--black);
    padding: 0 0 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--line);
    width: 100%;
}
.form-actions {
    display: flex; gap: 16px; justify-content: flex-end;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

/* ─── account / admin dashboards ──────────────────────────────────────── */

.account-head {
    display: flex; justify-content: space-between; align-items: end;
    flex-wrap: wrap; gap: 16px;
    margin-bottom: 56px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}
.account-head h1 {
    font-family: var(--f-display);
    font-size: clamp(40px, 5vw, 72px);
    margin: 0 0 4px;
    line-height: 1;
}
.account-head .muted {
    font-family: var(--f-condensed);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 12px;
}
.account-grid { display: flex; flex-direction: column; gap: 80px; }
.account-block { }

.rowlist { list-style: none; padding: 0; margin: 0; }
.row {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
}
.row:last-child { border-bottom: 1px solid var(--line); }
.row-thumb {
    width: 110px; height: 80px;
    background: var(--white-soft) center/cover no-repeat;
    display: block;
}
.row-title {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: 22px;
    line-height: 1.15;
    color: var(--black);
    display: block;
    margin: 0 0 4px;
}
.row-meta {
    font-family: var(--f-condensed);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 11.5px;
    color: var(--ink-soft);
    margin: 0;
}
.row-quote {
    margin-top: 10px;
    padding: 10px 14px;
    background: var(--white-soft);
    font-style: italic;
    font-family: var(--f-display);
    font-size: 16px;
    color: var(--black);
}
.row-actions { display: flex; gap: 8px; align-items: center; }

.status-pill {
    display: inline-block;
    padding: 6px 12px;
    font-family: var(--f-condensed);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 10.5px;
    font-weight: 500;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink-soft);
}
.status-active   { color: var(--success); border-color: var(--success); }
.status-pending  { color: #8a6d24; border-color: #8a6d24; }
.status-rejected,
.status-declined { color: var(--danger); border-color: var(--danger); }
.status-accepted { color: var(--success); border-color: var(--success); }
.status-suspended{ color: var(--danger); border-color: var(--danger); }

.tabs {
    display: inline-flex;
    border-bottom: 1px solid var(--line);
    margin-bottom: 32px;
    overflow: auto;
}
.tab {
    padding: 14px 24px;
    background: none; border: none;
    font-family: var(--f-condensed);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 12px;
    color: var(--ink-soft);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.tab.is-active {
    color: var(--black);
    border-bottom-color: var(--black);
}
.tab-panel:not(.is-active) { display: none; }

/* ─── footer ──────────────────────────────────────────────────────────── */

.sitefoot {
    background: var(--black-deep);
    color: var(--white);
    padding: 80px var(--gutter) 36px;
    margin-top: 120px;
}
.sitefoot-inner {
    max-width: var(--container);
    margin: 0 auto;
}
.sitefoot-top {
    display: flex; align-items: flex-end; justify-content: space-between;
    flex-wrap: wrap; gap: 32px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}
.sitefoot-tagline {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: clamp(36px, 5vw, 80px);
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin: 0;
    max-width: 14ch;
}
.sitefoot-tagline .it { font-style: italic; color: rgba(255,255,255,0.7); }
.sitefoot-back {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--f-condensed);
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-size: 11px;
    background: transparent; border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
}
.sitefoot-back:hover { color: var(--white); }
.sitefoot-back::after {
    content: '↑';
    display: inline-block;
    font-style: normal;
    font-family: var(--f-display);
    font-size: 18px;
    margin-left: 6px;
}

.sitefoot-cols {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding: 56px 0;
}
.sitefoot-col h4 {
    font-family: var(--f-condensed);
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    margin: 0 0 18px;
}
.sitefoot-col a {
    display: block;
    font-family: var(--f-condensed);
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    padding: 6px 0;
    letter-spacing: 0.04em;
}
.sitefoot-col a:hover { color: var(--white); }
.sitefoot-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-family: var(--f-condensed);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}

@media (max-width: 720px) {
    .sitefoot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .sitefoot-cols { grid-template-columns: 1fr; gap: 24px; }
}

/* ─── toast ──────────────────────────────────────────────────────────── */

.toast-host {
    position: fixed; bottom: 24px; right: 24px; z-index: 100;
    display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.toast {
    background: var(--black);
    color: var(--white);
    padding: 14px 22px;
    font-family: var(--f-condensed);
    font-size: 13px;
    letter-spacing: 0.06em;
    min-width: 240px;
    pointer-events: auto;
    border-left: 2px solid var(--green);
    animation: toastIn var(--dur-mid) var(--easing);
}
.toast.error   { border-color: var(--danger); }
.toast.success { border-color: var(--success); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ─── motion presets used by IntersectionObserver ────────────────────── */

[data-anim] { opacity: 0; }
[data-anim="fade-up"]      { transform: translateY(24px); transition: opacity 700ms var(--easing), transform 700ms var(--easing); }
[data-anim="fade-up"].in   { opacity: 1; transform: translateY(0); }
[data-anim="reveal"]       { transition: opacity 600ms var(--easing); }
[data-anim="reveal"].in    { opacity: 1; }
[data-anim="title"]        { /* per-line stagger handled inline */ }
[data-anim="title"] span   { display: inline-block; transform: translateY(110%); transition: transform 800ms var(--easing); }
[data-anim="title"].in span{ transform: translateY(0); }

[data-anim="divider-line"]                        { opacity: 1; }
[data-anim="divider-line"] .section-divider::before { transform: scaleX(0); transform-origin: left; transition: transform 900ms var(--easing); }
[data-anim="divider-line"].in .section-divider::before { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    [data-anim] { opacity: 1 !important; transform: none !important; }
    .loader { display: none; }
}

/* ─── tour-empty + small bits ─────────────────────────────────────────── */

.featured-strip {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
    margin-top: 40px;
}
.featured-tile {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--white-soft) center/cover no-repeat;
    color: var(--white);
    isolation: isolate;
}
.featured-tile::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.65) 100%);
    z-index: 1;
}
.featured-tile-body {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 24px;
    z-index: 2;
}
.featured-tile-title {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: clamp(22px, 2.6vw, 34px);
    line-height: 1;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
}
.featured-tile-meta {
    font-family: var(--f-condensed);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 11px;
    color: rgba(255,255,255,0.85);
}
@media (max-width: 760px) {
    .featured-strip { grid-template-columns: 1fr; }
}

/* ─── 2D map homepage (web_style2) ─────────────────────────────────────────
   The homepage is a Leaflet map filling the viewport. OSM tiles are
   recoloured into a high-contrast cartoon black-and-white via CSS filters
   on .leaflet-tile-pane (no API key, no special tile provider). Listings
   are red-dot divIcons; clicking one navigates to /property/<id>. */

.page-map {
    overflow: hidden;
}
.page-map .topnav .brand {
    /* The map overlay shows its own brand mark so we don't need two; the
       hamburger stays so the off-canvas menu is still reachable. */
    display: none;
}
.page-map .sitefoot { display: none; }   /* footer would float below the map; surface it via Grid view instead */

.map-home {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    background: #f3f1ec;
}
.map-shell {
    position: absolute;
    inset: 0;
    background: #f5f0e8;        /* warm cream/parchment while tiles load */
    overflow: hidden;
}
.map-shell .leaflet-container {
    width: 100%; height: 100%;
    background: #f5f0e8;
    font-family: var(--f-condensed);
}

/* Cartoon illustrated look — CartoDB Positron tiles are already minimal
   (thin gray lines on white). The filter softens colour, darkens the faint
   road/border lines, and warms the background toward parchment cream:
     1. saturate(0) — strip colour → pure grayscale
     2. brightness(0.92) — darken slightly so faint lines survive contrast
     3. contrast(1.35) — push lines toward black, backgrounds toward white
     4. sepia(0.15) — warm tint (cream/parchment) instead of cold gray
   Lowering contrast prevents tile washout at zoom 4-6 where Positron tiles
   are extremely light. Tune brightness/contrast to taste. */
.leaflet-tile-pane {
    filter: saturate(0) brightness(0.92) contrast(1.35) sepia(0.15);
    -webkit-filter: saturate(0) brightness(0.92) contrast(1.35) sepia(0.15);
}

/* Subtle paper-grain texture overlay. The reference illustration has an
   almost-clean look, so this is very faint — just enough to break digital
   perfection and add a hand-drawn texture feel. Pointer-events: none so it
   never intercepts pan / zoom gestures. Sits beneath overlays (z-index < 5). */
.map-shell::after {
    content: '';
    position: absolute; inset: 0;
    pointer-events: none;
    z-index: 2;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.93 0 0 0 0 0.88 0 0 0 0.3 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: 300px 300px;
    mix-blend-mode: multiply;
    opacity: 0.06;
}

/* Leaflet zoom buttons — restyle to match the editorial chrome. */
.leaflet-touch .leaflet-bar,
.leaflet-bar {
    border: 1px solid var(--black) !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18) !important;
    background: var(--white);
}
.leaflet-bar a, .leaflet-bar a:hover {
    background: var(--white) !important;
    color: var(--black) !important;
    border-bottom: 1px solid var(--black) !important;
    width: 32px !important; height: 32px !important;
    line-height: 32px !important;
    font-family: var(--f-display);
    font-size: 18px;
}
.leaflet-bar a:last-child { border-bottom: none !important; }
.leaflet-bar a:hover { background: var(--black) !important; color: var(--white) !important; }

.leaflet-control-attribution {
    background: rgba(255,255,255,0.85) !important;
    font-family: var(--f-condensed);
    font-size: 10.5px !important;
    letter-spacing: 0.02em;
    color: var(--ink-soft) !important;
    padding: 2px 8px !important;
}
.leaflet-control-attribution a { color: var(--black) !important; border-bottom: 1px solid var(--line); }

/* ─── red-dot markers ─────────────────────────────────────────────────────
   Pure CSS so they stay sharp at every zoom and don't pull a sprite from a
   CDN. The pulse ring is a slow ::after; pointer-events: none on it so the
   marker stays clickable through the ring. */

.map-dot-icon { background: transparent; border: none; }
.map-dot {
    position: relative;
    display: block;
    width: 22px; height: 22px;
}
.map-dot-core {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #d62828;          /* tomato red — pops on grayscale tiles */
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.45);
    transition: transform var(--dur-fast) var(--easing);
}
.map-dot-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(214, 40, 40, 0.35);
    transform: scale(0.6);
    animation: mapDotPulse 2.4s ease-out infinite;
    pointer-events: none;
}
.map-dot-icon:hover .map-dot-core { transform: scale(1.18); }
@keyframes mapDotPulse {
    0%   { transform: scale(0.6); opacity: 0.55; }
    80%  { transform: scale(2.1); opacity: 0;    }
    100% { transform: scale(2.1); opacity: 0;    }
}

/* ─── marker tooltip (hover preview) ─────────────────────────────────────── */

.leaflet-tooltip.map-tooltip {
    background: var(--black);
    color: var(--white);
    border: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.28);
    padding: 10px 14px;
    font-family: var(--f-condensed);
    font-size: 13px;
    line-height: 1.45;
    letter-spacing: 0.02em;
    border-radius: 0;
    max-width: 240px;
    white-space: normal;
}
.leaflet-tooltip.map-tooltip strong {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.01em;
    color: var(--white);
}
.leaflet-tooltip.map-tooltip .map-tooltip-addr {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 10.5px;
    color: rgba(255,255,255,0.7);
}
.leaflet-tooltip.map-tooltip .map-tooltip-price {
    color: #f1c97b;
    font-weight: 500;
}
.leaflet-tooltip-top.map-tooltip::before { border-top-color: var(--black); }
.leaflet-tooltip-bottom.map-tooltip::before { border-bottom-color: var(--black); }
.leaflet-tooltip-left.map-tooltip::before { border-left-color: var(--black); }
.leaflet-tooltip-right.map-tooltip::before { border-right-color: var(--black); }

/* ─── load / error placeholder ───────────────────────────────────────────── */

.map-placeholder {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    padding: 40px;
    background: repeating-linear-gradient(45deg, #f5f0e8, #f5f0e8 18px, #ece6db 18px, #ece6db 36px);
    color: var(--ink-soft);
}
.map-placeholder p {
    font-family: var(--f-condensed);
    font-size: 14px;
    letter-spacing: 0.04em;
    max-width: 52ch;
    line-height: 1.6;
    margin: 0;
}
.map-placeholder.is-error {
    background: repeating-linear-gradient(45deg, #fbeae6, #fbeae6 18px, #f4d8d3 18px, #f4d8d3 36px);
    color: #6b2a22;
}

/* ─── floating overlays ──────────────────────────────────────────────────── */

.map-overlay {
    position: absolute;
    z-index: 5;
    display: flex; align-items: center; gap: 16px;
    pointer-events: none;
}
.map-overlay > * { pointer-events: auto; }

.map-overlay-top {
    top: 28px; left: 28px; right: 96px;   /* leave room for the topnav hamburger */
    flex-wrap: wrap;
}
.map-overlay-bottom {
    bottom: 28px; left: 28px; right: 28px;
    justify-content: space-between;
    color: var(--white);
}
.map-overlay-bottom .t-eyebrow,
.map-overlay-bottom .map-hint {
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--white);
}
.map-hint {
    font-family: var(--f-condensed);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 11px;
    color: rgba(255,255,255,0.85);
}

.brand-map {
    background: rgba(255,255,255,0.92);
    color: var(--black);
    padding: 8px 14px 8px 8px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.brand-map .brand-mark {
    border-color: var(--black);
    background: var(--black);
    color: var(--white);
}
.brand-map .brand-word { color: var(--black); }

.map-search {
    display: flex;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
    flex: 1 1 320px;
    max-width: 460px;
}
.map-search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 16px;
    font-family: var(--f-condensed);
    font-size: 14px;
    color: var(--black);
}
.map-search input:focus { outline: none; }
.map-search button {
    border: none;
    background: var(--black);
    color: var(--white);
    padding: 0 18px;
    font-family: var(--f-display);
    font-size: 18px;
    cursor: pointer;
    transition: background var(--dur-fast) var(--easing);
}
.map-search button:hover { background: var(--green); }

.map-filters {
    display: flex; gap: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
    margin-left: auto;
}
.map-filters .pill {
    border: none;
    border-right: 1px solid rgba(0,0,0,0.08);
    background: transparent;
    padding: 12px 18px;
    cursor: pointer;
}
.map-filters .pill:last-child { border-right: none; }
.map-filters .pill.is-active { background: var(--black); color: var(--white); }

@media (max-width: 760px) {
    .map-overlay-top {
        right: 28px;
        flex-direction: column;
        align-items: stretch;
    }
    .map-overlay-top > .brand-map { align-self: flex-start; }
    .map-search, .map-filters { width: 100%; }
    .map-filters { margin-left: 0; overflow-x: auto; }
    .map-overlay-bottom .map-hint { display: none; }   /* gesture hint not useful on touch */
}

/* ─── post-listing.php map picker ────────────────────────────────────────── */

.field-with-button {
    display: flex; gap: 8px; align-items: stretch;
}
.field-with-button input { flex: 1; min-width: 0; }
.field-with-button .btn {
    flex: 0 0 auto;
    align-self: stretch;
    padding: 0 16px;
    white-space: nowrap;
    font-size: 12px;
}
.field-label {
    display: block;
    font-family: var(--f-condensed);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 11px;
    color: var(--ink-soft);
    margin: 0 0 8px;
}
.location-picker {
    width: 100%;
    height: 320px;
    border: 1px solid var(--line);
    background: #f5f0e8;
    position: relative;
    cursor: crosshair;
}
.location-picker .leaflet-container { font-family: var(--f-condensed); }

/* ─── property page sidebar map ──────────────────────────────────────────── */

.property-map { border: 1px solid var(--line); }

/* ─── grid fallback (only visible at ?view=grid or after toggle) ────────── */

.grid-fallback { display: none; }
.is-gridview .grid-fallback { display: block; }
.is-gridview .map-home {
    height: 60vh;       /* keep map but smaller, so the grid is the focus */
}
.is-gridview .map-overlay-bottom { display: none; }
.grid-back-to-map { text-align: center; margin-top: 40px; }

/* ─── motion preferences ─────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .map-dot-pulse { animation: none; }
    .leaflet-fade-anim .leaflet-tile { transition: none !important; }
}
