/* ==========================================================================
   Green Village — site stylesheet
   ========================================================================== */

:root {
    --paper: #f7f4ee;
    --paper-2: #efe9de;
    --white: #fffdf9;
    --ink: #1c231f;
    --muted: #5d665f;
    --line: #ddd5c6;
    --green-950: #142219;
    --green-900: #1d3324;
    --green-800: #24412f;
    --green-600: #3c6a4c;
    --sand: #b89a64;
    --sand-light: #e6d7b8;
    --danger: #a33a2c;

    --font-serif: "Cormorant Garamond", "Times New Roman", serif;
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --container: 1240px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --section: clamp(4rem, 9vw, 7.5rem);
    --radius: 4px;
    --header-h: 88px;
    --shadow: 0 18px 50px -24px rgb(20 34 25 / .35);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, video, iframe, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-serif); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
sup { font-size: .6em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }
::selection { background: var(--sand-light); }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.icon { width: 1.25em; height: 1.25em; flex: none; }
.logo {
    display: block; aspect-ratio: 1024 / 652; height: 100%;
    background: currentColor;
    -webkit-mask: url("/images/logo.svg") center / contain no-repeat;
    mask: url("/images/logo.svg") center / contain no-repeat;
}

/* ---------- Layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 860px); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--green-900); color: var(--paper); }

.eyebrow {
    display: inline-flex; align-items: center; gap: .75rem;
    font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
    color: var(--sand);
}
.eyebrow::before { content: ""; width: 2.25rem; height: 1px; background: currentColor; }
.section-title { font-size: clamp(2rem, 4.2vw, 3.25rem); margin: .6rem 0 1.25rem; }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 2.25rem; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); }
.prose { color: var(--muted); font-size: 1.05rem; }
.prose--columns { columns: 2 340px; column-gap: 3.5rem; }

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--green-800); --btn-fg: var(--paper);
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    min-height: 3.25rem; padding: .8rem 1.75rem;
    border: 1px solid var(--btn-bg); border-radius: var(--radius);
    background: var(--btn-bg); color: var(--btn-fg);
    font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { --btn-bg: var(--green-950); }
.btn--sand { --btn-bg: var(--sand); --btn-fg: var(--green-950); }
.btn--sand:hover { --btn-bg: #a5885a; }
.btn--ghost { background: transparent; color: var(--btn-fg); border-color: currentColor; --btn-fg: var(--paper); }
.btn--ghost:hover { background: var(--paper); color: var(--green-950); border-color: var(--paper); }
.btn--outline { background: transparent; color: var(--green-800); border-color: var(--green-800); }
.btn--outline:hover { background: var(--green-800); color: var(--paper); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.link-arrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green-800);
}
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgb(247 244 238 / .94);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
    transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.site-header__inner { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }
.brand { display: block; height: 68px; color: var(--green-800); flex: none; transition: opacity .2s; }
.brand:hover { opacity: .8; }

/* Menu sits centred in the space between the logo and the right-hand tools */
.nav { flex: 1; display: flex; justify-content: center; min-width: 0; }
.nav__list { display: flex; align-items: center; gap: .25rem; }
.nav__item { position: relative; }
.nav__link {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .6rem .8rem; font-size: .86rem; font-weight: 500; white-space: nowrap;
    border-radius: var(--radius); transition: color .2s;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--sand); }
.nav__link .icon { width: 1rem; height: 1rem; transition: transform .2s; }
.nav__sub {
    position: absolute; top: 100%; left: 0; min-width: 260px; padding: .6rem;
    background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav__sub a { display: block; padding: .65rem .85rem; font-size: .9rem; border-radius: var(--radius); }
.nav__sub a:hover, .nav__sub a[aria-current="page"] { background: var(--paper-2); color: var(--green-800); }
.nav__item:hover > .nav__sub, .nav__item:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__item:hover > .nav__link .icon { transform: rotate(180deg); }

.header-tools { display: flex; align-items: center; gap: 1.25rem; flex: none; }
.lang { display: flex; gap: .15rem; font-size: .75rem; font-weight: 600; letter-spacing: .08em; }
.lang a { padding: .3rem .4rem; opacity: .55; transition: opacity .2s; }
.lang a:hover, .lang a.is-active { opacity: 1; }
.lang a.is-active { text-decoration: underline; text-underline-offset: 4px; }
.header-phone { display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; font-weight: 500; white-space: nowrap; }
.header-phone .icon { color: var(--sand); }
.menu-toggle {
    display: none; width: 2.75rem; height: 2.75rem; place-items: center;
    border: 1px solid currentColor; border-radius: var(--radius); background: transparent;
}
.menu-toggle .icon { width: 1.4rem; height: 1.4rem; }
.menu-toggle .i-close { display: none; }

/* Header over the home hero */
.site-header--overlay {
    position: fixed; inset: 0 0 auto; color: var(--paper);
    background: transparent; backdrop-filter: none; border-color: rgb(255 255 255 / .18);
}
.site-header--overlay .brand { color: inherit; }
.site-header--overlay.is-scrolled {
    color: var(--ink); background: rgb(247 244 238 / .94); backdrop-filter: saturate(1.4) blur(10px); border-color: var(--line);
}
.site-header--overlay.is-scrolled .brand { color: var(--green-800); }

@media (max-width: 1180px) {
    .header-phone span { display: none; }
}
@media (max-width: 1060px) {
    :root { --header-h: 68px; }
    .site-header .brand { height: 54px; }
    /* backdrop-filter would make the header the containing block of the fixed menu panel */
    .site-header, .site-header--overlay.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; }
    .site-header:not(.site-header--overlay), .site-header--overlay.is-scrolled { background: var(--paper); }
    .menu-toggle { display: grid; }
    .header-tools { margin-left: auto; }
    .header-tools { gap: .9rem; }
    .lang a { padding: .75rem .45rem; }
    .nav {
        position: fixed; inset: var(--header-h) 0 0; z-index: 49; display: block;
        margin: 0; padding: 1.5rem var(--gutter) 3rem; overflow-y: auto;
        background: var(--paper); color: var(--ink);
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    }
    .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
    .nav-open { overflow: hidden; }
    .nav-open .menu-toggle .i-menu { display: none; }
    .nav-open .menu-toggle .i-close { display: block; }
    .nav-open .site-header--overlay { color: var(--ink); background: var(--paper); }
    .nav-open .site-header--overlay .brand { color: var(--green-800); }
    .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav__item { border-bottom: 1px solid var(--line); }
    .nav__link { width: 100%; padding: 1rem 0; font-family: var(--font-serif); font-size: 1.6rem; }
    .nav__link .icon { display: none; }
    .nav__sub {
        position: static; min-width: 0; padding: 0 0 1rem; border: 0; box-shadow: none; background: none;
        /* inherit, not visible: otherwise submenu links stay clickable while the menu is closed */
        opacity: 1; visibility: inherit; transform: none;
    }
    .nav__sub a { padding: .45rem 0 .45rem 1rem; color: var(--muted); border-left: 1px solid var(--line); border-radius: 0; }
    .nav__mobile-extra { display: flex; flex-direction: column; gap: 1.25rem; padding-top: 2rem; }
    .nav__mobile-extra .lang { display: flex; font-size: .95rem; }
}
/* Extra mobile-menu block (languages, callback) is only for the collapsed menu */
@media (min-width: 1061px) { .nav__mobile-extra { display: none; } }
/* On very narrow phones keep languages only inside the menu */
@media (max-width: 359px) { .header-tools .lang { display: none; } }

/* ---------- Hero (home) ---------- */
.hero {
    position: relative; isolation: isolate; display: grid; align-items: end;
    min-height: 100svh; padding: calc(var(--header-h) + 4rem) 0 clamp(3rem, 8vh, 6rem);
    color: var(--paper); overflow: hidden; background: var(--green-950);
}
.hero__media, .hero__media video, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgb(10 18 13 / .55) 0%, rgb(10 18 13 / 0) 28%),
        linear-gradient(0deg, rgb(10 18 13 / .78) 0%, rgb(10 18 13 / .15) 60%);
}
.hero__content { max-width: 820px; }
.hero__title { font-size: clamp(2.6rem, 6.4vw, 5.25rem); font-weight: 400; margin: 1rem 0 1.5rem; }
.hero__text { max-width: 560px; font-size: clamp(1rem, 1.5vw, 1.15rem); color: rgb(247 244 238 / .85); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }
.hero__scroll {
    position: absolute; right: var(--gutter); bottom: clamp(3rem, 8vh, 6rem);
    display: grid; place-items: center; width: 3.25rem; height: 3.25rem;
    border: 1px solid rgb(255 255 255 / .4); border-radius: 50%;
    animation: bob 2.4s var(--ease) infinite;
}
@keyframes bob { 50% { transform: translateY(6px); } }
@media (max-width: 760px) { .hero__scroll { display: none; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    position: relative; isolation: isolate; color: var(--paper);
    padding: clamp(4.5rem, 11vw, 8.5rem) 0 clamp(3rem, 7vw, 5rem);
    background: var(--green-900);
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(14 26 18 / .88), rgb(14 26 18 / .45)); }
.page-hero__title { font-size: clamp(2.4rem, 5.5vw, 4.5rem); font-weight: 400; margin-top: .75rem; max-width: 900px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .8rem; letter-spacing: .06em; color: rgb(247 244 238 / .7); }
.breadcrumbs a:hover { color: var(--paper); }
.breadcrumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }

/* ---------- Intro split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.split__media::after {
    content: ""; position: absolute; inset: 1.5rem -1.5rem -1.5rem 1.5rem; z-index: -1;
    border: 1px solid var(--sand); border-radius: var(--radius);
}
.split__media { isolation: isolate; }
@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; }
    .split__media img { aspect-ratio: 4 / 3; }
    .split__media::after { inset: 1rem -1rem -1rem 1rem; }
}

/* ---------- Property cards ---------- */
.properties { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (max-width: 1024px) { .properties { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .properties { grid-template-columns: 1fr; } }

.property-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.property-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.property-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.property-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.property-card:hover .property-card__media img { transform: scale(1.04); }
.property-card__price {
    position: absolute; left: 1rem; bottom: 1rem; padding: .5rem .9rem;
    background: var(--white); border-radius: var(--radius); line-height: 1.2;
}
.property-card__price small { display: block; font-size: .65rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.property-card__price strong { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; color: var(--green-800); }
.property-card__body { display: flex; flex-direction: column; gap: 1.25rem; flex: 1; padding: 1.5rem 1.5rem 1.75rem; }
.property-card__title { font-size: 1.75rem; }
.property-card__title a::after { content: ""; position: absolute; inset: 0; }
.property-card .link-arrow { margin-top: auto; position: relative; }

.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.spec { display: flex; flex-direction: column; gap: .35rem; }
.spec .icon { color: var(--sand); width: 1.4rem; height: 1.4rem; }
.spec__value { font-weight: 600; font-size: 1rem; line-height: 1.2; }
.spec__label { font-size: .72rem; color: var(--muted); line-height: 1.3; }

/* ---------- Feature lists ---------- */
.check-list { display: grid; gap: .85rem; }
.check-list li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .85rem; align-items: start; color: var(--muted); }
.check-list li::before {
    content: ""; width: 1.5rem; height: 1.5rem; margin-top: .1rem; border-radius: 50%;
    background: var(--green-800) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23f7f4ee' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='m6.5 12.5 3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.check-list--grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); column-gap: 2.5rem; }

.feature-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.feature-group { padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.feature-group h3 { font-size: 1.6rem; margin-bottom: 1.25rem; }

.text-block + .text-block { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.text-block h2, .text-block h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 1rem; }

/* ---------- Village plan / house status ---------- */
.village-plan { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 960px) { .village-plan { grid-template-columns: 1fr; } }
.village-plan__image { border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); cursor: zoom-in; }
.status-legend { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 1.25rem; font-size: .8rem; color: var(--muted); }
.status-legend span { display: inline-flex; align-items: center; gap: .5rem; }
.status-legend i, .house-status__dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--green-600); flex: none; }
.status-legend .is-reserved i, .house-status.is-reserved .house-status__dot { background: var(--sand); }
.house-statuses { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; }
.house-status {
    display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); font-size: .9rem;
}
.house-status .icon { color: var(--green-800); }
.house-status.is-reserved { color: var(--muted); background: var(--paper-2); }
.house-status.is-reserved .icon { color: var(--sand); }
.house-status__text { display: flex; flex-direction: column; line-height: 1.3; }
.house-status__text small { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- Gallery: mosaic + carousel ---------- */
.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: .5rem; height: clamp(320px, 62vh, 640px); }
.mosaic a { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.mosaic a:first-child { grid-row: span 2; }
.mosaic a:nth-child(4) { grid-column: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mosaic a:hover img { transform: scale(1.04); }
@media (max-width: 760px) {
    .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr 1fr; height: 520px; }
    .mosaic a:first-child { grid-row: auto; grid-column: span 2; }
    .mosaic a:nth-child(4) { grid-column: span 2; }
}

.carousel { position: relative; }
.carousel__track {
    display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 760px); gap: 1rem;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding-bottom: .25rem;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > a { scroll-snap-align: start; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.carousel__track img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.carousel__track > a:hover img { transform: scale(1.03); }
.carousel__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; }
.carousel__counter { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.carousel__nav { display: flex; gap: .5rem; }
.icon-btn {
    display: grid; place-items: center; width: 3rem; height: 3rem;
    background: transparent; border: 1px solid var(--line); border-radius: 50%; color: var(--green-800);
    transition: background .2s, color .2s, border-color .2s;
}
.icon-btn:hover { background: var(--green-800); border-color: var(--green-800); color: var(--paper); }
.icon-btn[disabled] { opacity: .35; pointer-events: none; }
@media (max-width: 680px) { .carousel__track { grid-auto-columns: 88%; } }

/* ---------- Lightbox ---------- */
.lightbox {
    width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
    background: rgb(10 16 12 / .96); color: var(--paper);
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr; animation: fade .25s var(--ease); }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; font-size: .85rem; font-variant-numeric: tabular-nums; }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 4.5rem 2rem; touch-action: pan-y; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; }
.lightbox .icon-btn { color: var(--paper); border-color: rgb(255 255 255 / .25); }
.lightbox .icon-btn:hover { background: var(--paper); color: var(--ink); }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; translate: 0 -50%; }
.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }
@media (max-width: 680px) {
    .lightbox__stage { padding: 0 .5rem 5rem; }
    .lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; translate: none; }
    .lightbox__prev { left: calc(50% - 3.5rem); }
    .lightbox__next { right: calc(50% - 3.5rem); }
}
@keyframes fade { from { opacity: 0; } }

/* ---------- House page ---------- */
.house-head { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; margin-bottom: 2.5rem; }
.house-head__price small { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.house-head__price strong { font-family: var(--font-serif); font-size: clamp(2.25rem, 4vw, 3.25rem); font-weight: 500; color: var(--green-800); line-height: 1; }
.badge {
    display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .85rem;
    background: var(--sand-light); color: var(--green-950); border-radius: 999px; font-size: .78rem; font-weight: 500;
}
@media (max-width: 760px) { .house-head { grid-template-columns: 1fr; } }

.house-specs { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.house-specs .spec { flex-direction: row; align-items: center; gap: .9rem; padding: 1.4rem 1.25rem; }
.house-specs .spec + .spec { border-left: 1px solid var(--line); }
.house-specs .spec .icon { width: 1.9rem; height: 1.9rem; }
.house-specs .spec__value { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 600; }
@media (max-width: 960px) {
    .house-specs { grid-template-columns: repeat(2, 1fr); }
    .house-specs .spec { border-top: 1px solid var(--line); }
    .house-specs .spec:nth-child(-n+2) { border-top: 0; }
    .house-specs .spec:nth-child(odd) { border-left: 0; }
    .house-specs .spec:last-child { grid-column: span 2; }
}

.house-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.house-layout__aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1rem; }
@media (max-width: 1024px) { .house-layout { grid-template-columns: 1fr; } .house-layout__aside { position: static; } }

.floors { display: grid; gap: 1rem; margin-top: 1.5rem; }
.floors li { padding: 1.1rem 1.25rem; background: var(--white); border-left: 2px solid var(--sand); border-radius: 0 var(--radius) var(--radius) 0; }
.floors strong { display: block; margin-bottom: .25rem; color: var(--ink); }

.details { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--line); }
.details div { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.details div:nth-child(odd) { padding-right: 1.5rem; }
.details dt { color: var(--muted); }
.details dd { font-weight: 500; text-align: right; }
@media (min-width: 700px) { .details { column-gap: 2.5rem; } }

.cta-card { padding: 2rem; background: var(--green-900); color: var(--paper); border-radius: var(--radius); }
.cta-card h3 { font-size: 1.75rem; margin-bottom: .75rem; }
.cta-card p { color: rgb(247 244 238 / .75); font-size: .95rem; }
.cta-card .btn { width: 100%; margin-top: 1.5rem; }
.cta-card a.phone { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; font-weight: 500; }
.aside-actions { display: flex; gap: .5rem; }
.aside-actions .btn { flex: 1; }

/* Plans accordion */
.plans { display: grid; gap: .75rem; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.plan summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.1rem 1.4rem; cursor: pointer; list-style: none; font-family: var(--font-serif); font-size: 1.4rem;
}
.plan summary::-webkit-details-marker { display: none; }
.plan summary .icon { transition: transform .25s var(--ease); color: var(--sand); }
.plan[open] summary .icon { transform: rotate(180deg); }
.plan__body { padding: 0 1.4rem 1.4rem; }
.plan__body a { display: block; cursor: zoom-in; }
.plan__body img { width: 100%; border-radius: var(--radius); }

/* ---------- Location ---------- */
.place-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (max-width: 1024px) { .place-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .place-grid { grid-template-columns: 1fr; } }
.place-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.place-card__media { aspect-ratio: 16 / 10; background: var(--paper-2); overflow: hidden; }
.place-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.place-card:hover .place-card__media img { transform: scale(1.04); }
.place-card__media--logo { display: grid; place-items: center; background: var(--green-900); }
.place-card__media--logo img { width: auto; height: 60%; object-fit: contain; }
.place-card__body { display: flex; flex-direction: column; gap: .85rem; flex: 1; padding: 1.5rem; }
.place-card__title { font-size: 1.45rem; }
.place-card__text { color: var(--muted); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.place-card .link-arrow { margin-top: auto; background: none; border: 0; padding: 0; }

/* ---------- Video grid ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.video-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.video-card__frame { aspect-ratio: 16 / 9; background: var(--green-950); }
.video-card__frame iframe { width: 100%; height: 100%; border: 0; }
.video-card__title { padding: 1rem 1.25rem; font-family: var(--font-serif); font-size: 1.3rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { padding: 2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.contact-card p, .contact-card address { color: var(--muted); font-style: normal; }
.contact-card ul { display: grid; gap: .6rem; margin-top: 1rem; }
.contact-card li a { display: inline-flex; align-items: center; gap: .6rem; font-weight: 500; }
.contact-card li .icon { color: var(--sand); }
.contact-card__role + .contact-card__role { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.map { aspect-ratio: 21 / 9; min-height: 380px; width: 100%; border: 0; border-radius: var(--radius); background: var(--paper-2); }

/* ---------- Callback section & forms ---------- */
.callback {
    position: relative; isolation: isolate; color: var(--paper); overflow: hidden;
    padding-block: var(--section); background: var(--green-900);
}
.callback__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.callback::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(14 26 18 / .92) 0%, rgb(14 26 18 / .78) 55%, rgb(14 26 18 / .55) 100%); }
.callback__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.callback__inner .lead { color: rgb(247 244 238 / .8); }
@media (max-width: 900px) { .callback__inner { grid-template-columns: 1fr; } }

.form { display: grid; gap: 1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; }
.field label { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.field input, .field textarea {
    width: 100%; min-height: 3.25rem; padding: .85rem 1rem;
    background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sand); box-shadow: 0 0 0 3px rgb(184 154 100 / .25); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--danger); }
.form--dark .field input, .form--dark .field textarea { background: rgb(255 255 255 / .08); color: var(--paper); border-color: rgb(255 255 255 / .22); }
.form--dark .field input::placeholder, .form--dark .field textarea::placeholder { color: rgb(247 244 238 / .5); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { min-height: 1.5rem; font-size: .92rem; }
.form__status[data-state="success"] { color: #7fc79a; }
.form__status[data-state="error"] { color: #ff9c8c; }
.form:not(.form--dark) .form__status[data-state="success"] { color: var(--green-600); }
.form:not(.form--dark) .form__status[data-state="error"] { color: var(--danger); }
.form .btn { justify-self: start; }

/* ---------- Dialogs ---------- */
.dialog {
    width: min(100% - 2rem, 560px); max-height: calc(100dvh - 2rem); padding: 0;
    border: 0; border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: var(--shadow);
}
.dialog--wide { width: min(100% - 2rem, 760px); }
.dialog::backdrop { background: rgb(10 16 12 / .6); backdrop-filter: blur(3px); }
.dialog[open] { animation: rise .3s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.75rem 1.75rem 0; }
.dialog__head h2 { font-size: 1.9rem; }
.dialog__head .icon-btn { flex: none; width: 2.5rem; height: 2.5rem; }
.dialog__body { padding: 1.25rem 1.75rem 1.75rem; color: var(--muted); }
.dialog__media { margin: 1.25rem 1.75rem 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--paper-2); }
.dialog__media img { width: 100%; height: 100%; object-fit: cover; }
.dialog__media--logo { display: grid; place-items: center; background: var(--green-900); }
.dialog__media--logo img { width: auto; height: 60%; object-fit: contain; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: rgb(247 244 238 / .72); padding-top: clamp(3.5rem, 7vw, 5.5rem); font-size: .92rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer h3 { margin-bottom: 1.1rem; font-family: var(--font-sans); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sand); }
.site-footer .brand { height: 92px; color: var(--paper); margin-bottom: 1.5rem; }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer ul { display: grid; gap: .55rem; }
.site-footer a:hover { color: var(--paper); }
.site-footer .contacts a { display: inline-flex; align-items: center; gap: .6rem; }
.socials { display: flex; gap: .6rem; }
.socials a { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 1px solid rgb(255 255 255 / .2); border-radius: 50%; transition: background .2s, color .2s; }
.socials a:hover { background: var(--paper); color: var(--green-950); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.5rem; border-top: 1px solid rgb(255 255 255 / .1); font-size: .8rem; color: rgb(247 244 238 / .45); }
/* Vertical padding on an inline link enlarges the tap area without moving the layout */
.credit__name { padding-block: .85rem; color: rgb(247 244 238 / .75); text-decoration: underline; text-decoration-color: rgb(184 154 100 / .5); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.credit__name:hover { color: var(--sand); text-decoration-color: var(--sand); }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

.to-top {
    position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40;
    background: var(--white); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .25s, transform .25s, visibility .25s, background .2s, color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- Error page ---------- */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.error-page__code { font-family: var(--font-serif); font-size: clamp(5rem, 16vw, 10rem); line-height: 1; color: var(--sand); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
    :root { --section: 1.5rem; }
    body { background: #fff; font-size: 11pt; }
    .site-header, .site-footer, .to-top, .callback, .carousel, .house-layout__aside, .hero__scroll, .dialog, .lightbox, .no-print { display: none !important; }
    .page-hero { color: var(--ink); background: none; padding: 0 0 1rem; }
    .page-hero::after, .page-hero__bg { display: none; }
    .page-hero .breadcrumbs { display: none; }
    .house-layout { display: block; }
    .mosaic { height: 300px; }
    .plan { break-inside: avoid; }
    .plan:not([open]) > .plan__body { display: block; }
    .reveal { opacity: 1 !important; transform: none !important; }
}
