@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&family=Noto+Sans+Lao:wght@400;500;600;700&family=Noto+Serif+Lao:wght@400;500&display=swap');

/* ───────────────── Tokens ───────────────── */
:root {
  /* brand — taken from the Kapital logo */
  --blue: #1B5FAA;
  --blue-deep: #134A87;
  --red: #E1262D;
  --red-deep: #BF1C22;

  /* neutrals */
  --ink: #15253B;        /* headings, primary buttons */
  --text: #2A3647;
  --muted: #5E6A7A;
  --line: #DDE2E8;
  --stone: #E9ECF0;      /* page background around the white frame */
  --mist: #F4F6F8;       /* soft fills inside the frame */
  --paper: #FFFFFF;

  --sans: 'Instrument Sans', 'Noto Sans Lao', system-ui, sans-serif;
  --serif: 'Instrument Serif', 'Noto Serif Lao', Georgia, serif;

  /* type scale (1.25) */
  --t-xs: .8125rem;
  --t-sm: .9375rem;
  --t-md: 1.0625rem;
  --t-lg: 1.3rem;
  --t-xl: 1.75rem;
  --t-2xl: 2.4rem;
  --t-3xl: clamp(2.6rem, 6vw, 4.6rem);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --pill: 999px;

  --gutter: clamp(16px, 3.2vw, 40px);
  --max: 1320px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--stone);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--t-md);
  line-height: 1.55;
}
:lang(lo) body, html[lang="lo"] body { line-height: 1.7; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 500; line-height: 1.12; }
p { margin: 0; }
em, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; }

.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ───────────────── Frame (the white sheet on the stone background) ───────────────── */
.frame {
  max-width: var(--max);
  margin: 16px auto;
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 12px 12px 0;
  overflow: clip;
}
.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
@media (max-width: 720px) {
  .frame { margin: 0; border-radius: 0; padding: 8px 8px 0; }
}

/* ───────────────── Header ───────────────── */
.brand-mark { display: flex; align-items: center; gap: 10px; }
.brand-mark img { width: 46px; height: 46px; object-fit: contain; }
.brand-mark .name { font-weight: 700; font-size: 1.02rem; color: var(--ink); line-height: 1.1; letter-spacing: .01em; }
.brand-mark .name b { color: var(--blue); font-weight: 700; }
.brand-mark .name i { color: var(--red); font-style: normal; }
.brand-mark .sub { font-size: var(--t-xs); color: var(--muted); font-family: 'Noto Sans Lao', var(--sans); }

.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--pill);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--text);
}
.nav-links a:hover { background: var(--mist); }
.nav-links a[aria-current="page"] { background: var(--ink); color: #fff; }

.head-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--pill);
  background: var(--mist);
}
.lang-switch button {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  min-height: 34px;
  border-radius: var(--pill);
  font-size: var(--t-xs);
  font-weight: 600;
}
.lang-switch button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(21,37,59,.16); }

.menu-btn { display: none; }

/* Plain header for inner pages */
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 8px 14px;
}

/* Mobile menu sheet */
.sheet { position: fixed; inset: 0; z-index: 60; display: none; }
.sheet.open { display: block; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(21,37,59,.5); }
.sheet-panel {
  position: absolute;
  top: 8px; right: 8px; left: 8px;
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 16px;
  display: grid;
  gap: 4px;
}
.sheet-panel a { padding: 14px 12px; border-radius: var(--r-sm); font-weight: 600; font-size: var(--t-md); }
.sheet-panel a[aria-current="page"] { background: var(--mist); }
.sheet-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-btn {
    display: inline-grid;
    place-items: center;
    width: 44px; height: 44px;
    border: 0;
    border-radius: var(--pill);
    background: var(--mist);
    color: var(--ink);
  }
}

/* ───────────────── Buttons & pills ───────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--pill);
  border: 0;
  font-weight: 600;
  font-size: var(--t-sm);
  line-height: 1.2;
  transition: background .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--blue-deep); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--mist); }
.btn-wa { background: #1FA855; color: #fff; }
.btn-wa:hover { background: #178C46; }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: var(--t-xs); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--pill);
  background: var(--ink);
  color: #fff;
  font-size: .75rem;
  font-weight: 500;
  white-space: nowrap;
}
.pill.soft { background: var(--mist); color: var(--text); }
.pill.rent { background: var(--blue); }
.pill.sale { background: var(--red); }

/* ───────────────── Hero ───────────────── */
.hero {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: min(760px, 92vh);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(48px, 7vw, 80px) clamp(12px, 3vw, 40px);
  color: #fff;
  isolation: isolate;
}
/* Zoomed in on the water, with a deeper, calmer tone:
   less saturation and brightness, more contrast, a slight shift from turquoise toward deep teal. */
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2;
  object-fit: cover;
  object-position: 55% 52%;
  transform: scale(1.45);
  transform-origin: 55% 52%;
  filter: saturate(.9) contrast(1.16) brightness(.8) hue-rotate(10deg);
}
/* Deep navy wash, a soft warm glow at the top like late-afternoon light, and a vignette at the edges */
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(214,178,122,.22) 0%, rgba(214,178,122,0) 70%),
    radial-gradient(ellipse 65% 55% at 50% 50%, rgba(9,22,40,.42) 0%, rgba(9,22,40,.12) 75%, rgba(9,22,40,0) 100%),
    radial-gradient(ellipse 120% 100% at 50% 50%, rgba(6,14,28,0) 55%, rgba(6,14,28,.55) 100%),
    linear-gradient(180deg, rgba(9,22,40,.12), rgba(9,22,40,.28));
}
.hero-copy { max-width: 820px; }
.hero h1 {
  color: #fff;
  font-size: var(--t-3xl);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1;
  text-wrap: balance;
}
.hero h1 em { display: block; font-size: 1.08em; letter-spacing: -.01em; }
html[lang="lo"] .hero h1 { line-height: 1.25; letter-spacing: 0; font-size: clamp(2.2rem, 5vw, 3.8rem); }
.hero-sub { margin: 18px auto 0; max-width: 34em; font-size: var(--t-sm); color: rgba(255,255,255,.92); }

/* ───────────────── Search bar (used in hero and on listings page) ───────────────── */
.search-zone { width: min(1080px, 100%); margin-top: clamp(24px, 3.5vw, 36px); }
.hero .search-bar { text-align: left; }
.mode-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 10px; border-radius: var(--pill); background: rgba(255,255,255,.2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.mode-tabs button { border: 0; background: transparent; color: #fff; min-height: 38px; padding: 0 18px; border-radius: var(--pill); font-weight: 600; font-size: var(--t-sm); }
.mode-tabs button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.search-bar {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr .8fr auto;
  align-items: center;
  gap: 4px;
  padding: 8px;
  background: var(--paper);
  color: var(--text);
  border-radius: 22px;
  box-shadow: 0 12px 40px -12px rgba(10,24,44,.35);
}
.field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  min-height: 56px;
  border-radius: 14px;
}
.field + .field::before {
  content: ""; position: absolute; left: -2px; top: 14px; bottom: 14px; width: 1px; background: var(--line);
}
.field:hover { background: var(--mist); }
.field-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--mist); color: var(--ink); flex: none; }
.field-icon .icon { width: 17px; height: 17px; }
.field label { display: block; font-size: .75rem; color: var(--muted); line-height: 1.2; }
.field-body { flex: 1; min-width: 0; }
.field input, .field select {
  display: block;
  width: 100%;
  border: 0;
  padding: 2px 0 0;
  background: transparent;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  text-overflow: ellipsis;
}
.field select { cursor: pointer; padding-right: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235E6A7A' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") right center no-repeat; }
.field input::placeholder { color: var(--muted); font-weight: 500; }
.field:focus-within { background: var(--mist); box-shadow: inset 0 0 0 2px var(--blue); }
.search-go { min-height: 56px; padding: 0 26px; border-radius: 16px; white-space: nowrap; }

@media (max-width: 1100px) {
  .search-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .field + .field::before { display: none; }
  .field { background: var(--mist); }
  .field-loc { grid-column: 1 / -1; }
  .search-go { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .search-bar { grid-template-columns: 1fr 1fr; }
  .search-bar .field:nth-child(4) { grid-column: 1 / -1; }
}

/* ───────────────── Sections ───────────────── */
.section { padding: clamp(56px, 8vw, 110px) clamp(8px, 2vw, 28px); }
.section-title { font-size: clamp(2.2rem, 4.6vw, 3.5rem); letter-spacing: -.02em; line-height: 1.05; }
html[lang="lo"] .section-title { letter-spacing: 0; line-height: 1.35; font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(24px, 4vw, 40px); }
.lede { color: var(--muted); max-width: 34em; }
.small-label { font-size: var(--t-xs); color: var(--muted); }

/* About statement + numbers */
.about-grid { display: grid; grid-template-columns: 1fr 3fr; gap: 24px clamp(24px, 5vw, 80px); }
.statement { font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.28; color: var(--ink); letter-spacing: -.01em; max-width: 26em; font-weight: 400; }
.statement em { font-size: 1.08em; }
html[lang="lo"] .statement { line-height: 1.6; letter-spacing: 0; }
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: clamp(36px, 5vw, 64px); }
.numbers .n { font-family: var(--serif); font-style: italic; font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; color: var(--ink); }
.numbers .l { margin-top: 10px; font-size: var(--t-xs); color: var(--muted); }
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Photo strip with staggered heights */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.strip > * { border-radius: var(--r-md); overflow: hidden; position: relative; }
.strip img { width: 100%; height: 100%; object-fit: cover; }
.strip > :nth-child(1) { aspect-ratio: 4 / 5; }
.strip > :nth-child(2) { aspect-ratio: 4 / 4.3; margin-top: 44px; }
.strip > :nth-child(3) { aspect-ratio: 4 / 3.8; margin-top: 88px; }
.strip > :nth-child(4) { aspect-ratio: 4 / 5; }
.strip-card { display: block; color: #fff; }
.strip-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,37,59,.78), rgba(21,37,59,.35)); }
.strip-card .label { position: absolute; z-index: 1; left: 18px; top: 16px; right: 60px; font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.1; }
.strip-card .go { position: absolute; z-index: 1; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; transition: transform .2s var(--ease); }
.strip-card:hover .go { transform: rotate(45deg); }
@media (max-width: 760px) {
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip > :nth-child(n) { margin-top: 0; aspect-ratio: 4 / 4.6; }
  .strip > :nth-child(even) { margin-top: 32px; }
}

/* ───────────────── Property cards ───────────────── */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-tabs button {
  border: 0;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--pill);
  background: var(--mist);
  font-weight: 500;
  font-size: var(--t-sm);
}
.filter-tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 20px; }
.cards.feature-first > .card:first-child { grid-column: span 2; grid-row: span 2; }
.cards.feature-first > .card:first-child .card-img { aspect-ratio: auto; height: calc(100% - 118px); min-height: 320px; }
.cards.feature-first > .card:first-child .card-title { font-size: 1.9rem; }
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards.feature-first > .card:first-child { grid-row: auto; }
  .cards.feature-first > .card:first-child .card-img { height: auto; aspect-ratio: 16 / 9; min-height: 0; }
}
@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; }
  .cards.feature-first > .card:first-child { grid-column: auto; }
  .cards.feature-first > .card:first-child .card-img { aspect-ratio: 4 / 3; }
}

.card { position: relative; display: flex; flex-direction: column; }
.card-img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--mist); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-img img { transform: scale(1.03); }
.card-img .pill { position: absolute; left: 12px; top: 12px; }
.card-fav {
  position: absolute; right: 10px; top: 10px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--ink);
}
.card-fav[aria-pressed="true"] { color: var(--red); }
.card-fav[aria-pressed="true"] .icon { fill: currentColor; }
.card-body { padding-top: 12px; }
.card-price { font-size: var(--t-xs); color: var(--muted); }
.card-price strong { color: var(--ink); font-size: var(--t-sm); font-weight: 600; }
.card-title { margin-top: 2px; font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; color: var(--ink); }
html[lang="lo"] .card-title { font-family: 'Noto Sans Lao', var(--sans); font-size: 1.15rem; font-weight: 600; line-height: 1.5; }
.card-title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card-loc { display: flex; align-items: center; gap: 5px; margin-top: 4px; font-size: var(--t-xs); color: var(--muted); }
.card-loc .icon { width: 14px; height: 14px; }
.card-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.card-pills { position: relative; z-index: 2; }
.card-fav { z-index: 2; }

.load-more { margin-top: 40px; }

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 20px;
  background: var(--mist);
  border-radius: var(--r-md);
}
.empty h3 { font-size: var(--t-xl); font-family: var(--serif); font-style: italic; }
.empty p { color: var(--muted); margin: 8px auto 20px; max-width: 30em; }

/* ───────────────── Contact band ───────────────── */
.band {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.band-copy { padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.band h2 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.4rem); letter-spacing: -.02em; }
html[lang="lo"] .band h2 { letter-spacing: 0; line-height: 1.35; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.band p { margin: 18px 0 28px; color: rgba(255,255,255,.8); max-width: 30em; font-size: var(--t-sm); }
.band-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.band-img { min-height: 320px; }
.band-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; } .band-img { min-height: 240px; order: -1; } }

/* ───────────────── Footer ───────────────── */
.site-foot { padding: clamp(40px, 6vw, 72px) clamp(8px, 2vw, 28px) 28px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.foot-grid h4 { font-size: var(--t-sm); font-weight: 600; margin-bottom: 12px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--t-sm); color: var(--muted); }
.foot-grid a:hover { color: var(--ink); }
.foot-about { font-size: var(--t-sm); color: var(--muted); margin-top: 14px; max-width: 28em; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: var(--t-xs); color: var(--muted); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ───────────────── Inner page intro ───────────────── */
.intro { padding: clamp(28px, 5vw, 64px) clamp(8px, 2vw, 28px) clamp(20px, 3vw, 32px); }
.intro h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); letter-spacing: -.02em; line-height: 1.02; }
html[lang="lo"] .intro h1 { letter-spacing: 0; line-height: 1.3; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.intro p { margin-top: 14px; color: var(--muted); max-width: 36em; }
.crumbs { display: flex; gap: 8px; font-size: var(--t-xs); color: var(--muted); margin-bottom: 16px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ───────────────── Listings page ───────────────── */
.listing-search { background: var(--mist); border-radius: var(--r-lg); padding: 14px; }
.listing-search .mode-tabs { background: var(--paper); }
.listing-search .mode-tabs button { color: var(--text); }
.listing-search .mode-tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.listing-search .search-bar { box-shadow: none; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 20px; }
.result-count { font-size: var(--t-lg); color: var(--ink); }
.result-count strong { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.5em; }
.toolbar-right { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.select-pill {
  min-height: 42px;
  padding: 0 36px 0 16px;
  border-radius: var(--pill);
  border: 1.5px solid var(--line);
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235E6A7A' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") right 14px center no-repeat;
  appearance: none; -webkit-appearance: none;
  font-size: var(--t-sm);
  font-weight: 500;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 8px 0 14px;
  border-radius: var(--pill);
  border: 0;
  background: var(--mist);
  font-size: var(--t-xs);
  font-weight: 600;
}
.chip .icon { width: 15px; height: 15px; }
.chip:hover { background: var(--line); }
.chip-clear { background: transparent; text-decoration: underline; padding: 0 10px; }

.more-filters {
  display: none;
  margin-top: 12px;
  padding: 20px;
  background: var(--paper);
  border-radius: var(--r-md);
  gap: 20px 28px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.more-filters.open { display: grid; }
.more-filters fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.more-filters legend, .more-filters .lbl { font-size: var(--t-xs); color: var(--muted); margin-bottom: 8px; padding: 0; display: block; }
.more-filters .inline { display: flex; gap: 8px; }
.input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-size: var(--t-sm);
}
textarea.input { padding: 12px 14px; min-height: 110px; resize: vertical; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27,95,170,.15); }
.checks { display: flex; flex-wrap: wrap; gap: 6px; }
.check { position: relative; }
.check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.check span {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px;
  border-radius: var(--pill); background: var(--mist); font-size: var(--t-xs); font-weight: 500;
}
.check input:checked + span { background: var(--ink); color: #fff; }
.check input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ───────────────── Property detail ───────────────── */
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: clamp(320px, 52vw, 560px); }
.gallery button { border: 0; padding: 0; border-radius: var(--r-md); overflow: hidden; position: relative; background: var(--mist); }
.gallery button:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .more { position: absolute; right: 12px; bottom: 12px; }
@media (max-width: 720px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; height: 420px; }
  .gallery button:first-child { grid-column: span 2; grid-row: auto; }
}
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 4vw, 56px); padding-top: 32px; }
@media (max-width: 960px) { .detail { grid-template-columns: 1fr; } }
.detail h1 { font-family: var(--serif); font-size: clamp(2.2rem, 4.4vw, 3.3rem); line-height: 1.05; letter-spacing: -.01em; }
html[lang="lo"] .detail h1 { font-family: 'Noto Sans Lao', var(--sans); font-weight: 600; font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.4; }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; color: var(--muted); font-size: var(--t-sm); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; background: var(--line); border-radius: var(--r-md); overflow: hidden; margin: 28px 0; }
.facts div { background: var(--paper); padding: 16px 18px; }
.facts dt { font-size: var(--t-xs); color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); }
.prose { max-width: 42em; color: var(--text); white-space: pre-line; }
.detail h2 { font-size: var(--t-xl); margin: 40px 0 16px; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 20px; }
.feature-list li { display: flex; align-items: center; gap: 10px; font-size: var(--t-sm); }
.feature-list .icon { color: var(--blue); width: 18px; height: 18px; }
.map-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: var(--r-md); background: var(--mist); }

.aside { position: sticky; top: 16px; align-self: start; }
.enquiry { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.enquiry .price { font-family: var(--serif); font-size: 2.4rem; color: var(--ink); line-height: 1; }
.enquiry .price small { font-family: var(--sans); font-size: var(--t-sm); color: var(--muted); }
.agent { display: flex; align-items: center; gap: 12px; margin: 20px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.agent-name { font-weight: 600; color: var(--ink); }
.agent-phone { font-size: var(--t-sm); color: var(--muted); }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 6px; font-size: var(--t-xs); font-weight: 600; color: var(--ink); }
.form .hint { font-weight: 400; color: var(--muted); }
.form .err { color: var(--red-deep); font-weight: 500; min-height: 0; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(10,18,30,.94); display: none; align-items: center; justify-content: center; padding: 60px 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 100%; max-width: 100%; border-radius: var(--r-sm); object-fit: contain; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255,255,255,.26); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.8); font-size: var(--t-sm); }

/* ───────────────── About / contact ───────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.photo-tall { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; }
.photo-tall img { width: 100%; height: 100%; object-fit: cover; }
.reasons { list-style: none; margin: 0; padding: 0; display: grid; }
.reasons li { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.reasons li:last-child { border-bottom: 1px solid var(--line); }
.reasons .icon-wrap { width: 44px; height: 44px; border-radius: 50%; background: var(--mist); color: var(--blue); display: grid; place-items: center; }
.reasons h3 { font-size: var(--t-md); font-weight: 600; font-family: var(--sans); }
.reasons p { font-size: var(--t-sm); color: var(--muted); margin-top: 4px; }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.member { background: var(--mist); border-radius: var(--r-md); padding: 20px; display: flex; gap: 14px; align-items: center; }
.member .role { font-size: var(--t-xs); color: var(--muted); }
.member a { font-size: var(--t-xs); color: var(--blue); font-weight: 600; }
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.way { display: flex; flex-direction: column; gap: 6px; background: var(--mist); border-radius: var(--r-md); padding: 22px; transition: background .2s var(--ease); }
.way:hover { background: var(--line); }
.way .icon-wrap { width: 44px; height: 44px; border-radius: 50%; background: var(--paper); color: var(--blue); display: grid; place-items: center; margin-bottom: 8px; }
.way strong { color: var(--ink); font-size: var(--t-md); }
.way span { font-size: var(--t-sm); color: var(--muted); }
.hours { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.hours th { text-align: left; font-weight: 400; color: var(--muted); padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours td { text-align: right; font-weight: 600; color: var(--ink); padding: 10px 0; border-bottom: 1px solid var(--line); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80;
  transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: var(--pill);
  font-size: var(--t-sm); font-weight: 500;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.btn[data-fav][aria-pressed="true"] { color: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); }
.btn[data-fav][aria-pressed="true"] .icon { fill: currentColor; }

/* Clicked photo: a quick springy zoom inside its rounded frame, then the page opens */
@keyframes photo-bounce {
  40%  { transform: scale(1.1); }
  65%  { transform: scale(1.05); }
  85%  { transform: scale(1.08); }
  100% { transform: scale(1.07); }
}
.is-bouncing img { animation: photo-bounce .42s cubic-bezier(.34, 1.56, .64, 1) forwards; }
.strip > * img, .gallery img { transition: transform .5s var(--ease); }
.strip > *:hover img, .gallery button:hover img { transform: scale(1.03); }
.gallery button { cursor: zoom-in; }
@media (max-width: 520px) {
  .page-head .brand-mark .sub { display: none; }
  .page-head .brand-mark .name { white-space: nowrap; font-size: .95rem; }
  .page-head .brand-mark img { width: 38px; height: 38px; }
}

/* Enquiry confirmation + contact links */
.sent-box { padding: 28px; border-radius: var(--r-md); background: var(--mist); outline: none; }
.sent-box h2 { font-family: var(--serif); font-style: italic; font-size: var(--t-2xl); margin-bottom: 6px; }
.sent-box p { color: var(--muted); }
.contact-lines { list-style: none; margin: 28px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: var(--t-sm); }
.contact-lines li { display: flex; align-items: center; gap: 8px; }
.contact-lines .icon { color: var(--blue); width: 18px; height: 18px; }
.contact-lines a:hover { text-decoration: underline; }
.err a { text-decoration: underline; }
.btn:disabled { opacity: .6; cursor: progress; }
.pill.closed { background: rgba(21,37,59,.85); }
.preview-note { margin: 16px 0 0; padding: 12px 16px; border-radius: var(--r-sm); background: #FFF4D6; color: #6B4E00; font-size: var(--t-sm); font-weight: 600; }

/* Phone number with country code */
.phone-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px; }
.cc-select { appearance: none; -webkit-appearance: none; padding-right: 30px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235E6A7A' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") right 12px center no-repeat; text-overflow: ellipsis; }
@media (max-width: 420px) { .phone-row { grid-template-columns: 118px minmax(0, 1fr); } }

/* ───────────────── Phone refinements ───────────────── */
.field input, .field select { min-height: 30px; }
.field { cursor: pointer; }
.feature-list { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (max-width: 760px) {
  .lang-switch button { min-height: 40px; padding: 0 14px; }
}

/* Sticky contact bar on property pages (phones and tablets) */
.m-bar { display: none; }
@media (max-width: 960px) {
  .m-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -12px rgba(21,37,59,.25);
  }
  .m-bar .m-price { flex: 1; min-width: 0; font-weight: 700; color: var(--ink); font-size: var(--t-sm); line-height: 1.2; }
  .m-bar .m-price small { display: block; font-weight: 500; color: var(--muted); font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .m-bar .btn { min-height: 44px; padding: 0 16px; }
  body.has-m-bar { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}
.lb-btn { background: rgba(255,255,255,.9); color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.lb-btn:hover { background: #fff; }
.lb-close { background: rgba(255,255,255,.16); color: #fff; box-shadow: none; }
.lightbox img { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.did-you-mean { font-size: var(--t-md); color: var(--ink); margin: 6px auto 4px; }
.did-you-mean span { color: var(--muted); font-size: var(--t-sm); }
.linklike { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
