/* Roya Real Estate — site-wide styles (mixed: standard skeleton + minimal details) */
:root {
  --navy: #0B2447;
  --navy-2: #163A66;
  --navy-3: #1b3a6b;
  --gold: #B8860B;
  --gold-l: #F0CE6E;
  --ink: #141c26;
  --muted: #6b7686;
  --line: #e6eaf0;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --wa: #25D366;
  --radius: 12px;
  --font: "Segoe UI", Arial, "Helvetica Neue", sans-serif;
  --serif: Cambria, Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; }
a { color: var(--navy); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- topbar ---------- */
.topbar { background: var(--navy); color: #b9c8dd; font-size: 12.5px; padding: 8px 32px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.topbar a { color: var(--gold-l); }
.topbar .sep { opacity: .4; margin: 0 8px; }

/* ---------- nav ---------- */
nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: space-between; padding: 14px 32px; border-bottom: 1px solid var(--line); }
.logo { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--navy); letter-spacing: 4px; line-height: 1; }
.logo small { display: block; font-family: var(--font); font-size: 9px; letter-spacing: 7px; color: var(--gold); font-weight: 700; margin-top: 3px; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a { padding: 10px 16px; font-size: 15px; font-weight: 700; color: #2f3947; border-radius: 8px; transition: .15s; letter-spacing: .2px; }
.nav-links a:hover { color: var(--navy); background: var(--bg-soft); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.btn { display: inline-block; border: none; cursor: pointer; font-family: var(--font); font-weight: 700; border-radius: 9px; padding: 10px 20px; font-size: 13.5px; transition: .15s; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #1fb457; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #9a7410; }
.btn-ghost { background: none; color: var(--navy); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--navy); }

/* ---------- hero (mixed: skyline + clean search) ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--navy-3), var(--navy) 55%, #071a33); }
.hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero svg.skyline { position: absolute; bottom: 0; left: 0; width: 100%; height: 46%; }
.hero .inner { position: relative; z-index: 2; max-width: 960px; margin: 0 auto; text-align: center; padding: 64px 24px 40px; color: #fff; }
.hero .eyebrow { font-size: 11px; letter-spacing: 6px; text-transform: uppercase; color: var(--gold-l); }
.hero h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 300; letter-spacing: 1px; margin-top: 14px; line-height: 1.2; }
.hero h1 b { font-weight: 700; }
.hero p { margin-top: 12px; color: #c9d7ea; font-size: 15px; }
.searchbar { margin: 34px auto 0; max-width: 780px; background: #fff; border-radius: 12px; padding: 8px; display: flex; gap: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.28); }
.searchbar select, .searchbar input { border: none; outline: none; background: #f4f6fa; border-radius: 8px; padding: 13px 14px; font-size: 14px; color: var(--ink); }
.searchbar select { flex: 0 0 130px; cursor: pointer; font-weight: 700; }
.searchbar input { flex: 1; min-width: 0; }
.searchbar .btn { flex: 0 0 auto; padding: 13px 26px; border-radius: 8px; }
.quick { margin-top: 20px; font-size: 12.5px; color: #a9bad2; }
.quick a { color: var(--gold-l); margin: 0 8px; border-bottom: 1px dotted rgba(240,206,110,.5); }
/* hero quick pills（首页三线快捷入口） */
.quick { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.quick .pill { margin: 0; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(240,206,110,.45); background: rgba(255,255,255,.08); color: var(--gold-l); font-size: 13px; text-decoration: none; }
.quick .pill:hover { background: rgba(240,206,110,.18); }
/* 区块 CTA（View all） */
.more { text-align: center; margin-top: 26px; }

/* ---------- sections ---------- */
.section { max-width: 1180px; margin: 0 auto; padding: 22px 24px 38px; }
.section-title { text-align: center; margin-bottom: 26px; }
.section-title .eyebrow { font-size: 11px; letter-spacing: 5px; text-transform: uppercase; color: var(--gold); }
.section-title h2 { font-size: clamp(28px, 3.4vw, 36px); font-weight: 700; letter-spacing: -.3px; color: var(--navy); margin-top: 8px; }
.section-title p { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* line cards */
.lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.line-card { position: relative; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: .2s; }
.line-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(11,36,71,.12); border-color: transparent; }
.line-card .ph { position: relative; height: 190px; background: linear-gradient(135deg, var(--navy-2), var(--navy)); overflow: hidden; }
.line-card .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.line-card .ph svg { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.line-card .ph .corner { position: absolute; top: 14px; left: 14px; background: rgba(11,36,71,.88); color: var(--gold-l); font-size: 11px; font-weight: 700; letter-spacing: 1px; padding: 4px 12px; border-radius: 999px; }
.line-card .body { padding: 20px 22px 22px; }
.line-card h3 { font-size: 19px; color: var(--navy); letter-spacing: .3px; }
.line-card p { font-size: 13.5px; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.line-card .go { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: .5px; }

/* listing cards */
.grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.plist { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; transition: .22s; display: flex; flex-direction: column; }
.plist:hover { box-shadow: 0 16px 38px rgba(11,36,71,.12); transform: translateY(-4px); }
.plist .ph { position: relative; height: 200px; background: linear-gradient(135deg, var(--navy-3), var(--navy)); overflow: hidden; }
.plist .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: .3s; z-index: 2; }
.plist:hover .ph img { transform: scale(1.04); }
.plist .ph svg { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.plist .badge { position: absolute; top: 12px; left: 12px; background: rgba(11,36,71,.9); color: var(--gold-l); font-size: 10.5px; font-weight: 700; letter-spacing: 1px; padding: 4px 12px; border-radius: 999px; z-index: 3; }
.plist .sub-badge { position: absolute; top: 12px; right: 12px; background: var(--gold); color: #fff; font-size: 10.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px; z-index: 3; }
.plist .body { padding: 16px 18px 8px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.plist .price { font-size: 21px; font-weight: 800; color: var(--navy); }
.plist .title { font-size: 18px; font-weight: 800; color: var(--navy); letter-spacing: -.2px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plist .loc { font-size: 13px; color: var(--muted); }
.plist .specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.plist .chip { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 11.5px; color: #4a5563; font-weight: 600; }
.plist .chip-gold { background: #fdf3dc; border-color: #e8d5a0; color: #9a6b0f; }
.plist .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; border-top: 1px solid var(--line); padding: 11px 18px 12px; }
.plist .foot .detail { font-size: 12.5px; font-weight: 700; color: var(--navy); }
.plist .foot .wa-mini { background: var(--wa); color: #fff; border: none; border-radius: 8px; padding: 7px 14px; font-size: 12px; font-weight: 700; cursor: pointer; }
.plist .foot .wa-mini:hover { background: #1fb457; }
/* P0-3：Trakheesi permit（listing 底部，对标 Property Finder/Bayut） */
.plist .permit { margin: 0; padding: 8px 18px 10px; font-size: 10.5px; letter-spacing: .4px; color: #7a8698; border-top: 1px dashed var(--line); background: #fafbfd; }

/* Regulatory information（详情页，对标 PF 的监管信息块） */
.reg-box { margin-top: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.reg-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 12px 18px; font-size: 13px; font-weight: 800; letter-spacing: .8px; color: var(--navy); text-transform: uppercase; }
.reg-body { display: grid; grid-template-columns: 1fr 190px; gap: 18px; padding: 16px 18px; align-items: start; }
.reg-rows { display: grid; gap: 10px; }
.reg-row { display: grid; grid-template-columns: 170px 1fr; gap: 12px; font-size: 13px; }
.reg-row span { color: var(--muted); }
.reg-row b { color: var(--navy); font-weight: 700; }
.reg-qr-wrap { text-align: center; }
.reg-qr svg, .reg-qr img { display: block; margin: 0 auto; width: 150px; height: 150px; }
.reg-qr-cap { font-size: 11px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
@media (max-width: 720px) { .reg-body { grid-template-columns: 1fr; } .reg-row { grid-template-columns: 130px 1fr; } }

/* Project documents (brochure / floor plan / payment plan) */
.doc-list { display: flex; flex-direction: column; gap: 8px; }
.doc { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 13.5px; color: var(--navy); text-decoration: none; background: #fafbfd; }
.doc:hover { background: #f0f4fa; border-color: #c8d4e4; }
.doc-note { font-size: 11.5px; color: var(--muted); margin-top: 10px; line-height: 1.6; }

/* DLD verification line at the bottom of the listing page */.dld-line { margin-top: 26px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.dld-badge { background: #e8f6ec; color: #166534; border: 1px solid #b6e2c4; border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 700; }
.dld-badge.muted { background: var(--bg-soft); color: var(--muted); border-color: var(--line); }
.dld-meta { font-size: 11.5px; color: var(--muted); }
/* Listing meta line under the title */
.meta-line { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.about-box { margin-top: 18px; }
.pay-box { margin-top: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.pay-body { padding: 16px 18px; }
.pay-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pay-table th { text-align: left; font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.pay-table td { padding: 9px 10px; border-bottom: 1px dashed var(--line); color: var(--navy); }
.pay-table tr:last-child td { border-bottom: none; }
.pay-tag { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.pay-tag.paid { background: #e8f6ec; color: #166534; }
.pay-tag.due { background: #fff4e5; color: #92400e; }
.pay-note { font-size: 11.5px; color: var(--muted); margin-top: 10px; line-height: 1.6; }

/* trust strip */
.trust { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust .in { max-width: 1180px; margin: 0 auto; padding: 40px 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.trust .item .num { font-size: 30px; font-weight: 800; color: var(--gold); font-family: var(--serif); }
.trust .item .t { font-size: 14px; font-weight: 700; color: var(--navy); margin-top: 4px; }
.trust .item .d { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* footer */
footer { background: var(--navy); color: #9db2cc; padding: 44px 24px 34px; font-size: 13px; }
footer .in { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
footer h4 { color: #fff; font-size: 13.5px; letter-spacing: 1px; margin-bottom: 12px; }
footer a { color: #b9c8dd; }
footer a:hover { color: var(--gold-l); }
footer .brand { font-family: var(--serif); font-size: 22px; color: #fff; letter-spacing: 3px; }
footer .brand small { font-size: 9px; letter-spacing: 6px; color: var(--gold); display: block; margin: 4px 0 12px; }
footer .fine { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 18px; text-align: center; font-size: 12px; color: #7d91ab; }

/* ---------- listings page ---------- */
.page-head { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; padding: 40px 24px 34px; text-align: center; }
.page-head h1 { font-weight: 300; letter-spacing: 1px; font-size: 30px; }
.page-head p { color: #b9c8dd; font-size: 14px; margin-top: 8px; }
.filters { max-width: 1180px; margin: -26px auto 0; position: relative; z-index: 5; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; box-shadow: 0 8px 26px rgba(11,36,71,.08); }
.filters select, .filters input { border: 1px solid var(--line); background: #f8fafc; border-radius: 8px; padding: 10px 12px; font-size: 13.5px; outline: none; color: var(--ink); }
.filters .grow { flex: 1; min-width: 180px; }
.tabs { display: flex; gap: 6px; }
.tab-pill { border: 1px solid var(--line); background: #fff; color: #4a5563; border-radius: 999px; padding: 7px 16px; font-size: 13px; font-weight: 700; cursor: pointer; }
.tab-pill.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.result-info { max-width: 1180px; margin: 26px auto 8px; padding: 0 24px; font-size: 13px; color: var(--muted); }
.listing-wrap { max-width: 1180px; margin: 0 auto; padding: 10px 24px 70px; }
.empty { background: #fff; border: 1px dashed var(--line); border-radius: 14px; text-align: center; padding: 60px 24px; color: var(--muted); }
.empty .btn { margin-top: 16px; }

/* ---------- property detail ---------- */
.detail-wrap { max-width: 1120px; margin: 0 auto; padding: 24px 24px 64px; }
.crumb { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.crumb a { color: var(--navy); }
.gallery { display: grid; grid-template-columns: 2.2fr 1fr; gap: 12px; border-radius: 16px; overflow: hidden; }
.gallery .main { position: relative; height: 420px; background: linear-gradient(135deg, var(--navy-3), var(--navy)); }
.gallery .main .slider { position: absolute; inset: 0; z-index: 2; }
.gallery .main .slider img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery .main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.gallery .main svg { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.gallery .main .badge { z-index: 3; }
/* slider controls */
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(11,36,71,.55); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: .15s; }
.g-nav:hover { background: rgba(11,36,71,.85); }
.g-nav.prev { left: 12px; }
.g-nav.next { right: 12px; }
.g-count { position: absolute; right: 14px; bottom: 12px; z-index: 5; background: rgba(11,36,71,.65); color: #fff; border-radius: 999px; padding: 4px 12px; font-size: 12px; letter-spacing: .5px; }
.thumb-btn.active { border-color: var(--gold); }
.gallery .side { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.gallery .side .ph { position: relative; background: linear-gradient(135deg, var(--navy-2), var(--navy)); overflow: hidden; }
.gallery .side .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.gallery .side .ph svg { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.detail-head { margin: 18px 0 2px; }
.detail-head h1 { font-size: 28px; font-weight: 700; color: var(--navy); line-height: 1.25; letter-spacing: -.2px; }
.detail-head .loc { color: var(--muted); font-size: 14px; margin-top: 4px; }
.detail-head .price { font-size: 32px; font-weight: 800; color: var(--navy); white-space: nowrap; letter-spacing: -.5px; margin-top: 10px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.fact { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; text-align: center; min-width: 96px; }
.fact b { display: block; font-size: 17px; color: var(--navy); }
.fact span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; margin-top: 18px; align-items: start; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.thumb-btn { border: 2px solid transparent; border-radius: 10px; overflow: hidden; padding: 0; cursor: pointer; background: #fff; width: 76px; height: 56px; transition: .15s; }
.thumb-btn:hover { border-color: var(--gold); }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-grid .box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.detail-grid .box h3 { font-size: 15px; color: var(--navy); margin-bottom: 12px; letter-spacing: .5px; }
.detail-grid .box p, .detail-grid .box li { font-size: 14px; color: #3d4856; line-height: 1.8; }
.detail-grid .box ul { padding-left: 18px; }
.contact-card { background: linear-gradient(160deg, var(--navy-2), var(--navy)); color: #fff; border-radius: 14px; padding: 26px; position: sticky; top: 90px; box-shadow: 0 10px 30px rgba(11,36,71,.18); }
.contact-card h3 { color: var(--gold-l); font-size: 15px; margin-bottom: 8px; letter-spacing: 1px; }
.contact-card .who { font-family: var(--serif); font-size: 20px; letter-spacing: 2px; }
.contact-card .meta { color: #b9c8dd; font-size: 12.5px; margin: 8px 0 16px; line-height: 1.8; }
.contact-card .btn { width: 100%; text-align: center; margin-top: 8px; }
.disclaimer { font-size: 12px; color: #97a1af; margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; }

/* ---------- chat widget ---------- */
.chat-fab { position: fixed; right: 20px; bottom: 76px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, var(--navy-2), var(--navy)); color: #fff; border: none; font-size: 24px; cursor: pointer; box-shadow: 0 8px 24px rgba(11,36,71,.35); }
.wa-fab { position: fixed; right: 20px; bottom: 18px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 27px; box-shadow: 0 8px 24px rgba(37,211,102,.4); }
.chat-panel { position: fixed; right: 20px; bottom: 148px; z-index: 91; width: 360px; max-width: calc(100vw - 40px); height: 480px; background: #fff; border-radius: 16px; box-shadow: 0 18px 60px rgba(11,36,71,.3); display: none; flex-direction: column; overflow: hidden; }
.chat-panel.open { display: flex; }
.chat-head { background: var(--navy); color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.chat-head b { font-size: 14px; letter-spacing: .5px; }
.chat-head span { font-size: 11px; color: #9db2cc; }
.chat-head .x { background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; }
.chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-soft); }
.chat-msg { max-width: 84%; padding: 9px 13px; border-radius: 12px; font-size: 13px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.chat-msg.bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.user { background: var(--navy); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 8px; background: var(--bg-soft); }
.chat-chips button { border: 1px solid var(--gold); color: var(--gold); background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 12px; cursor: pointer; }
.chat-input { display: flex; gap: 8px; padding: 10px 14px 14px; background: #fff; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; border: 1.5px solid var(--line); border-radius: 9px; padding: 10px 12px; font-size: 13px; outline: none; }
.chat-input button { background: var(--gold); color: #fff; border: none; border-radius: 9px; padding: 0 16px; font-weight: 700; cursor: pointer; }
.chat-link { display: inline-block; margin-top: 6px; color: var(--gold); font-weight: 700; font-size: 12.5px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .lines { grid-template-columns: 1fr; }
  .trust .in { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  footer .in { grid-template-columns: 1fr; }
  .searchbar { flex-wrap: wrap; }
  .searchbar select, .searchbar input { flex: 1 1 45%; }
  .searchbar .btn { flex: 1 1 100%; }
}

/* About + contact side by side */
.about-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; margin-top: 16px; align-items: start; }
@media (max-width: 860px) { .about-row { grid-template-columns: 1fr; } }

/* Download gate modal */
.gate-back { position: fixed; inset: 0; background: rgba(6,18,36,.72); display: flex; align-items: center; justify-content: center; z-index: 9999; padding: 18px; }
.gate-box { position: relative; width: 100%; max-width: 440px; background: #fff; border-radius: 16px; padding: 24px 22px 20px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.gate-box h3 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.gate-sub { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.gate-box input, .gate-box select { width: 100%; padding: 11px 13px; border: 1px solid #d8dee6; border-radius: 9px; font-size: 13.5px; margin-bottom: 10px; font-family: inherit; }
.gate-consent { display: flex; gap: 9px; align-items: flex-start; font-size: 11.5px; color: var(--muted); line-height: 1.5; margin: 4px 0 14px; }
.gate-consent input { width: auto; margin: 2px 0 0; }
.gate-x { position: absolute; top: 10px; right: 12px; border: none; background: transparent; font-size: 24px; line-height: 1; color: #97a1af; cursor: pointer; }
.gate-skip { display: block; text-align: center; margin-top: 10px; font-size: 12px; color: var(--muted); text-decoration: underline; }
.gate-err { color: #b03030; font-size: 12.5px; min-height: 16px; margin-bottom: 6px; }
/* Download gate: WhatsApp alternative line + zip doc highlight */
.gate-alt { margin-top: 10px; font-size: 12px; color: var(--muted); text-align: center; }
.gate-alt a { color: var(--navy); font-weight: 700; }
.doc-zip { background: #fdf3dc; border-color: #e8d5a0; font-weight: 700; }
/* Detail page polish: tighter, calmer typography */
.about-box h3 { margin-bottom: 8px; }
.about-box ul { margin: 0; padding-left: 18px; columns: 2; column-gap: 22px; }
.about-box li { margin: 7px 0; font-size: 14px; color: #33415c; break-inside: avoid; }
.about-box .box { padding: 20px 22px; }
.pay-box, .reg-box { margin-top: 22px; }
.detail-head .meta-line { margin-top: 6px; }
/* Trakheesi permit line (public advertising requirement) */
.permit-line { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 8px; letter-spacing: .2px; }
/* Nav: separate seller action from buyer links */
.nav-sep { display: inline-block; width: 1px; height: 18px; background: var(--line); margin: 0 10px; vertical-align: middle; }
.nav-links a.nav-sell { color: var(--gold); font-weight: 700; }
.nav-links a.nav-sell:hover { color: #8a6508; background: var(--bg-soft); }
/* Listing headline + tags (portal-style) */
.plist .headline { font-size: 12.5px; color: #47536b; margin-top: 6px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { font-size: 10.5px; font-weight: 700; letter-spacing: .3px; color: #7a5a06; background: #fdf3dc; border: 1px solid #efdfb6; border-radius: 999px; padding: 3px 9px; }
.detail-head .headline { font-size: 15px; color: #47536b; margin-top: 8px; line-height: 1.5; }
/* Hero overlay for text contrast (replaces the old skyline silhouette) */
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(6,18,36,.38) 0%, rgba(6,18,36,.55) 55%, rgba(6,18,36,.72) 100%); }
/* Card layout — Property Finder style hierarchy */
.plist .price { font-size: 24px; font-weight: 800; letter-spacing: -.4px; }
.plist .headline { font-size: 15px; font-weight: 500; color: #2a3547; line-height: 1.45; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.plist .specs-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 10px; font-size: 12.5px; color: #4a5563; }
.plist .addr { font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
/* Detail page specs line */
.detail-head .specs-line { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 13px; color: #4a5563; }
/* Same unit also available for rent / sale */
.twin-line { margin-top: 10px; font-size: 13px; color: #47536b; }
.twin-line a { color: var(--navy); font-weight: 700; text-decoration: underline; }
/* Homepage: separate sale and rent groups */
.prop-group { margin-top: 10px; }
.prop-group + .prop-group { margin-top: 34px; }
.group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.group-title { font-size: 20px; font-weight: 800; color: var(--navy); letter-spacing: -.2px; }
.group-link { font-size: 14px; font-weight: 800; color: #0B57D0; text-decoration: none; letter-spacing: .2px; }
.group-link:hover { text-decoration: underline; }
/* Project pages (/project/<slug>) */
.proj-hero { background-size: cover; background-position: center; padding: 40px 24px 36px; color: #fff; }
.proj-hero-in { max-width: 1120px; margin: 0 auto; }
.proj-hero .eyebrow { font-size: 11px; letter-spacing: 5px; text-transform: uppercase; color: #e8c96a; margin-top: 14px; }
.proj-hero h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -.5px; margin: 8px 0 6px; }
.proj-meta { font-size: 14px; color: #dfe8f3; }
.proj-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.proj-tabs { max-width: 1120px; margin: 0 auto; display: flex; gap: 4px; overflow-x: auto; padding: 0 16px; border-bottom: 1px solid var(--line); }
.ptab { border: none; background: none; cursor: pointer; padding: 14px 14px; font-size: 13.5px; font-weight: 700; color: #5b6673; border-bottom: 3px solid transparent; white-space: nowrap; }
.ptab.active { color: var(--navy); border-bottom-color: var(--gold); }
.proj-body { max-width: 1120px; margin: 0 auto; padding: 26px 24px 60px; }
.ptab-panel { display: none; }
.ptab-panel.active { display: block; }
.proj-body h2 { font-size: 22px; color: var(--navy); margin: 0 0 12px; }
.proj-body h3 { font-size: 15px; color: var(--navy); margin: 0 0 10px; }
.proj-body p { color: #4a5563; line-height: 1.75; font-size: 14px; }
.proj-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 860px) { .proj-grid { grid-template-columns: 1fr; } }
.proj-facts { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px 18px; }
.proj-facts .pf { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.proj-facts .pf:last-child { border-bottom: none; }
.proj-facts .pf span { color: var(--muted); }
.proj-facts .pf b { color: var(--navy); }
.proj-empty { color: var(--muted); font-size: 13.5px; }
/* Link to project page on listing detail */
.project-link { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 800; color: #0B57D0; text-decoration: none; }
.project-link:hover { text-decoration: underline; }
/* Homepage projects strip */
.proj-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.proj-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; transition: .15s; display: flex; flex-direction: column; }
.proj-card:hover { box-shadow: 0 12px 28px rgba(6,18,36,.12); transform: translateY(-2px); }
.pc-img { height: 130px; background-size: cover; background-position: center; background-color: var(--navy); }
.pc-body { padding: 12px 14px 14px; }
.pc-com { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.pc-name { font-size: 16px; font-weight: 800; color: var(--navy); margin-top: 3px; }
.pc-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pc-price { font-size: 13px; font-weight: 800; color: var(--navy); margin-top: 8px; }
/* Compact "Browse by project" strip */
.proj-strip { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 6px 0 18px; border-bottom: 1px solid var(--line); }
.ps-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); font-weight: 700; }
.proj-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.proj-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 700; color: var(--navy); text-decoration: none; transition: .15s; }
.proj-chip span { font-size: 11px; font-weight: 600; color: var(--muted); }
.proj-chip:hover { border-color: var(--gold); background: #fdf8ea; }
/* Mobile sticky CTA (Call / WhatsApp / Ask AI) */
.sticky-cta { display: none; }
@media (max-width: 720px) {
  .sticky-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000;
    background: #fff; border-top: 1px solid var(--line);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    gap: 8px; box-shadow: 0 -8px 24px rgba(6,18,36,.10);
  }
  .sc-btn {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
    text-decoration: none; border: none; cursor: pointer; border-radius: 10px;
    padding: 11px 6px; font-size: 13px; font-weight: 800; font-family: inherit;
  }
  .sc-btn span { font-size: 15px; }
  .sc-call { background: #eef3fb; color: var(--navy); }
  .sc-wa { background: #25D366; color: #fff; }
  .sc-ai { background: var(--navy); color: #fff; }
  /* keep floating chat buttons above the bar */
  .chat-fab, .wa-fab { bottom: 84px !important; }
  body { padding-bottom: 70px; }
}
/* Card: handover + payment-progress chips */
.sp-gold { background: #fdf3dc; border: 1px solid #efdfb6; color: #7a5a06; border-radius: 999px; padding: 2px 9px; font-weight: 700; }
/* Sell with us form */
.sell-form { background:#fff; border:1px solid var(--line); border-radius:14px; padding:22px; }
.sf-row { margin-bottom:14px; }
.sf-row label { display:block; font-size:11.5px; text-transform:uppercase; letter-spacing:1px; color:var(--muted); margin-bottom:6px; }
.sf-row input, .sf-row select { width:100%; padding:11px 13px; border:1px solid #d8dee6; border-radius:9px; font-size:14px; font-family:inherit; }
.sf-check { display:flex; gap:9px; align-items:flex-start; font-size:12.5px; color:#4a5563; margin:8px 0; line-height:1.5; }
.sf-check input { width:auto; margin-top:2px; }
.sf-err { color:#b03030; font-size:12.5px; min-height:16px; margin:6px 0 10px; }
.sell-ok { background:#e8f6ec; border:1px solid #b6e2c4; border-radius:14px; padding:22px; }
.sell-ok h3 { color:#166534; margin:0 0 8px; }
.sell-ok p { color:#33415c; font-size:13.5px; margin-bottom:14px; }
/* Developer page: independence note */
.dev-note { margin-top: 12px; font-size: 11.5px; color: #c9d7ea; max-width: 720px; line-height: 1.6; }
/* Chat close button: clear, circular, clickable */
.chat-head .x {
  width: 32px; height: 32px; flex: 0 0 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255,255,255,.12);
  font-size: 18px; line-height: 1; padding: 0; margin-left: 8px;
  transition: background .15s;
}
.chat-head .x:hover { background: rgba(255,255,255,.24); }
/* Chat: WhatsApp fallback link bubble */
.chat-wa-link { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--gold); text-decoration: underline; }
/* ---------- property page: balanced two-column layout ---------- */
.prop-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 22px; margin-top: 20px; align-items: start; }
.prop-layout .main-col { display: grid; gap: 18px; min-width: 0; }
.prop-layout .side-col { display: grid; gap: 16px; align-content: start; position: sticky; top: 88px; }
.prop-layout .box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.prop-layout .box h3 { font-size: 15px; color: var(--navy); margin-bottom: 10px; letter-spacing: .4px; }
.prop-layout .box p, .prop-layout .box li { font-size: 14px; color: #3d4856; line-height: 1.8; }
.prop-layout .about-box { min-height: 0; }
@media (max-width: 900px) {
  .prop-layout { grid-template-columns: 1fr; }
  .prop-layout .side-col { position: static; }
}
.map-card { display: flex; gap: 14px; align-items: flex-start; background: #F5F8FC; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.map-pin { font-size: 22px; line-height: 1; }
.map-name { font-weight: 600; color: var(--navy); font-size: 14.5px; margin-bottom: 4px; }
.map-note { font-size: 12.5px; color: #6b7787; line-height: 1.6; }
.map-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.btn-outline { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn-outline:hover { border-color: var(--gold); color: var(--navy); }
/* ---------- property page: gallery + summary side by side (desktop) ---------- */
.top-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(330px, 1fr); gap: 22px; align-items: start; }
.top-media { min-width: 0; }
.top-info { display: grid; gap: 16px; position: sticky; top: 88px; }
.top-info .detail-head { margin: 0; }
.top-info .detail-head h1 { font-size: 30px; }
.top-info .detail-head .price { font-size: 36px; }
.top-info .contact-card { position: static; }
@media (max-width: 980px) {
  .top-grid { grid-template-columns: 1fr; }
  .top-info { position: static; }
}
/* wider detail canvas on large screens + bigger gallery */
.detail-wrap { max-width: 1240px; }
.top-grid { grid-template-columns: minmax(0, 2.25fr) minmax(340px, 1fr); }
.gallery .main { height: 470px; }
.top-info .detail-head h1 { font-size: 32px; }
.top-info .detail-head .price { font-size: 38px; }
/* revert: property detail back to previous proportions */
.detail-wrap { max-width: 1120px; }
.gallery .main { height: 420px; }
/* ---------- homepage / listings: larger property cards on desktop ---------- */
.section { max-width: 1240px; }
.grid3 { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 24px; }
.plist .ph { height: 265px; }
.plist .price { font-size: 28px; }
.plist .title { font-size: 19px; }
.plist .headline { font-size: 15.5px; }
@media (max-width: 980px) {
  .grid3 { grid-template-columns: 1fr; }
  .plist .ph { height: 220px; }
}
/* grid density: 3 columns on desktop, 4 on very wide screens */
.grid3 { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 22px; }
.plist .ph { height: 230px; }
.plist .price { font-size: 26px; }
@media (min-width: 1560px) {
  .section { max-width: 1460px; }
  .grid3 { grid-template-columns: repeat(auto-fill, minmax(315px, 1fr)); gap: 20px; }
  .plist .ph { height: 205px; }
}
@media (max-width: 980px) {
  .grid3 { grid-template-columns: 1fr; }
  .plist .ph { height: 230px; }
}