/* Pattaya Grand Home — public site styles */

:root {
    --ink: #10262e;
    --ink-2: #183844;
    --ink-soft: #2b4651;
    --gold: #a88d45;
    --gold-hover: #957b37;
    --gold-text: #8a7031;
    --sage: #4f7a6a;
    --sage-hover: #436a5b;
    --sage-light: #c3d0c7;
    --sage-bg: #edf1ec;
    --bg: #f7f6f2;
    --card: #ffffff;
    --text: #1b2a31;
    --muted: #5a6a71;
    --line: #e2e0d9;
    --line-dark: rgba(255, 255, 255, .16);
    --shadow: 0 18px 40px -18px rgba(16, 38, 46, .25);
    --radius: 4px;
    --header-h: 88px;
    --container: 1280px;
    --font: 'Noto Sans Thai', 'Helvetica Neue', Arial, sans-serif;
    --font-serif: 'Playfair Display', 'Noto Sans Thai', Georgia, serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: 17px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}
@media (min-width: 768px) { html { font-size: 18px; } }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.18em; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 200;
    background: var(--gold); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}
@media (min-width: 1024px) { .container { padding: 0 48px; } }

/* ---------- Buttons & links ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6em;
    min-height: 56px; padding: 0 28px;
    border: 1px solid transparent; border-radius: var(--radius);
    font-weight: 600; font-size: 1rem; line-height: 1.2;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-hover); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-sage { background: var(--sage); color: #fff; }
.btn-sage:hover { background: var(--sage-hover); }
.btn-light { background: #fff; color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-block { width: 100%; }

.link-arrow {
    display: inline-flex; align-items: center; gap: .55em;
    font-weight: 600; color: var(--ink);
    padding-bottom: 6px; border-bottom: 2px solid var(--ink);
    transition: gap .25s var(--ease), color .2s, border-color .2s;
}
.link-arrow:hover { gap: .9em; color: var(--gold-text); border-color: var(--gold); }
.link-back { display: inline-flex; align-items: center; gap: .5em; color: var(--muted); font-weight: 500; }
.link-back:hover { color: var(--ink); }

.eyebrow {
    display: flex; align-items: center; gap: 16px;
    margin: 0 0 18px;
    font-size: .8rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
    color: var(--ink-soft);
}
.eyebrow::before { content: ''; width: 40px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow-light { color: rgba(255, 255, 255, .85); }

.section { padding: 80px 0; position: relative; }
.section-tight { padding: 48px 0 80px; }
@media (min-width: 1024px) { .section { padding: 120px 0; } .section-tight { padding: 56px 0 120px; } }

.section-title {
    font-size: clamp(2.1rem, 4.4vw, 3.5rem);
    font-weight: 700; line-height: 1.25; letter-spacing: -.01em;
    color: var(--ink);
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46em; }

.section-head {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
    gap: 28px 64px; margin-bottom: 56px;
}
.section-aside { max-width: 500px; }
.section-aside p { color: var(--muted); font-size: 1.1rem; }

.section-dark { background: var(--ink); color: #fff; overflow: hidden; }
.section-dark .section-title { color: #fff; }
.section-dark .lead { color: rgba(255, 255, 255, .78); }
.section-sage { background: var(--sage-bg); }

/* ---------- Header ---------- */

.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    height: var(--header-h);
    color: #fff;
    border-bottom: 1px solid var(--line-dark);
    transition: background .3s, box-shadow .3s, height .3s;
}
.site-header.is-solid, .site-header.is-scrolled { background: var(--ink); }
.site-header.is-scrolled { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .4); }
.page-solid main { padding-top: var(--header-h); }

.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 38px; height: 38px; stroke-width: 1.8; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.2rem; letter-spacing: .14em; font-weight: 700; }
.brand-text small { font-size: .62rem; letter-spacing: .3em; opacity: .85; }

.main-nav { display: flex; align-items: center; gap: 40px; margin: 0 auto; }
.main-nav > a {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 1.08rem; font-weight: 500; padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: border-color .2s, opacity .2s;
}
.main-nav > a:hover { opacity: .8; }
.main-nav > a.is-active { border-color: var(--gold); }
.fav-count {
    min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
    background: var(--gold); color: #fff; font-size: .72rem; font-weight: 700;
    display: inline-grid; place-items: center;
}
.nav-mobile-extra { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-pill {
    display: inline-flex; align-items: center; gap: 10px;
    height: 50px; padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--radius);
    font-weight: 600; font-size: 1.05rem;
    transition: background .2s;
}
.header-pill:hover { background: rgba(255, 255, 255, .1); }
.nav-toggle {
    display: none; width: 50px; height: 50px; border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #fff;
    align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }

@media (max-width: 1180px) {
    .header-phone span { display: none; }
    .header-phone { width: 50px; padding: 0; justify-content: center; }
    .main-nav { gap: 28px; }
}

@media (max-width: 1023px) {
    :root { --header-h: 76px; }
    .nav-toggle { display: inline-flex; }
    .header-phone, .header-lang { display: none; }
    .header-actions { margin-left: auto; }
    .main-nav {
        position: fixed; inset: var(--header-h) 0 0 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--ink); padding: 16px 24px 40px;
        overflow-y: auto;
        opacity: 0; transform: translateY(-12px); visibility: hidden;
        transition: opacity .3s, transform .35s var(--ease), visibility .35s;
    }
    .main-nav > a {
        font-size: 1.45rem; padding: 18px 0;
        border-bottom: 1px solid var(--line-dark);
    }
    .main-nav > a.is-active { color: var(--sage-light); border-color: var(--line-dark); }
    .nav-mobile-extra { display: grid; gap: 12px; margin-top: 28px; }
    .nav-open .main-nav { opacity: 1; transform: none; visibility: visible; }
    .nav-open .site-header { background: var(--ink); }
    .nav-open .nav-toggle .icon-open { display: none; }
    .nav-open .nav-toggle .icon-close { display: block; }
    .nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: min(100vh, 980px); min-height: min(100svh, 980px);
    display: flex; align-items: center;
    padding: calc(var(--header-h) + 56px) 0 80px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(16, 38, 46, .78) 0%, rgba(16, 38, 46, .5) 50%, rgba(16, 38, 46, .18) 100%),
        linear-gradient(0deg, rgba(16, 38, 46, .35), rgba(16, 38, 46, 0) 40%),
        var(--hero-img) center / cover no-repeat;
}
.hero-inner { position: relative; }
.hero-title {
    font-size: clamp(2.5rem, 6.2vw, 5.4rem);
    font-weight: 700; line-height: 1.22; letter-spacing: -.015em;
    max-width: 14em; margin-bottom: 28px;
    text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
.lang-en .hero-title { font-family: var(--font-serif); font-weight: 500; line-height: 1.12; }
.hero-sub { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 36em; color: rgba(255, 255, 255, .9); margin-bottom: 44px; }

.search-box {
    background: #fff; color: var(--text);
    max-width: 1020px; padding: 10px 10px 18px;
    border-radius: var(--radius);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45);
}
.search-tabs { display: flex; gap: 4px; margin-bottom: 8px; }
.search-tabs button {
    min-width: 150px; height: 56px; border: 0; border-radius: 2px;
    background: #e9ebea; color: var(--ink); font-weight: 600; font-size: 1.05rem;
    transition: background .2s, color .2s;
}
.search-tabs button.is-active { background: var(--ink); color: #fff; }
.search-main { display: flex; gap: 12px; align-items: stretch; padding: 8px 8px 0; }
.search-input {
    flex: 1; display: flex; align-items: center; gap: 14px; padding: 0 12px;
    border-bottom: 1px solid var(--line); min-height: 72px;
}
.search-input .icon { width: 24px; height: 24px; color: var(--muted); }
.search-input input {
    flex: 1; border: 0; outline: 0; background: transparent;
    font-size: 1.15rem; min-width: 0; padding: 12px 0;
}
.search-input input::placeholder { color: #7f8b90; }
.search-submit { min-height: 76px; padding: 0 34px; font-size: 1.1rem; }
.search-filters { display: flex; flex-wrap: wrap; gap: 12px; padding: 16px 8px 0; }

.select-pill {
    position: relative; display: inline-flex; align-items: center; gap: 8px;
    min-height: 54px; padding: 0 44px 0 16px;
    border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
    font-size: .88rem; color: var(--muted); cursor: pointer;
}
.select-pill select {
    appearance: none; -webkit-appearance: none;
    border: 0; background: transparent; outline: 0;
    font-weight: 600; font-size: 1rem; color: var(--ink); cursor: pointer;
    padding: 12px 0; max-width: 220px;
}
.select-pill > .icon { position: absolute; right: 14px; pointer-events: none; color: var(--muted); }
.select-pill:focus-within { border-color: var(--ink); }

.scroll-hint {
    position: absolute; right: 38px; bottom: 190px;
    writing-mode: vertical-rl; font-size: .8rem; letter-spacing: .2em;
    color: rgba(255, 255, 255, .8);
    display: flex; align-items: center; gap: 16px;
}
.scroll-hint::before { content: ''; width: 1px; height: 64px; background: rgba(255, 255, 255, .6); animation: hint 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes hint { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }

@media (max-width: 767px) {
    .hero { align-items: flex-end; padding-bottom: 40px; }
    .hero-sub { margin-bottom: 32px; }
    .search-tabs button { flex: 1; min-width: 0; }
    .search-main { flex-direction: column; padding: 4px 4px 0; }
    .search-submit { min-height: 60px; }
    .search-filters { padding: 12px 4px 0; }
    .search-filters .select-pill { flex: 1 1 100%; }
    .select-pill select { max-width: none; flex: 1; }
    .scroll-hint { display: none; }
}

/* ---------- Cards ---------- */

.card-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
@media (min-width: 1100px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
    background: var(--card); display: flex; flex-direction: column;
    transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #dfe3e1; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .3s; }
.card:hover .card-media img { transform: scale(1.04); }

.badge {
    position: absolute; top: 16px; left: 16px;
    padding: 6px 14px; border-radius: 2px;
    font-size: .85rem; font-weight: 600; color: #fff; line-height: 1.4;
    background: var(--gold);
}
.badge-rent { background: var(--sage); }
.badge-project { background: var(--gold); }
.badge-draft { position: static; background: #c0563b; }
.property-tags .badge { position: static; }

.fav-btn {
    position: absolute; top: 14px; right: 14px;
    width: 48px; height: 48px; border-radius: 50%; border: 0;
    background: #fff; color: var(--ink);
    display: grid; place-items: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
    transition: transform .2s, color .2s;
}
.fav-btn .icon { width: 22px; height: 22px; }
.fav-btn:hover { transform: scale(1.08); }
.fav-btn[aria-pressed="true"], .fav-toggle[aria-pressed="true"] { color: #c0563b; }
.fav-btn[aria-pressed="true"] .icon, .fav-toggle[aria-pressed="true"] .icon { fill: currentColor; }

.card-next {
    position: absolute; right: 14px; bottom: 14px;
    width: 46px; height: 46px; border: 0; border-radius: 2px;
    background: #fff; color: var(--ink);
    display: grid; place-items: center;
    opacity: 0; transform: translateX(6px);
    transition: opacity .25s, transform .25s;
}
.card:hover .card-next, .card-next:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .card-next { opacity: 1; transform: none; } }

.card-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.card-loc { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .95rem; margin: 0 0 8px; }
.card-title { font-family: var(--font-serif); font-size: 1.65rem; font-weight: 500; line-height: 1.3; margin-bottom: 8px; color: var(--ink); }
.card-title a:hover { color: var(--gold-text); }
.card-price { color: var(--gold-text); font-weight: 600; font-size: 1.2rem; margin: 0 0 22px; }
.card-specs {
    display: flex; flex-wrap: wrap; gap: 10px 26px;
    padding: 22px 0; margin-top: auto; border-top: 1px solid var(--line);
    color: var(--ink-soft); font-size: 1rem;
}
.card-specs li { display: inline-flex; align-items: center; gap: 8px; }
.card-specs .icon { color: var(--muted); width: 22px; height: 22px; }
.card .link-arrow { align-self: flex-start; margin-top: 4px; }

/* ---------- Why us (dark) ---------- */

.why-grid { display: grid; gap: 48px; grid-template-columns: 1fr; align-items: center; position: relative; z-index: 1; }
@media (min-width: 1024px) { .why-grid { grid-template-columns: 200px 1.5fr 1fr; gap: 56px; } }
.why .section-title, .contact-band .section-title { font-size: clamp(2rem, 3.3vw, 2.9rem); margin-bottom: 20px; }
.why-years { position: relative; width: max-content; }
.why-num { font-family: var(--font-serif); font-size: clamp(7rem, 12vw, 10.5rem); line-height: .9; color: var(--sage-light); letter-spacing: -.04em; }
.why-label { display: block; margin-top: 10px; padding-left: 6px; font-size: 1rem; color: var(--sage-light); letter-spacing: .3em; text-transform: uppercase; }
.why-list li { display: flex; gap: 18px; padding: 26px 0; border-top: 1px solid var(--line-dark); }
.why-list li:last-child { border-bottom: 1px solid var(--line-dark); }
.why-list .icon { width: 28px; height: 28px; color: var(--sage-light); margin-top: 2px; }
.why-list h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 4px; }
.why-list p { color: rgba(255, 255, 255, .7); margin: 0; font-size: .98rem; }
.why-list-row { display: grid; gap: 0 48px; }
@media (min-width: 900px) {
    .why-list-row { grid-template-columns: repeat(3, 1fr); }
    .why-list-row li { border-bottom: 1px solid var(--line-dark); }
}
.why-arc { position: absolute; right: -60px; bottom: -60px; width: 520px; height: 520px; color: rgba(255, 255, 255, .12); pointer-events: none; }

/* ---------- Areas ---------- */

.area-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.area-tile { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; color: #fff; background: var(--ink); }
.area-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.area-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 38, 46, 0) 40%, rgba(16, 38, 46, .85)); }
.area-tile:hover img { transform: scale(1.06); }
.area-info { position: absolute; left: 24px; right: 70px; bottom: 24px; z-index: 1; display: flex; flex-direction: column; }
.area-info strong { font-size: 1.55rem; font-weight: 600; line-height: 1.3; }
.area-info small { font-size: .95rem; opacity: .85; }
.area-arrow { position: absolute; right: 24px; bottom: 30px; z-index: 1; width: 26px; height: 26px; transition: transform .3s; }
.area-tile:hover .area-arrow { transform: translateX(4px); }
@media (max-width: 600px) { .area-tile { aspect-ratio: 16 / 10; } }

/* ---------- Contact band & forms ---------- */

.contact-band { background: var(--sage-bg); }
.contact-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
.contact-links { display: grid; gap: 14px; margin-top: 32px; }
.contact-link {
    display: flex; align-items: center; gap: 18px;
    padding: 16px 18px; background: #fff; border-radius: var(--radius);
    transition: box-shadow .25s;
}
.contact-link:hover { box-shadow: var(--shadow); }
.contact-link small { display: block; color: var(--muted); font-size: .88rem; }
.contact-link strong { font-size: 1.15rem; color: var(--ink); }
.contact-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; flex: none; }
.contact-card { background: #fff; padding: 36px; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 600px) { .contact-card { padding: 24px 20px; } }

.inquiry-form { display: grid; gap: 18px; scroll-margin-top: calc(var(--header-h) + 24px); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; color: var(--ink); }
.field input, .field textarea, .field select {
    width: 100%; min-height: 56px; padding: 12px 16px;
    border: 1px solid #cfd4d2; border-radius: var(--radius); background: #fff;
    font-size: 1.05rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(16, 38, 46, .1); }
.field-row { display: grid; gap: 18px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); font-weight: 500; }
.alert .icon { margin-top: 4px; }
.alert-success { background: #e3efe8; color: #24543f; }
.alert-error { background: #f8e6e1; color: #8a3520; }

/* ---------- Page hero & listing ---------- */

.page-hero { padding: 64px 0 24px; }
@media (min-width: 1024px) { .page-hero { padding: 88px 0 32px; } }
.page-title { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; color: var(--ink); margin-bottom: 14px; letter-spacing: -.01em; }
.page-hero .eyebrow .icon { color: var(--gold); }

.filter-bar {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
    background: #fff; padding: 16px; border-radius: var(--radius); box-shadow: 0 8px 30px -20px rgba(16, 38, 46, .35);
}
.filter-search {
    flex: 1 1 320px; display: flex; align-items: center; gap: 12px;
    min-height: 54px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius);
}
.filter-search input { flex: 1; border: 0; outline: 0; font-size: 1.05rem; min-width: 0; background: transparent; }
.filter-search .icon { color: var(--muted); width: 22px; height: 22px; }
.filter-bar .btn { min-height: 54px; }
@media (max-width: 767px) {
    .filter-bar .select-pill { flex: 1 1 calc(50% - 6px); min-width: 0; }
    .filter-bar .select-pill select { max-width: 100%; flex: 1; min-width: 0; }
    .filter-bar .select-pill > span { display: none; }
    .filter-bar .btn { flex: 1 1 100%; }
}
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 32px 0 28px; }
.results-count { margin: 0; font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.results-count a { color: var(--gold-text); font-weight: 500; text-decoration: underline; }
.select-pill-inline { min-height: 48px; }

.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 56px; }
.pagination a {
    min-width: 52px; height: 52px; display: grid; place-items: center;
    border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-weight: 600;
}
.pagination a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination a:hover:not(.is-active) { border-color: var(--ink); }

.empty-state { text-align: center; padding: 72px 24px; max-width: 560px; margin: 0 auto; }
.empty-state > .icon { width: 56px; height: 56px; color: var(--sage); margin-bottom: 16px; }
.empty-state h2, .empty-state h1 { font-size: 1.6rem; color: var(--ink); margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 28px; }
.empty-state-page { padding: 120px 24px; }
.big-404 { display: block; font-family: var(--font-serif); font-size: 8rem; color: var(--sage-light); line-height: 1; margin-bottom: 16px; }

/* ---------- Property detail ---------- */

.property-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 20px; }

.gallery { position: relative; display: grid; gap: 10px; }
.gallery-item { position: relative; display: block; padding: 0; border: 0; background: #dfe3e1; overflow: hidden; cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-1 .gallery-item { aspect-ratio: 16 / 8; }
.gallery-all { position: absolute; right: 40px; bottom: 16px; min-height: 48px; box-shadow: var(--shadow); }
@media (min-width: 1024px) { .gallery-all { right: 64px; bottom: 24px; } }
@media (min-width: 768px) {
    .gallery-2, .gallery-3, .gallery-4, .gallery-5 { grid-template-columns: 2fr 1fr; grid-auto-rows: 270px; }
    .gallery-2 .gallery-item:first-child, .gallery-3 .gallery-item:first-child { grid-row: span 2; }
    .gallery-2 { grid-auto-rows: 540px; }
    .gallery-4 { grid-template-columns: 2fr 1fr 1fr; }
    .gallery-4 .gallery-item:first-child { grid-row: span 2; }
    .gallery-4 .gallery-item:nth-child(4) { grid-column: span 2; }
    .gallery-5 { grid-template-columns: 2fr 1fr 1fr; }
    .gallery-5 .gallery-item:first-child { grid-row: span 2; }
}
@media (max-width: 767px) {
    .gallery { padding: 0; }
    .gallery .gallery-item:not(:first-child) { display: none; }
    .gallery .gallery-item:first-child { aspect-ratio: 4 / 3; }
    .gallery-all { right: 16px; }
}

.property-layout { display: grid; gap: 56px; }
@media (min-width: 1024px) { .property-layout { grid-template-columns: minmax(0, 1fr) 420px; gap: 72px; } }
.property-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 14px; }
.property-tags .card-loc { margin: 0; }
.property-title { font-family: var(--font-serif); font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 500; color: var(--ink); line-height: 1.2; margin-bottom: 12px; }
.property-price { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; color: var(--gold-text); margin-bottom: 24px; }
.property-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.property-actions .btn { min-height: 50px; padding: 0 22px; }

.facts {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    background: #fff; border-top: 1px solid var(--line); border-left: 1px solid var(--line);
    margin: 40px 0 8px;
}
.facts li { display: flex; align-items: center; gap: 14px; padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts strong { white-space: nowrap; }
.facts .icon { width: 28px; height: 28px; color: var(--sage); }
.facts small { display: block; color: var(--muted); font-size: .85rem; }
.facts strong { font-size: 1.15rem; color: var(--ink); }

.prose { padding-top: 44px; }
.prose h2 { font-size: 1.6rem; font-weight: 700; color: var(--ink); margin-bottom: 18px; }
.prose p { font-size: 1.08rem; color: #33444b; line-height: 1.85; }
.feature-list { display: grid; gap: 12px 28px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.05rem; }
.feature-list .icon { color: #fff; background: var(--sage); border-radius: 50%; padding: 4px; width: 26px; height: 26px; margin-top: 2px; }
.map-frame { aspect-ratio: 16 / 9; background: #dfe3e1; margin-top: 12px; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.property-aside { position: relative; }
.inquiry-card { background: #fff; padding: 32px; box-shadow: var(--shadow); border-top: 4px solid var(--gold); }
@media (min-width: 1024px) { .inquiry-card { position: sticky; top: calc(var(--header-h) + 24px); } }
.inquiry-card > h2 { font-size: 1.5rem; color: var(--ink); margin-bottom: 6px; }
.inquiry-card > p { color: var(--muted); }
.aside-or { text-align: center; color: var(--muted); font-size: .92rem; margin: 22px 0 12px; display: flex; align-items: center; gap: 12px; }
.aside-or::before, .aside-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.aside-buttons { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.aside-buttons .btn { padding: 0 12px; }
@media (max-width: 600px) { .inquiry-card { padding: 24px 20px; } }

.lightbox {
    position: fixed; inset: 0; z-index: 100; background: rgba(8, 18, 22, .96);
    display: flex; align-items: center; justify-content: center; padding: 24px;
}
.lightbox figure { margin: 0; max-width: min(1400px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img { max-height: calc(100vh - 110px); width: auto; object-fit: contain; }
.lightbox figcaption { color: rgba(255, 255, 255, .75); font-size: .95rem; }
.lightbox-close, .lightbox-nav {
    position: absolute; width: 56px; height: 56px; border-radius: 50%; border: 0;
    background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, .22); }
.lightbox .icon { width: 26px; height: 26px; }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox-nav { top: auto; bottom: 20px; transform: none; } }

/* ---------- About ---------- */

.about-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 88px; } }
.about-image { aspect-ratio: 4 / 5; overflow: hidden; }
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-copy .section-title { margin-bottom: 28px; }
.about-copy p { font-size: 1.1rem; color: #33444b; line-height: 1.85; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.stats strong { display: block; font-family: var(--font-serif); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 500; color: var(--ink); line-height: 1.1; }
.stats span { color: var(--muted); font-size: .95rem; }
.office-info { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.office-info li { display: flex; gap: 16px; align-items: center; background: #fff; padding: 24px; }
.office-info .icon { width: 28px; height: 28px; color: var(--sage); }
.office-info small { display: block; color: var(--muted); }
.office-info strong { font-size: 1.1rem; color: var(--ink); }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: rgba(255, 255, 255, .78); padding: 80px 0 32px; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 64px; } }
.footer-brand .brand { color: #fff; margin-bottom: 20px; }
.footer-brand p { max-width: 26em; }
.site-footer h3 { color: #fff; font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .icon { margin-top: 5px; color: var(--sage-light); }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
    margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: .92rem;
}
.footer-bottom a { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Floating actions & toast ---------- */

.float-actions { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: grid; gap: 12px; }
.float-btn {
    width: 58px; height: 58px; border-radius: 50%;
    display: grid; place-items: center;
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35);
    transition: transform .2s;
}
.float-btn:hover { transform: scale(1.06); }
.float-btn .icon { width: 26px; height: 26px; }
.float-chat { background: var(--sage); color: #fff; }
.float-call { background: #fff; color: var(--ink); }

.toast {
    position: fixed; left: 50%; bottom: 28px; z-index: 120;
    transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
    background: var(--ink); color: #fff; padding: 14px 22px; border-radius: var(--radius);
    font-weight: 500; transition: opacity .25s, transform .25s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal on scroll ---------- */

.rise { animation: rise 1s var(--ease) both; }
.rise:nth-child(2) { animation-delay: .12s; }
.rise:nth-child(3) { animation-delay: .24s; }
.rise:nth-child(4) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
