/* ─────────────────────────────────────────────────────────────────────────
   Warren Lim — Industrial Property
   Design system extracted from the prototype handoff (README.md tokens).
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --bg: #F5F5F7;
  --white: #FFFFFF;
  --text: #1D1D1F;
  --text-secondary: #6E6E73;
  --text-muted: #86868B;
  --text-muted-dark: #A1A1A6;
  --border: #D2D2D7;
  --accent: #0071E3;
  --accent-hover: #0058B0;
  --accent-tint-bg: #E8F0FE;
  --accent-tint-icon: #0058B0;
  --accent-light: #86B8F2;
  --dark: #1D1D1F;
  --dark-pill: #0E2438;
  --rent-bg: #E2F3EF;
  --rent-text: #0E7C6B;
  --sale-bg: #E8F0FE;
  --sale-text: #0058B0;
  --whatsapp: #25D366;

  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-logo: 'Licorice', cursive;

  --container-max: 1200px;
  --container-px: 24px;
  --section-py: 76px;

  --radius-btn: 8px;
  --radius-card: 10px;
  --radius-lg: 16px;
  --radius-icon: 9px;

  --shadow-card-hover: 0 20px 44px -22px rgba(0,0,0,0.28);
  --shadow-header: 0 8px 24px -12px rgba(14,36,56,0.25);
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-hover); }
ul { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; }
input, select, textarea { font: inherit; }
::selection { background: var(--accent); color: #fff; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-px); }

/* ── Animations ────────────────────────────────────────────────────────── */
@keyframes pulseRing { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes floatGlow { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.12); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fabPop { 0% { transform: scale(.9); } 100% { transform: scale(1); } }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ── Header ────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.6);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(210,210,215,0.6);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-header); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 24px;
}
.logo-link { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 8px; background: var(--dark); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-logo); font-size: 22px; flex-shrink: 0;
}
.logo-mark--footer { border: 1px solid rgba(255,255,255,0.15); }
.logo-text { font-weight: 800; font-size: 16px; line-height: 1.1; }
.logo-text--footer { color: #fff; }
.logo-sub {
  display: block; font-family: var(--font-mono); font-weight: 400; font-size: 10px;
  letter-spacing: 0.08em; color: var(--text-muted); text-transform: uppercase; margin-top: 2px;
}
.main-nav { display: flex; gap: 26px; }
.main-nav a { font-size: 14px; font-weight: 600; color: var(--text-secondary); transition: color .15s ease; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-wa-btn { padding: 9px 14px; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
.header-wa-btn__icon { width: 14px; height: 14px; flex-shrink: 0; }
.hamburger-btn {
  display: none; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 8px; border: 1.5px solid var(--border); background: #fff;
  flex-shrink: 0;
}
.hamburger-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.mobile-nav {
  display: none; flex-direction: column; padding: 8px 24px 20px;
  border-top: 1px solid rgba(210,210,215,0.6); background: rgba(255,255,255,0.95);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a { font-size: 15px; font-weight: 600; color: var(--text); padding: 12px 0; border-bottom: 1px solid #EDEDED; }
.mobile-nav a:last-child { border-bottom: none; }

.lang-toggle {
  display: flex; align-items: center; gap: 2px; flex-shrink: 0;
  background: var(--bg); padding: 3px; border-radius: 10px;
}
.lang-toggle__opt {
  padding: 6px 12px; border-radius: 7px; font-size: 12.5px; font-weight: 700;
  color: var(--text-secondary); transition: color .15s ease, background .15s ease, box-shadow .15s ease;
}
.lang-toggle__opt.is-active { color: #fff; background: var(--dark-pill); box-shadow: 0 1px 3px rgba(14,36,56,0.35); }
.lang-toggle__opt:not(.is-active):hover { color: var(--text); }

.mobile-nav__lang { margin-top: 18px; padding-top: 18px; border-top: 1px solid #EDEDED; }
.mobile-nav__lang-label {
  display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px;
}
.lang-toggle--mobile { width: 100%; padding: 4px; border-radius: 12px; }
.lang-toggle--mobile .lang-toggle__opt { flex: 1; text-align: center; padding: 11px 12px; font-size: 14px; border-radius: 9px; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 14.5px; padding: 13px 22px; border-radius: var(--radius-btn);
  border: 1.5px solid transparent; transition: all .15s ease; white-space: nowrap;
}
.btn-flex { flex: 1; font-size: 13px; padding: 9px 14px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--text); color: var(--text); }
.btn-outline:hover { background: var(--text); color: #fff; }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--text); }
.btn-sm { font-size: 13px; padding: 9px 14px; }
.btn-full { width: 100%; }

/* ── Eyebrow / section heads ──────────────────────────────────────────── */
.eyebrow-label {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-hover); margin-bottom: 10px; display: inline-block;
}
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
  margin-bottom: 36px; flex-wrap: wrap;
}
.section-head h2, .section-title {
  font-weight: 800; font-size: clamp(24px, 3vw, 34px); line-height: 1.15; letter-spacing: -0.01em;
}
.section-head p { color: var(--text-secondary); max-width: 420px; font-size: 14.5px; }
section { padding: var(--section-py) 0; }
.section-bordered { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero { background: var(--dark); position: relative; padding: 56px 0 0; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.hero-radial { position: absolute; inset: 0; background-image: radial-gradient(circle at 82% 18%, rgba(0,113,227,0.25), transparent 45%); }
.hero-glow {
  position: absolute; top: -60px; right: 8%; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,113,227,0.35), transparent 70%);
  animation: floatGlow 5s ease-in-out infinite; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-heading { position: relative; z-index: 1; text-align: center; max-width: 760px; margin: 0 auto; animation: fadeUp .7s ease both; }
.hero-eyebrow {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-light); margin-bottom: 10px; display: inline-block;
}
.hero-heading h1 {
  font-weight: 800; font-size: clamp(28px, 4.6vw, 54px); line-height: 1.1; color: #fff;
  letter-spacing: -0.01em; margin-bottom: 16px;
}
.hero-heading p { color: var(--text-muted-dark); font-size: 16.5px; max-width: 560px; margin: 0 auto 30px; }

.hero-search-card {
  position: relative; z-index: 2; background: #fff; border-radius: var(--radius-card);
  box-shadow: var(--shadow-card-hover); padding: 22px; margin: 40px auto 0; max-width: 960px;
}
.search-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.search-tab {
  font-size: 13px; font-weight: 700; padding: 8px 16px; border-radius: 7px; cursor: pointer;
  color: #5B6B72; transition: background .15s ease, color .15s ease;
}
.search-tab.is-active { background: var(--dark-pill); color: #fff; }
.search-row { display: grid; grid-template-columns: 1.1fr 1.1fr 0.9fr auto; gap: 10px; }
.field-input {
  width: 100%; padding: 13px 14px; border: 1px solid var(--border); border-radius: var(--radius-btn);
  font-family: var(--font-body); font-size: 14px; color: var(--text); background: var(--bg);
  transition: box-shadow .15s ease;
}
.field-input:focus { outline: none; box-shadow: 0 0 0 3px rgba(0,113,227,0.18); border-color: var(--accent); }
.search-go { justify-content: center; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 34px; margin-top: 34px; padding-bottom: 70px;
}
.hero-stat { text-align: center; }
.hero-stat b { display: block; font-size: 22px; font-weight: 800; color: #fff; }
.hero-stat span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }

/* ── Grids ─────────────────────────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-3-tight { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.type-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }

/* ── Cards (shared) ───────────────────────────────────────────────────── */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card);
  transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }

/* Property type cards */
.type-card { padding: 22px; display: block; }
.type-card__icon {
  width: 42px; height: 42px; border-radius: var(--radius-icon); background: var(--accent-tint-bg);
  color: var(--accent-tint-icon); display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.type-card__icon svg { width: 21px; height: 21px; }
.type-card h3 { font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.type-card .count { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }

/* ── Listings ──────────────────────────────────────────────────────────── */
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pill {
  padding: 9px 16px; border-radius: 7px; border: 1px solid #E3E7E5; font-size: 13px; font-weight: 600;
  background: #fff; color: #5B6B72; transition: all .15s ease;
}
.filter-pill.is-active { background: var(--dark-pill); border-color: var(--dark-pill); color: #fff; }

.listing-card { overflow: hidden; }
.listing-card__media { height: 150px; background: #E8E8ED; position: relative; overflow: hidden; }
.listing-card__media-link { display: block; width: 100%; height: 100%; }
.listing-card__media img, .listing-card__media .media-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-placeholder { display: flex; align-items: center; justify-content: center; color: #AEAEB2; background: #E8E8ED; width: 100%; height: 100%; }
.media-placeholder svg { width: 26px; height: 26px; }
.media-placeholder--gradient { background: linear-gradient(135deg,#F5F5F7,#E8E8ED); color: var(--text-muted); }
.listing-card__badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 2; }
.badge {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 5px; font-weight: 500;
}
.badge-sale { background: var(--sale-bg); color: var(--sale-text); }
.badge-rent { background: var(--rent-bg); color: var(--rent-text); }
.badge-dark { background: var(--dark); color: #fff; }
.badge-new-launch { background: #FDF1E4; color: #B2560B; }
.badge-subsale { background: #EDEDF2; color: #4B4B55; }
.fav-toggle {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.9); display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease;
}
.fav-toggle:hover { transform: scale(1.1); }
.fav-icon { width: 15px; height: 15px; fill: none; stroke: #6E6E73; }
.fav-toggle.is-active .fav-icon { fill: var(--accent); stroke: var(--accent); }

.listing-card__body { padding: 18px 20px; }
.listing-card__price { font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.listing-card__price .unit { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.listing-card__title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.listing-card__loc {
  display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-secondary); margin-bottom: 14px;
}
.listing-card__loc svg { width: 13px; height: 13px; flex-shrink: 0; }
.listing-card__specs {
  display: flex; gap: 14px; padding-top: 12px; border-top: 1px solid var(--border); margin-bottom: 14px; flex-wrap: wrap;
}
.spec { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-secondary); }
.spec svg { width: 14px; height: 14px; }
.listing-card__actions { display: flex; gap: 8px; }

/* ── Areas ─────────────────────────────────────────────────────────────── */
.area-card {
  padding: 20px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
  transition: border-color .15s ease, transform .15s ease;
}
.area-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: none; }
.area-card h3 { font-weight: 700; font-size: 17px; margin-bottom: 4px; color: var(--text); }
.area-card p { color: var(--text-secondary); font-size: 13px; }
.area-card__count { font-family: var(--font-mono); font-size: 11px; color: var(--accent-hover); white-space: nowrap; }

/* ── Agent ─────────────────────────────────────────────────────────────── */
.agent-card {
  background: var(--dark); border-radius: var(--radius-lg); padding: 44px; display: grid;
  grid-template-columns: 200px 1fr; gap: 36px; align-items: center; color: #fff;
  position: relative; overflow: hidden;
}
.agent-card__glow {
  position: absolute; top: -40px; right: -40px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,113,227,0.28), transparent 70%); pointer-events: none;
}
.agent-photo {
  width: 200px; height: 200px; border-radius: 12px; overflow: hidden; position: relative; z-index: 1;
  background: linear-gradient(150deg,#3A3A3C,#2C2C2E); border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
}
.agent-photo img { width: 100%; height: 100%; object-fit: cover; }
.agent-photo__initials { font-family: var(--font-logo); font-size: 64px; color: rgba(255,255,255,0.6); }
.agent-body { position: relative; z-index: 1; }
.agent-body h2 { font-weight: 800; font-size: clamp(24px,3vw,34px); line-height: 1.15; letter-spacing: -0.01em; color: #fff; margin-bottom: 4px; }
.agent-role { font-family: var(--font-mono); font-size: 12px; color: var(--accent-light); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 4px; }
.agent-company { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted-dark); letter-spacing: 0.03em; margin-bottom: 16px; }
.agent-bio { color: var(--text-muted-dark); font-size: 14.5px; max-width: 560px; margin-bottom: 20px; }
.agent-stats { display: flex; gap: 26px; margin-bottom: 22px; flex-wrap: wrap; }
.agent-stats b { display: block; font-size: 19px; font-weight: 800; color: #fff; }
.agent-stats span { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.agent-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Social links ──────────────────────────────────────────────────────── */
.social-links { display: flex; gap: 10px; margin-top: 18px; }
.social-links__item {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; transition: all .15s ease;
}
.social-links--light .social-links__item { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); color: rgba(255,255,255,0.75); }
.social-links--light .social-links__item:hover { background: #fff; color: var(--dark); border-color: #fff; }
.social-links--dark .social-links__item { background: var(--bg); border: 1px solid var(--border); color: var(--text-secondary); }
.social-links--dark .social-links__item:hover { background: var(--dark); color: #fff; border-color: var(--dark); }

/* ── Insights / blog cards ────────────────────────────────────────────── */
.blog-card { overflow: hidden; display: block; }
.blog-card__media { height: 120px; }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__body { padding: 18px 20px; }
.blog-card__body h3 { font-weight: 700; font-size: 15px; line-height: 1.35; margin: 8px 0 12px; color: var(--text); }
.blog-card .eyebrow-label { font-size: 10px; margin-bottom: 0; }
.read-link {
  display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 13.5px; color: var(--text);
  border-bottom: 1.5px solid var(--border); padding-bottom: 2px;
}
.read-link svg { width: 13px; height: 13px; }

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq-list { max-width: 820px; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  gap: 20px; font-weight: 700; font-size: 15.5px; padding: 19px 0; color: var(--text);
}
.faq-chevron { width: 15px; height: 15px; flex-shrink: 0; color: #B06B0E; transition: transform .25s ease; }
.faq-item.is-open .faq-chevron { transform: rotate(180deg); }
.faq-answer { overflow: hidden; max-height: 0; opacity: 0; transition: max-height .3s ease, opacity .3s ease; }
.faq-item.is-open .faq-answer { max-height: 320px; opacity: 1; }
.faq-answer p { font-size: 14px; max-width: 640px; padding-bottom: 19px; color: var(--text-secondary); }

/* ── Contact ───────────────────────────────────────────────────────────── */
.contact-wrap {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 44px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px;
}
.contact-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); }
.contact-row:last-of-type { border-bottom: 1px solid var(--border); }
.contact-row svg { width: 19px; height: 19px; margin-top: 2px; flex-shrink: 0; }
.contact-row b { display: block; font-size: 14px; }
.contact-row .sub { font-size: 13px; color: var(--text-secondary); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form .col-2 { grid-column: 1 / -1; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer { background: var(--dark); color: var(--text-muted-dark); padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-desc { font-size: 13px; max-width: 230px; margin: 12px 0 14px; color: var(--text-muted); }
.footer-meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted-dark); margin-bottom: 6px; }
.footer-col h5 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-light); margin-bottom: 14px;
}
.footer-col a { display: block; font-size: 13.5px; color: var(--text-muted); margin-bottom: 10px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12); font-family: var(--font-mono); font-size: 11px;
  color: #6E6E73; flex-wrap: wrap; gap: 10px;
}

/* ── Floating WhatsApp button ──────────────────────────────────────────── */
.wa-fab {
  position: fixed; bottom: 22px; right: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: var(--whatsapp); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card-hover); animation: fabPop .4s ease; transition: transform .2s ease;
}
.wa-fab:hover { transform: scale(1.08); color: #fff; }
.wa-fab-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--whatsapp); animation: pulseRing 2.4s ease-out infinite; }
.wa-fab-icon { width: 27px; height: 27px; position: relative; }

/* ── Page-header banner (listings / blog / area archive pages) ──────────── */
.page-banner { background: var(--dark); padding: 64px 0 48px; color: #fff; }
.page-banner .eyebrow-label { color: var(--accent-light); }
.page-banner h1 { font-weight: 800; font-size: clamp(26px,3.6vw,42px); letter-spacing: -0.01em; margin-top: 6px; }
.page-banner p { color: var(--text-muted-dark); font-size: 15px; max-width: 620px; margin-top: 10px; }
.breadcrumb { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; }
.breadcrumb a { color: var(--accent-hover); }
.page-banner .breadcrumb { color: var(--text-muted-dark); }
.page-banner .breadcrumb a { color: var(--accent-light); }

/* ── Listing detail ────────────────────────────────────────────────────── */
.listing-detail { padding: var(--section-py) 0; }
.listing-gallery { margin-bottom: 36px; }
.listing-gallery__main { position: relative; height: 460px; background: #E8E8ED; border-radius: var(--radius-card); overflow: hidden; }
.listing-gallery__main img, .listing-gallery__main .media-placeholder { width: 100%; height: 100%; object-fit: cover; }
.listing-gallery__main img { cursor: zoom-in; display: block; }
.listing-gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 2px; }
.gallery-thumb { flex: 0 0 88px; width: 88px; height: 66px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: #E8E8ED; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb.is-active { border-color: var(--accent); }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.92); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #1A1A1E; box-shadow: 0 2px 10px rgba(0,0,0,0.18); }
.gallery-arrow:hover { background: #fff; }
.gallery-arrow--prev { left: 14px; }
.gallery-arrow--next { right: 14px; }
.gallery-counter { position: absolute; bottom: 14px; right: 14px; background: rgba(0,0,0,0.62); color: #fff; font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; }
.gallery-expand { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.92); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #1A1A1E; }
.gallery-expand:hover { background: #fff; }

.gallery-lightbox { position: fixed; inset: 0; background: rgba(8,8,10,0.94); z-index: 999; display: flex; align-items: center; justify-content: center; }
.gallery-lightbox[hidden] { display: none; }
.gallery-lightbox img { max-width: 88vw; max-height: 82vh; object-fit: contain; border-radius: 6px; }
.gallery-lightbox__close, .gallery-lightbox__prev, .gallery-lightbox__next { position: absolute; background: rgba(255,255,255,0.14); border: none; color: #fff; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.gallery-lightbox__close:hover, .gallery-lightbox__prev:hover, .gallery-lightbox__next:hover { background: rgba(255,255,255,0.26); }
.gallery-lightbox__close { top: 20px; right: 20px; }
.gallery-lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.gallery-lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.gallery-lightbox__counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; opacity: 0.85; }
.listing-detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 44px; }
.listing-spec-block { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card); padding: 26px; margin-bottom: 20px; }
.listing-spec-block:last-child { margin-bottom: 0; }
.listing-spec-block h2 { font-size: 17px; font-weight: 800; letter-spacing: -0.005em; }
.listing-spec-block .post-body { margin-top: 14px; }
.overview-strip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 28px; }
.overview-item span { display: block; font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 4px; }
.overview-item b { font-size: 14.5px; font-weight: 700; }
.features-checklist { list-style: none; display: grid; grid-template-columns: repeat(2,1fr); gap: 10px 20px; margin-top: 14px; }
.features-checklist li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.features-checklist svg { flex-shrink: 0; color: #1E9E6B; }
.maps-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; }
.map-embed { border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--border); margin-top: 16px; }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

.loan-calc { display: grid; grid-template-columns: 1.5fr 1fr; gap: 36px; margin-top: 18px; }
.loan-calc__result, .loan-calc__inputs { min-width: 0; }
.loan-calc__row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: 13.5px; color: var(--text-secondary); }
.loan-calc__row b { font-size: 20px; font-weight: 800; color: var(--text); }
.loan-calc__bar { display: flex; height: 32px; border-radius: 8px; overflow: hidden; font-size: 12px; font-weight: 700; background: var(--border); }
.loan-calc__bar-seg { display: flex; align-items: center; justify-content: center; color: #fff; white-space: nowrap; transition: width 0.2s ease; }
.loan-calc__bar-seg--accent { background: var(--accent); }
.loan-calc__bar-seg--dark { background: var(--dark); }
.loan-calc__legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 10px; font-size: 13px; color: var(--text-secondary); }
.loan-calc__legend span { display: inline-flex; align-items: center; gap: 6px; }
.loan-calc__dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.loan-calc__dot--accent { background: var(--accent); }
.loan-calc__dot--dark { background: var(--dark); }
.loan-calc__inputs { display: flex; flex-direction: column; gap: 14px; }
.loan-calc__inputs label { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.loan-calc__inputs input { width: 100%; min-width: 0; font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--text); padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius-btn); background: var(--bg); text-transform: none; letter-spacing: normal; }
.loan-calc__inputs .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; }
.listing-spec-block dl { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.listing-spec-block dt { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 3px; }
.listing-spec-block dd { font-size: 15px; font-weight: 700; }
.sticky-cta { position: sticky; top: 96px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card); padding: 26px; }
.sticky-cta .price { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.sticky-cta .actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

/* ── Blog post detail ──────────────────────────────────────────────────── */
.post-detail { padding: var(--section-py) 0; max-width: 760px; margin: 0 auto; }
.post-detail__media { border-radius: var(--radius-card); overflow: hidden; height: 320px; margin-bottom: 30px; }
.post-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.post-detail h1 { font-weight: 800; font-size: clamp(26px,4vw,40px); line-height: 1.2; letter-spacing: -0.01em; margin: 10px 0 14px; }
.post-meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.post-body { font-size: 16px; line-height: 1.75; margin-top: 26px; }
.post-body h2 { font-size: 22px; font-weight: 800; margin: 34px 0 12px; letter-spacing: -0.01em; }
.post-body h3 { font-size: 18px; font-weight: 700; margin: 26px 0 10px; }
.post-body p { margin-bottom: 16px; color: var(--text); }
.post-body ul, .post-body ol { margin: 0 0 16px 22px; }
.post-body li { margin-bottom: 6px; }
.post-body a { color: var(--accent); border-bottom: 1px solid var(--accent-tint-bg); }
.post-body strong { font-weight: 700; }
.post-cta { margin-top: 40px; padding: 26px; background: var(--bg); border-radius: var(--radius-card); text-align: center; }

/* ── Empty states ──────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-secondary); }

/* ── Admin ─────────────────────────────────────────────────────────────── */
.admin-body { background: var(--bg); min-height: 100vh; font-family: var(--font-body); color: var(--text); }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 220px; flex-shrink: 0; background: var(--dark); color: #fff; padding: 24px 18px; }
.admin-sidebar .logo-text { color: #fff; }
.admin-sidebar nav { margin-top: 30px; display: flex; flex-direction: column; gap: 4px; }
.admin-sidebar nav a { padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text-muted-dark); }
.admin-sidebar nav a:hover, .admin-sidebar nav a.is-active { background: rgba(255,255,255,0.08); color: #fff; }
.admin-main { flex: 1; padding: 34px; max-width: 1100px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; flex-wrap: wrap; gap: 12px; }
.admin-topbar h1 { font-size: 24px; font-weight: 800; }
.admin-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; margin-bottom: 20px; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 26px; }
.admin-stat-grid--types { grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); }
.admin-stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card); padding: 18px 20px; }
.admin-stat b { display: block; font-size: 26px; font-weight: 800; }
.admin-stat span { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table th { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.admin-table img.thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.admin-form { display: grid; gap: 16px; }
.admin-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.admin-form .field-input, .admin-form textarea, .admin-form select { width: 100%; }
.admin-form textarea { min-height: 220px; resize: vertical; font-family: var(--font-mono); font-size: 13.5px; }
.admin-check { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.admin-check input { width: 16px; height: 16px; }
.admin-actions { display: flex; gap: 10px; margin-top: 6px; }
.admin-alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 18px; }
.admin-alert-error { background: #FDEAEA; color: #B3261E; border: 1px solid #F3C6C6; }
.admin-alert-success { background: var(--rent-bg); color: var(--rent-text); border: 1px solid #B9E4DA; }
.image-manager { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 14px; }
.image-manager__item { border: 1px solid var(--border); border-radius: 8px; padding: 8px; text-align: center; }
.image-manager__item img { width: 100%; height: 90px; object-fit: cover; border-radius: 6px; margin-bottom: 8px; }
.image-manager__item.is-primary { border-color: var(--accent); }
.image-manager__item small { display: block; font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--dark); padding: 20px; }
.login-card { background: #fff; border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 380px; }
.login-card h1 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.login-card p { color: var(--text-secondary); font-size: 14px; margin-bottom: 24px; }

/* ═══════════════════════════════════════════════════════════════════════
   Responsive — tablet ≤960px, mobile ≤600px (matches README breakpoints)
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .hamburger-btn { display: inline-flex; }
  .hero-eyebrow { display: none; }
  .search-row { grid-template-columns: 1fr 1fr; }
  .search-go { grid-column: 1 / -1; }
  .grid-3, .grid-3-tight { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .agent-card { grid-template-columns: 1fr; text-align: left; }
  .agent-photo { width: 120px; height: 120px; }
  .contact-wrap { grid-template-columns: 1fr; padding: 30px; }
  .contact-form { grid-template-columns: 1fr 1fr; }
  .listing-detail-grid { grid-template-columns: 1fr; }
  .sticky-cta { position: static; }
  .loan-calc { grid-template-columns: 1fr; gap: 22px; }
  .listing-gallery__main { height: 300px; }
  .admin-stat-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 600px) {
  :root { --section-py: 48px; }
  .hero-stats { grid-template-columns: repeat(2,1fr); gap: 22px 12px; }
  .hero-search-card { padding: 16px; margin-top: 28px; border-radius: 16px; }
  .search-tabs { gap: 4px; }
  .search-tab { padding: 7px 10px; font-size: 12px; white-space: nowrap; }
  .search-row { grid-template-columns: 1fr; }
  .grid-3, .grid-3-tight, .listing-cards-grid, .type-cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .agent-card { padding: 26px; }
  .agent-photo { margin: 0 auto; }
  .agent-stats { justify-content: space-between; }
  .contact-wrap { padding: 26px; }
  .contact-form { grid-template-columns: 1fr; }
  .listing-card__actions { flex-direction: row; }
  .listing-gallery__main { height: 240px; }
  .gallery-arrow { width: 34px; height: 34px; }
  .features-checklist { grid-template-columns: 1fr; }
  .overview-strip { gap: 14px 24px; }
  .admin-main { padding: 20px; }
  .admin-sidebar { display: none; }
  .admin-form .row-2 { grid-template-columns: 1fr; }
  .admin-stat-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  /* Header row gets tight once the language toggle joins the WhatsApp button
     and hamburger — collapse the desktop toggle (it's duplicated inside the
     mobile menu below) and the WhatsApp button down to an icon so the
     hamburger always stays on-screen. */
  .header-inner { gap: 10px; }
  .header-actions { gap: 8px; }
  .header-actions > .lang-toggle { display: none; }
  .header-wa-btn { padding: 10px; border-radius: 50%; }
  .header-wa-btn__icon { width: 16px; height: 16px; }
  .header-wa-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .logo-mark { width: 34px; height: 34px; font-size: 19px; }
}
