/* ==========================================================================
   PHI BĐS THANH HÓA — Design tokens & base
   Bảng màu: xanh thông (đất/uy tín) + vàng đồng (giá) + đỏ son (pháp lý/sổ đỏ)
   Font: Fraunces (tiêu đề, giá) + Be Vietnam Pro (nội dung, hỗ trợ dấu tiếng Việt)
   ========================================================================== */

:root {
  /* Colors */
  --color-bg: #F7F6F1;
  --color-bg-alt: #EFEEE7;
  --color-surface: #FFFFFF;
  --color-ink: #1B2420;
  --color-ink-muted: #5B6660;
  --color-ink-faint: #8A8F87;
  --color-primary: #6E87AB;
  --color-primary-light: #8AA0C4;
  --color-primary-dark: #46566E;
  --color-gold: #B9873C;
  --color-gold-light: #D9AF6C;
  --color-legal: #8B3A2F;
  --color-legal-bg: #F5E8E4;
  --color-border: #E1DED2;
  --color-border-strong: #CFCABB;
  --color-success: #3E7A5A;
  --color-warn: #B9873C;
  --color-danger: #A34438;

  /* Type */
  --font-display: "Lora", Georgia, serif;
  --font-body: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --container-w: 1180px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(27, 36, 32, 0.08);
  --shadow-md: 0 8px 24px rgba(27, 36, 32, 0.10);
  --shadow-lg: 0 20px 60px rgba(20, 40, 34, 0.22);
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Đảm bảo [hidden] luôn thắng các rule display:flex/grid tự định nghĩa bên dưới
   (cùng độ đặc hiệu với selector thuộc tính UA, nên cần khai báo rõ ràng). */
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-ink);
  margin: 0;
  font-weight: 600;
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

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

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

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  font-weight: 600;
  margin: 0 0 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-light); box-shadow: var(--shadow-sm); }
.btn-gold { background: var(--color-gold); color: #fff; }
.btn-gold:hover { background: #A67733; }
.btn-ghost { background: transparent; color: var(--color-ink); border-color: var(--color-border-strong); }
.btn-ghost:hover { background: var(--color-bg-alt); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(247, 246, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand-logo { border-radius: 8px; flex-shrink: 0; }
.brand-text {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.main-nav { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--color-ink-muted);
  transition: color 0.15s ease;
}
.nav-link:hover { color: var(--color-primary); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-cta { display: inline-flex; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   HERO + SEARCH
   ========================================================================== */
.hero {
  position: relative;
  padding: 64px 0 64px;
  overflow: hidden;
  color: #fff;
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 500px at 85% -10%, rgba(185, 135, 60, 0.35), transparent 60%),
    linear-gradient(160deg, var(--color-primary-dark) 0%, var(--color-primary) 55%, var(--color-primary-light) 100%);
  z-index: -1;
}
.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(247,246,241,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247,246,241,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,0.6) 40%, transparent 90%);
}
.hero-inner { max-width: 680px; }
.hero-title {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
  color: #fff;
}
.hero-title-highlight { color: var(--color-gold-light); font-style: italic; }
.hero-sub {
  font-size: 17px;
  color: rgba(247, 246, 241, 0.82);
  max-width: 520px;
  margin: 0;
}

/* Khối 2 cột đầu trang: thông tin người bán (trái) + tìm kiếm thu gọn (phải) */
.top-panels {
  position: relative;
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(300px, 360px) 1fr;
  gap: 20px;
  align-items: stretch;
}

/* Search panel — thu gọn để nằm cạnh thẻ người bán */
.search-panel {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 14px;
}
.search-panel--compact {
  grid-template-columns: 1fr 1fr;
}
.search-panel--compact .field-keyword,
.search-panel--compact .field-actions {
  grid-column: 1 / -1;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Header của khung tìm kiếm + nút thu gọn/mở rộng bộ lọc nâng cao */
.search-panel-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.search-panel-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-ink);
}
.search-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-ink-muted);
  transition: background 0.15s ease, color 0.15s ease;
}
.search-toggle:hover { background: var(--color-bg-alt); color: var(--color-primary); }
.search-toggle-icon { transition: transform 0.2s ease; flex-shrink: 0; }
.search-toggle[aria-expanded="false"] .search-toggle-icon { transform: rotate(-90deg); }

/* Khối bộ lọc nâng cao (khu vực/loại/giá/diện tích) — có thể thu gọn */
.search-panel-extra {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  overflow: hidden;
  max-height: 400px;
  opacity: 1;
  transition: max-height 0.3s ease, opacity 0.2s ease, margin-top 0.3s ease;
}
.search-panel-extra.is-collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: -14px;
  pointer-events: none;
}
.field input, .field select {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  font-size: 14.5px;
  color: var(--color-ink);
  background: var(--color-bg);
  width: 100%;
  transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus { border-color: var(--color-primary); outline: none; }
.range-inputs { display: flex; align-items: center; gap: 6px; }
.range-inputs input { min-width: 0; }
.range-sep { color: var(--color-ink-faint); flex-shrink: 0; }
.field-actions { display: flex; flex-direction: row; gap: 10px; }
.field-actions .btn { flex: 1; }

/* Thẻ nổi bật thông tin người bán, đặt cạnh khung tìm kiếm ở đầu trang */
.agent-highlight-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.agent-highlight-top { display: flex; align-items: center; gap: 12px; }
.agent-highlight-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--color-bg-alt); flex-shrink: 0; }
.agent-highlight-name { font-size: 17px; margin-bottom: 2px; }
.agent-highlight-role { font-size: 12.5px; color: var(--color-gold); font-weight: 600; margin: 0; }
.agent-highlight-desc {
  font-size: 13.5px; color: var(--color-ink-muted); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.agent-highlight-services { display: flex; flex-wrap: wrap; gap: 6px; }
.agent-highlight-cta { display: flex; gap: 10px; }
.agent-highlight-cta .btn { flex: 1; }
.agent-service-pill { font-size: 11.5px; padding: 4px 10px; border-radius: 999px; background: var(--color-bg-alt); color: var(--color-ink-muted); }
.agent-social { display: flex; gap: 8px; }
.agent-social a {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-bg-alt); color: var(--color-primary); font-size: 12px; font-weight: 700;
}
.agent-skeleton { height: 160px; }

/* ==========================================================================
   LISTING SECTION
   ========================================================================== */
.listing-section { padding: 64px 0 24px; }
.listing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.listing-result-count {
  font-size: 15px;
  color: var(--color-ink-muted);
}
.listing-result-count strong { color: var(--color-primary); font-weight: 700; }
.listing-sort { display: flex; align-items: center; gap: 10px; }
.listing-sort label { font-size: 13.5px; color: var(--color-ink-muted); }
.listing-sort select {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 14px;
  background: var(--color-surface);
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

/* Property card */
.property-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}
.property-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-bg-alt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.property-card:hover .card-media img { transform: scale(1.06); }

.card-status {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: var(--color-primary);
}
.card-status.status-reserved { color: var(--color-warn); }
.card-status.status-sold { color: var(--color-danger); }

.card-video-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(19, 26, 23, 0.72);
  color: #fff;
}

/* Signature element: mã tin "ticket stub" corner tag, nhại vé tin đăng BĐS truyền thống */
.card-ticket {
  position: absolute;
  top: 0;
  right: 14px;
  background: var(--color-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px 8px;
  border-radius: 0 0 8px 8px;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
}
.card-ticket::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 6px;
  background:
    radial-gradient(circle at 5px 0, transparent 4px, var(--color-primary) 4px) 0 0/10px 6px repeat-x;
}

.card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-type { font-size: 12.5px; color: var(--color-ink-faint); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }

.card-price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.card-price { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--color-gold); }
.card-unit-price { font-size: 12.5px; color: var(--color-ink-faint); }

.card-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--color-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--color-ink-muted);
}
.card-location svg { flex-shrink: 0; color: var(--color-gold); }

.card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}
.card-fact {
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--color-bg-alt);
  color: var(--color-ink-muted);
}
.card-fact.is-legal { background: var(--color-legal-bg); color: var(--color-legal); }

.card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}
.card-view-btn {
  width: 100%;
  text-align: center;
  padding: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-primary);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}
.property-card:hover .card-view-btn { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* Skeleton loading */
.property-grid[aria-hidden="true"] { }
.skel-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.skel-media { aspect-ratio: 4/3; background: linear-gradient(90deg, var(--color-bg-alt) 25%, #f4f2ea 50%, var(--color-bg-alt) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skel-line { height: 12px; margin: 14px 16px; border-radius: 4px; background: linear-gradient(90deg, var(--color-bg-alt) 25%, #f4f2ea 50%, var(--color-bg-alt) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skel-line.w60 { width: 60%; }
.skel-line.w40 { width: 40%; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Empty / error state */
.state-message {
  text-align: center;
  padding: 70px 20px;
  color: var(--color-ink-muted);
}
.state-message svg { color: var(--color-ink-faint); margin-bottom: 14px; }
.state-message p { margin: 0 0 16px; font-size: 15px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(247,246,241,0.85);
  padding: 56px 0 90px;
}
.footer-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 19px; color: #fff; }
.footer-desc { max-width: 480px; font-size: 14px; color: rgba(247,246,241,0.65); margin: 0; }
.footer-cta { display: flex; gap: 12px; margin: 10px 0; }
.footer-copy { font-size: 12.5px; color: rgba(247,246,241,0.45); margin: 10px 0 0; }

/* ==========================================================================
   MOBILE STICKY CTA
   ========================================================================== */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
  box-shadow: 0 -6px 20px rgba(27,36,32,0.08);
}
.mobile-cta-bar .btn { flex: 1; }

/* ==========================================================================
   DETAIL DRAWER
   ========================================================================== */
.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(19, 26, 23, 0.55);
  display: flex;
  justify-content: flex-end;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.detail-panel {
  width: min(880px, 100%);
  height: 100%;
  background: var(--color-bg);
  overflow-y: auto;
  animation: slideIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}
@keyframes slideIn { from { transform: translateX(4%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.detail-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px;
  background: rgba(247,246,241,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.detail-header-text h2 { font-size: 21px; margin-bottom: 6px; line-height: 1.3; }
.detail-header-loc { font-size: 13.5px; color: var(--color-ink-muted); display: flex; align-items: center; gap: 6px; }
.detail-close {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.detail-close:hover { background: var(--color-bg-alt); }

.detail-gallery { position: relative; background: var(--color-primary-dark); }
.gallery-main { aspect-ratio: 16/9; position: relative; overflow: hidden; }
.gallery-media-wrap { position: absolute; inset: 0; }
.gallery-main-image { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-main-video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.85); border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--color-primary);
  z-index: 2;
}
.gallery-nav:hover { background: #fff; }
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }
.gallery-counter {
  position: absolute; bottom: 12px; right: 14px;
  background: rgba(19,26,23,0.6); color: #fff; font-size: 12px;
  padding: 4px 10px; border-radius: 999px;
  z-index: 2;
}
.gallery-thumbs { display: flex; gap: 8px; padding: 10px 14px; overflow-x: auto; }
.gallery-thumb {
  width: 68px; height: 52px; border-radius: 6px; overflow: hidden; flex-shrink: 0;
  border: 2px solid transparent; opacity: 0.6; transition: opacity 0.15s ease, border-color 0.15s ease;
  padding: 0; background: #000;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.is-active { opacity: 1; border-color: var(--color-gold); }
.gallery-thumb-video { position: relative; display: block; width: 100%; height: 100%; }
.gallery-thumb-video video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.thumb-play-icon {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; background: rgba(19,26,23,0.4);
}

.detail-body { padding: 28px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; }

.detail-price-block {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--color-border);
  grid-column: 1 / -1;
  flex-wrap: wrap; gap: 12px;
}
.detail-price { font-family: var(--font-display); font-size: 34px; color: var(--color-gold); font-weight: 600; }
.detail-price-unit { font-size: 13.5px; color: var(--color-ink-muted); }
.detail-code { font-size: 12.5px; color: var(--color-ink-faint); text-align: right; }

.detail-facts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 20px;
  margin-bottom: 26px;
}
.detail-fact { display: flex; flex-direction: column; gap: 3px; }
.detail-fact--span { grid-column: 1 / -1; }
.detail-fact-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-ink-faint); }
.detail-fact-value { font-size: 14.5px; font-weight: 600; color: var(--color-ink); }
.detail-fact-value.is-legal { color: var(--color-legal); }

.detail-section-title { font-size: 16px; margin-bottom: 12px; }
.detail-desc-list { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 8px; }
.detail-desc-list li { display: flex; gap: 8px; font-size: 14.5px; color: var(--color-ink-muted); }
.detail-desc-list li::before { content: "•"; color: var(--color-gold); font-weight: 700; }
.detail-content-text { font-size: 14.5px; color: var(--color-ink-muted); line-height: 1.7; margin: 0 0 26px; white-space: pre-line; }

.detail-map { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); aspect-ratio: 16 / 10; }
.detail-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.detail-map-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--color-primary);
  margin: 10px 0 26px;
}
.detail-map-link:hover { color: var(--color-primary-light); }

.detail-sidebar { display: flex; flex-direction: column; gap: 18px; align-self: start; position: sticky; top: 90px; }
.detail-agent-card {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 20px; display: flex; flex-direction: column; gap: 12px;
}
.detail-agent-top { display: flex; align-items: center; gap: 12px; }
.detail-agent-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.detail-agent-name { font-size: 15px; font-weight: 700; }
.detail-agent-role { font-size: 12.5px; color: var(--color-ink-muted); }
.detail-cta-group { display: flex; flex-direction: column; gap: 10px; }
.detail-copy-link { display: flex; align-items: center; justify-content: center; gap: 6px; }

.detail-empty { padding: 80px 28px; text-align: center; color: var(--color-ink-muted); }

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,14,12,0.92);
  display: flex; align-items: center; justify-content: center;
}
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 4px; }
.lightbox-close, .lightbox-nav {
  position: absolute; background: rgba(255,255,255,0.12); color: #fff; border: none;
  width: 44px; height: 44px; border-radius: 50%; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,0.24); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   TOAST
   ========================================================================== */
.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(10px);
  background: var(--color-primary-dark); color: #fff; font-size: 13.5px; font-weight: 500;
  padding: 12px 20px; border-radius: 999px; z-index: 300; box-shadow: var(--shadow-md);
  opacity: 0; transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .property-grid { grid-template-columns: repeat(2, 1fr); }
  .top-panels { grid-template-columns: 1fr; }
  .search-panel--compact { grid-template-columns: 1fr 1fr; }
  .detail-body { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 66px; }

  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--color-surface);
    padding: 18px 24px;
    border-bottom: 1px solid var(--color-border);
    gap: 16px;
    box-shadow: var(--shadow-md);
  }

  .hero { padding: 44px 0 60px; }
  .top-panels { margin-top: 32px; gap: 16px; }
  .search-panel--compact { grid-template-columns: 1fr 1fr; padding: 18px; gap: 14px; }
  .agent-highlight-card { padding: 20px; }

  .property-grid { grid-template-columns: 1fr; }
  .listing-section { padding: 44px 0 8px; }

  .detail-panel { width: 100%; }
  .detail-body { padding: 20px; gap: 24px; }
  .detail-facts-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 32px; }
  .card-price { font-size: 19px; }
  .search-panel--compact { grid-template-columns: 1fr; }
}
