:root {
    --brand: #286DE8;
    --brand-dark: #1B4FB0;
    --brand-soft: #EAF1FE;
    --ink: #0F172A;
    --muted: #5B6478;
    --line: #E4E8F0;
    --bg: #FFFFFF;
    --bg-alt: #F6F8FC;
    --radius: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
section { padding: 96px 0; }
.eyebrow {
    display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em;
    text-transform: uppercase; color: var(--brand); background: var(--brand-soft);
    padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 700; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--muted); font-size: 18px; margin-top: 14px; }

/* Nav */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .85); backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 22px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav-links { display: flex; align-items: center; gap: 32px; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px;
    padding: 13px 22px; border-radius: 14px; transition: transform .15s, background .15s, box-shadow .15s;
    border: 0; cursor: pointer; font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px rgba(40, 109, 232, .7); }
.btn-primary:hover { background: var(--brand-dark); }
.store-btn {
    display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: #fff;
    padding: 11px 20px; border-radius: 14px; transition: transform .15s, opacity .15s; min-width: 190px;
}
.store-btn:hover { transform: translateY(-2px); }
.store-btn svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-btn small { display: block; font-size: 11px; opacity: .75; line-height: 1.2; }
.store-btn strong { display: block; font-size: 17px; font-weight: 600; line-height: 1.2; }
.store-btn.disabled { opacity: .55; pointer-events: none; }
.store-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero */
.hero { padding: 72px 0 96px; background: radial-gradient(1200px 500px at 85% -10%, var(--brand-soft), transparent 60%); overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; }
.hero h1 span { color: var(--brand); }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 22px 0 34px; max-width: 520px; }
.hero-stats { display: flex; gap: 36px; margin-top: 44px; }
.hero-stats div strong { display: block; font-size: 22px; }
.hero-stats div span { color: var(--muted); font-size: 14px; }

.phone-wrap { position: relative; display: flex; justify-content: center; }
.phone {
    width: 290px; aspect-ratio: 9 / 19; border-radius: 44px; background: #0B1220; padding: 12px;
    box-shadow: 0 40px 80px -30px rgba(15, 23, 42, .45); position: relative; z-index: 2;
}
.phone-screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; position: relative; background: #000; }
.phone-screen > img { width: 100%; height: 100%; object-fit: cover; }
.phone-screen::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 25%, transparent 55%, rgba(0,0,0,.75) 100%);
}
.reel-ui { position: absolute; inset: 0; z-index: 2; color: #fff; text-align: left; display: flex; flex-direction: column; justify-content: space-between; padding: 26px 16px 20px; }
.reel-top { display: flex; justify-content: center; gap: 16px; font-size: 13px; font-weight: 600; }
.reel-top span { opacity: .7; }
.reel-top span.on { opacity: 1; border-bottom: 2px solid #fff; padding-bottom: 2px; }
.reel-bottom h4 { font-size: 16px; font-weight: 600; }
.reel-bottom p { font-size: 12px; opacity: .85; }
.reel-price { display: inline-block; margin-top: 8px; background: var(--brand); padding: 4px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.reel-side { position: absolute; right: 12px; bottom: 110px; display: flex; flex-direction: column; gap: 16px; align-items: center; font-size: 11px; }
.reel-side svg { width: 26px; height: 26px; }
.float-card {
    position: absolute; z-index: 3; background: #fff; border-radius: 16px; padding: 12px 16px;
    box-shadow: 0 20px 40px -18px rgba(15, 23, 42, .35); display: flex; align-items: center; gap: 12px;
    font-size: 14px; font-weight: 600; white-space: nowrap;
}
.float-card small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.float-card .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.float-card .ic svg { width: 20px; height: 20px; }
.fc-1 { top: 16%; left: 0; }
.fc-2 { bottom: 36%; right: 0; }
.blob { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: var(--brand); opacity: .12; filter: blur(10px); top: 50%; left: 50%; transform: translate(-50%, -50%); }

/* Features */
.features { background: var(--bg-alt); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
    transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(15, 23, 42, .25); }
.card .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 20px; }
.card .ic svg { width: 26px; height: 26px; }
.card h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--muted); }

/* How it works */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.panel { border-radius: 24px; padding: 40px; border: 1px solid var(--line); }
.panel.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.panel h3 { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.panel > p { color: var(--muted); margin-bottom: 28px; }
.panel.dark > p { color: #A7B0C4; }
.steps { list-style: none; display: grid; gap: 20px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.steps li::before {
    counter-increment: step; content: counter(step); width: 40px; height: 40px; border-radius: 12px;
    background: var(--brand-soft); color: var(--brand); font-weight: 700; display: grid; place-items: center;
}
.panel.dark .steps li::before { background: var(--brand); color: #fff; }
.steps strong { display: block; font-size: 17px; }
.steps span { color: var(--muted); font-size: 15px; }
.panel.dark .steps span { color: #A7B0C4; }

/* Browse by type */
.types-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.type-group { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 32px; }
.type-group h3 { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 600; margin-bottom: 20px; }
.type-group h3 .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.type-group h3 .ic svg { width: 22px; height: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-alt);
    font-weight: 500; font-size: 15px; transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* App showcase */
.showcase { background: var(--ink); color: #fff; overflow: hidden; }
.showcase .section-head p { color: #A7B0C4; }
.showcase .eyebrow { background: rgba(40, 109, 232, .18); color: #8DB4FF; }
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: end; }
.screen-item { text-align: center; }
.screen-item .phone { width: 100%; max-width: 250px; margin: 0 auto 24px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); border: 1px solid #1F2A40; }
.screen-item.mid .phone { max-width: 270px; }
.screen-item h3 { font-size: 20px; font-weight: 600; }
.screen-item p { color: #A7B0C4; font-size: 15px; max-width: 280px; margin: 6px auto 0; }
.app-screen { background: #fff; color: var(--ink); height: 100%; font-size: 11px; display: flex; flex-direction: column; text-align: left; }
.phone-screen.app-screen::after { display: none; }
.app-screen .bar { padding: 22px 14px 10px; font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
.app-screen .hero-img { height: 42%; background: url('../img/login.png') center / cover; position: relative; }
.app-screen .hero-img span { position: absolute; left: 10px; bottom: 10px; background: rgba(0,0,0,.55); color: #fff; padding: 3px 8px; border-radius: 6px; font-size: 10px; }
.app-screen .body { padding: 12px 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; }
.tour .t-info .meta { display: block; font-size: 10px; }
.app-screen .title { font-size: 14px; font-weight: 700; }
.app-screen .meta { color: var(--muted); }
.app-screen .price { color: var(--brand); font-weight: 700; font-size: 14px; }
.tabs-mini { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs-mini span { padding: 4px 9px; border-radius: 999px; background: var(--bg-alt); font-size: 10px; font-weight: 500; }
.tabs-mini span.on { background: var(--brand); color: #fff; }
.spec-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.spec-row div { background: var(--bg-alt); border-radius: 8px; padding: 7px 4px; text-align: center; font-weight: 600; }
.spec-row small { display: block; color: var(--muted); font-weight: 400; font-size: 9px; }
.mini-btn { background: var(--brand); color: #fff; text-align: center; padding: 9px; border-radius: 10px; font-weight: 600; font-size: 12px; }
.tour { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.tour .thumb { width: 44px; height: 44px; border-radius: 10px; background: url('../img/login.png') center / cover; flex-shrink: 0; }
.tour .t-info { flex: 1; min-width: 0; }
.tour .t-info b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status { font-size: 9px; font-weight: 600; padding: 3px 7px; border-radius: 999px; }
.status.ok { background: #E3F7EA; color: #1A7F42; }
.status.wait { background: #FFF4DB; color: #9A6700; }
.status.done { background: var(--brand-soft); color: var(--brand); }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-alt); border-radius: 10px; padding: 3px; font-weight: 600; text-align: center; }
.seg span { padding: 6px; border-radius: 8px; }
.seg span.on { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* Safety */
.safety .container { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.safety h2 { margin-bottom: 16px; }
.safety .lead { color: var(--muted); font-size: 18px; }
.safety-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.safety-item { padding: 24px; border-radius: var(--radius); background: var(--bg-alt); }
.safety-item .ic { width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; box-shadow: 0 4px 12px -6px rgba(15, 23, 42, .2); }
.safety-item .ic svg { width: 22px; height: 22px; }
.safety-item h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.safety-item p { color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { background: var(--bg-alt); }
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 24px; transition: box-shadow .2s; }
.faq-list details[open] { box-shadow: 0 16px 32px -24px rgba(15, 23, 42, .3); }
.faq-list summary {
    list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 17px;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: "+"; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft);
    color: var(--brand); display: grid; place-items: center; font-size: 20px; font-weight: 500; transition: transform .2s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .answer { color: var(--muted); padding-bottom: 20px; }

/* CTA */
.cta-box {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; border-radius: 32px;
    padding: 64px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden;
}
.cta-box::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .07); right: -120px; top: -160px; }
.cta-box h2 { color: #fff; }
.cta-box p { opacity: .85; font-size: 18px; margin: 14px 0 30px; }
.cta-box .store-btn { background: #fff; color: var(--ink); }
.cta-logo { justify-self: center; width: 180px; height: 180px; border-radius: 44px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .4); position: relative; z-index: 1; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: 15px; }
footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
footer nav { display: flex; gap: 24px; }
footer nav a:hover { color: var(--ink); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 960px) {
    section { padding: 72px 0; }
    .hero .container, .split, .cta-box { grid-template-columns: 1fr; }
    .hero { text-align: center; padding-top: 48px; }
    .hero p.lead { margin-left: auto; margin-right: auto; }
    .store-row, .hero-stats { justify-content: center; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .cta-box { padding: 44px 28px; text-align: center; }
    .cta-box .store-row { justify-content: center; }
    .cta-logo { display: none; }
    .types-grid, .safety .container { grid-template-columns: 1fr; }
    .screens { grid-template-columns: 1fr; gap: 56px; }
    .safety { text-align: center; }
    .safety-item { text-align: left; }
}
@media (max-width: 640px) {
    .nav-links a:not(.btn) { display: none; }
    .grid-3, .safety-list { grid-template-columns: 1fr; }
    .type-group { padding: 24px 20px; }
    .faq-list details { padding: 0 18px; }
    .panel { padding: 28px 22px; }
    .hero-stats { gap: 24px; }
    .fc-1 { left: -6px; }
    .fc-2 { right: -6px; }
    .phone { width: 250px; }
    footer .container { flex-direction: column; text-align: center; }
}

/* ---------- Shared: nav active, section header ---------- */
.nav-links a.active { color: var(--brand); }
.section-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 36px; flex-wrap: wrap; }
.link-arrow { color: var(--brand); font-weight: 600; display: inline-block; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Property cards ---------- */
.prop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prop-card {
    display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    transition: transform .2s, box-shadow .2s; height: 100%;
}
.prop-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(15, 23, 42, .3); }
.prop-img { position: relative; aspect-ratio: 4 / 3; background: var(--bg-alt); overflow: hidden; }
.prop-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.prop-card:hover .prop-img img { transform: scale(1.04); }
.prop-badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.prop-badges.static { position: static; margin-bottom: 14px; }
.badge { font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: #fff; color: var(--ink); }
.badge.sale { background: var(--brand); color: #fff; }
.badge.rent { background: #0E9F6E; color: #fff; }
.badge.featured { background: #FFB020; color: #3B2600; }
.badge.plain { background: var(--bg-alt); border: 1px solid var(--line); }
.prop-count { position: absolute; right: 12px; bottom: 12px; background: rgba(15, 23, 42, .65); color: #fff; font-size: 12px; padding: 4px 9px; border-radius: 8px; }
.prop-body { padding: 18px 20px 20px; }
.prop-price { font-size: 22px; font-weight: 700; color: var(--brand); }
.prop-price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.prop-title { font-size: 17px; font-weight: 600; margin: 4px 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prop-loc { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prop-loc svg { width: 16px; height: 16px; flex-shrink: 0; }
.prop-specs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.prop-specs span + span::before { content: "·"; margin-right: 14px; color: var(--line); color: #B6BDCB; }

/* ---------- Listings page ---------- */
.page-head { padding: 56px 0 36px; background: radial-gradient(900px 360px at 90% -20%, var(--brand-soft), transparent 60%); }
.page-head h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 800; }
.page-head p { color: var(--muted); font-size: 18px; margin-top: 6px; }
.filters {
    margin-top: 28px; display: grid; grid-template-columns: 2fr repeat(4, 1fr) auto; gap: 10px;
    background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 10px;
    box-shadow: 0 16px 40px -28px rgba(15, 23, 42, .35);
}
.filters input, .filters select {
    width: 100%; font: inherit; font-size: 15px; color: var(--ink); border: 1px solid var(--line); background: var(--bg-alt);
    border-radius: 12px; padding: 11px 12px; outline: none; min-width: 0;
}
.filters select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6478' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; padding-right: 32px; }
.filters input:focus, .filters select:focus { border-color: var(--brand); background-color: #fff; }
.f-search { position: relative; }
.f-search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }
.f-search input { padding-left: 38px; }
.filters .btn { justify-content: center; padding: 11px 22px; }
.clear-link { display: inline-block; margin-top: 12px; color: var(--muted); font-size: 14px; text-decoration: underline; }
.listing-results { padding: 24px 0 96px; }
.empty { text-align: center; padding: 64px 20px; border: 1px dashed var(--line); border-radius: 24px; }
.empty .ic { width: 64px; height: 64px; border-radius: 18px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin: 0 auto 18px; }
.empty .ic svg { width: 30px; height: 30px; }
.empty h3 { font-size: 22px; }
.empty p { color: var(--muted); margin: 6px 0 22px; }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 44px; }
.pager a, .pager span { min-width: 42px; height: 42px; padding: 0 14px; border-radius: 12px; display: grid; place-items: center; font-weight: 600; border: 1px solid var(--line); background: #fff; }
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .disabled { color: #B6BDCB; }
.pager .dots { border: 0; background: none; }

/* ---------- Detail page ---------- */
.detail { padding: 28px 0 72px; }
.crumbs { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; margin-bottom: 20px; min-width: 0; }
.crumbs a:hover { color: var(--brand); }
.crumbs .here { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gallery { position: relative; display: grid; gap: 10px; border-radius: 24px; overflow: hidden; height: 480px; }
.gallery.g-1 { grid-template-columns: 1fr; }
.gallery.g-2 { grid-template-columns: 1fr 1fr; }
.gallery.g-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery.g-3 .g-item:first-child { grid-row: span 2; }
.gallery.g-4 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery.g-4 .g-item:first-child { grid-row: span 2; }
.gallery.g-4 .g-item:nth-child(4) { grid-column: span 2; }
.gallery.g-5 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery.g-5 .g-item:first-child { grid-row: span 2; }
.g-item { position: relative; border: 0; padding: 0; background: var(--bg-alt); cursor: zoom-in; overflow: hidden; min-height: 0; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.g-item:hover img { transform: scale(1.03); }
.g-tag { position: absolute; left: 12px; top: 12px; background: rgba(15,23,42,.7); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 8px; }
.g-more { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); color: #fff; display: grid; place-items: center; font-size: 20px; font-weight: 600; }
.g-all {
    position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
    background: #fff; color: var(--ink); font: inherit; font-weight: 600; font-size: 14px; padding: 10px 14px; border-radius: 12px;
    box-shadow: 0 8px 20px -8px rgba(15, 23, 42, .4);
}
.g-all svg { width: 18px; height: 18px; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; margin-top: 36px; align-items: start; }
.d-title { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
.d-loc { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 17px; margin-top: 8px; }
.d-loc svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; }
.d-price-mobile { display: none; font-size: 28px; font-weight: 700; color: var(--brand); margin-top: 14px; }
.d-price-mobile small, .side-price small { font-size: 16px; color: var(--muted); font-weight: 500; }
.key-specs { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 8px; }
.key-specs div { flex: 1 1 110px; background: var(--bg-alt); border-radius: 16px; padding: 16px 18px; }
.key-specs strong { display: block; font-size: 22px; }
.key-specs span { color: var(--muted); font-size: 14px; }
.d-block { padding-top: 32px; margin-top: 32px; border-top: 1px solid var(--line); }
.d-block h2 { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.about { color: #364056; font-size: 17px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 600; text-align: right; }
.d-video { width: 100%; border-radius: 18px; background: #000; max-height: 520px; }
.nearby { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.nearby > div { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.nearby .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.nearby .ic svg { width: 20px; height: 20px; }
.nearby strong { display: block; font-size: 15px; }
.nearby small { color: var(--muted); font-size: 14px; }
.map { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); height: 340px; margin-bottom: 12px; }
.map iframe { width: 100%; height: 100%; border: 0; }

.detail-side { position: sticky; top: 96px; }
.side-card { border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: 0 24px 48px -32px rgba(15, 23, 42, .35); background: #fff; }
.side-price { font-size: 32px; font-weight: 700; color: var(--brand); line-height: 1.2; }
.side-sub { color: var(--muted); font-size: 14px; }
.owner { display: flex; align-items: center; gap: 12px; margin: 22px 0; padding: 14px; background: var(--bg-alt); border-radius: 16px; }
.owner img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #fff; }
.owner strong { display: block; }
.owner small { color: var(--muted); }
.side-cta p { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.side-cta p strong { color: var(--ink); display: block; font-size: 16px; }
.side-cta .store-row { flex-direction: column; }
.side-cta .store-btn { width: 100%; }
.share-btn { width: 100%; justify-content: center; margin-top: 12px; background: #fff; color: var(--ink); border: 1px solid var(--line); }
.share-btn svg { width: 18px; height: 18px; }
.share-btn:hover { border-color: var(--brand); color: var(--brand); }
.similar { background: var(--bg-alt); }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 12, 22, .94); display: flex; align-items: center; justify-content: center; padding: 24px 64px; }
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); border-radius: 12px; object-fit: contain; }
.lightbox figcaption { color: #CBD2E0; font-size: 14px; }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; cursor: pointer; border-radius: 50%; width: 48px; height: 48px; font-size: 30px; line-height: 1; display: grid; place-items: center; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.2); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

@media (max-width: 960px) {
    .prop-grid { grid-template-columns: 1fr 1fr; }
    .filters { grid-template-columns: 1fr 1fr; }
    .f-search, .filters .btn { grid-column: 1 / -1; }
    .detail-grid { grid-template-columns: 1fr; gap: 8px; }
    .detail-side { position: static; margin-top: 32px; }
    .d-price-mobile { display: block; }
    .gallery { height: 380px; }
    .nearby { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .prop-grid { grid-template-columns: 1fr; }
    .gallery { height: 280px; border-radius: 18px; grid-template-columns: 1fr !important; grid-template-rows: 1fr !important; }
    .gallery .g-item:not(:first-child) { display: none; }
    .gallery .g-item:first-child { grid-row: auto; }
    .facts, .nearby { grid-template-columns: 1fr; }
    .side-card { padding: 22px; }
    .lightbox { padding: 16px; }
    .lb-nav { top: auto; bottom: 20px; transform: none; }
}

/* Mobile sticky booking bar (detail page) */
.m-book { display: none; }
@media (max-width: 960px) {
    .m-book {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; align-items: center; justify-content: space-between; gap: 12px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
        border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -20px rgba(15, 23, 42, .35);
    }
    .m-book strong { font-size: 20px; color: var(--brand); }
    .m-book small { color: var(--muted); }
    .m-book .btn { padding: 11px 18px; }
    body:has(.m-book) { padding-bottom: 76px; }
    #book { scroll-margin-top: 90px; }
}
