/* Inter (SIL Open Font License), served from this site: no Google request. */
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
/* Lora (SIL Open Font License): easy-to-read book serif for ad descriptions. */
@font-face { font-family: "Lora"; src: url("/fonts/lora-latin-wght.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
/* Oswald (SIL Open Font License): tall condensed capitals for headings, like the Fantastic Frank wordmark. */
@font-face { font-family: "Oswald"; src: url("/fonts/oswald-latin-wght.woff2") format("woff2"); font-weight: 200 700; font-style: normal; font-display: swap; }
/* Cambodia Property Market — Claude's version.
   Lotus palette from Rea's swatch: warm blush page, terracotta, cocoa, sand.
   Serif headings, white rounded cards, pill buttons. */

:root {
  --blush: #ecebe6; /* was #f8ece8 (pink blush) */
  --blush-deep: #e2dfd8; /* was #f2ddd5 */
  --terracotta: #b5604c;
  --terracotta-dark: #9a4e3c;
  --cocoa: #6a312b;
  --cocoa-deep: #4d231f;
  --sand: #e8cfa9;
  --sand-soft: #f6e9d4;
  --white: #ffffff;
  --ink: #3a2622;
  --muted: #86665f;
  --line: #d9d5cc; /* was #ecd8cf */
  --red: #b42318;
  --brand: Georgia, "Times New Roman", "Noto Serif Khmer", "Songti SC", serif; /* logo only */
  --serif: var(--sans); /* headings now use Inter too (was Georgia) */
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Khmer", "Khmer OS", "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius: 18px;
  --shadow: 0 10px 28px rgba(106, 49, 43, 0.08);
  --shadow-lift: 0 18px 40px rgba(106, 49, 43, 0.14);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--blush); line-height: 1.55; }
html[lang="km"] body { line-height: 1.8; }
a { color: var(--terracotta-dark); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--cocoa); letter-spacing: -0.01em; }
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
.section { padding: 34px 0 48px; }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 30; background: var(--blush); border-bottom: 3px solid var(--sand); }
.bar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; min-height: 76px; padding: 8px 0; }
/* One-line logo: Cambodia *Property* Market, small house above "Property" */
.logo { margin-right: auto; text-decoration: none; color: var(--cocoa); font-family: var(--serif); font-size: 1.95rem; line-height: 0.9; white-space: nowrap; padding-top: 0.55em; letter-spacing: -0.01em; }
.logo-b { position: relative; font-style: italic; color: var(--terracotta); }
.logo-house { position: absolute; left: 50%; top: -0.5em; width: 0.78em; height: auto; transform: translateX(-50%); }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-links a { display: inline-block; padding: 8px 12px; color: var(--cocoa); text-decoration: none; font-size: 0.95rem; border-radius: 999px; }
.nav-links a:hover, .nav-links a.active { background: var(--blush-deep); }
.nav-links a.cta { background: var(--terracotta); color: #fff; font-weight: 600; padding: 9px 16px; }
.nav-links a.cta:hover { background: var(--terracotta-dark); }
.langs { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-btn { border: 0; background: transparent; color: var(--cocoa); padding: 6px 11px; font: inherit; font-size: 0.88rem; cursor: pointer; border-radius: 999px; }
.lang-btn[aria-pressed="true"] { background: var(--cocoa); color: #fff; font-weight: 600; }

/* ---------- Buttons, forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 46px; padding: 10px 20px; border-radius: 999px;
  border: 1.5px solid var(--terracotta); background: #fff; color: var(--terracotta-dark);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--blush); }
.btn.primary { background: var(--terracotta); color: #fff; }
.btn.primary:hover { background: var(--terracotta-dark); }
.btn.light { background: rgba(255, 255, 255, 0.14); border-color: #fff; color: #fff; }
.btn.light:hover { background: rgba(255, 255, 255, 0.26); }
.btn.sand { background: var(--sand); border-color: var(--sand); color: var(--cocoa-deep); }
.btn.danger { border-color: var(--red); color: var(--red); }
.btn.wide { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: wait; }
label { display: flex; flex-direction: column; gap: 5px; font-size: 0.88rem; color: var(--muted); font-weight: 600; }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--ink);
  background: #fdf8f6; border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; min-height: 46px; width: 100%;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--terracotta); outline-offset: 1px; }
small { font-weight: 400; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.narrow { max-width: 380px; }
.msg { margin: 0; }
.msg:empty { display: none; }
.msg.info, .msg.ok, .msg.error { padding: 10px 14px; border-radius: 12px; }
.msg.info { background: var(--sand-soft); border: 1px solid var(--sand); color: var(--cocoa); }
.msg.ok { background: #f1f8f1; border: 1px solid #bfdcc0; color: #2f6b34; font-weight: 600; }
.msg.error { background: #fdf0ef; border: 1px solid #f1c2bd; color: var(--red); font-weight: 600; }
.note { color: var(--muted); font-size: 0.88rem; max-width: 72ch; }

/* ---------- Hero: video with lotus tint ---------- */
.hero { position: relative; min-height: 66vh; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--cocoa); color: #fff; text-align: center; padding: 70px 0 96px; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 57% 50%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(181, 96, 76, 0.72) 0%, rgba(106, 49, 43, 0.8) 100%); }
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero-badge { margin: 0 0 16px; background: rgba(255, 255, 255, 0.95); color: var(--cocoa); border-radius: 999px; padding: 6px 15px; font-size: 0.86rem; font-weight: 600; }
.hero h1 { color: #fff; margin: 0 0 12px; font-size: clamp(2.2rem, 5.2vw, 3.8rem); line-height: 1.08; }
.hero-lead { margin: 0 0 24px; max-width: 54ch; font-size: 1.12rem; color: #fbeee9; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 26px; }
.hero-buttons .btn { min-width: 200px; }
.trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: center; }
.trust li { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; padding: 6px 14px 6px 8px; font-size: 0.9rem; font-weight: 600; }
.trust svg { width: 22px; height: 22px; flex: none; }
.search-wrap { position: relative; z-index: 5; margin-top: -48px; }
.search { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; background: #fff; border-radius: 22px; box-shadow: var(--shadow-lift); padding: 18px; }

/* ---------- Section titles ---------- */
.section-title { margin: 0 0 18px; font-size: 1.75rem; }
.section-title::after { content: ""; display: block; width: 46px; height: 3px; margin-top: 8px; background: var(--sand); border-radius: 99px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }

/* ---------- Type tiles with real photos ---------- */
.types { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.type-tile { position: relative; display: block; height: 150px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; }
.type-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.type-tile:hover img { transform: scale(1.06); }
.type-tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; color: #fff; font-family: var(--serif); font-size: 1.15rem; background: linear-gradient(180deg, rgba(77, 35, 31, 0) 0%, rgba(77, 35, 31, 0.82) 100%); }

/* ---------- Listing cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; transition: box-shadow 0.2s, transform 0.2s; }
.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.card-photo { position: relative; display: block; height: 200px; border-radius: 12px; overflow: hidden; background: var(--blush-deep); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-label, .card-deal { position: absolute; top: 10px; padding: 5px 11px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.card-label { left: 10px; background: #fff; color: var(--cocoa); }
.card-deal { right: 10px; }
.card-deal.rent { background: var(--sand); color: var(--cocoa-deep); }
.card-deal.sale { background: var(--cocoa); color: #fff; }
.card-body { display: flex; flex-direction: column; gap: 5px; padding: 12px 4px 2px; flex: 1; }
.card-price { font-family: var(--serif); font-size: 1.9rem; line-height: 1; color: var(--cocoa); }
.card-price small { font-size: 1rem; color: var(--muted); }
.per-sqm { align-self: flex-start; background: var(--sand-soft); color: var(--cocoa); border-radius: 999px; padding: 2px 10px; font-size: 0.82rem; }
.card-title { font-weight: 700; font-size: 1.08rem; line-height: 1.35; color: var(--ink); text-decoration: none; }
.card-title:hover { color: var(--terracotta-dark); }
.card-landmark { color: var(--terracotta-dark); font-weight: 600; font-size: 0.94rem; }
.card-place { color: var(--muted); font-size: 0.94rem; }
.card-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip { background: var(--blush); color: var(--cocoa); border-radius: 999px; padding: 4px 10px; font-size: 0.82rem; }
.contact-btn { margin-top: auto; align-self: flex-start; padding: 6px 14px; text-align: center; border-radius: 999px; background: var(--terracotta); color: #fff; text-decoration: none; font-weight: 600; font-size: 0.85rem; }
.card-facts + .contact-btn, .card-place + .contact-btn { margin-top: 12px; }
.contact-btn:hover { background: var(--terracotta-dark); }
.empty { grid-column: 1 / -1; margin: 0; background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }

/* ---------- How it works + banner ---------- */
.how { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { background: var(--blush); border-radius: var(--radius); padding: 20px; }
.steps h3 { margin: 10px 0 6px; font-size: 1.25rem; }
.steps p { margin: 0; color: var(--muted); }
.step-num { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: var(--terracotta); color: #fff; font-weight: 800; align-items: center; justify-content: center; }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-radius: 22px; padding: 30px 32px; color: #fbeee9; background: linear-gradient(135deg, var(--terracotta) 0%, var(--cocoa) 100%); }
.cta-band h2 { color: #fff; margin: 0 0 6px; font-size: 1.7rem; }
.cta-band p { margin: 0; }

/* ---------- Listing page ---------- */
.back { font-weight: 600; text-decoration: none; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 24px; align-items: start; }
.detail-main, .detail-side { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.detail-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 10px; }
.detail-photo { width: 100%; max-height: 520px; object-fit: contain; background: var(--blush-deep); border-radius: 12px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.thumbs img, .thumb img { width: 86px; height: 64px; object-fit: cover; border-radius: 10px; }
.thumb { padding: 0; border: 2px solid transparent; border-radius: 12px; background: none; cursor: pointer; }
.thumb:hover { border-color: var(--terracotta); }
.detail-title { margin: 16px 0 4px; font-size: 1.7rem; line-height: 1.2; }
.detail-landmark { margin: 4px 0 0; font-weight: 600; color: var(--terracotta-dark); }
.detail-desc { white-space: pre-line; margin-top: 12px; }
.detail-map { height: 260px; border-radius: 12px; margin-top: 16px; }
.detail-price { font-family: var(--serif); font-size: 2.3rem; line-height: 1; color: var(--cocoa); }
.badge { display: inline-block; align-self: flex-start; padding: 4px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.badge.rent { background: var(--sand); color: var(--cocoa-deep); }
.badge.sale { background: var(--cocoa); color: #fff; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.side-head { font-size: 1.2rem; margin: 8px 0 0; }
.chat-btns { display: grid; gap: 8px; }
.chat-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 999px; font-weight: 700; color: #fff; text-decoration: none; }
.chat-btn.whatsapp { background: #25d366; color: #063b1c; }
.chat-btn.telegram { background: #229ed9; }
.chat-btn.viber { background: #7360f2; }
.chat-btn.line { background: #06c755; }
.chat-btn:hover { filter: brightness(0.95); }
.gmaps-btn { color: #1a73e8; border-color: #c7d6f0; }

/* ---------- Map page + pins ---------- */
.map-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 0 12px; }
.map-bar h1 { margin: 0; font-size: 1.6rem; }
.chips { display: inline-flex; gap: 6px; }
.chip-btn { border: 1px solid var(--line); background: #fff; color: var(--cocoa); border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.chip-btn[aria-pressed="true"] { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.map-wrap { position: relative; }
.map { height: calc(100vh - 160px); min-height: 460px; background: var(--blush-deep); }
.map-legend { position: absolute; left: 12px; bottom: 22px; z-index: 450; display: flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; background: rgba(255, 255, 255, 0.95); border-radius: 999px; padding: 8px 14px; box-shadow: var(--shadow); }
.legend-dot { width: 12px; height: 12px; border-radius: 50%; margin-left: 6px; }
.legend-dot.rent { background: var(--sand); border: 1px solid #c9a774; }
.legend-dot.sale { background: var(--terracotta); }
.map-empty { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 450; margin: 0; background: #fff; border-radius: 999px; padding: 10px 18px; box-shadow: var(--shadow); }
.pin-wrap { background: none; border: 0; }
.price-pin { display: inline-block; position: relative; transform: translate(-50%, -100%); background: var(--terracotta); color: #fff; padding: 5px 11px; border-radius: 999px; font-weight: 800; font-size: 13px; white-space: nowrap; border: 2px solid #fff; box-shadow: 0 6px 16px -4px rgba(77, 35, 31, 0.45); }
.price-pin::after { content: ""; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #fff; border-bottom: 0; }
.price-pin.rent { background: var(--sand); color: var(--cocoa-deep); }
.pick-dot { width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--terracotta); border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); }
.leaflet-popup-content-wrapper { border-radius: 16px; padding: 0; overflow: hidden; }
.leaflet-popup-content { margin: 0; }
.pop { display: block; width: 240px; color: inherit; text-decoration: none; }
.pop img { width: 100%; height: 130px; object-fit: cover; }
.pop-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.pop .card-price { font-size: 1.4rem; }

/* ---------- Post + pay pages ---------- */
.page-band { padding: 34px 0 28px; color: #fbeee9; background: linear-gradient(135deg, var(--terracotta) 0%, var(--cocoa) 100%); }
.page-band h1 { color: #fff; margin: 0 0 8px; font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.page-band p { margin: 0; max-width: 72ch; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 22px; align-items: start; }
.post-layout > form { grid-column: 1; grid-row: 1; }
.howto { grid-column: 2; grid-row: 1; position: sticky; top: 96px; display: flex; flex-direction: column; gap: 10px; }
.howto h2 { margin: 0; font-size: 1.35rem; }
.six-months { margin: 0; align-self: flex-start; background: var(--sand); color: var(--cocoa-deep); font-weight: 800; border-radius: 999px; padding: 5px 14px; font-size: 0.9rem; }
.howto-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.howto-steps li::marker { color: var(--terracotta); font-weight: 800; }
.pay-box { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; }
.pay-box h3 { margin: 0; font-size: 1.1rem; }
.qr-img { width: 100%; max-width: 260px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.accounts { width: 100%; text-align: left; background: var(--blush); border-radius: 12px; padding: 10px 14px; }
.pay-row { margin: 4px 0; }
.pay-ad { margin: 0; font-size: 1.3rem; }
.expiry { font-weight: 700; color: var(--cocoa); }
.picker { display: flex; flex-direction: column; gap: 6px; }
.link-how { margin: 0; padding-left: 20px; font-size: 0.88rem; color: var(--muted); }
.link-row { display: flex; gap: 8px; }
.link-row input { flex: 1; }
.pick-map { height: 300px; border-radius: 14px; border: 1px solid var(--line); }
fieldset.apps { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
fieldset.apps legend { font-size: 0.88rem; color: var(--muted); font-weight: 600; padding: 0 4px; }
fieldset.apps p { margin: 0; font-size: 0.85rem; }
.app-choices { display: flex; gap: 10px; flex-wrap: wrap; }
.app-choice { flex-direction: row; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; background: #fdf8f6; color: var(--ink); cursor: pointer; }
.app-choice input { width: auto; min-height: 0; accent-color: var(--terracotta); }
.app-choice:has(input:checked) { border-color: var(--terracotta); background: #fbeee9; }
.app-dot { width: 12px; height: 12px; border-radius: 50%; }
.app-dot.whatsapp { background: #25d366; }
.app-dot.telegram { background: #229ed9; }
.app-dot.viber { background: #7360f2; }
.app-dot.line { background: #06c755; }
.rules { margin: 0; padding: 10px 14px; background: var(--sand-soft); border-radius: 12px; border-left: 4px solid var(--sand); }
.shot-label { border: 2px dashed var(--sand); border-radius: 14px; padding: 14px; background: var(--sand-soft); color: var(--cocoa); font-size: 0.95rem; }
.shot-preview { max-width: 220px; max-height: 320px; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); align-self: center; }
.or-line { margin: 0; text-align: center; color: var(--muted); font-size: 0.9rem; }

/* ---------- Owner desk ---------- */
.owner-list { display: grid; gap: 14px; margin-bottom: 28px; }
.owner-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; }
.owner-card p { margin: 4px 0; }
.owner-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.owner-card .thumbs img { width: 110px; height: 82px; }
.status { font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--blush); text-transform: uppercase; }
.status.live { background: #e7f3e7; color: #2f6b34; }
.status.expired { background: #fdf0ef; color: var(--red); }
.ref { font-weight: 700; color: var(--cocoa); }
.receipt-thumb { width: 160px; max-height: 260px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: #fff; margin: 4px 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.owner-qr { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.owner-qr img { width: 140px; border-radius: 12px; border: 1px solid var(--line); }
.m-on { flex-direction: row; align-items: center; align-self: end; gap: 8px; min-height: 46px; }
.m-on input { width: auto; min-height: 0; }
details summary { cursor: pointer; color: var(--muted); margin-top: 6px; }

/* ---------- Footer ---------- */
.footer { background: var(--cocoa-deep); color: #f3dcd3; padding: 30px 0; margin-top: 40px; font-size: 0.9rem; }
.footer-name { font-family: var(--serif); font-size: 1.45rem; color: #fff; margin: 0 0 6px; }
.footer p { margin: 0 0 4px; }

.map-page + .footer { margin-top: 0; }

/* ---------- Small screens ---------- */
@media (max-width: 960px) {
  .types { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .search { grid-template-columns: 1fr 1fr; }
  .search .kw { grid-column: 1 / -1; }
  .search .btn { grid-column: 1 / -1; }
  .detail, .post-layout { grid-template-columns: 1fr; }
  .detail-side, .howto { position: static; }
  .howto { grid-column: 1; grid-row: 1; }
  .post-layout > form { grid-row: 2; }
  .row3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .logo { font-size: 1.6rem; }
  .types { grid-template-columns: repeat(2, 1fr); }
  .search { grid-template-columns: 1fr; }
  .nav-links { order: 3; width: 100%; }
  .hero { min-height: 60vh; padding: 56px 0 84px; }
}

/* Phone preview on the post form */
.phone-state { grid-column: span 2; align-self: end; margin: 0 0 12px; font-size: 0.92rem; }
.phone-state.good { color: #2f6b34; font-weight: 700; }
.phone-state.bad { color: var(--red); font-weight: 700; }
@media (max-width: 960px) { .phone-state { grid-column: auto; } }

/* Owner or agent tag */
.card-by { position: absolute; left: 10px; bottom: 10px; padding: 5px 11px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.card-by.owner, .badge.owner { background: #2f7d4f; color: #fff; }
.card-by.agent, .badge.agent { background: #fff; color: var(--cocoa); box-shadow: inset 0 0 0 1px var(--sand); }
.side-badges { display: flex; gap: 8px; flex-wrap: wrap; }

/* Papers of a property for sale */
.card-papers { align-self: flex-start; display: inline-block; padding: 4px 12px; border-radius: 999px; background: #fbeee9; color: var(--cocoa); border: 1px solid var(--sand); font-size: 0.8rem; font-weight: 700; }

/* About page */
.about { max-width: 760px; }
.about h2 { margin: 14px 0 0; font-size: 1.3rem; }
.about p, .about li { margin: 0; line-height: 1.65; }
.about ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.about-key { padding: 12px 14px; border-radius: 12px; background: #fbeee9; border-left: 4px solid var(--terracotta); font-weight: 600; }

/* Second search row: price range, bedrooms, sort */
.search-row2 { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 960px) { .search-row2 { grid-template-columns: 1fr 1fr; } }
/* Search button sits under all the filters. */
.search .search-go { grid-column: 1 / -1; justify-self: end; min-width: 220px; }
@media (max-width: 960px) { .search .search-go { justify-self: stretch; } }

/* Owner desk renew button */
.renew-btn { display: inline-flex; align-self: flex-start; margin: 6px 0; padding: 9px 18px; border-radius: 999px; font-weight: 700; color: #fff; text-decoration: none; }

/* New-post days tag (first 15 days) */
.card-age { position: absolute; right: 10px; bottom: 10px; padding: 5px 11px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; background: var(--terracotta); color: #fff; }

/* Contact us */
.contact-form { max-width: 760px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.report-link { display: inline-block; margin-top: 6px; font-size: 0.85rem; color: var(--muted); }
.renew-row { display: flex; gap: 8px; flex-wrap: wrap; }
.renew-note { margin: 0; font-size: 0.85rem; }

/* How it works: looking / listing side by side */
.how-two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.how-side { background: var(--blush); border-radius: var(--radius); padding: 22px; }
.how-head { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 1.35rem; }
.how-icon { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; background: #fff; align-items: center; justify-content: center; font-size: 1.15rem; }
.steps-col { grid-template-columns: 1fr; gap: 10px; }
.steps-col li { display: flex; gap: 14px; align-items: flex-start; background: #fff; padding: 14px 16px; }
.steps-col h4 { margin: 4px 0 4px; font-size: 1.05rem; font-family: var(--serif); color: var(--cocoa); }
.steps-col p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.steps-col .step-num { flex: 0 0 auto; }
@media (max-width: 860px) { .how-two { grid-template-columns: 1fr; } }
.footer a { color: var(--sand); }
.footer a:hover { color: #fff; }
.cta-band + .note { max-width: none; }

/* Sticky side panels must never be taller than the screen, or their bottom
   (the ABA QR, the contact buttons) can never be reached. */
@media (min-width: 961px) {
  .howto, .detail-side { align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; overscroll-behavior: contain; }
}

/* Papers choices on the form: label + short explanation */
.paper-choices { display: flex; flex-direction: column; gap: 8px; }
.paper-choice { flex-direction: row; align-items: flex-start; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: #fdf8f6; cursor: pointer; }
.paper-choice input { width: auto; min-height: 0; margin-top: 4px; accent-color: var(--terracotta); }
.paper-choice span { display: flex; flex-direction: column; gap: 2px; color: var(--ink); }
.paper-choice small { color: var(--muted); font-weight: 400; font-size: 0.84rem; }
.paper-choice:has(input:checked) { border-color: var(--terracotta); background: #fbeee9; }
.papers-list li b { color: var(--cocoa); }

/* Seller's own ad page */
.seller-row, .save-link-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.danger { background: #fff; color: #9b2c1f; border: 1px solid #e3b3aa; }
.save-link { border: 1px dashed var(--sand); border-radius: 14px; padding: 12px 14px; background: #fffaf6; display: flex; flex-direction: column; gap: 8px; }
.save-link p { margin: 0; }
.edit-form { border-top: 1px solid var(--line); padding-top: 14px; }
.status.hidden { background: #f3ead7; color: #7a5a1e; }
.status.closed { background: #e8e8e8; color: #444; }
.gone { text-align: center; align-items: center; padding: 40px 20px; }
.detail > .gone { grid-column: 1 / -1; }
.locked-place { margin: 0; padding: 10px 12px; border-radius: 12px; background: #f4ece6; color: var(--cocoa); }
.status.rented { background: #f3ead7; color: #7a5a1e; }

/* Lost ad link help on the owner desk */
.lost-help { border-left: 3px solid #229ed9; padding: 4px 0 4px 12px; margin: 10px 0; }
.save-link-row .chat-btn { padding: 0 18px; }

/* Saved places (heart) */
.card-price-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.heart { border: 1px solid var(--sand); background: #fff; color: var(--terracotta); border-radius: 999px; width: 38px; height: 38px; font-size: 1.25rem; line-height: 1; cursor: pointer; flex: none; }
.heart.on { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.heart-big { width: auto; height: 42px; padding: 0 16px; font-size: 0.95rem; font-weight: 700; align-self: flex-start; margin: 6px 0 10px; }
.nav-saved .saved-count { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--terracotta); color: #fff; font-size: 0.72rem; font-weight: 700; text-align: center; }
.nav-saved .saved-count[hidden] { display: none; }
/* Share an ad */
.share-row { margin-top: 14px; }
.share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: 0.88rem; text-decoration: none; color: #fff; border: 0; cursor: pointer; font-family: inherit; }
.share-btn.telegram { background: #229ed9; }
.share-btn.whatsapp { background: #25d366; color: #063b1c; }
.share-btn.facebook { background: #1877f2; }
.share-btn.copy { background: #fff; color: var(--cocoa); box-shadow: inset 0 0 0 1px var(--sand); }
/* Keep the bar on one line: the Saved link shows only the heart and count. */
.nav-saved [data-t="navSaved"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav-saved > span[aria-hidden] { font-size: 1.15rem; color: var(--terracotta); }
/* A little less space between menu links, so the bar fits on one line with the heart. */
.bar { gap: 14px; }
.nav-links a { padding: 8px 9px; }
.nav-links a.nav-saved { padding: 8px 7px; }

/* ---------- Opening screen and giant name that shrinks into the logo ---------- */
.intro-bg { position: fixed; inset: 0; z-index: 1000; background: var(--blush); cursor: pointer; }
.intro-bg.away { transform: translateY(-100%); transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1); }
.big-name { position: fixed; left: 0; top: 0; z-index: 31; margin: 0; pointer-events: none; white-space: nowrap; font-family: var(--serif); font-size: 7.7vw; line-height: 1.25; letter-spacing: -0.01em; color: #fff; transform-origin: 0 0; transition: color 0.3s; }
.intro-on .big-name { z-index: 1001; }
.big-name.is-dark { color: var(--cocoa); }
.big-done .big-name { visibility: hidden; }
.intro-word { display: inline-block; vertical-align: top; }
.intro-word > span { display: inline-block; }
.intro-mid { color: var(--sand); font-style: italic; transition: color 0.3s; }
.is-dark .intro-mid { color: var(--terracotta); }
.intro-prop { position: relative; display: inline-block; vertical-align: top; }
.intro-house { position: absolute; left: 50%; top: -0.69em; width: 1.18em; height: 0.786em; margin-left: -0.59em; }
.intro-house path { transition: fill 0.3s; }
.big-name:not(.is-dark) .intro-house path { fill: var(--sand); }
.big-name:not(.is-dark) .intro-house path:last-child { fill: var(--cocoa); }
.intro-on .intro-word { overflow: hidden; }
.intro-on .intro-word > span { transform: translateY(110%); animation: intro-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards; }
.intro-on .intro-mid > span { padding-right: 0.06em; margin-right: -0.06em; animation-delay: 0.3s; }
.intro-on .intro-word:last-child:not(.intro-mid) > span { animation-delay: 0.45s; }
.intro-on .intro-house { opacity: 0; animation: intro-house 0.6s ease 0.9s forwards; }
.intro-on, .intro-on body { overflow: hidden; }
@keyframes intro-rise { to { transform: none; } }
@keyframes intro-house { from { opacity: 0; transform: translateY(0.2em); } to { opacity: 1; transform: none; } }

.big-on .header { transition: background 0.3s, border-color 0.3s; }
.big-on .header .logo { opacity: 0; }
.big-on.big-done .header .logo { opacity: 1; }
.big-on:not(.header-solid) .header { background: transparent; border-color: transparent; }
.big-on .hero { margin-top: calc(-1 * var(--header-h, 79px)); min-height: 100vh; min-height: 100svh; padding: calc(var(--header-h, 79px) + 20px) 0 calc(17vw + 30px); }
.big-on .hero-badge, .big-on .hero-lead, .big-on .hero-buttons { display: none; }
.big-on .hero h1 { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.big-on .search-wrap { margin-top: 28px; }

/* Life in Siem Reap: two photos with a name and one line each */
.sr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.sr-card { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 10; background: var(--cocoa-deep); }
.sr-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sr-card figcaption { position: absolute; inset: auto 0 0 0; padding: 48px 20px 18px; color: #fff; background: linear-gradient(to top, rgba(40, 18, 14, 0.88), rgba(40, 18, 14, 0)); }
.sr-card h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 1.6rem; font-weight: 400; }
.sr-card p { margin: 0; font-size: 0.95rem; line-height: 1.45; max-width: 46ch; }

@media (max-width: 720px) { .sr-grid { grid-template-columns: 1fr; } }
.big-on .nav-links, .big-on .langs { transition: opacity 0.2s; }
.big-on.name-crossing .nav-links, .big-on.name-crossing .langs { opacity: 0; pointer-events: none; }
.sr-card figcaption h3, .sr-card figcaption p { color: #fff; }
/* Home: real video colours, no tint. Soft letter shadows keep the white text readable. */
.big-on .hero-shade { display: none; }
.big-name:not(.is-dark) { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.35); }
.big-name:not(.is-dark) .intro-house { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4)); }
/* Menu over the photo: white with a soft shadow at the top, readable on sky and on stone */
.big-on:not(.header-solid) .header { background: linear-gradient(rgba(10, 25, 40, 0.5), rgba(10, 25, 40, 0)) no-repeat; }
.big-on:not(.header-solid) .nav-links a:not(.cta) { color: #fff; font-weight: 600; text-shadow: 0 1px 5px rgba(0, 0, 0, 0.55); }
.big-on:not(.header-solid) .nav-saved span { color: #fff; }
.big-on:not(.header-solid) .nav-links a:not(.cta):hover, .big-on:not(.header-solid) .nav-links a.active { background: rgba(255, 255, 255, 0.24); }
/* Phones: temple sits lower, under the tall menu; its sky fades into the same blue */
@media (max-width: 700px) {
  .big-on .hero { background: #4ca2d0; }
  .big-on .hero-photo { top: 120px; height: calc(100% - 120px); -webkit-mask-image: linear-gradient(transparent, #000 90px); mask-image: linear-gradient(transparent, #000 90px); }
}

/* ---------- Listing cards, editorial style (big photo, two quiet lines) ---------- */
.grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 40px 28px; }
.card { position: relative; background: transparent; box-shadow: none; padding: 0; border-radius: 0; }
.card:hover { box-shadow: none; transform: none; }
.card-photo { height: auto; aspect-ratio: 3 / 2; border-radius: 4px; }
.card-photo img { transition: transform 0.5s ease; }
.card:hover .card-photo img { transform: scale(1.03); }
.card-tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.card-tags .card-label, .card-tags .card-deal { position: static; }
.card-heart { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; font-size: 1.1rem; border: 0; background: rgba(255, 255, 255, 0.92); }
.card-heart.on { background: var(--terracotta); }
.card-body { padding: 14px 0 0; gap: 4px; }
.card-title { font-family: inherit; font-weight: 500; font-size: 1.12rem; color: var(--ink); }
.card-line { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 1rem; color: var(--ink); }
.card-line .card-cost { font-weight: 700; color: var(--cocoa); }
.card-extra { font-size: 0.85rem; color: var(--muted); }
/* Cards touch each other: no gap between photos. Text keeps a little inner space. */
#grid.grid, #saved-grid.grid { gap: 0; }
#grid .card-photo, #saved-grid .card-photo { border-radius: 0; }
#grid .card-body, #saved-grid .card-body { padding: 14px 14px 28px; }

/* ---------- Quiet editorial cards (like Fantastic Frank) ---------- */
#grid.grid, #saved-grid.grid { gap: 72px 6px; }
#grid .card-photo, #saved-grid .card-photo { border-radius: 0; aspect-ratio: 3 / 2; }
#grid .card-body, #saved-grid .card-body { padding: 18px 0 0; gap: 6px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-title { font-family: var(--sans); font-weight: 400; font-size: 1.15rem; line-height: 1.35; color: #1f1b19; }
.card-title:hover { color: #1f1b19; text-decoration: underline; text-underline-offset: 3px; }
.card-line { gap: 4px 26px; font-size: 1rem; font-weight: 400; color: #1f1b19; }
.card-line span { font-weight: 400; color: #1f1b19; }
.card-extra { display: flex; flex-wrap: wrap; gap: 2px 18px; font-size: 0.88rem; color: #6f6a64; }
.card-heart, .card-heart.on { position: static; flex: none; width: auto; height: auto; padding: 0 2px; border: 0; background: none; color: #1f1b19; font-size: 1.25rem; line-height: 1.2; }
.card-heart.on { color: var(--terracotta); }
#grid .card-body, #saved-grid .card-body { padding: 18px 28px 0 0; }

/* ---------- Font: Inter everywhere, Georgia only for the logo ---------- */
.logo, .big-name, .footer-name { font-family: var(--brand); }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; }

/* Listings: same width as the rest of the page, 3 per row on computers
   (Rea: the near-full-width, 2-per-row version made the photos too big). */
@media (min-width: 1000px) { .wide-list #grid.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Smaller text, condensed capital headings ---------- */
html { font-size: 15px; } /* was the browser default 16px: everything is a little smaller */
:root { --title: "Oswald", "Arial Narrow", "Noto Sans Khmer", "PingFang SC", sans-serif; }
h1, h2, h3, .section-title { font-family: var(--title); font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.1; }
.section-title { font-size: 1.9rem; }
.card-title { font-size: 1rem; }
.card-line { font-size: 0.92rem; gap: 2px 20px; }
.card-extra { font-size: 0.8rem; }
.nav-links a { font-size: 0.9rem; }

/* ---------- Life in Siem Reap: same look as the listing cards ---------- */
.sr-grid { gap: 6px; }
.sr-card { border-radius: 0; box-shadow: none; background: none; aspect-ratio: auto; overflow: visible; }
.sr-card img { aspect-ratio: 3 / 2; height: auto; }
.sr-card figcaption { position: static; padding: 18px 28px 0 0; background: none; }
.sr-card figcaption h3 { margin: 0 0 6px; font-family: var(--sans); font-size: 1rem; font-weight: 400; text-transform: none; letter-spacing: 0; color: #1f1b19; }
.sr-card figcaption p { margin: 0; font-size: 0.92rem; color: #6f6a64; max-width: 52ch; }
/* Three Siem Reap places in a row, same size as the listing photos. */
@media (min-width: 721px) { .sr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Ad description on the listing page: Lora, like a well-printed book. */
#listing .detail-desc { font-family: "Lora", Georgia, "Noto Serif Khmer", "Songti SC", serif; font-size: 0.95rem; line-height: 1.65; color: #1f1b19; max-width: 68ch; }

/* ---------- Footer: brand on the left, two link columns ---------- */
.footer { padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; align-items: start; }
.footer-name { font-size: 1.6rem; margin-bottom: 14px; }
.footer-copy { color: #fff; font-size: 1rem; line-height: 1.6; margin-bottom: 14px !important; }
.footer-note { font-size: 0.82rem; opacity: 0.8; max-width: 40ch; }
.footer-col h4 { margin: 4px 0 16px; font-family: var(--title); font-weight: 500; font-size: 1.25rem; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: #f3dcd3; text-decoration: none; font-size: 0.98rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* Top video (3 temples): centred so each temple stays in view on phones. */
.hero-video { object-position: 50% 50%; }

/* ---------- "Order by" + "Clear" bar (For rent / For sale) ---------- */
.order-bar { display: flex; align-items: center; justify-content: flex-start; gap: 12px; margin: 0 0 22px; }
.order-bar[hidden] { display: none; }
.order-by { display: flex; align-items: center; gap: 14px; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: #1f1b19; }
.order-by select { appearance: none; -webkit-appearance: none; border: 1px solid #cfcac2; border-radius: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231f1b19' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center; padding: 9px 40px 9px 16px; font: inherit; letter-spacing: 0.12em; text-transform: uppercase; color: #1f1b19; cursor: pointer; }
.clear-btn { display: inline-flex; align-items: center; gap: 10px; border: 0; background: #fff; padding: 10px 18px; font: inherit; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: #1f1b19; cursor: pointer; }
.clear-btn span[aria-hidden] { font-size: 1.1rem; }
.clear-btn:hover { background: #f6f4f0; }
@media (max-width: 600px) { .order-bar { gap: 8px; } .order-by { letter-spacing: 0.06em; gap: 8px; min-width: 0; } .order-by > span { display: none; } .order-by select { max-width: 100%; } .order-by select { padding: 8px 32px 8px 10px; letter-spacing: 0.04em; } .clear-btn { padding: 8px 12px; letter-spacing: 0.06em; } }
.order-bar label.order-by { display: flex; flex-direction: row; align-items: center; margin: 0; font-weight: 400; }
.order-bar label.order-by span { margin: 0; }
.order-bar label.order-by select { width: auto; margin: 0; }

/* ---------- Ad page, magazine style (like The Modern House) ---------- */
.detail.lx, .lx { display: block; }
.lx-hero { position: relative; width: 100vw; margin-left: calc(50% - 50vw); height: min(82vh, 760px); min-height: 520px; background: #ddd8cf; }
.lx-hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lx-card { position: absolute; left: max(28px, calc(50vw - 640px)); top: 18%; width: 330px; background: #f3f0ea; padding: 22px 22px 20px; color: #1f1b19; box-shadow: 0 1px 0 rgba(0,0,0,0.04); }
.lx-tags { display: flex; gap: 14px; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: #6f6a64; margin-bottom: 10px; }
.lx-title { font-family: "Lora", Georgia, "Noto Serif Khmer", "Songti SC", serif; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 1.55rem; line-height: 1.25; color: #1f1b19; margin: 0 0 10px; }
.lx-line { margin: 0 0 3px; font-family: "Lora", Georgia, "Noto Serif Khmer", "Songti SC", serif; font-size: 0.92rem; color: #1f1b19; }
.lx-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 16px 0 4px; }
.lx-links a, .lx-save { font: inherit; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: #1f1b19; text-decoration: none; padding: 0 0 6px; border: 0; border-bottom: 1px solid #1f1b19; background: none; border-radius: 0; cursor: pointer; width: auto; height: auto; margin: 0; }
.lx-save.on { color: var(--terracotta); border-color: var(--terracotta); }
.lx-contact-head { font-family: inherit; text-transform: uppercase; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; color: #6f6a64; margin: 18px 0 4px; }
.lx-small { margin: 0 0 8px; font-size: 0.82rem; color: #1f1b19; }
.lx-buttons { display: grid; gap: 8px; margin-bottom: 10px; }
.lx-btn { display: flex; align-items: center; justify-content: center; min-height: 42px; border: 1px solid #1f1b19; color: #1f1b19; text-decoration: none; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; background: transparent; }
.lx-btn:hover { background: #1f1b19; color: #fff; }
.lx-call { display: inline-block; font-family: "Lora", Georgia, serif; font-size: 0.88rem; color: #1f1b19; text-decoration: none; }
.lx-call:hover { text-decoration: underline; }

.lx-body { max-width: 660px; margin: 64px auto 0; }
.lx-body .detail-desc { margin: 0; }
.lx-facts { margin-top: 32px; border-top: 1px solid #d9d5cc; padding-top: 20px; }
.lx-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 40px; max-width: 1080px; margin: 72px auto 0; }
.lx-photo { display: block; background: #ddd8cf; }
.lx-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.lx-after { max-width: 1080px; margin: 72px auto 0; }
.lx-after .detail-map { height: 380px; border-radius: 0; }

@media (max-width: 1000px) {
  .lx-hero { height: auto; min-height: 0; }
  .lx-hero-img { height: 62vh; min-height: 300px; }
  .lx-card { position: static; width: auto; margin: 0 16px; transform: translateY(-40px); }
  .lx-body { margin-top: 10px; padding: 0 4px; }
  .lx-gallery { grid-template-columns: 1fr; gap: 14px; margin-top: 40px; }
}
@media (min-width: 1001px) { .lx-hero { min-height: 600px; } .lx-card { top: auto; bottom: 36px; max-height: calc(100% - 60px); overflow: auto; } }

/* ---------- Ad page facts: two columns, small caps labels, serif values ---------- */
.lx-body .lx-facts { display: grid; grid-template-columns: max-content 1fr max-content 1fr; column-gap: 26px; row-gap: 0; margin-top: 40px; border-top: 0; padding-top: 0; }
.lx-body .lx-facts dt, .lx-body .lx-facts dd { margin: 0; padding: 16px 0; border-top: 1px solid #dcd3cc; }
.lx-body .lx-facts dt { font-family: var(--sans); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: #8a6f67; align-self: stretch; display: flex; align-items: center; }
.lx-body .lx-facts dd { font-family: "Lora", Georgia, "Noto Serif Khmer", "Songti SC", serif; font-size: 1.05rem; font-weight: 400; color: #1f1b19; display: flex; align-items: center; }
.lx-body .lx-facts dd:nth-of-type(odd) { margin-right: 22px; }
@media (max-width: 700px) { .lx-body .lx-facts { grid-template-columns: max-content 1fr; } .lx-body .lx-facts dd:nth-of-type(odd) { margin-right: 0; } }

/* ---------- Ads from the owner: easy to spot ---------- */
.lx-owner-name { font-weight: 600; text-decoration: underline; text-decoration-color: var(--terracotta); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lx-owner-tag { display: inline-block; margin-left: 4px; padding: 2px 8px; border: 1px solid var(--terracotta); color: var(--terracotta); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; vertical-align: 1px; }
.card-extra .card-owner { color: #1f1b19; text-decoration: underline; text-decoration-color: var(--terracotta); text-decoration-thickness: 2px; text-underline-offset: 3px; }
/* Life in Siem Reap: a little bigger names and descriptions (Rea, 2026-12-02). */
.sr-card figcaption h3 { font-size: 1.25rem; margin-bottom: 8px; }
.sr-card figcaption p { font-size: 1rem; line-height: 1.55; }

/* ---------- Card photo: hover shows the second photo (fade) ---------- */
.card-photo .card-photo-next { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.45s ease; }
@media (hover: hover) {
  .card-photo.has-next:hover .card-photo-next { opacity: 1; }
  .card:hover .card-photo.has-next img { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .card-photo .card-photo-next { transition: none; } }

/* ---------- Card price: right of the name, bold and bigger ---------- */
.card-head { align-items: baseline; }
.card-head-right { display: flex; align-items: baseline; gap: 12px; flex: none; }
.card-cost { font-family: "Lora", Georgia, serif; font-size: 1.3rem; font-weight: 600; color: #1f1b19; white-space: nowrap; }
.card-cost small { font-family: var(--sans); font-size: 0.78rem; font-weight: 400; color: #6f6a64; }
.card-head .card-heart { align-self: center; }

/* ---------- Life in Siem Reap: one place per row, photo left, text right ---------- */
.sr-grid, .sr-grid[class] { display: grid; grid-template-columns: 1fr !important; gap: 28px; }
.sr-card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.sr-card img { aspect-ratio: 3 / 2; width: 100%; height: auto; }
.sr-card figcaption { padding: 0 24px 0 0; }
.sr-card figcaption h3 { font-size: 1.6rem; margin: 0 0 12px; }
.sr-card figcaption p { font-size: 1.05rem; line-height: 1.6; max-width: 40ch; }
@media (max-width: 720px) {
  .sr-card { grid-template-columns: 1fr; gap: 14px; }
  .sr-card figcaption { padding: 0; }
  .sr-card figcaption h3 { font-size: 1.25rem; }
}

/* Life in Siem Reap photos smaller (Rea: "too big"). */
@media (min-width: 721px) {
  .sr-card { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr); gap: 40px; }
  .sr-grid, .sr-grid[class] { gap: 22px; }
}

/* ---------- Life in Siem Reap: slide in from the sides on scroll ---------- */
.sr-anim .sr-card img, .sr-anim .sr-card figcaption { opacity: 0; transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.sr-anim .sr-card img { transform: translateX(-80px); }
.sr-anim .sr-card figcaption { transform: translateX(80px); transition-delay: 0.15s; }
.sr-anim .sr-card.sr-in img, .sr-anim .sr-card.sr-in figcaption { opacity: 1; transform: none; }
.sr-places { overflow-x: clip; }

/* ---------- Header: centered serif name, small capitals on both sides ---------- */
.header { background: #f3f3f1; border-bottom: 0; }
.header .bar {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 92px;
  padding: 16px 34px;
}
.header .logo { margin: 0; justify-self: center; }
.header .nav-links { gap: 22px; flex-wrap: nowrap; }
.header .nav-left { justify-content: flex-end; margin-right: 200px; }
.header .nav-side { display: flex; align-items: center; justify-content: flex-start; gap: 22px; min-width: 0; padding-left: 120px; }
.header .nav-links a,
.header .nav-links a.cta,
.header .nav-links a.nav-saved {
  padding: 4px 0;
  border-radius: 0;
  background: none;
  color: #1a1a1a;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: none;
  white-space: nowrap;
}
.header .nav-links a:hover,
.header .nav-links a.active,
.header .nav-links a.cta:hover { background: none; color: #1a1a1a; box-shadow: inset 0 -1px 0 #1a1a1a; }
.header .nav-links a.nav-saved,
.header .nav-links a.nav-saved:hover { letter-spacing: 0; text-transform: none; box-shadow: none; background: none; padding: 0 2px; }
.header .nav-saved > span[aria-hidden] { font-size: 1.15rem; color: var(--terracotta); letter-spacing: 0; }
.header .saved-count { letter-spacing: 0; }
.header .langs { gap: 14px; background: none; border: 0; padding: 0; }
.header .lang-btn {
  padding: 2px 0;
  border-radius: 0;
  background: none;
  color: #1a1a1a;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.header .lang-btn[aria-pressed="true"] { background: none; color: #1a1a1a; font-weight: 600; box-shadow: inset 0 -1px 0 #1a1a1a; }
.big-on .header,
.big-on:not(.header-solid) .header { background: #f3f3f1; border-color: transparent; }
.big-on .header .logo { opacity: 1; }
.big-on:not(.header-solid) .nav-links a,
.big-on:not(.header-solid) .nav-links a:not(.cta),
.big-on:not(.header-solid) .nav-saved span { color: #1a1a1a; text-shadow: none; background: none; }
.big-on .hero { margin-top: 0; }
@media (max-width: 1100px) {
  .header .bar { padding: 14px 16px; gap: 10px; }
  .header .nav-left { margin-right: 72px; }
  .header .nav-links { gap: 12px; }
  .header .nav-side { gap: 12px; padding-left: 40px; }
  .header .logo { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 860px) {
  .header .bar { display: flex; flex-direction: column; align-items: center; min-height: 0; padding: 16px 16px 12px; }
  .header .logo { order: -1; }
  .header .nav-left { order: 0; width: auto; margin-right: 0; }
  .header .nav-side { order: 1; flex-direction: column; gap: 8px; padding-left: 0; }
  .header .nav-links { order: 0; width: auto; flex-wrap: wrap; justify-content: center; }
}

/* Popular searches links (added by the Cloudflare site to the footer) */
.popular-searches { padding: 0 0 26px; font-size: 0.85rem; line-height: 1.9; }
.popular-searches .popular-title { margin: 0 0 4px; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; }
.popular-searches a { color: inherit; text-decoration: none; opacity: 0.85; }
.popular-searches a:hover { opacity: 1; text-decoration: underline; }

/* Home only: the top photo in its real colours (no pink tint), with a soft dark
   shade so the white title stays readable. For rent / For sale keep the tint. */
.home-plain .hero-shade { background: linear-gradient(rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.38)); }
.home-plain .hero h1, .home-plain .hero-lead { text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45); }
/* Opening: the name big in the middle, then it travels into the header */
.intro-name { position: fixed; left: 0; top: 0; z-index: 1001; margin: 0; pointer-events: none; transform-origin: 0 0; animation: intro-name-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes intro-name-in { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
.intro-on .header .logo { opacity: 0; }

/* Property type photos (House, Land, Condo...): smaller on computers and phones */
.types { max-width: 860px; gap: 10px; }
.type-tile { height: 92px; border-radius: 10px; }
.type-tile span { padding: 18px 10px 7px; font-size: 0.88rem; }
@media (max-width: 900px) {
  /* Phones and tablets: one short row you can swipe sideways */
  .types { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .types::-webkit-scrollbar { display: none; }
  .type-tile { flex: 0 0 116px; height: 74px; scroll-snap-align: start; }
  .type-tile span { font-size: 0.8rem; padding: 14px 8px 6px; }
}

/* Web app: "Get the app" help box and the no-internet page */
.app-dialog { max-width: 420px; width: calc(100% - 32px); border: 0; border-radius: 14px; padding: 26px 24px 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25); }
.app-dialog::backdrop { background: rgba(20, 12, 10, 0.5); }
.app-dialog h2 { margin: 0 0 8px; }
.app-dialog .app-lead { margin: 0 0 14px; }
.app-dialog .app-steps { margin: 0 0 20px; padding-left: 22px; line-height: 1.7; }
.offline-page { min-height: 100vh; display: grid; place-items: center; background: #f3f3f1; }
.offline-box { max-width: 420px; padding: 32px 22px; text-align: center; }
.offline-box img { border-radius: 22px; }
.offline-box p { margin: 0 0 10px; }
.offline-box .btn { margin-top: 14px; }
.offline-box img { display: block; margin: 0 auto 8px; }
.photo-credits { max-width: 1100px; margin: 28px auto 0; padding: 0 20px; font-size: 0.72rem; opacity: 0.6; }

/* Telegram channel: footer button (all pages) and the invite band (Home, For rent, For sale) */
.tg-join { display: inline-flex; align-items: center; gap: 9px; margin-top: 14px; padding: 9px 16px 9px 10px; border-radius: 999px; background: #229ED9; color: #fff; font-size: 0.86rem; font-weight: 600; text-decoration: none; }
.tg-join:hover { background: #1c8cc2; }
.tg-join .tg-icon { width: 22px; height: 22px; }
.tg-join .tg-icon circle { fill: #fff; }
.tg-join .tg-icon path { fill: #229ED9; }
.tg-band-wrap { margin-top: 8px; margin-bottom: 8px; }
.tg-band { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 14px; background: #e8f5fc; border: 1px solid #c4e5f5; color: #12384d; text-decoration: none; }
.tg-band:hover { background: #dcf0fa; }
.tg-band .tg-icon { flex: 0 0 auto; width: 44px; height: 44px; }
.tg-band-text { display: flex; flex-direction: column; gap: 2px; flex: 1; font-size: 0.92rem; line-height: 1.4; }
.tg-band-text b { font-size: 1.02rem; }
.tg-band-btn { flex: 0 0 auto; padding: 9px 20px; border-radius: 999px; background: #229ED9; color: #fff; font-weight: 700; font-size: 0.9rem; }
@media (max-width: 600px) {
  .tg-band { flex-wrap: wrap; padding: 14px 16px; gap: 12px; }
  .tg-band .tg-icon { width: 36px; height: 36px; }
  .tg-band-btn { width: 100%; text-align: center; }
}
/* Laptops around 1280px: keep the language buttons inside the screen */
@media (max-width: 1360px) and (min-width: 1101px) { .header .nav-side { padding-left: 56px; } }

/* Home hero: what we are not (only on Home; For rent/sale and search pages hide it) */
.hero-promise { display: none; list-style: none; margin: -6px 0 0; padding: 0; flex-wrap: wrap; justify-content: center; gap: 8px 10px; }
.home-plain .hero-promise { display: flex; }
.hero-promise li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.45); color: #fff; font-size: 0.9rem; font-weight: 600; text-shadow: none; backdrop-filter: blur(4px); }
.hero-promise li::before { content: "✓"; font-weight: 800; }
@media (max-width: 600px) { .hero-promise li { font-size: 0.8rem; padding: 5px 11px; } }

/* About: our promise, three cards at the top */
.promise-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.promise-card { position: relative; padding: 22px 22px 20px 70px; border-radius: 14px; background: #fff; border: 2px solid var(--terracotta); box-shadow: var(--shadow); }
.promise-card h2 { margin: 0 0 6px; font-size: 1.25rem; color: var(--cocoa); }
.promise-card p { margin: 0; font-size: 0.95rem; line-height: 1.5; }
.promise-tick { position: absolute; left: 20px; top: 20px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--terracotta); color: #fff; font-weight: 800; font-size: 1.1rem; }
@media (max-width: 860px) { .promise-cards { grid-template-columns: 1fr; } }

/* Home hero promises: a slow sideways ticker that loops forever */
.home-plain .hero-promise { display: block; width: min(760px, 100%); overflow: hidden; margin: -6px auto 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.hero-promise-track { display: flex; width: max-content; animation: promise-run 22s linear infinite; }
.hero-promise:hover .hero-promise-track { animation-play-state: paused; }
.hero-promise ul { display: flex; gap: 10px; margin: 0; padding: 2px 10px 2px 0; list-style: none; }
.hero-promise li { white-space: nowrap; }
@keyframes promise-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .hero-promise-track { animation: none; }
  .hero-promise ul[aria-hidden] { display: none; }
  .home-plain .hero-promise { -webkit-mask-image: none; mask-image: none; }
  .hero-promise ul { flex-wrap: wrap; justify-content: center; }
}

/* "Show more" under long ad lists. */
.show-more { display: block; margin: 36px auto 0; min-width: 260px; }
.show-more[hidden] { display: none; }
.qr-save { display: inline-flex; margin-top: 12px; }
.qr-help { font-size: 0.85rem; margin-top: 8px; max-width: 320px; }
.proof-shot { margin-top: 14px; font-weight: 600; text-align: left; }
