/* ==========================================================================
   Eric Ong — Property Consultant (demo website)
   ========================================================================== */

:root {
  --bg: #f8f6f2;
  --surface: #ffffff;
  --surface-2: #f1ede6;
  --ink: #17212b;
  --ink-2: #3a4652;
  --muted: #5f6b78;
  --line: #e6e0d6;
  --brand: #12403c;
  --brand-600: #0d3330;
  --brand-50: #e5efed;
  --accent: #c8964f;
  --accent-600: #8f6224;
  --rent: #9a6420;
  --wa: #0f7a5c;
  --heart: #c2410c;
  --danger: #b3261e;
  --success: #1f7a4d;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(23, 33, 43, .06), 0 1px 1px rgba(23, 33, 43, .04);
  --shadow: 0 14px 34px -14px rgba(23, 33, 43, .28);
  --shadow-lg: 0 28px 64px -24px rgba(10, 30, 28, .45);

  --container: 1200px;
  --header-h: 72px;
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
img.is-broken { visibility: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  color: var(--ink);
}

p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }

/* Sprite icons: stroke styles live here (not on the symbols) so states like a filled heart can override them. */
.icon {
  width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff;
  padding: .6rem 1rem; border-radius: 10px;
  font-weight: 700; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  display: inline-block;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin: 0 0 .9rem;
}
.eyebrow--light { color: #e9c58f; }

.muted { color: var(--muted); }
.center { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.35rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn .icon { width: 18px; height: 18px; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); box-shadow: 0 10px 22px -10px rgba(18, 64, 60, .7); }

.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #d6a764; box-shadow: 0 10px 22px -10px rgba(200, 150, 79, .8); }

.btn-outline { background: transparent; color: var(--brand); border-color: currentColor; }
.btn-outline:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: #f4efe6; }

.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #0b6249; }

.btn-sm { padding: .55rem 1rem; font-size: .88rem; }
.btn-block { width: 100%; }

.link-btn {
  background: none; border: 0; padding: 0;
  color: var(--brand); font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px;
}

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--brand); font-weight: 700; text-decoration: none;
}
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--ink);
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}

.site-header--overlay {
  position: fixed;
  inset: 0 0 auto 0;
  color: #fff;
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.site-header--overlay.is-solid {
  color: var(--ink);
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex; align-items: center; gap: 11px;
  margin-right: auto;
  color: inherit; text-decoration: none;
}
.brand-mark { width: 40px; height: 40px; flex: none; border-radius: 11px; }
.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 600; line-height: 1;
}
.brand-tag {
  display: block; margin-top: 4px;
  font-size: .64rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  opacity: .75;
}

.site-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block;
  padding: .5rem .85rem;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  text-decoration: none;
  opacity: .88;
  transition: background-color .2s, opacity .2s;
}
.site-nav a:hover { opacity: 1; background: rgba(128, 128, 128, .14); }
.site-nav a[aria-current="page"] { opacity: 1; background: rgba(128, 128, 128, .16); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  position: relative;
  display: inline-grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(128, 128, 128, .35);
  background: transparent;
  color: inherit; text-decoration: none;
  transition: background-color .2s, border-color .2s;
}
.icon-btn:hover { background: rgba(128, 128, 128, .14); }
.icon-btn .icon { width: 20px; height: 20px; }

.saved-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px;
  background: var(--heart); color: #fff;
  font-size: .7rem; font-weight: 800; line-height: 20px; text-align: center;
}

.nav-toggle { display: none; }
.header-chat .label-short { display: none; }

@media (max-width: 1023px) {
  .nav-toggle { display: inline-grid; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; color: var(--ink);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 8px 16px 20px;
    display: none;
  }
  .site-header.nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: .95rem .5rem; border-radius: 10px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
}

@media (max-width: 599px) {
  .brand-tag { display: none; }
  .header-chat .label-long { display: none; }
  .header-chat .label-short { display: inline; }
  .header-chat { padding: .55rem .85rem; }
  .header-actions { gap: 8px; }
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(94vh, 860px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 56px) 0 56px;
  color: #fff;
  background: var(--brand-600);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 26, 24, .62) 0%, rgba(8, 26, 24, .18) 32%, rgba(8, 26, 24, .55) 70%, rgba(8, 26, 24, .88) 100%),
    linear-gradient(90deg, rgba(8, 26, 24, .55) 0%, rgba(8, 26, 24, 0) 65%);
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  max-width: 13ch;
  margin-bottom: .35em;
}
.hero-lead {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  max-width: 54ch;
  color: rgba(255, 255, 255, .9);
  margin-bottom: 0;
}

.search-panel {
  margin-top: 36px;
  max-width: 1080px;
  background: #fff;
  color: var(--ink);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
}
.search-panel .seg { margin: 6px 6px 4px; }
.search-fields {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr .8fr auto;
  gap: 10px;
  align-items: end;
  padding: 8px;
}
.search-fields .btn { height: 50px; padding-inline: 1.6rem; }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  list-style: none; margin: 24px 0 0; padding: 0;
  font-size: .95rem; color: rgba(255, 255, 255, .88);
}
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta strong { color: #fff; font-weight: 800; }
.hero-meta .icon { color: #e9c58f; }

@media (max-width: 1023px) {
  .search-fields { grid-template-columns: 1fr 1fr; }
  .search-fields .field--q { grid-column: 1 / -1; }
  .search-fields .btn { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 40px); padding-bottom: 40px; }
  .search-fields { grid-template-columns: 1fr; }
}

/* ---------- Form controls ---------- */

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label {
  font-size: .72rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 50px;
  padding: .7rem .95rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background-color: #fff;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder, .textarea::placeholder { color: #8b95a0; }
.input[type="search"] { -webkit-appearance: none; appearance: none; }
.input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
.input:hover, .select:hover, .textarea:hover { border-color: #d3cbbd; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(18, 64, 60, .14);
}
.select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6b78' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  background-size: 16px;
  cursor: pointer;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] { border-color: var(--danger); }

.input-group { position: relative; }
.input-group .icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
}
.input-group .input { padding-left: 2.6rem; }

/* Segmented control built from radio inputs */
.seg {
  display: inline-flex; gap: 2px;
  padding: 4px; margin: 0;
  border: 0; border-radius: 999px;
  background: var(--surface-2);
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  padding: .5rem 1.15rem;
  border-radius: 999px;
  font-weight: 700; font-size: .9rem;
  color: var(--ink-2);
  cursor: pointer; user-select: none;
  transition: background-color .2s, color .2s;
}
.seg label:hover { color: var(--ink); }
.seg input:checked + label { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.seg input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-field label:not(.checkbox) { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; }
.form-field .req { color: var(--danger); }
.field-error { margin: 6px 0 0; font-size: .82rem; font-weight: 600; color: var(--danger); }
.field-error:empty { display: none; }

.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .87rem; color: var(--muted); line-height: 1.5; }
.checkbox input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--brand); }
.checkbox--strong { color: var(--ink); font-weight: 600; font-size: .92rem; }

.form-note { font-size: .8rem; color: var(--muted); margin: 0; }

.form-success { text-align: center; padding: 16px 4px; }
.form-success:focus { outline: none; }
.form-success .success-icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: #e3f3ea; color: var(--success);
}
.form-success .success-icon .icon { width: 30px; height: 30px; }
.form-success h3 { font-size: 1.5rem; }
.form-success p { color: var(--muted); }

@media (max-width: 599px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tint { background: var(--surface-2); }
.section--tight-top { padding-top: 0; }

.section-head {
  display: flex; flex-wrap: wrap;
  align-items: flex-end; justify-content: space-between;
  gap: 20px 32px;
  margin-bottom: 40px;
}
.section-head h2 { font-size: clamp(2rem, 3.4vw, 2.85rem); margin: 0; }
.section-head p:not(.eyebrow) { color: var(--muted); max-width: 58ch; margin: .8rem 0 0; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }

.section-foot { margin-top: 44px; text-align: center; }

/* ---------- Listing cards ---------- */

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 28px;
}

.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s, transform .3s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.card:focus-within { box-shadow: var(--shadow); }

.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.card:hover .card-media img { transform: scale(1.045); }

.card-badges { position: absolute; top: 14px; left: 14px; display: flex; flex-wrap: wrap; gap: 6px; }

.badge {
  display: inline-flex; align-items: center;
  padding: .32rem .7rem;
  border-radius: 999px;
  font-size: .7rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  background: #fff; color: var(--ink);
}
.badge-sale { background: var(--brand); color: #fff; }
.badge-rent { background: var(--rent); color: #fff; }
.badge-soft { background: var(--surface-2); color: var(--ink-2); }
.badge-flag { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.fav-btn {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, color .2s;
}
.fav-btn:hover { transform: scale(1.08); color: var(--heart); }
.fav-btn .icon { width: 20px; height: 20px; transition: fill .2s; }
.fav-btn[aria-pressed="true"] { color: var(--heart); }
.fav-btn[aria-pressed="true"] .icon { fill: currentColor; }

.card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 18px 20px 20px; }

.card-price {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 600; line-height: 1.2;
  color: var(--brand);
}
.card-price .per { font-family: var(--font-body); font-size: .9rem; font-weight: 700; color: var(--muted); margin-left: -4px; }
.card-psf { margin-left: auto; font-family: var(--font-body); font-size: .8rem; font-weight: 600; color: var(--muted); }

.card-title { margin: 0; font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; line-height: 1.35; letter-spacing: 0; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-title a:focus-visible { outline: none; }
.card-title a:focus-visible::after { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: var(--radius); }

.card-loc { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .9rem; color: var(--muted); }
.card-loc .icon { color: var(--accent-600); }
.card-meta { margin: 0 0 6px; font-size: .85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.card-specs {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  list-style: none;
  margin: auto 0 0; padding: 14px 0 0;
  border-top: 1px solid var(--line);
  font-size: .88rem; font-weight: 600; color: var(--ink-2);
}
.card-specs li { display: flex; align-items: center; gap: 6px; }
.card-specs .icon { width: 18px; height: 18px; color: var(--muted); }

/* ---------- Property types ---------- */

.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.type-tile {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: 300px;
  border-radius: var(--radius-lg);
  color: #fff; text-decoration: none;
  background: var(--brand);
}
.type-tile img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s ease;
}
.type-tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8, 24, 22, 0) 35%, rgba(8, 24, 22, .86) 100%);
}
.type-tile:hover img { transform: scale(1.05); }
.type-tile-body { padding: 24px; width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.type-tile h3 { color: #fff; font-size: 1.6rem; margin: 0 0 4px; }
.type-tile p { margin: 0; font-weight: 600; font-size: .92rem; opacity: .9; }
.type-tile .tile-arrow {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .35);
  transition: background-color .2s, transform .2s;
}
.type-tile:hover .tile-arrow { background: var(--accent); color: var(--ink); border-color: var(--accent); transform: translateX(3px); }

@media (max-width: 899px) {
  .type-grid { grid-template-columns: 1fr; }
  .type-tile { min-height: 200px; }
}

/* ---------- Services ---------- */

.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
  display: flex; flex-direction: column; gap: 12px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow .3s, transform .3s;
}
.service:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service-icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 15px;
  background: var(--brand-50); color: var(--brand);
}
.service-icon .icon { width: 26px; height: 26px; }
.service h3 { font-size: 1.35rem; margin: 6px 0 0; }
.service p { margin: 0 0 8px; color: var(--muted); font-size: .95rem; }
.service .link-arrow { margin-top: auto; }

@media (max-width: 1023px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) { .services { grid-template-columns: 1fr; } }

/* ---------- Sell / let band ---------- */

.sell-band {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  overflow: hidden;
  border-radius: 28px;
  background: var(--brand);
  color: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow-lg);
}
.sell-band-content { padding: clamp(32px, 5vw, 64px); }
.sell-band h2 { color: #fff; font-size: clamp(2rem, 3.4vw, 2.75rem); }
.sell-band-media { position: relative; min-height: 340px; background: var(--brand-600); }
.sell-band-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.check-list { display: grid; gap: 12px; list-style: none; margin: 24px 0 32px; padding: 0; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { margin-top: 3px; color: var(--accent); }
.sell-band .check-list li { color: #fff; font-weight: 600; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 899px) {
  .sell-band { grid-template-columns: 1fr; }
  .sell-band-media { min-height: 240px; order: -1; }
}

/* ---------- About ---------- */

.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 88px); align-items: center; }

.portrait {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 5;
  display: grid; place-items: center;
  border-radius: 28px;
  background:
    radial-gradient(90% 70% at 25% 15%, rgba(233, 197, 143, .22) 0%, rgba(233, 197, 143, 0) 60%),
    linear-gradient(160deg, #1b5550 0%, var(--brand) 45%, #0a2724 100%);
  box-shadow: var(--shadow-lg);
}
.portrait::before {
  content: "";
  position: absolute; inset: 22px;
  border: 1px solid rgba(233, 197, 143, .35);
  border-radius: 18px;
  pointer-events: none;
}
.portrait-initials {
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 13vw, 10rem);
  font-weight: 500; line-height: 1;
  letter-spacing: -.03em;
  color: rgba(255, 255, 255, .92);
  margin-top: -40px;
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait-card {
  position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.portrait-card strong { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.portrait-card span { font-size: .82rem; color: var(--muted); font-weight: 600; }
.status-dot { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem !important; color: var(--success) !important; font-weight: 800 !important; white-space: nowrap; }
.status-dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: currentColor; box-shadow: 0 0 0 4px rgba(31, 122, 77, .16); }

.about h2 { font-size: clamp(2.1rem, 3.6vw, 3rem); }
.about-copy p:not(.eyebrow) { color: var(--ink-2); font-size: 1.04rem; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 32px 0; padding: 24px 0; border-block: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 600; line-height: 1.05; color: var(--brand); }
.stat span { display: block; margin-top: 6px; font-size: .84rem; font-weight: 600; color: var(--muted); line-height: 1.35; }

.about .check-list { margin: 0 0 32px; }
.about .check-list li { color: var(--ink-2); }
.about .check-list .icon { color: var(--brand); }

@media (max-width: 899px) {
  .about { grid-template-columns: 1fr; }
  .portrait { max-width: 440px; width: 100%; margin-inline: auto; }
}
@media (max-width: 599px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Testimonials ---------- */

.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote-card {
  display: flex; flex-direction: column; gap: 18px;
  margin: 0; padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stars { display: flex; gap: 3px; color: var(--accent); }
.stars .icon { width: 18px; height: 18px; fill: currentColor; }
.quote-card blockquote { margin: 0; font-size: 1.03rem; color: var(--ink-2); line-height: 1.65; }
.quote-card blockquote p { margin: 0; }
.quote-card figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--brand-50); color: var(--brand);
  font-weight: 800; font-size: .95rem;
}
.quote-card figcaption strong { display: block; font-size: .95rem; }
.quote-card figcaption span { font-size: .85rem; color: var(--muted); }

@media (max-width: 899px) { .testimonials { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */

.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.contact h2 { font-size: clamp(2.1rem, 3.6vw, 3rem); }
.contact-intro { color: var(--ink-2); font-size: 1.04rem; }

.contact-methods { display: grid; gap: 12px; list-style: none; margin: 28px 0 0; padding: 0; }
.contact-method {
  width: 100%;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: left; text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.contact-method:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.cm-icon {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--brand-50); color: var(--brand);
}
.cm-icon .icon { width: 22px; height: 22px; }
.cm-icon--wa { background: #e2f3ec; color: var(--wa); }
.contact-method small { display: block; font-size: .78rem; font-weight: 700; color: var(--muted); }
.contact-method strong { display: block; font-weight: 700; }
.contact-method .chev { margin-left: auto; color: var(--muted); }
.contact-hours { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: .9rem; color: var(--muted); }

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow);
}
.form-card h3 { font-size: 1.6rem; margin-bottom: .3em; }
.form-card > p { color: var(--muted); }

@media (max-width: 899px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.site-footer { background: #0b2220; color: rgba(255, 255, 255, .74); padding: 72px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer .brand { color: #fff; margin: 0 0 18px; }
.footer-about { max-width: 36ch; }
.site-footer h3 {
  margin: 0 0 16px;
  font-family: var(--font-body); font-size: .76rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
  color: #fff;
}
.footer-links { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; color: rgba(255, 255, 255, .74); transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-links .icon { margin-right: 8px; color: #e9c58f; }

.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  transition: background-color .2s, border-color .2s;
}
.socials a:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .45); }
.socials .icon { width: 18px; height: 18px; }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  margin-top: 56px; padding: 24px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .84rem;
}
.footer-bottom p { margin: 0; }
.demo-note { color: rgba(255, 255, 255, .5); }

@media (max-width: 899px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .footer-grid { grid-template-columns: 1fr; }
  /* leave room for the chat launcher in the bottom-right corner */
  .footer-bottom { padding-bottom: 96px; }
}

/* ---------- Page hero (listings) ---------- */

.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + 56px) 0 96px;
  color: #fff;
  background: var(--brand-600);
}
.page-hero img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8, 24, 22, .9) 0%, rgba(8, 24, 22, .55) 100%);
}
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin: 0 0 .3em; }
.page-hero p { color: rgba(255, 255, 255, .86); max-width: 60ch; margin: 0; font-size: 1.05rem; }

.breadcrumb { margin-bottom: 16px; font-size: .88rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .55; }
.breadcrumb a { text-decoration: none; opacity: .82; }
.breadcrumb a:hover { opacity: 1; text-decoration: underline; }
.breadcrumb [aria-current] { opacity: .65; }

/* ---------- Listings: filters & results ---------- */

.filters {
  position: relative; z-index: 5;
  margin-top: -52px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.filters-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.filters-top .input-group { flex: 1 1 260px; }
.filters-toggle { display: none; }
.filters-more {
  display: flex; flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--line);
}
.filters-more .field { flex: 0 1 230px; }
.filters-more .btn { height: 50px; margin-left: auto; }

.results-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 20px;
  margin: 36px 0 22px;
}
.results-count { margin: 0; font-size: 1.02rem; color: var(--ink-2); }
.results-count strong { color: var(--ink); }
.results-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.results-tools .select { min-height: 44px; width: auto; }

.toggle-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .6rem 1rem;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--surface);
  font-weight: 700; font-size: .9rem;
  cursor: pointer; user-select: none;
}
.toggle-pill input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-pill .icon { width: 18px; height: 18px; color: var(--heart); }
.toggle-pill:has(input:checked) { border-color: var(--heart); background: #fdf1ea; color: var(--heart); }
.toggle-pill:has(input:checked) .icon { fill: currentColor; }
.toggle-pill:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }

.empty-state {
  padding: 64px 20px;
  text-align: center;
  background: var(--surface);
  border: 1.5px dashed #d8d0c2;
  border-radius: var(--radius-lg);
}
.empty-state .icon { width: 40px; height: 40px; color: var(--muted); margin-bottom: 12px; }
.empty-state h2 { font-size: 1.6rem; }
.empty-state p { color: var(--muted); max-width: 46ch; margin-inline: auto; }
.empty-state .btn-row { justify-content: center; margin-top: 8px; }

.page-body { padding-bottom: clamp(64px, 8vw, 104px); }

.cta-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px 32px;
  margin-top: 64px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--brand-50);
  border-radius: var(--radius-lg);
}
.cta-strip h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 .3em; }
.cta-strip p { margin: 0; color: var(--ink-2); max-width: 56ch; }

@media (max-width: 1023px) {
  .filters-more .field { flex: 1 1 calc(50% - 6px); }
  .filters-more .btn { flex: 1 1 100%; margin-left: 0; }
}
@media (max-width: 767px) {
  .filters-toggle { display: inline-flex; }
  .filters-top .seg { width: 100%; }
  .filters-top .seg label { flex: 1; text-align: center; }
  .filters-more { display: none; }
  .filters.is-expanded .filters-more { display: flex; }
}

/* ---------- Property detail ---------- */

.prop-page { padding: 28px 0 0; }
.prop-page .breadcrumb { color: var(--muted); }

.prop-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 20px 40px;
  margin: 8px 0 26px;
}
.prop-head .badges { display: flex; flex-wrap: wrap; gap: 6px; }
.prop-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin: 12px 0 10px; max-width: 24ch; }
.prop-loc { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-weight: 600; }
.prop-loc .icon { color: var(--accent-600); }
.prop-price { text-align: right; }
.prop-price .price {
  margin: 0;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1.05;
  color: var(--brand);
}
.prop-price .per { margin-left: 4px; font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--muted); }
.prop-price .psf { margin: 6px 0 0; font-size: .9rem; font-weight: 600; color: var(--muted); }
.prop-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.prop-actions .btn { background: var(--surface); }
.prop-actions .btn[aria-pressed="true"] { color: var(--heart); border-color: var(--heart); }
.prop-actions .btn[aria-pressed="true"] .icon { fill: currentColor; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
  height: clamp(340px, 46vw, 580px);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.gallery--3 { grid-template-columns: 2fr 1fr; }
.gallery--2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.gallery--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.gallery-item {
  position: relative; overflow: hidden;
  padding: 0; border: 0;
  background: var(--surface-2);
  cursor: zoom-in;
}
.gallery-item:first-child { grid-row: 1 / -1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-item:hover img { transform: scale(1.035); }
.gallery-item:focus-visible { outline-offset: -4px; }
.gallery-all {
  position: absolute; right: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: .6rem 1rem;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, .95);
  color: var(--ink);
  font-weight: 700; font-size: .88rem;
  box-shadow: var(--shadow);
}
.gallery-wrap { position: relative; }

@media (max-width: 767px) {
  .gallery, .gallery--3, .gallery--2 {
    display: flex; height: auto;
    overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 8px; border-radius: var(--radius);
    scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery-item { flex: 0 0 88%; aspect-ratio: 4 / 3; scroll-snap-align: start; border-radius: 12px; }
  .gallery-item:only-child { flex-basis: 100%; }
}

/* Layout */
.prop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
  margin-top: 40px;
}
/* Only stick the enquiry card when the whole card fits on screen, so "Send enquiry" never ends up out of reach. */
@media (min-width: 1024px) and (min-height: 1080px) {
  .prop-aside { position: sticky; top: calc(var(--header-h) + 24px); }
}

.key-facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  list-style: none; margin: 0 0 8px; padding: 0;
}
.key-facts li {
  display: flex; flex-direction: column; gap: 8px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.key-facts .icon { width: 24px; height: 24px; color: var(--brand); }
.key-facts small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.key-facts strong { display: block; font-size: 1.02rem; line-height: 1.3; }

.prop-section { padding: 36px 0; border-bottom: 1px solid var(--line); }
.prop-section:last-child { border-bottom: 0; }
.prop-section h2 { font-size: 1.7rem; margin-bottom: .7em; }
.prop-section > p { color: var(--ink-2); font-size: 1.03rem; }

.details-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px;
  margin: 0;
}
.details-list div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.details-list dt { color: var(--muted); font-weight: 600; }
.details-list dd { margin: 0; font-weight: 700; text-align: right; }

.feature-list { columns: 2; column-gap: 32px; list-style: none; margin: 0; padding: 0; }
.feature-list li { display: flex; gap: 10px; padding: 7px 0; break-inside: avoid; color: var(--ink-2); }
.feature-list .icon { margin-top: 3px; color: var(--brand); }

.mrt-line { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.mrt-line .cm-icon { width: 42px; height: 42px; }
.mrt-line strong { display: block; }
.mrt-line span { color: var(--muted); font-size: .92rem; }
.map-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fine-print { margin: 12px 0 0; font-size: .82rem; color: var(--muted); }

/* Mortgage calculator */
.calc {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.calc-inputs { display: grid; gap: 22px; align-content: start; }
.calc label { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.calc output { color: var(--brand); font-weight: 800; }
.prefix-input { position: relative; }
.prefix-input span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--muted); }
.prefix-input .input { padding-left: 2.5rem; font-weight: 700; }
.range { width: 100%; accent-color: var(--brand); margin: 0; }

.calc-result {
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: 26px;
  border-radius: 18px;
  background: var(--brand);
  color: rgba(255, 255, 255, .8);
}
.calc-result .label { margin: 0; font-size: .85rem; font-weight: 700; }
.calc-result .amount { margin: 0; font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 2.8rem); font-weight: 600; line-height: 1.05; color: #fff; }
.calc-result .amount small { font-family: var(--font-body); font-size: 1rem; color: rgba(255, 255, 255, .75); }
.calc-result dl { display: grid; gap: 8px; margin: 18px 0 20px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .18); }
.calc-result dl div { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.calc-result dd { margin: 0; font-weight: 700; color: #fff; }

/* Rental terms */
.terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 20px; }
.terms div { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.terms dt { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.terms dd { margin: 0; font-weight: 700; }

/* Agent card */
.agent-card { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.agent-card-head { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.agent-avatar {
  position: relative; overflow: hidden;
  width: 62px; height: 62px; flex: none;
  display: grid; place-items: center;
  border-radius: 999px;
  background: linear-gradient(160deg, #1b5550, var(--brand) 55%, #0a2724);
  color: #fff;
  font-family: var(--font-display); font-size: 1.45rem; font-weight: 500;
}
.agent-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.agent-name { margin: 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.agent-role { margin: 0; font-size: .84rem; color: var(--muted); }
.agent-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 18px 22px 4px; }
.agent-quick .span-2 { grid-column: 1 / -1; }
.agent-form { padding: 18px 22px 24px; display: grid; gap: 14px; }
.agent-form h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 800; margin: 0; letter-spacing: 0; }
.agent-form .textarea { min-height: 96px; }
.viewing-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

@media (max-width: 1023px) {
  .prop-layout { grid-template-columns: 1fr; }
  .key-facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .prop-price { text-align: left; }
  .prop-actions { justify-content: flex-start; }
  .details-list { grid-template-columns: 1fr; }
  .feature-list { columns: 1; }
  .calc { grid-template-columns: 1fr; padding: 18px; }
  .terms { grid-template-columns: 1fr 1fr; }
}

.not-found { padding: 96px 0; text-align: center; }
.not-found h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.not-found p:not(.eyebrow) { color: var(--muted); }
.not-found .btn-row { justify-content: center; margin-top: 24px; }

/* Loading skeleton */
.skeleton { border-radius: var(--radius); background: linear-gradient(90deg, var(--surface-2) 0%, #f7f4ee 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.sk-line { height: 18px; width: 38%; margin: 4px 0 18px; }
.sk-title { height: 44px; width: min(640px, 80%); margin-bottom: 28px; }
.sk-gallery { height: clamp(340px, 46vw, 580px); border-radius: var(--radius-lg); margin-bottom: 96px; }

/* ---------- Lightbox ---------- */

.lightbox {
  width: 100%; height: 100%;
  max-width: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0;
  background: transparent;
  color: #fff;
}
.lightbox::backdrop { background: rgba(5, 14, 13, .94); }
.lightbox-stage { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 64px 80px; }
.lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); }
.lb-btn {
  position: absolute;
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  transition: background-color .2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .24); }
.lb-btn .icon { width: 24px; height: 24px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 18px; top: 18px; }
.lb-count { position: absolute; left: 24px; top: 28px; margin: 0; font-weight: 700; font-size: .95rem; color: rgba(255, 255, 255, .85); }

@media (max-width: 599px) {
  .lightbox-stage { padding: 72px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}

/* ---------- Toast ---------- */

.toast {
  position: fixed; left: 50%; top: calc(var(--header-h) + 14px); z-index: 120;
  display: flex; align-items: center; gap: 10px;
  max-width: calc(100% - 32px);
  padding: .75rem 1.15rem;
  border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: .92rem; font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none;
  transform: translate(-50%, -10px);
  transition: opacity .25s, transform .25s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast .icon { color: #e9c58f; }
