/* ==========================================================================
   APS Penthouse — main stylesheet
   ========================================================================== */

/* ---- Fonts ---- */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/geist-cyrillic-ext.woff2") format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/geist-cyrillic.woff2") format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/geist-vietnamese.woff2") format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/geist-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/geist-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-italic-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-italic-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---- Design tokens ---- */
:root {
  --navy: #1F2A44;
  --navy-light: #34416A;
  --gold: #C6A75E;
  --cream: #F7F3EA;
  --cream-dark: #E8DCC8;
  --sand: #F1E8D6;
  --sand-light: #F4EEE2;
  --border: #EDE4D3;
  --border-soft: #F1EADB;
  --border-strong: #DCCDB2;
  --ink: #1F2A44;
  --ink-soft: #3A4258;
  --ink-mid: #4A5268;
  --muted: #5A6275;
  --muted-light: #8A8F9C;
  --white: #fff;
  --green: #25A366;
  --pad-x: clamp(16px, 4vw, 56px);
  --radius-card: 18px;
}

/* ---- Base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* clip (not hidden): hidden makes body a scroll container and breaks the sticky header */
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Geist, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--navy-light); }
input, select, textarea, button { font-family: inherit; }
img { display: block; max-width: 100%; }

.page { min-height: 100vh; display: flex; flex-direction: column; background: var(--cream); }
main { flex: 1; }
.section { width: 100%; margin: 0 auto; padding: clamp(58px, 6vw, 96px) var(--pad-x) 0; }
.section--flush-top { padding-top: clamp(15px, 1vw, 56px); }
.section--pad-bottom { padding-bottom: clamp(58px, 6vw, 96px); }
.section-title { font-size: clamp(28px, 3.5vw, 40px); letter-spacing: -0.03em; font-weight: 600; margin: 0; }
.eyebrow { font-size: 13px; font-weight: 500; color: var(--ink); letter-spacing: 0.04em; text-transform: uppercase; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 11px 18px; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-light); color: var(--white); }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--cream-dark); color: var(--navy); }
.btn--outline { background: var(--white); border: 1px solid var(--border-strong); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }
.btn--ghost { background: none; border: 0; padding: 0; color: var(--muted); font-size: 14px; cursor: pointer; text-align: left; }
.btn--ghost:hover { color: var(--ink); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 234, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--cream-dark);
}
.site-header__inner { width: 100%; padding: 12px var(--pad-x); display: flex; align-items: center; gap: 12px 28px; }
.site-nav { flex: 1 1 auto; min-width: 0; display: flex; gap: 4px; justify-content: flex-start; }
.site-nav__link { white-space: nowrap; background: transparent; color: var(--ink-mid); border: 0; border-radius: 8px; padding: 8px 12px; font-size: 14px; font-weight: 500; cursor: pointer; }
.site-nav__link:hover { color: var(--ink); }
.site-nav__link.is-active { background: var(--sand); color: var(--ink); }
.header-call { display: flex; align-items: center; gap: 8px; background: var(--navy); color: var(--white); border-radius: 10px; padding: 10px 16px; font-size: 14px; font-weight: 500; }
.header-call:hover { background: var(--navy-light); color: var(--white); }

/* Mobile header bar */
.site-header__mobile { display: none; width: 100%; padding: 10px 16px; align-items: center; justify-content: space-between; gap: 12px; }
.menu-toggle { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--white); display: grid; place-items: center; cursor: pointer; padding: 0; }
.site-header__mobile-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.header-call--mobile { height: 44px; padding: 0 14px; }
.mobile-nav { display: none; border-top: 1px solid var(--cream-dark); background: var(--cream); padding: 8px 16px 16px; flex-direction: column; gap: 2px; }
.mobile-nav.is-open { display: flex; }
.mobile-nav .site-nav__link { text-align: left; border-radius: 10px; padding: 14px; font-size: 16px; }

@media (max-width: 859px) {
  .site-header__inner { display: none; }
  .site-header__mobile { display: flex; }
}

/* ---- Hero ---- */
.hero { position: relative; border-radius: 24px; overflow: hidden; min-height: clamp(480px, 72vh, 700px); display: grid; place-items: center; background: var(--navy); }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 50% 55%, rgba(31,42,68,0.58) 0%, rgba(31,42,68,0.36) 65%, rgba(31,42,68,0.12) 100%),
    linear-gradient(180deg, rgba(240,190,120,0.32) 0%, rgba(240,190,120,0.08) 50%, rgba(240,190,120,0) 70%);
}
.hero__content { position: relative; z-index: 1; width: 100%; max-width: 820px; padding: clamp(40px, 8vw, 80px) clamp(16px, 4vw, 40px); text-align: center; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(232,220,200,0.35); background: rgba(31,42,68,0.45); border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--cream-dark); }
.hero__badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero__title { font-size: clamp(38px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; margin: 22px 0 18px; color: var(--white); text-wrap: balance; }
.hero__title em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; color: var(--gold); }
.hero__subtitle { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: var(--cream-dark); max-width: 560px; margin: 0 0 36px; text-wrap: pretty; }
.hero-search { pointer-events: auto; width: 100%; max-width: 680px; display: flex; flex-wrap: wrap; gap: 8px; background: var(--white); border-radius: 16px; padding: 8px; box-shadow: 0 20px 48px -16px rgba(0,0,0,0.45); text-align: left; }
.hero-search__input { flex: 1 1 220px; min-width: 0; border: 0; outline: none; padding: 14px; font-size: 16px; background: transparent; color: var(--ink); }
.hero-search__select { flex: 1 1 120px; border: 0; border-left: 1px solid var(--cream-dark); padding: 12px; font-size: 14px; background: transparent; color: var(--ink-mid); outline: none; }
.hero-search__submit { flex: 1 0 auto; border-radius: 12px; padding: 14px 28px; font-size: 15px; font-weight: 600; }

/* ---- Featured cards ---- */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 32px; }
.section-head .section-title { margin-top: 8px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.project-card { display: block; cursor: pointer; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.project-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -16px rgba(31,42,68,0.18); }
.project-card__media { height: 220px; position: relative; background: var(--sand-light); display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; }
.project-card__chip { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,0.94); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 500; pointer-events: none; }
.project-card__body { padding: 20px; }
.project-card__top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.project-card__name { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.project-card__price { font-size: 15px; font-weight: 600; white-space: nowrap; }
.project-card__location { font-size: 14px; color: var(--muted); margin-top: 4px; }
.project-card__meta { display: flex; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-soft); font-size: 13px; color: var(--ink-mid); }

/* ---- Reviews ---- */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; margin-top: 32px; }
.review-card { margin: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 28px; display: flex; flex-direction: column; gap: 24px; }
.review-card blockquote { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink); text-wrap: pretty; }
.review-card figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.review-card__avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--sand); color: var(--ink); display: grid; place-items: center; font-size: 14px; font-weight: 600; }
.review-card__name { display: block; font-size: 14px; font-weight: 600; }
.review-card__role { display: block; font-size: 13px; color: var(--muted); }

/* ---- CTA banner ---- */
.cta { width: 100%; margin: 0 auto; padding: clamp(58px, 6vw, 96px) var(--pad-x); }
.cta__box { background: var(--navy); border-radius: 24px; padding: clamp(36px, 6vw, 64px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.cta__text { max-width: 560px; }
.cta__title { color: var(--white); font-size: clamp(28px, 3.5vw, 40px); letter-spacing: -0.03em; font-weight: 600; margin: 0 0 10px; text-wrap: balance; }
.cta__sub { color: var(--cream-dark); font-size: 16px; line-height: 1.6; margin: 0; }
.cta .btn--gold { padding: 14px 22px; font-size: 15px; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--cream-dark); background: var(--white); }
.site-footer__cols { width: 100%; margin: 0 auto; padding: clamp(34px, 6vw, 56px) var(--pad-x) 32px; display: flex; flex-wrap: wrap; gap: 40px; }
.site-footer__about { flex: 1 1 260px; }
.site-footer__about p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; max-width: 300px; }
.site-footer__col { flex: 1 1 180px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.site-footer__col--contact { flex: 1 1 220px; color: var(--muted); }
.site-footer__heading { font-weight: 600; margin-bottom: 4px; color: var(--ink); }
.site-footer__col a { color: var(--muted); }
.site-footer__col a:hover { color: var(--ink); }
.site-footer__map { flex: 1 1 300px; min-height: 180px; }
.site-footer__map iframe { width: 100%; height: 180px; border: 0; border-radius: 14px; display: block; }
.site-footer__bottom { width: 100%; margin: 0 auto; padding: 0 var(--pad-x) 24px; }
.seo-links { border-top: 1px solid var(--border-soft); padding-top: 18px; }
.seo-links summary { cursor: pointer; font-size: 13px; font-weight: 500; color: var(--muted); }
.seo-links__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 24px; margin-top: 14px; }
.seo-links__grid a { font-size: 13px; color: var(--muted); }
.seo-links__grid a:hover { color: var(--ink); }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 24px; font-size: 13px; color: var(--muted-light); }

/* ---- Floating WhatsApp ---- */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: var(--white); display: grid; place-items: center; font-size: 13px; font-weight: 600; box-shadow: 0 10px 24px -8px rgba(31,42,68,0.35); transition: transform .15s; }
.wa-float:hover { color: var(--white); transform: scale(1.05); }
@media (max-width: 859px) { .wa-float { width: 48px; height: 48px; } }

/* ---- Floating favourites (stacked above the WhatsApp button) ---- */
.fav-float { position: fixed; right: 16px; bottom: 80px; z-index: 60; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--white); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -8px rgba(31,42,68,0.35); transition: transform .15s; }
.fav-float:hover { transform: scale(1.05); }
.fav-float svg { fill: none; stroke: var(--gold); }
.fav-float__count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--gold); color: var(--white); font-size: 11px; font-weight: 600; display: grid; place-items: center; }
@media (max-width: 859px) { .fav-float { width: 48px; height: 48px; bottom: 74px; } }

/* ---- Favourites page ---- */
.fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 24px; }
.fav-card { position: relative; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; display: flex; flex-direction: column; }
.fav-card__media { display: block; height: 200px; background: var(--sand-light); }
.fav-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fav-card__media--empty { display: grid; place-items: center; font-size: 13px; color: var(--muted-light); }
.fav-card__remove { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--white); display: grid; place-items: center; cursor: pointer; }
.fav-card__remove svg { fill: var(--gold); stroke: var(--gold); }
.fav-card__remove:hover { border-color: var(--ink); }
.fav-card__remove:hover svg { fill: none; stroke: var(--ink); }
.fav-card__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.fav-card__chip { align-self: flex-start; background: #F0F0EE; color: #6B7375; }
.fav-card__title { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.fav-card__title a { color: var(--ink); }
.fav-card__title a:hover { color: var(--gold); }
.fav-card__area { font-size: 13px; color: var(--muted); }
.fav-card__prices { display: flex; gap: 24px; margin-top: 4px; }
.fav-card__price-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-light); }
.fav-card__price-value { font-size: 15px; font-weight: 600; color: var(--ink); }
.fav-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 12px; }

/* ==========================================================================
   Projects listing page
   ========================================================================== */
.listing-title { font-size: clamp(36px, 5vw, 52px); letter-spacing: -0.035em; font-weight: 600; margin: 0; }
.listing-count { font-size: 16px; color: var(--muted); margin: 10px 0 28px; }

.filter-bar { background: var(--white); border: 1px solid var(--cream-dark); border-radius: 14px; padding: 8px; display: flex; flex-wrap: wrap; gap: 8px; box-shadow: 0 8px 24px -16px rgba(31,42,68,0.15); }
.filter-bar input { flex: 2 1 220px; min-width: 0; }
.filter-bar input, .filter-bar select { border: 1px solid var(--border); background: #FBF8F2; border-radius: 10px; padding: 11px 14px; font-size: 14px; outline: none; color: var(--ink); }
.filter-bar select { flex: 1 1 130px; padding: 11px 12px; }
.filter-bar__reset { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; align-self: center; background: var(--white); border: 1px solid var(--border-strong); border-radius: 10px; padding: 11px 18px; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; }
.filter-bar__reset:hover { border-color: var(--ink); color: var(--ink); }

/* Select2-style area picker (options come from the CRM) */
.area-search { position: relative; flex: 2 1 220px; min-width: 0; }
.area-search input[type="text"] { width: 100%; padding-right: 36px; }
.filter-bar .area-search input[type="text"] { border: 1px solid var(--border); background: #FBF8F2; border-radius: 10px; padding: 11px 36px 11px 14px; font-size: 14px; outline: none; color: var(--ink); }
.filter-bar .area-search input[type="text"]:focus { border-color: var(--border-strong); }
.area-search__clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--sand-light); color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.area-search__clear:hover { background: var(--cream-dark); color: var(--ink); }
.area-search__dropdown { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; margin: 0; padding: 6px; list-style: none; background: var(--white); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: 0 16px 40px -16px rgba(31,42,68,0.28); max-height: 260px; overflow-y: auto; }
.area-search__option { padding: 10px 12px; border-radius: 8px; font-size: 14px; color: var(--ink); cursor: pointer; }
.area-search__option:hover { background: var(--sand-light); }
.area-search__option.is-selected { background: var(--sand); font-weight: 600; }
.area-search__empty { padding: 10px 12px; font-size: 14px; color: var(--muted); }

/* Area picker inside the hero search pill */
.hero-search .area-search { flex: 1 1 220px; }
.hero-search .area-search input[type="text"] { border: 0; outline: none; padding: 14px 36px 14px 14px; font-size: 16px; background: transparent; color: var(--ink); border-radius: 12px; }

.listing-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 28px; }

.listing-card { position: relative; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; box-shadow: 0 1px 2px rgba(31,42,68,0.04); }
.listing-card:hover { box-shadow: 0 14px 36px -20px rgba(31,42,68,0.25); }
.listing-card__fav { position: absolute; top: 14px; right: 14px; z-index: 6; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--white); display: grid; place-items: center; cursor: pointer; }
.listing-card__fav:hover { border-color: var(--ink); }
.listing-card__fav svg { fill: none; stroke: var(--ink); }
.listing-card__fav.is-active svg { fill: var(--gold); stroke: var(--gold); }
.listing-card__row { display: flex; flex-wrap: wrap; }

.listing-card__gallery { flex: 1 1 240px; max-width: 340px; min-height: 230px; position: relative; margin: 10px; border-radius: 12px; overflow: hidden; background: var(--sand-light); }
@media (max-width: 859px) { .listing-card__gallery { max-width: none; } }
.listing-card__slide { position: absolute; inset: 0; opacity: 0; z-index: 1; transition: opacity .3s; display: grid; place-items: center; color: var(--muted); font-size: 13px; text-align: center; padding: 12px; }
.listing-card__slide.is-active { opacity: 1; z-index: 2; }
.listing-card__slide:has(img) { padding: 0; }
.listing-card__slide a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.listing-card__slide img { width: 100%; height: 100%; object-fit: cover; }
.listing-card__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.92); color: var(--ink); font-size: 16px; cursor: pointer; box-shadow: 0 2px 8px rgba(31,42,68,0.18); }
.listing-card__arrow:hover { background: var(--white); }
.listing-card__arrow--prev { left: 10px; }
.listing-card__arrow--next { right: 10px; }
.listing-card__counter { position: absolute; right: 10px; bottom: 10px; z-index: 5; background: rgba(31,42,68,0.78); color: var(--white); border-radius: 999px; padding: 3px 10px; font-size: 12px; pointer-events: none; }

.listing-card__body { flex: 5 1 460px; min-width: 0; padding: 22px 24px; display: flex; flex-direction: column; gap: 18px; }
.listing-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 24px; padding-right: 44px; padding-bottom: 10px; border-bottom: 1px solid var(--gold); }
@media (max-width: 859px) { .listing-card__head { padding-right: 0; } }
.listing-card__head-main { flex: 1 1 280px; min-width: 0; }
.chip { border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 500; }
.listing-card__type { font-size: 13px; color: var(--muted); }
.listing-card__title { cursor: pointer; font-size: 21px; font-weight: 600; letter-spacing: -0.015em; margin: 10px 0 0; }
.listing-card__title a:hover { color: var(--navy-light); }
.listing-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 6px; font-size: 14px; color: var(--muted); }
.listing-card__area { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.listing-card__prices { display: flex; gap: 28px; margin-top: 8px; }
.price-block { padding: 8px 0; }
.price-block__label { font-size: 11px; color: var(--muted); letter-spacing: 0.02em; }
.price-block__value { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-top: 1px; }
.price-block--asking { background: var(--navy); color: var(--white); border-radius: 10px; padding: 8px 16px; }
.price-block--asking .price-block__label { color: var(--cream-dark); }

.listing-card__specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 16px; margin-top: 14px; }
.spec__label { font-size: 12px; color: var(--muted); }
.spec__value { font-size: 14px; font-weight: 600; margin-top: 3px; }
.spec__unit { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.listing-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.listing-card__share { height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--white); display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; color: var(--ink); }
.listing-card__share:hover { border-color: var(--ink); }
.listing-card__highlights { border-top: 1px solid var(--border-soft); background: #FBF8F2; padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.listing-card__highlights-label { font-size: 13px; font-weight: 600; }
.tag { background: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--ink-soft); }

/* Utility */
.d-none { display: none !important; }

/* AJAX list loader */
.list-loader { display: flex; justify-content: center; padding: 40px 0; }
.list-loader__spinner { width: 36px; height: 36px; border: 3px solid var(--cream-dark); border-top-color: var(--navy); border-radius: 50%; animation: list-spin .8s linear infinite; }
@keyframes list-spin { to { transform: rotate(360deg); } }

.no-results { margin-top: 28px; background: var(--white); border: 1px dashed var(--border-strong); border-radius: var(--radius-card); padding: 56px 24px; text-align: center; }
.no-results__title { font-size: 18px; font-weight: 600; }
.no-results p { font-size: 14px; color: var(--muted); margin: 8px 0 20px; }

/* ==========================================================================
   Project detail page
   ========================================================================== */
.detail-section { padding-top: clamp(19px, 6vw, 32px); }
.breadcrumb { font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); font-size: 13px; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .is-current { color: var(--ink); }

.detail-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin: 18px 0 24px; }
.detail-head__title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.detail-head__title { font-size: clamp(32px, 4.5vw, 48px); letter-spacing: -0.035em; font-weight: 600; margin: 0; }
.detail-head__chip { border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 500; }
.detail-head__meta { font-size: 15px; color: var(--muted); margin-top: 6px; }
.detail-head__price { text-align: right; }
.detail-head__price-label { font-size: 13px; color: var(--muted); }
.detail-head__price-value { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); grid-auto-rows: clamp(140px, 16vw, 220px); gap: 10px; }
.gallery__slot { position: relative; min-width: 0; border-radius: 16px; background: var(--sand-light); display: grid; place-items: center; color: var(--muted); font-size: 13px; overflow: hidden; }
.gallery__slot--main { grid-row: span 2; grid-column: 1 / -1; }

.detail-layout { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 40px; align-items: flex-start; }
.detail-main { flex: 999 1 560px; min-width: min(100%, 300px); display: flex; flex-direction: column; gap: 20px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--cream-dark); overflow-x: auto; scrollbar-width: none; }
.tabs__tab { white-space: nowrap; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 12px 14px; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; }
.tabs__tab.is-active { border-bottom-color: var(--ink); color: var(--ink); }
.tab-panel { display: none; flex-direction: column; gap: 20px; }
.tab-panel.is-active { display: flex; }

.facts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.fact-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; }
.fact-card__label { font-size: 12px; color: var(--muted); }
.fact-card__value { font-size: 15px; font-weight: 600; margin-top: 4px; }

.panel-card { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.panel-card__title { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 12px; }
.panel-card p { font-size: 15px; line-height: 1.7; color: var(--ink-soft); margin: 0; text-wrap: pretty; }
.highlight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 24px; }
.highlight-item { display: flex; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--ink); }
.highlight-item .check { color: var(--ink); font-weight: 600; }
.amenities-title { font-size: 15px; font-weight: 600; margin: 28px 0 12px; }
.amenity-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.amenity-tags .tag { background: var(--sand-light); border: 0; padding: 6px 12px; }

.media-card { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 10px; }
.video-placeholder { aspect-ratio: 16 / 9; border-radius: 12px; background: var(--navy); display: grid; place-items: center; color: var(--white); text-align: center; }
.video-placeholder__play { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,0.14); display: grid; place-items: center; margin: 0 auto 12px; font-size: 20px; }
.video-placeholder__label { font-size: 14px; color: var(--cream-dark); }
.media-card iframe { width: 100%; height: 380px; border: 0; border-radius: 12px; display: block; }
.media-card__caption { padding: 14px 10px 6px; font-size: 14px; color: var(--ink-soft); }

.enquiry { flex: 1 1 300px; position: sticky; top: 88px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; box-shadow: 0 12px 32px -20px rgba(31,42,68,0.2); }
.enquiry__title { font-size: 18px; font-weight: 600; margin: 0; }
.enquiry__sub { font-size: 14px; color: var(--muted); margin: 6px 0 18px; }
.enquiry__form { display: flex; flex-direction: column; gap: 10px; }
.enquiry__form input { border: 1px solid var(--cream-dark); border-radius: 10px; padding: 12px 14px; font-size: 14px; outline: none; color: var(--ink); }
.enquiry__form .btn { margin-top: 4px; padding: 13px; }
.enquiry__thanks { display: none; }
.enquiry.is-sent .enquiry__thanks { display: block; }
.enquiry.is-sent .enquiry__lead { display: none; }
.enquiry__check { width: 40px; height: 40px; border-radius: 50%; background: #E6F3EE; color: var(--gold); display: grid; place-items: center; font-weight: 600; }
.enquiry__thanks h2 { font-size: 18px; font-weight: 600; margin: 14px 0 6px; }
.enquiry__thanks p { font-size: 14px; color: var(--muted); margin: 0; }
.enquiry__links { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border-soft); }
.enquiry__wa { display: flex; justify-content: center; align-items: center; gap: 8px; border: 1px solid var(--border-strong); border-radius: 10px; padding: 11px; font-size: 14px; font-weight: 500; color: var(--ink); }
.enquiry__wa:hover { border-color: var(--gold); color: var(--gold); }

.similar { margin-top: 72px; }
.similar__title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 20px; }
.similar__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.similar-card { display: block; cursor: pointer; background: var(--white); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.similar-card:hover { box-shadow: 0 12px 32px -16px rgba(31,42,68,0.18); }
.similar-card__media { height: 160px; position: relative; background: var(--sand-light); display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.similar-card__body { padding: 16px; }
.similar-card__top { display: flex; justify-content: space-between; gap: 8px; }
.similar-card__name { font-size: 16px; font-weight: 600; }
.similar-card__price { font-size: 14px; font-weight: 600; }
.similar-card__location { font-size: 13px; color: var(--muted); margin-top: 4px; }
