/* =========================================================
   Alwin Property — listing portal theme
   Brand: Alwin corporate identity (tokens.css). White working surfaces, petrol for action
   and structure, red only as a marker. Prices and reference codes are set in Jost.
   ========================================================= */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.is-locked { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--petrol); color: var(--cream); }
:root { --ease: cubic-bezier(.22, .61, .36, 1); --ease-out: cubic-bezier(.16, 1, .3, 1); --pad: clamp(16px, 3vw, 40px); --container-max: 1320px; --header-height: 76px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 400; padding: 10px 16px; background: var(--petrol); color: var(--cream); border-radius: var(--radius-pill); }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.wrap { width: 100%; max-width: calc(var(--container-max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.wrap--narrow { max-width: calc(760px + 2 * var(--pad)); }
svg:has(> use) { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.btn > svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.btn--dark { background: var(--petrol); color: var(--white); }
.btn--dark:hover { background: var(--dark-raised); }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: #c42d1a; }
.btn--lime { background: var(--lime); color: var(--petrol); }
.btn--lime:hover { background: var(--cream); }
.btn--light { background: var(--white); color: var(--petrol); border-color: var(--line); }
.btn--light:hover { border-color: var(--petrol); }
.btn--outline { background: transparent; border-color: var(--line-strong); color: var(--petrol); }
.btn--outline:hover { border-color: var(--petrol); background: var(--petrol); color: var(--white); }
.btn--wa { background: #1f6b4a; color: var(--white); }
.btn--wa:hover { background: #18573c; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.link { font-size: 15px; font-weight: 500; color: var(--petrol); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.link:hover { color: var(--red); }
.link--arrow { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap; }
.link--arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .3s var(--ease-out); }
.link--arrow:hover svg { transform: translateX(3px); }
.tag__short { display: none; }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 6px; background: var(--white); color: var(--petrol); font-size: 12px; font-weight: 600; white-space: nowrap; }
.tag--red { background: var(--red); color: var(--white); }
.tag--lime { background: var(--lime); color: var(--petrol); }
.tag--line { background: transparent; border: 1px solid var(--line-strong); }
.tag--dark { background: var(--petrol); color: var(--white); }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; gap: 28px; height: var(--header-height); }
.header__logo { flex: none; color: var(--petrol); }
.header__logo .logo { display: block; height: 30px; width: auto; max-width: 220px; object-fit: contain; object-position: left center; }
.header__nav { display: flex; gap: 4px; margin-right: auto; }
.header__nav a { padding: 8px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink); transition: background-color .2s var(--ease); }
.header__nav a:hover { background: var(--surface-alt); }
.header__nav a[aria-current] { color: var(--petrol); box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.header__end { display: flex; align-items: center; gap: 18px; }
.header__phone { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--petrol); text-decoration: none; white-space: nowrap; }
.header__phone svg { color: var(--red); }
.header__lang { display: flex; gap: 2px; font-size: 13px; }
.header__lang a, .header__lang b { padding: 4px 6px; border-radius: 6px; text-decoration: none; }
.header__lang a { color: var(--ink-muted); }
.header__lang a:hover { background: var(--surface-alt); color: var(--ink); }
.header__lang b { font-weight: 700; color: var(--petrol); }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; }
.menu-btn span { display: grid; gap: 4px; width: 18px; }
.menu-btn i { display: block; height: 1.6px; border-radius: 1px; background: var(--petrol); }

.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; background: rgba(12, 32, 38, 0); transition: background-color .3s var(--ease), visibility 0s linear .3s; }
.drawer.is-open { visibility: visible; background: rgba(12, 32, 38, .45); transition: background-color .3s var(--ease); }
.drawer__panel { position: absolute; inset: 0 0 0 auto; width: min(380px, 88vw); display: flex; flex-direction: column; gap: 24px; padding: 20px; background: var(--white); transform: translateX(100%); transition: transform .35s var(--ease-out); overflow-y: auto; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; color: var(--petrol); }
.drawer__head .logo { height: 26px; width: auto; }
.drawer__close { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: none; cursor: pointer; }
.drawer__nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.drawer__nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--petrol); text-decoration: none; }
.drawer__nav a[aria-current] { color: var(--red); }
.drawer__foot { display: grid; gap: 16px; margin-top: auto; }
.drawer__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--petrol); text-decoration: none; }
.drawer__lang { display: flex; gap: 16px; font-size: 14px; }
.drawer__lang a { color: var(--ink-muted); text-decoration: none; }
.drawer__lang a[aria-current] { color: var(--petrol); font-weight: 600; }

/* ---------- sections ---------- */
.block { padding: clamp(48px, 6vw, 80px) 0; }
.block--tight { padding-top: 0; }
.block--alt { background: var(--surface-alt); }
.block--flush { padding-top: 0; }
.block + .block--tight { padding-top: 0; }
.block__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.block__title { font-family: var(--font-display); font-size: clamp(30px, 3.2vw, 46px); line-height: 1.06; font-weight: 500; letter-spacing: -.03em; color: var(--petrol); }
.block__title--gap { margin-bottom: 32px; }
.block__head--spaced { margin-top: clamp(56px, 7vw, 96px); }
.block__title--sm { font-size: clamp(22px, 2vw, 28px); margin-bottom: 20px; }
.block__head .block__title--sm { margin-bottom: 0; }
.block__lead { margin-top: 6px; max-width: 64ch; color: var(--ink-muted); }
.grid { display: grid; gap: 36px 24px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.empty { padding: 40px 0; color: var(--ink-muted); font-size: 17px; }

/* ---------- listing card ---------- */
.lcard { position: relative; display: flex; flex-direction: column; min-width: 0; }
.lcard__media { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 16px; background: var(--petrol-10); }
.lcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.lcard:hover .lcard__media img { transform: scale(1.04); }
.lcard__tags { position: absolute; left: 10px; top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.lcard__count { position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(var(--shade), .6); color: var(--white); font-size: 12px; line-height: 18px; }
.lcard__body { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; }
.lcard__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lcard__ref { flex: none; font-size: 12px; font-weight: 600; letter-spacing: .03em; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.lcard__price { font-family: var(--font-display); font-size: 25px; line-height: 1.15; font-weight: 600; letter-spacing: -.015em; color: var(--petrol); font-variant-numeric: tabular-nums; }
.cur { margin-right: .08em; font-size: .72em; font-weight: 500; opacity: .75; }
.lcard__dots { position: absolute; left: 50%; bottom: 10px; display: flex; gap: 4px; transform: translateX(-50%); opacity: 0; transition: opacity .2s var(--ease); }
.lcard__dots i { width: 18px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.55); }
.lcard__dots i.is-on { background: var(--white); }
.lcard__media:hover .lcard__dots { opacity: 1; }
.lcard__media { box-shadow: 0 1px 0 rgba(18,45,52,.04); }
.is-closed .lcard__price { color: var(--ink-faint); text-decoration: line-through; text-decoration-thickness: 1px; }
.lcard__title { font-family: var(--font-sans); font-size: 15px; line-height: 1.4; font-weight: 500; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lcard__title a { text-decoration: none; }
.lcard__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.lcard:hover .lcard__title a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.lcard__loc { display: flex; align-items: center; gap: 5px; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.lcard__loc svg { width: 15px; height: 15px; color: var(--red); }
.lcard .specs { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.specs { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; line-height: 20px; color: var(--ink); }
.specs li { display: inline-flex; align-items: center; gap: 6px; }
.specs svg { color: var(--petrol-60); }
.specs:not(.specs--compact) { gap: 10px 26px; font-size: 16px; }

/* ---------- project card ---------- */
.pcard { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--white); transition: box-shadow .2s var(--ease); }
.pcard:hover { box-shadow: 0 12px 32px rgba(18,45,52,.1); }
.pcard__media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--petrol-10); overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; }
.pcard__media .lcard__tags { left: 12px; top: 12px; }
.pcard__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; }
.pcard__title { font-family: var(--font-display); font-size: 22px; line-height: 1.15; font-weight: 500; color: var(--petrol); }
.pcard__title a { text-decoration: none; }
.pcard__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pcard__facts { display: flex; gap: 28px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.pcard__facts dt { font-size: 12px; color: var(--ink-muted); }
.pcard__facts dd { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--petrol); font-variant-numeric: tabular-nums; }

/* ---------- villas (link out) ---------- */
.villas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.villa { display: grid; grid-template-columns: 200px 1fr; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.villa__media { background: var(--petrol); min-height: 240px; }
.villa__media video, .villa__media img { width: 100%; height: 100%; object-fit: cover; }
.villa__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px; }
.villa__logo { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); }
.villa__name { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--petrol); }
.villa__desc { font-size: 15px; color: var(--ink-muted); }
.villa .btn { margin-top: auto; }

/* ---------- people ---------- */
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.person { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto auto 1fr; column-gap: 14px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); text-decoration: none; transition: border-color .2s var(--ease); }
.person:hover { border-color: var(--petrol); }
.person__photo { grid-row: span 4; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; font-size: 22px; }
.avatar--initials { display: flex; align-items: center; justify-content: center; background: var(--petrol); color: var(--cream); font-family: var(--font-display); font-weight: 500; }
.person__name { font-family: var(--font-display); font-size: 19px; line-height: 1.2; font-weight: 500; color: var(--petrol); }
.person__title { font-size: 14px; color: var(--ink-muted); }
.person__langs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.person__count { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--petrol); }
.person__langs abbr { padding: 1px 7px; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 11px; font-weight: 600; text-decoration: none; color: var(--petrol); }
.people--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- guide cards ---------- */
.post { display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.post__media { display: block; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--petrol-10); }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.post:hover .post__media img { transform: scale(1.04); }
.post__meta { display: flex; gap: 12px; font-size: 13px; color: var(--ink-muted); }
.post__meta span { font-weight: 600; color: var(--red); }
.post__title { font-family: var(--font-display); font-size: 20px; line-height: 1.3; font-weight: 500; color: var(--petrol); }
.post:hover .post__title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ---------- inner page header ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.crumbs li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--petrol); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-head { padding: 28px 0 clamp(28px, 3vw, 40px); border-bottom: 1px solid var(--line); }
.page-head .crumbs { margin-bottom: 18px; }
.page-head__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--petrol); }
.page-head__eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--red, #d64535); }
.page-head__title { max-width: 26ch; font-family: var(--font-display); font-size: clamp(32px, 3.6vw, 52px); line-height: 1.06; font-weight: 500; letter-spacing: -.025em; color: var(--petrol); }
.page-head__intro { max-width: 64ch; margin-top: 12px; font-size: 17px; color: var(--ink-muted); }
.page-head__image { display: block; width: 100%; max-height: 420px; margin-top: 28px; border-radius: 14px; object-fit: cover; }
video.page-head__image { aspect-ratio: 16 / 6; }
.page-head__reel { display: grid; grid-template-columns: repeat(var(--tiles, 3), 1fr); gap: 8px; height: clamp(240px, 32vw, 420px); margin-top: 28px; }
.page-head__reel video { display: block; width: 100%; height: 100%; border-radius: 14px; background: var(--petrol); object-fit: cover; }
@media (max-width: 600px) {
  .page-head__reel { grid-template-columns: 1fr 1fr; height: 280px; }
  .page-head__reel video:nth-child(3) { display: none; }
}
.status-page { padding-top: clamp(64px, 10vw, 140px); padding-bottom: clamp(64px, 10vw, 140px); }
.status-page__code { margin-bottom: 12px; font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--red); }
.status-page__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- search page ---------- */
.search-head { padding-top: 24px; padding-bottom: 24px; }
.search-head .crumbs { margin-bottom: 16px; }
.search-head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.search-head__title { font-family: var(--font-display); font-size: clamp(30px, 3.2vw, 44px); line-height: 1.08; font-weight: 500; letter-spacing: -.02em; color: var(--petrol); }
.search-head__intro { margin-top: 8px; max-width: 64ch; color: var(--ink-muted); }
.kind-switch { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-alt); }
.kind-switch a { padding: 9px 20px; border-radius: 9px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink-muted); }
.kind-switch a[aria-current] { background: var(--petrol); color: var(--white); }

.search { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 36px; align-items: start; padding-bottom: clamp(64px, 8vw, 112px); }
.search__filters { position: sticky; top: calc(var(--header-height) + 16px); max-height: calc(100vh - var(--header-height) - 32px); overflow-y: auto; scrollbar-width: thin; }
.filters { display: grid; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.filters__head { display: flex; align-items: center; justify-content: space-between; }
.filters__title { font-family: var(--font-display); font-size: 20px; font-weight: 500; color: var(--petrol); }
.filters__close { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; }
.filters .field { gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.filters .field legend { margin-bottom: 6px; padding: 0; font-size: 13px; font-weight: 600; color: var(--petrol); }
.filters .field input, .filters .field select { height: 44px; border-radius: 10px; font-size: 15px; }
.filters__price { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.filters__price select { grid-column: 1 / -1; }
.filters__price input, .filters__price select { width: 100%; height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); font-size: 15px; }
.filters__price input:focus, .filters__price select:focus { outline: none; border-color: var(--petrol); box-shadow: 0 0 0 3px var(--lime-40); }
.filters__note { margin-top: 6px; font-size: 12px; line-height: 17px; color: var(--ink-muted); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font-size: 14px; font-weight: 500; }
.seg input:checked + span { background: var(--petrol); border-color: var(--petrol); color: var(--white); }
.seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.filters__more { border-top: 1px solid var(--line); padding-top: 14px; }
.filters__more summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--petrol); }
.filters__features { display: grid; gap: 10px; margin-top: 14px; }
.filters__group { display: grid; gap: 14px; margin-top: 14px; }
.filters__checks { display: grid; gap: 8px; }
.filters .field .check input { width: 20px; height: 20px; margin-top: 1px; }
.filters .field .check span { font-size: 15px; font-weight: 400; color: var(--ink); }
.filters__checks--scroll { max-height: 236px; overflow-y: auto; padding: 2px 4px 2px 2px; overscroll-behavior: contain; }
.filters__checks small { margin-left: 4px; font-size: 13px; color: var(--ink-muted); }
.filters .seg span { height: 34px; padding: 0 10px; font-size: 14px; }
.filters__actions { position: sticky; bottom: 0; z-index: 1; display: flex; align-items: center; gap: 16px; margin: 0 -20px -20px; padding: 14px 20px 20px; border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; background: var(--white); }
.filters__actions .btn { flex: 1; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 24px; }
.toolbar__count { margin-right: auto; font-family: var(--font-display); font-size: 20px; font-weight: 500; color: var(--petrol); font-variant-numeric: tabular-nums; }
.toolbar__filters { display: none; }
.toolbar__sort select { height: 40px; padding: 0 38px 0 12px; border: 1px solid var(--line); border-radius: 10px; appearance: none; -webkit-appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23122d34' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 10px center / 16px no-repeat; font-size: 14px; cursor: pointer; }
.toolbar__display { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; }
.toolbar__display a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 7px; font-size: 14px; text-decoration: none; color: var(--ink-muted); }
.toolbar__display a[aria-current] { background: var(--petrol); color: var(--white); }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 36px 24px; }
.search__results .osm { margin-bottom: 32px; }
.empty-state { padding: clamp(32px, 5vw, 56px); border-radius: 14px; background: var(--surface-alt); }
.empty-state h2 { font-family: var(--font-display); font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; font-weight: 500; color: var(--petrol); }
.empty-state p { margin-top: 10px; max-width: 56ch; color: var(--ink-muted); }
.empty-state__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.pager { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 48px; font-size: 14px; }
.pager__pages { display: flex; gap: 6px; }
.pager__pages a, .pager__pages span { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; text-decoration: none; border: 1px solid var(--line); }
.pager__pages a:hover { border-color: var(--petrol); }
.pager__pages [aria-current] { background: var(--petrol); border-color: var(--petrol); color: var(--white); }
.pager__step { font-weight: 500; text-decoration: none; }
.pager__step.is-disabled { color: var(--ink-faint); }

/* ---------- map (click to load) ---------- */
.osm { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; aspect-ratio: 16 / 7; min-height: 280px; padding: 24px; border-radius: 14px; background-color: var(--mint); background-image: repeating-linear-gradient(0deg, transparent 0 39px, rgba(18,45,52,.06) 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, rgba(18,45,52,.06) 39px 40px); text-align: center; isolation: isolate; }
.osm-caption { margin-top: 8px; font-size: 13px; color: var(--ink-muted); }
.osm.is-loaded { padding: 0; display: block; }
.osm.is-loaded > :not(.leaflet-container) { display: none; }
.osm .leaflet-container { position: absolute; inset: 0; z-index: 0; font: inherit; }
/* fractional zoom leaves hairline gaps between tiles; let them overlap by half a pixel */
.osm .leaflet-container img.leaflet-tile { width: 256.5px !important; height: 256.5px !important; mix-blend-mode: normal; }
.osm-pin { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--red); border: 3px solid var(--white); box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.osm-price { display: inline-block; padding: 4px 9px; border-radius: 8px; background: var(--petrol); color: var(--white); font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: 0 4px 12px rgba(18,45,52,.3); transform: translate(-50%, -50%); transition: background .2s, color .2s, transform .2s var(--ease-out); cursor: pointer; }
.osm-price.is-hot, .leaflet-marker-icon:hover .osm-price { background: var(--lime); color: var(--petrol); transform: translate(-50%, -50%) scale(1.12); }
.osm .leaflet-control-attribution { font-size: 11px; line-height: 16px; }
.osm .leaflet-control-attribution a { color: var(--petrol-80); }
.osm .leaflet-popup-content-wrapper { padding: 0; border-radius: 12px; overflow: hidden; }
.osm .leaflet-popup-content { margin: 0; width: 240px !important; line-height: inherit; }
.osm .osm-card { display: grid; gap: 2px; padding-bottom: 12px; color: var(--ink); text-decoration: none; font: inherit; }
.osm .osm-card img { width: 100%; height: 150px; margin-bottom: 8px; object-fit: cover; }
.osm .osm-card :is(strong, span, small) { padding: 0 12px; }
.osm .osm-card strong { font-family: var(--font-display); font-size: 18px; font-weight: 500; color: var(--petrol); }
.osm .osm-card span { font-size: 14px; line-height: 19px; }
.osm .osm-card small { font-size: 12px; color: var(--ink-muted); }

/* Map view: cards on the left, the map stays on the right; filters move into the drawer. */
.search--map { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.search--map .results { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
.search--map .toolbar__filters { display: inline-flex; }
.search__map { position: sticky; top: calc(var(--header-height) + 16px); height: calc(100vh - var(--header-height) - 32px); }
.search__map .osm { height: 100%; min-height: 0; aspect-ratio: auto; }
.search--map .search__filters { position: fixed; z-index: 160; inset: 0 auto 0 0; width: min(400px, 92vw); max-height: none; background: var(--white); box-shadow: 0 0 60px rgba(12,32,38,.3); transform: translateX(-105%); transition: transform .4s var(--ease-out), visibility 0s linear .4s; visibility: hidden; }
.search--map .search__filters.is-open { transform: none; visibility: visible; transition: transform .4s var(--ease-out); }
.search--map .search__filters .filters { min-height: 100%; border: 0; border-radius: 0; }
.search--map .filters__close { display: inline-flex; }
body.filters-open { overflow: hidden; }
body.filters-open::after { content: ""; position: fixed; inset: 0; z-index: 150; background: rgba(12,32,38,.4); }
.leaflet-popup-content { font-size: 14px; line-height: 1.4; }
.leaflet-popup-content a { color: var(--petrol); font-weight: 600; }

/* ---------- detail pages (listing / project) ---------- */
.detail-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 20px; padding-bottom: 16px; }
.detail-top .crumbs { min-width: 0; }
.share { display: inline-flex; align-items: center; gap: 8px; flex: none; border: 0; background: none; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--petrol); }
.share.is-copied { color: var(--success); }
.mosaic { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: clamp(340px, 58vh, 600px); border-radius: 24px; overflow: hidden; }
.mosaic__item { position: relative; display: block; padding: 0; border: 0; background: var(--petrol-10); cursor: zoom-in; overflow: hidden; }
.mosaic__item:first-child { grid-row: span 2; }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.mosaic__item:hover img { transform: scale(1.03); }
.mosaic__item:focus-visible { outline-offset: -4px; }
.mosaic__more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(var(--shade), .55); color: var(--white); font-family: var(--font-display); font-size: 30px; font-weight: 500; }
.mosaic__all { position: absolute; right: 14px; bottom: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.mosaic--single { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.mosaic--few { grid-template-columns: 2fr 1fr; grid-template-rows: repeat(3, 1fr); }
.mosaic--few .mosaic__item:first-child { grid-row: span 3; }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 4vw, 64px); align-items: start; padding-top: 32px; padding-bottom: clamp(64px, 8vw, 112px); }
.detail__aside { position: sticky; top: calc(var(--header-height) + 20px); }
.detail__head { padding-bottom: 28px; }
.detail__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.detail__title { font-family: var(--font-display); font-size: clamp(28px, 3vw, 42px); line-height: 1.1; font-weight: 500; letter-spacing: -.02em; color: var(--petrol); max-width: 28ch; }
.detail__loc { margin: 12px 0 24px; font-size: 16px; }
.keyfacts { display: flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.keyfacts > div { flex: 1 1 120px; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; }
.keyfacts > div + div { border-left: 1px solid var(--line); }
.keyfacts dt { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-muted); }
.keyfacts dt svg { width: 16px; height: 16px; color: var(--red); }
.keyfacts dd { font-family: var(--font-display); font-size: clamp(22px, 2vw, 28px); line-height: 1.1; font-weight: 600; color: var(--petrol); font-variant-numeric: tabular-nums; }
.detail__section { padding: 32px 0; border-top: 1px solid var(--line); }
.detail__h { margin-bottom: 20px; font-family: var(--font-display); font-size: 24px; line-height: 1.2; font-weight: 500; color: var(--petrol); }
.detail__video { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: #000; }
.detail__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.detail .notice { margin-bottom: 20px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.facts > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--ink-muted); }
.facts dd { font-size: 16px; font-weight: 500; color: var(--petrol); }
.feature-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; }
.feature-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.feature-list svg { color: var(--red); stroke-width: 2; }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.plans__item { padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--white); overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; }
.plans__item img { width: 100%; height: 100%; object-fit: contain; }

.pricebox { padding: 28px; border-radius: 22px; background: var(--white); box-shadow: 0 1px 0 var(--line), 0 24px 48px rgba(18,45,52,.10); border: 1px solid var(--line); }
.pricebox__ref { font-size: 13px; color: var(--ink-muted); }
.pricebox__ref b { font-family: var(--font-display); font-weight: 600; letter-spacing: .04em; color: var(--petrol); }
.pricebox__label { margin-top: 12px; font-size: 13px; color: var(--ink-muted); }
.pricebox__price { margin-top: 6px; font-family: var(--font-display); font-size: clamp(30px, 2.6vw, 38px); line-height: 1.05; font-weight: 600; letter-spacing: -.02em; color: var(--petrol); font-variant-numeric: tabular-nums; }
.pricebox__label + .pricebox__price { margin-top: 0; }
.pricebox__price.is-closed { color: var(--ink-faint); text-decoration: line-through; text-decoration-thickness: 2px; }
.pricebox__sub { margin-top: 6px; font-size: 14px; color: var(--ink-muted); }
.agent { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.agent__who { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.agent__photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; font-size: 18px; }
.agent__name { display: block; font-family: var(--font-display); font-size: 19px; font-weight: 500; color: var(--petrol); }
.agent__title { display: block; font-size: 14px; color: var(--ink-muted); }
.agent__langs { margin-top: 10px; font-size: 13px; color: var(--ink-muted); }
.agent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.agent__actions .btn { padding: 0 12px; }
.agent__form-link { display: inline-block; margin-top: 14px; font-size: 14px; }
.inquiry { margin-top: 8px; padding: clamp(24px, 3.5vw, 40px); border-radius: 16px; background: var(--surface-alt); }
.inquiry__title { font-family: var(--font-display); font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; font-weight: 500; color: var(--petrol); }
.inquiry__lead { margin: 8px 0 24px; color: var(--ink-muted); }

/* project: unit table, payment plan, progress */
.units { border-top: 1px solid var(--petrol); }
.units__row { display: grid; grid-template-columns: 1.4fr .8fr 1fr 1.2fr; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.units__row--head { padding: 10px 0; font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.units__name { font-weight: 600; color: var(--petrol); }
.units__name small { display: block; font-weight: 400; color: var(--ink-muted); }
.units__price { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--petrol); font-variant-numeric: tabular-nums; }
.units__row.is-sold .units__price { color: var(--ink-faint); text-decoration: line-through; }
.units__plan { margin-left: 10px; font-size: 13px; }
.plan-steps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.plan-steps li { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 12px; background: var(--cream); color: var(--petrol); }
.plan-steps__value { font-family: var(--font-display); font-size: 34px; line-height: 1; font-weight: 600; }
.plan-steps__label { font-size: 15px; }
.timeline { display: grid; gap: 28px; padding-left: 26px; border-left: 1px solid var(--line-strong); }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -31px; top: 6px; width: 9px; height: 9px; border-radius: 2px; background: var(--red); }
.timeline time { font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.timeline h3 { margin: 4px 0 6px; font-family: var(--font-display); font-size: 20px; font-weight: 500; color: var(--petrol); }
.timeline p { color: var(--ink-muted); max-width: 60ch; }
.timeline__photos { display: flex; gap: 8px; margin-top: 12px; }
.timeline__photos img { width: 120px; height: 90px; border-radius: 8px; object-fit: cover; }

/* consultant profile */
.profile { display: grid; grid-template-columns: 240px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; padding-top: 12px; padding-bottom: clamp(48px, 6vw, 80px); }
.profile__photo { width: 100%; aspect-ratio: 1; border-radius: 16px; object-fit: cover; font-size: 80px; }
.profile__title { margin-top: 8px; font-size: 18px; color: var(--ink-muted); }
.profile__bio { margin-top: 20px; max-width: 62ch; font-size: 17px; line-height: 1.65; }
.profile .agent__actions { display: flex; flex-wrap: wrap; }

/* about */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.about__lead { font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.35; font-weight: 400; color: var(--petrol); }
.vm__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vm__card { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 3vw, 40px); border-radius: 16px; }
.vm__card--dark { background: var(--petrol); color: var(--on-dark); }
.vm__card--cream { background: var(--cream); color: var(--petrol); }
.vm__label { font-size: 14px; font-weight: 600; color: inherit; opacity: .75; }
.vm__text { font-family: var(--font-display); font-size: clamp(20px, 2vw, 26px); line-height: 1.35; }
.values__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.values__list li { padding: 22px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); }
.values__list h3 { font-family: var(--font-display); font-size: 21px; font-weight: 500; color: var(--petrol); }
.values__list p { margin-top: 6px; font-size: 15px; color: var(--ink-muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.stat { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; }
.stat__value { font-family: var(--font-display); font-size: clamp(40px, 4vw, 56px); line-height: 1; font-weight: 600; color: var(--petrol); font-variant-numeric: tabular-nums; }
.stat__value small { font-size: .5em; margin-left: 2px; color: var(--red); }
.stat__label { font-size: 15px; color: var(--ink-muted); }

/* ---------- prose ---------- */
.article { padding: clamp(40px, 5vw, 72px) 0; }
.article__date { margin-bottom: 20px; font-size: 14px; color: var(--ink-muted); }
.prose { max-width: 70ch; font-size: 17px; line-height: 1.75; color: #2f3436; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.8em; font-family: var(--font-display); font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; font-weight: 500; color: var(--petrol); }
.prose h3 { margin-top: 1.6em; font-family: var(--font-display); font-size: 21px; line-height: 1.3; font-weight: 500; color: var(--petrol); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { display: grid; gap: .5em; }
.prose ul li { position: relative; padding-left: 20px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 2px; background: var(--red); }
.prose ol { counter-reset: n; }
.prose ol li { position: relative; padding-left: 28px; counter-increment: n; }
.prose ol li::before { content: counter(n) "."; position: absolute; left: 0; font-weight: 600; color: var(--red); }
.prose a { color: var(--petrol); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--red); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; color: var(--petrol); background: var(--lime-40); white-space: nowrap; }
.prose--lead > p:first-child { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--ink); }

/* ---------- forms ---------- */
.contact { padding: clamp(40px, 5vw, 72px) 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact__heading { font-family: var(--font-display); font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; font-weight: 500; color: var(--petrol); }
.contact__lead { margin: 8px 0 28px; color: var(--ink-muted); }
.contact__list { margin-top: 24px; border-top: 1px solid var(--line); }
.contact__list > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact__list dt { font-size: 14px; font-weight: 600; color: var(--ink-muted); }
.contact__list dd { font-size: 16px; line-height: 26px; color: var(--petrol); }
.contact__list dd a:not(.link) { text-decoration: none; }
.contact__list dd a:not(.link):hover { text-decoration: underline; text-underline-offset: 4px; }
.contact__list .link { font-size: 14px; }
.contact__form { padding: clamp(24px, 3.5vw, 40px); border-radius: 16px; background: var(--surface-alt); scroll-margin-top: 100px; }
.map { padding-bottom: clamp(48px, 6vw, 80px); }
.map__frame { position: relative; overflow: hidden; aspect-ratio: 21 / 8; min-height: 320px; border-radius: 16px; background: var(--surface-alt); }
.map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--petrol); }
.field abbr { color: var(--red); text-decoration: none; }
.field input, .field select, .field textarea { width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); font-size: 16px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.field textarea { height: auto; min-height: 130px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.field select { appearance: none; -webkit-appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23122d34' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--petrol); box-shadow: 0 0 0 3px var(--lime-40); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field__error { font-size: 13px; line-height: 18px; color: var(--danger); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14px; line-height: 21px; color: var(--ink-muted); }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--petrol); }
.check a { color: var(--petrol); }
.check .field__error { grid-column: 2; }
.check--plain { font-size: 15px; color: var(--ink); cursor: pointer; }
.form .btn { justify-self: start; }
.notice { padding: 16px 20px; border-radius: 12px; font-size: 15px; line-height: 23px; }
.notice--error { background: var(--red-20); color: #8d2214; }
.notice--success { background: var(--lime-40); color: var(--petrol); padding: 32px; }
.notice--success h2 { font-family: var(--font-display); font-size: 26px; line-height: 1.2; font-weight: 500; margin-bottom: 8px; }
.notice--info { background: var(--mint); color: var(--petrol); }
.notice--info a { color: inherit; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 32, 38, .97); color: var(--white); }
.lightbox::backdrop { background: rgba(12, 32, 38, .9); }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; }
.lightbox__count { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--on-dark-muted); }
.lightbox__btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(12,32,38,.4); color: var(--white); cursor: pointer; }
.lightbox__btn:hover { background: var(--white); color: var(--petrol); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lightbox__track::-webkit-scrollbar { display: none; }
.lightbox__slide { flex: 0 0 100%; display: flex; align-items: center; justify-content: center; padding: 0 clamp(12px, 6vw, 96px) 28px; scroll-snap-align: center; }
.lightbox__slide img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }
.lightbox :focus-visible { outline-color: var(--lime); }

/* ---------- footer ---------- */
.footer { background: var(--petrol); color: var(--on-dark); padding: clamp(48px, 6vw, 72px) 0 24px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; padding-bottom: 40px; }
.footer__brand { display: grid; gap: 10px; align-content: start; color: var(--on-dark-muted); }
.footer__brand > a { color: var(--cream); margin-bottom: 6px; }
.footer__brand .logo { display: block; height: 30px; width: auto; max-width: 220px; object-fit: contain; object-position: left center; }
.footer__contact { display: flex; flex-direction: column; }
.footer__contact a { color: var(--on-dark); text-decoration: none; }
.footer__contact a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__h { margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--on-dark-muted); }
.footer li { line-height: 30px; }
.footer li a { text-decoration: none; opacity: .9; }
.footer li a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: 13px; color: var(--on-dark-muted); }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__legal a { text-decoration: none; }
.footer__legal a:hover { color: var(--on-dark); }
.footer :focus-visible { outline-color: var(--lime); }

/* ---------- floating WhatsApp, cookie notice ---------- */
.wa-float { position: fixed; z-index: 110; right: 20px; bottom: 20px; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: #1f6b4a; color: var(--white); box-shadow: 0 12px 28px rgba(18, 45, 52, .3); transition: transform .25s var(--ease-out); }
.wa-float:hover { transform: translateY(-2px); }
.wa-float svg { width: 28px; height: 28px; }
.drawer.is-open ~ .wa-float { opacity: 0; pointer-events: none; }
.cookie { position: fixed; z-index: 120; left: 20px; bottom: 20px; max-width: 400px; display: flex; align-items: center; gap: 16px; padding: 16px 16px 16px 20px; border-radius: 14px; background: var(--white); color: var(--ink); box-shadow: 0 20px 50px rgba(18, 45, 52, .18); border: 1px solid var(--line); font-size: 14px; line-height: 21px; }
.cookie[hidden] { display: none; }
.cookie a { color: var(--petrol); }
.cookie .btn { flex: none; }

/* ---------- home: header photo ---------- */
.hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(300px, 29vw, 400px); overflow: hidden; background: var(--petrol); color: var(--on-dark); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__slide { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform: scale(1.07); transition: transform 9s linear; }
.hero__slide.is-active img { transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12,32,38,.86) 0%, rgba(12,32,38,.58) 42%, rgba(12,32,38,.12) 100%), linear-gradient(0deg, rgba(12,32,38,.5) 0%, rgba(12,32,38,0) 55%); }
.hero__copy { width: 100%; padding-top: 40px; padding-bottom: 108px; }
.hero__title { max-width: 21ch; font-family: var(--font-display); font-size: clamp(34px, 4vw, 58px); line-height: 1.04; font-weight: 500; letter-spacing: -.035em; color: var(--white); text-wrap: balance; }
.hero__lead { max-width: 52ch; margin-top: 14px; font-size: 17px; line-height: 1.55; color: rgba(246,249,238,.86); }
.hero__copy { position: relative; }
.hero__dots { position: absolute; right: var(--pad); bottom: 96px; display: flex; gap: 6px; }
.hero__dots button { display: flex; align-items: center; width: 36px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.hero__dots span { position: relative; overflow: hidden; width: 100%; height: 3px; border-radius: 2px; background: rgba(246,249,238,.35); }
.hero__dots span::after { content: ""; position: absolute; inset: 0; background: var(--lime); transform: scaleX(0); transform-origin: left; }
.hero__dots [aria-current] span::after { transform: scaleX(1); }
.hero__dots.is-playing [aria-current] span::after { animation: hero-progress var(--hero-interval, 7s) linear; }
.hero__dots button:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 4px; }
@keyframes hero-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* search card on the photo's lower edge */
.finder-wrap { position: relative; z-index: 2; margin-top: -76px; }
.finder { padding: 8px; border-radius: 20px; background: var(--white); color: var(--ink); box-shadow: 0 28px 60px rgba(12,32,38,.2), 0 2px 6px rgba(12,32,38,.08); }
.finder__tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px 4px 10px; }
.finder__tabs label { position: relative; cursor: pointer; }
.finder__tabs input { position: absolute; opacity: 0; pointer-events: none; }
.finder__tabs span, .finder__tabs a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 10px; color: var(--petrol); font-size: 15px; font-weight: 600; text-decoration: none; transition: background-color .2s var(--ease), color .2s var(--ease); }
.finder__tabs small { font-size: 12px; font-weight: 500; opacity: .6; font-variant-numeric: tabular-nums; }
.finder__tabs a:hover, .finder__tabs label:hover span { background: var(--surface-alt); }
.finder__tabs input:checked + span { background: var(--petrol); color: var(--white); }
.finder__tabs input:checked + span small { opacity: .75; }
.finder__tabs input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.finder__fields { display: grid; grid-template-columns: 1.15fr 1fr .8fr 1.25fr auto; gap: 6px; }
.finder__field { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; padding: 10px 16px; border-radius: 13px; background: var(--surface-alt); transition: background-color .2s var(--ease); }
.finder__field:hover, .finder__field:focus-within { background: var(--mint); }
.finder__field > span:first-child { font-size: 12px; font-weight: 600; color: var(--ink-muted); }
.finder__field select, .finder__price input, .finder__price select { width: 100%; min-width: 0; padding: 2px 0; border: 0; background: transparent; font-size: 16px; font-weight: 500; color: var(--petrol); }
.finder__field select { appearance: none; -webkit-appearance: none; padding-right: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23122d34' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right center / 16px no-repeat; cursor: pointer; }
.finder__price { display: flex; gap: 6px; }
.finder__price select { width: auto; }
.finder__field select:focus-visible, .finder__price input:focus-visible, .finder__price select:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.finder__submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 0 30px; border: 0; border-radius: 13px; background: var(--red); color: var(--white); font-size: 16px; font-weight: 600; cursor: pointer; transition: background-color .2s var(--ease); }
.finder__submit:hover { background: #c42d1a; }
.finder__submit svg { width: 20px; height: 20px; stroke-width: 2; }

.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.quick a { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 6px 0 14px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--white); color: var(--petrol); font-size: 14px; font-weight: 500; text-decoration: none; transition: border-color .2s var(--ease); }
.quick a:hover { border-color: var(--petrol); }
.quick small { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--lime); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* rows of listings that scroll sideways */
.finder-wrap + .rail { padding-top: clamp(44px, 5vw, 72px); }
.rail + .rail { padding-top: 0; }
.rail__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 24px; }
.rail__nav { display: flex; flex: none; align-items: center; gap: 8px; }
.rail__nav .link { margin-right: 12px; }
.rail__btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--white); color: var(--petrol); cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), opacity .2s var(--ease); }
.rail__btn:hover:not(:disabled) { border-color: var(--petrol); background: var(--petrol); color: var(--white); }
.rail__btn:disabled { opacity: .3; cursor: default; }
.rail__btn svg { width: 18px; height: 18px; }
.rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 24px) / 4); gap: 24px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail__track::-webkit-scrollbar { display: none; }
.rail__item { min-width: 0; scroll-snap-align: start; }
.rail__more { display: none; }

/* Alanya's areas: a real map (on request) with a pin per area, and the areas as buttons under it */
.atlas { padding: clamp(44px, 5vw, 72px) 0; background: var(--petrol); color: var(--on-dark); }
.atlas__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 32px; }
.atlas__title { font-family: var(--font-display); font-size: clamp(28px, 3vw, 42px); line-height: 1.06; font-weight: 500; letter-spacing: -.03em; color: var(--cream); }
.atlas__hint { max-width: 46ch; color: var(--on-dark-muted); }
.atlas__map { margin-top: clamp(16px, 2vw, 28px); }
.atlas__map .osm { aspect-ratio: auto; height: clamp(340px, 36vw, 520px); min-height: 0; border-radius: 18px; background-color: var(--dark-raised); background-image: radial-gradient(rgba(212,234,174,.14) 1px, transparent 1.5px); background-size: 18px 18px; }
.atlas__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.atlas__list a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 6px 0 14px; border: 1px solid var(--line-dark); border-radius: var(--radius-pill); color: var(--cream); font-size: 14px; font-weight: 500; text-decoration: none; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.atlas__list a:hover { border-color: var(--lime); background: rgba(212,234,174,.08); }
.atlas__list small { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; background: var(--lime); color: var(--petrol); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.osm-area { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 11px; border-radius: 999px; background: var(--petrol); color: var(--white); font: 600 13px/1 var(--font-sans); white-space: nowrap; text-decoration: none; box-shadow: 0 4px 14px rgba(12,32,38,.35); transform: translate(-50%, -50%); transition: background-color .2s var(--ease); }
.osm-area b { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--lime); color: var(--petrol); font-size: 11px; }
a.osm-area:hover, a.osm-area:focus-visible { background: var(--red); color: var(--white); }
.osm .leaflet-container a.osm-area { color: var(--white); }
.osm-area.is-empty { padding: 4px 9px; background: rgba(255,255,255,.92); color: var(--petrol-80); font-size: 11px; font-weight: 500; box-shadow: 0 2px 8px rgba(12,32,38,.18); }

/* closing call to action, a light panel before the dark footer */
.cta { padding: clamp(56px, 7vw, 96px) 0; }
.cta__panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; padding: clamp(28px, 4.5vw, 64px); border-radius: 20px; background: var(--cream); }
.cta__title { font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 52px); line-height: 1.04; font-weight: 500; letter-spacing: -.03em; color: var(--petrol); }
.cta__text { margin-top: 14px; max-width: 52ch; font-size: 17px; color: var(--petrol-80); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .cta__panel { grid-template-columns: 1fr; align-items: start; } }

/* owners */
.owner { background: var(--petrol); color: var(--on-dark); }
.owner__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(56px, 7vw, 104px); }
.owner__head { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.owner__title { font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 48px); line-height: 1.05; font-weight: 500; letter-spacing: -.03em; color: var(--cream); }
.owner__text { max-width: 48ch; color: var(--on-dark-muted); font-size: 17px; }
.owner__head .btn { margin-top: 8px; }
.owner__steps { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.owner__steps li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line-dark); }
.owner__num { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--lime); color: var(--lime); font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.owner__steps h3 { font-family: var(--font-display); font-size: 21px; font-weight: 500; color: var(--cream); }
.owner__steps p { margin-top: 4px; font-size: 15px; color: var(--on-dark-muted); }
.owner :focus-visible { outline-color: var(--lime); }

/* project stages */
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 10px; }
.stages li { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--ink-faint); }
.stages li::before { content: ""; height: 4px; border-radius: 2px; background: var(--line); }
.stages li.is-done::before { background: var(--petrol); }
.stages li.is-current::before { background: linear-gradient(90deg, var(--red) 55%, var(--line) 55%); }
.stages li.is-done, .stages li.is-current { color: var(--petrol); font-weight: 600; }
.stages--lg { gap: 8px; margin: 28px 0 0; max-width: 560px; }
.stages--lg li { gap: 10px; font-size: 14px; }
.stages--lg li::before { height: 6px; border-radius: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 1320px) {
  .header__cta { display: none; }
  .header__inner { gap: 20px; }
  .header__nav a { padding: 8px 10px; }
}

@media (max-width: 1200px) {
  .header__phone span { display: none; }
  .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 > :nth-child(n+7) { display: none; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail__track { grid-auto-columns: calc((100% - 2 * 24px) / 3); }
  .finder__fields { grid-template-columns: 1fr 1fr 1fr; }
  .finder__field:nth-child(4) { grid-column: span 2; }
}

@media (max-width: 1040px) {
  .owner__grid { grid-template-columns: 1fr; }
  .header__nav, .header__cta, .header__lang { display: none; }
  .header__inner { justify-content: space-between; }
  .header__phone span { display: inline; }
  .menu-btn { display: inline-flex; }
  .search { grid-template-columns: minmax(0, 1fr); }
  .search--map .search__results { display: contents; }
  .search--map .toolbar { order: 1; margin-bottom: 0; }
  .search--map .search__map { order: 2; position: relative; top: auto; height: min(62vh, 520px); }
  .search--map .results { order: 3; }
  .search--map .pager { order: 4; }
  .toolbar__filters { display: inline-flex; }
  .search__filters { position: fixed; z-index: 160; inset: 0 auto 0 0; top: 0; width: min(400px, 92vw); max-height: none; background: var(--white); box-shadow: 0 0 60px rgba(12,32,38,.3); transform: translateX(-105%); transition: transform .4s var(--ease-out), visibility 0s linear .4s; visibility: hidden; }
  .search__filters.is-open { transform: none; visibility: visible; transition: transform .4s var(--ease-out); }
  .search__filters .filters { min-height: 100%; border: 0; border-radius: 0; padding-bottom: 96px; }
  .filters__close { display: inline-flex; }
  .filters__actions { position: sticky; bottom: 0; margin: 0 -20px -96px; padding: 14px 20px; background: var(--white); border-top: 1px solid var(--line); }
  .detail { grid-template-columns: minmax(0, 1fr); }
  .detail__aside { position: static; order: -1; }
  .about { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .grid--4, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 > :nth-child(n+7) { display: flex; }
  .villas { grid-template-columns: 1fr; }
  .block__head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .rail__btn { display: none; }
  .rail__nav .link { margin-right: 0; }
  .rail__track { grid-auto-columns: 44%; gap: 16px; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); scroll-padding: 0 var(--pad); }
  .finder__fields { grid-template-columns: 1fr 1fr; }
  .finder__field:nth-child(4) { grid-column: auto; }
  .finder__submit { grid-column: 1 / -1; }
  .hero__copy { padding-bottom: 104px; }
  .search-head__row { flex-direction: column; align-items: flex-start; }
  .facts, .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .keyfacts > div { flex-basis: 33%; }
  .keyfacts > div + div { border-left: 0; }
  .keyfacts > div { border-top: 1px solid var(--line); }
  .keyfacts > div:nth-child(-n+3) { border-top: 0; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; height: clamp(300px, 72vw, 500px); }
  .mosaic__item:first-child { grid-column: 1 / -1; grid-row: auto; }
  .mosaic__item:nth-child(n+4) { display: none; }
  .mosaic--few { grid-template-rows: 2fr 1fr; }
  .mosaic--few .mosaic__item:first-child { grid-row: auto; }
  .units__row { grid-template-columns: 1fr 1fr; row-gap: 6px; }
  .units__row--head { display: none; }
  .plan-steps { grid-auto-flow: row; }
  .profile { grid-template-columns: 1fr; }
  .profile__photo { max-width: 200px; }
  .vm__grid, .values__list, .stats, .people--grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .header__phone { display: none; }
  .hero { min-height: 300px; }
  .osm-area { padding: 3px; }
  .osm-area span { display: none; }
  .osm-area b { min-width: 22px; height: 22px; font-size: 11px; }
  .osm-area.is-empty { display: none; }
  .hero__title { font-size: 32px; }
  .hero__lead { font-size: 15px; }
  .hero__copy { padding-top: 52px; }
  .hero__dots { top: 14px; bottom: auto; }
  .finder__fields { grid-template-columns: 1fr; }
  .finder__tabs span, .finder__tabs a { padding: 0 12px; font-size: 14px; }
  /* phones: listings as compact rows (photo left, facts right), easy to scan and tap */
  .lcard { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 14px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
  .lcard__media { aspect-ratio: auto; height: 100%; min-height: 112px; border-radius: 10px; }
  .lcard:hover .lcard__media img { transform: none; }
  .lcard__tags { left: 6px; top: 6px; right: 6px; }
  .lcard__tags .tag { display: block; height: auto; max-width: 100%; overflow: hidden; padding: 2px 6px; font-size: 10.5px; line-height: 15px; text-overflow: ellipsis; white-space: nowrap; }
  .lcard__tags .tag + .tag { display: none; }
  .lcard__tags .tag__long { display: none; }
  .lcard__tags .tag__short { display: inline; }
  .lcard__dots { display: none; }
  .lcard__body { gap: 2px; padding: 2px 0 0; }
  .lcard__price { font-size: 19px; }
  .lcard__ref { font-size: 11px; }
  .lcard__title { font-size: 14px; line-height: 1.35; }
  .lcard__loc { font-size: 13px; line-height: 18px; }
  .lcard__loc svg { width: 13px; height: 13px; }
  .lcard .specs { gap: 2px 12px; margin-top: 4px; padding-top: 0; border-top: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
  .lcard .specs svg { width: 14px; height: 14px; }
  .results, .grid--4, .grid--3 { gap: 10px; }
  .grid--3:has(> .pcard), .grid--3:has(> .post) { gap: 28px; }

  /* rows of listings become a short list with a button to the rest */
  .rail__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .rail__nav { display: none; }
  .rail__track { grid-auto-flow: row; grid-auto-columns: auto; gap: 10px; margin: 0; padding: 0; overflow: visible; scroll-snap-type: none; }
  .rail__item:nth-child(n+5) { display: none; }
  .rail__more { display: flex; width: 100%; margin-top: 14px; }
  .grid--4, .grid--3, .results, .people { grid-template-columns: 1fr; }
  .villa { grid-template-columns: 1fr; }
  .villa__media { aspect-ratio: 16 / 10; min-height: 0; }
  .toolbar__count { flex-basis: 100%; }
  .toolbar { gap: 10px 8px; }
  .toolbar__sort { flex: 1; min-width: 0; }
  .toolbar__sort select { width: 100%; }
  .toolbar__display span { display: none; }
  .facts { gap: 0 16px; }
  .feature-list { grid-template-columns: 1fr; }
  .detail-top .crumbs li:last-child { display: none; }
  .mosaic { border-radius: 12px; }
  .agent__actions { grid-template-columns: 1fr; }
  .wa-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .osm { aspect-ratio: 4 / 5; }
  .lightbox__nav { display: none; }
  .form__row { grid-template-columns: 1fr; }
  .contact__list > div { grid-template-columns: 1fr; gap: 4px; }
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .lcard:hover .lcard__media img, .mosaic__item:hover img, .post:hover .post__media img, .hero__slide img { transform: none; }
}
