/* ═══════════════════════════════════════════════════
   The Bangkok Collection
   Modern editorial redesign — Inter + Sarabun
   ═══════════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --ink:      #111111;
  --dark:     #1C1C1C;
  --mid:      #666666;
  --muted:    #999999;
  --border:   #E4E4E4;
  --surface:  #F7F7F5;
  --white:    #FFFFFF;
  --gold:     #C49A3C;
  --gold-lt:  #D4AF5A;

  --font:     'Inter', 'Sarabun', system-ui, sans-serif;
  --font-th:  'Sarabun', system-ui, sans-serif;

  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --t:        0.18s var(--ease);
  --max:      1280px;
  --r:        4px;

  --shadow-hover: 0 8px 32px rgba(0,0,0,0.12);
}

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 10px 20px;
  background: var(--gold);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0 0 2px 2px;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; outline: 2px solid var(--ink); outline-offset: 2px; }

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--ink); }
ul { list-style: none; }

/* ── Type scale ── */
h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 2.8vw, 2.2rem); font-weight: 400; line-height: 1.2; letter-spacing: -0.015em; }
h3 { font-size: clamp(1rem, 1.6vw, 1.15rem); font-weight: 500; line-height: 1.3; }

/* ── Layout ── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.section { padding: 80px 0; }
.hidden { display: none !important; }

/* Thai elements — kept minimal and functional */
.thai-border-top, .thai-border-bottom { display: none; }
.thai-ornament { display: none; }
.thai-corner { display: none; }
.thai-frame { display: block; }
.thai-frame-inner { overflow: hidden; border-radius: var(--r); }

/* ════════════════════════════════
   NAVIGATION
   ════════════════════════════════ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 80px;
  display: flex;
  align-items: center;
  transition: background var(--t), box-shadow var(--t);
}
.site-header.scrolled,
.site-header--solid {
  background: var(--white);
  box-shadow: 0 1px 0 var(--border);
}
.header-inner {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Logo — monogram badge + wordmark */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.logo-badge {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  transition: opacity var(--t);
}
.logo-badge svg,
.logo-badge img { display: block; width: 100%; height: 100%; }
.logo:hover .logo-badge { opacity: 0.8; }
.logo-words { display: flex; flex-direction: column; gap: 3px; }
.logo-en {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
}
.logo-th {
  font-family: var(--font-th);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--gold);
  line-height: 1;
}
.site-header:not(.scrolled):not(.site-header--solid) .logo-en { color: var(--white); }
.site-header:not(.scrolled):not(.site-header--solid) .logo-th { color: rgba(255,255,255,0.55); }

/* Nav links */
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
  transition: color var(--t);
}
.main-nav a:hover, .main-nav a.active { color: var(--gold); }
.site-header:not(.scrolled):not(.site-header--solid) .main-nav a { color: rgba(255,255,255,0.8); }
.site-header:not(.scrolled):not(.site-header--solid) .main-nav a:hover { color: var(--white); }

.nav-cta {
  padding: 8px 18px !important;
  border: 1px solid currentColor !important;
  border-radius: 2px !important;
  letter-spacing: 0.1em !important;
  color: var(--dark) !important;
  transition: background var(--t), color var(--t), border-color var(--t) !important;
}
.site-header:not(.scrolled):not(.site-header--solid) .nav-cta {
  color: rgba(255,255,255,0.85) !important;
}
.nav-cta:hover {
  background: var(--ink) !important;
  color: var(--white) !important;
  border-color: var(--ink) !important;
}

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: var(--t); }
.site-header:not(.scrolled):not(.site-header--solid) .hamburger span { background: var(--white); }

.mobile-nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 12px 32px 24px;
  border-top: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  z-index: 999;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--gold); }

.hamburger span { transition: transform 0.25s ease, opacity 0.25s ease; }
.site-header.nav-open .hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.site-header.nav-open .hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.site-header.nav-open .hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ════════════════════════════════
   HERO
   ════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding-top: 96px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.25) 55%, rgba(0,0,0,0.08) 100%);
  z-index: 1;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.active { opacity: 1; }
.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hero-dot {
  width: 6px; height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
}
.hero-dot.active {
  background: var(--gold);
  width: 24px;
}
.hero-listing-cta {
  position: absolute;
  bottom: 72px;
  right: 52px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  text-decoration: none;
}
.hero-listing-type {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-listing-title {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  text-align: right;
  max-width: 260px;
}
.hero-listing-view {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
  margin-top: 2px;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.hero:hover .hero-listing-view {
  opacity: 1;
  transform: translateY(0);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-content .container {
  padding-top: 0;
  padding-bottom: 88px;
  padding-left: 64px;
  padding-right: 64px;
}
.hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 18px;
}
.hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(3.2rem, 7.5vw, 7.5rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  max-width: 800px;
}
.hero-title em { font-style: italic; color: var(--gold-lt); font-weight: 300; }
.hero-subtitle {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  margin-bottom: 40px;
  max-width: 440px;
  line-height: 1.7;
}

/* Search bar */
.hero-search {
  display: flex;
  max-width: 780px;
  background: var(--white);
  overflow: hidden;
  border-radius: 2px;
}
.search-group { display: flex; flex: 1; flex-wrap: wrap; }
.search-select {
  flex: 1;
  min-width: 120px;
  padding: 16px 12px;
  border: none;
  border-right: 1px solid var(--border);
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  color: var(--dark);
  letter-spacing: 0.04em;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='5'%3E%3Cpath d='M0 0l4.5 5L9 0z' fill='%23999'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
  cursor: pointer;
}
.search-select:focus { outline: none; background-color: var(--surface); }
.search-btn {
  padding: 16px 32px;
  background: var(--ink);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background var(--t);
}
.search-btn:hover { background: var(--gold); }

/* ════════════════════════════════
   STATS STRIP
   ════════════════════════════════ */
.stats-strip {
  display: flex;
  justify-content: center;
  gap: 0;
  background: var(--ink);
  padding: 20px 32px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; align-items: center; padding: 8px 40px; }
.stat-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.6rem;
  font-weight: 400;
  font-style: italic;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-top: 6px;
}
.stat-divider { width: 1px; background: rgba(255,255,255,0.1); align-self: stretch; }

/* ════════════════════════════════
   SECTION HEADERS
   ════════════════════════════════ */
.section-header {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.section-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.section-footer { margin-top: 40px; }

/* ════════════════════════════════
   LISTING CARDS
   ════════════════════════════════ */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.listings-grid--full {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.listing-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform var(--t);
}
.listing-card:hover { transform: translateY(-3px); }

.listing-card-img {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--surface);
  border-radius: 0;
}
.listing-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.listing-card:hover .listing-card-img img { transform: scale(1.07); }
.listing-card-img::after {
  content: 'View Property →';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 48px 14px 14px;
  background: linear-gradient(transparent, rgba(17,17,17,0.62));
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.listing-card:hover .listing-card-img::after { opacity: 1; }
.listing-card-img-placeholder {
  width: 100%; height: 100%;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
}
.listing-card-img-placeholder span { font-size: 11px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }

.listing-badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 3px 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  color: var(--white);
}
.listing-badge--sale { background: rgba(0,0,0,0.65); backdrop-filter: blur(4px); }
.listing-badge--rent { background: rgba(196,154,60,0.9); backdrop-filter: blur(4px); }
.listing-badge--new {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--white);
  color: var(--ink);
  padding: 3px 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
}

.listing-card-body { padding: 14px 2px 0; }
.listing-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
.listing-card-type {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.listing-card-location {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.listing-card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.listing-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.listing-card-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.listing-card-specs {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.listing-card-price-usd { display: none; }

/* Skeleton */
.listing-skeleton {
  aspect-ratio: 3/2;
  background: var(--surface);
  border-radius: var(--r);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }

/* ════════════════════════════════
   DISTRICTS
   ════════════════════════════════ */
.districts-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.district-card {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 2/3;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
}
.district-card:hover .district-img { transform: scale(1.06); }
.district-img {
  position: absolute;
  inset: 0;
  transition: transform 0.45s var(--ease);
}
.district-sathorn    { background: url('https://picsum.photos/seed/district-sathorn/600/450') center/cover no-repeat; }
.district-sukhumvit  { background: url('https://picsum.photos/seed/district-sukhumvit/600/450') center/cover no-repeat; }
.district-silom      { background: url('https://picsum.photos/seed/district-silom/600/450') center/cover no-repeat; }
.district-thonglor   { background: url('https://picsum.photos/seed/district-thonglor/600/450') center/cover no-repeat; }
.district-riverside  { background: url('https://picsum.photos/seed/district-riverside/600/450') center/cover no-repeat; }
.district-bangrak    { background: url('https://picsum.photos/seed/district-bangrak/600/450') center/cover no-repeat; }

/* Dark gradient overlay on each district card */
.district-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 60%);
  z-index: 1;
}
.district-info {
  position: relative;
  z-index: 2;
  padding: 12px;
  width: 100%;
}
.district-info h3 {
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 1px;
}
.district-info p {
  font-family: var(--font-th);
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
}

/* ════════════════════════════════
   WHY / ABOUT SECTION
   ════════════════════════════════ */
.why-section { background: var(--surface); }
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.why-text .section-title { margin-bottom: 20px; }
.why-text p { color: var(--mid); margin-bottom: 16px; font-size: 14px; line-height: 1.85; }
.why-img-bg {
  width: 100%;
  padding-bottom: 120%;
  background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
  border-radius: 0;
}

/* ════════════════════════════════
   CTA SECTION
   ════════════════════════════════ */
.cta-section {
  background: var(--ink);
  padding: 100px 0;
  text-align: center;
}
.cta-inner h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  color: var(--white);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 12px 0 18px;
}
.cta-inner p { color: rgba(255,255,255,0.5); max-width: 420px; margin: 0 auto 36px; font-size: 14px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-section .section-eyebrow { color: var(--gold-lt); }

/* ════════════════════════════════
   BUTTONS
   ════════════════════════════════ */
.btn-gold {
  display: inline-block;
  padding: 13px 28px;
  background: var(--gold);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--t), border-color var(--t);
}
.btn-gold:hover { background: #1C1812; border-color: #1C1812; }
.btn-gold.btn-full { width: 100%; text-align: center; }

.btn-outline {
  display: inline-block;
  padding: 13px 28px;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--t), color var(--t);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-outline.btn-full { width: 100%; text-align: center; }

.btn-outline-light {
  display: inline-block;
  padding: 13px 28px;
  background: transparent;
  color: rgba(255,255,255,0.75);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 2px;
  transition: border-color var(--t), color var(--t);
}
.btn-outline-light:hover { border-color: var(--white); color: var(--white); }

/* ════════════════════════════════
   PAGE HEADER (inner pages)
   ════════════════════════════════ */
.page-header {
  margin-top: 96px;
  background: var(--ink);
  padding: 56px 0 48px;
}
.page-header h1 { color: var(--white); }
.page-header .section-eyebrow { color: var(--gold-lt); margin-bottom: 8px; display: block; }
.page-header-sub { color: rgba(255,255,255,0.45); font-size: 14px; margin-top: 8px; }

/* ════════════════════════════════
   BREADCRUMB
   ════════════════════════════════ */
.breadcrumb-bar {
  margin-top: 96px;
  padding: 12px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.breadcrumb-bar a { color: var(--mid); }
.breadcrumb-bar a:hover { color: var(--gold); }
.breadcrumb-bar span { margin: 0 8px; }

/* ════════════════════════════════
   LISTINGS PAGE
   ════════════════════════════════ */
.listings-page-section { padding: 40px 0 80px; }
.listings-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

.filters-sidebar {
  position: sticky;
  top: 96px;
}
.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.filters-header h3 { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.filters-reset { font-size: 11px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.filters-reset:hover { color: var(--gold); }

.filter-group { margin-bottom: 24px; }
.filter-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.filter-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--mid);
  background: var(--white);
  cursor: pointer;
  transition: all var(--t);
  letter-spacing: 0.04em;
}
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill.active { background: var(--ink); border-color: var(--ink); color: var(--white); }

.filter-select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--white);
  font-size: 13px;
  color: var(--ink);
  appearance: none;
  cursor: pointer;
}
.filter-select:focus { outline: none; border-color: var(--ink); }
.filter-select--sm { width: auto; padding: 6px 10px; }

.price-slider { width: 100%; accent-color: var(--ink); cursor: pointer; margin-bottom: 8px; }
.price-range-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }

.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.results-count { font-size: 13px; color: var(--mid); }
.results-sort { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--mid); }

.no-results { text-align: center; padding: 64px 24px; color: var(--muted); }
.no-results p { font-size: 14px; margin: 12px 0 24px; }

/* ════════════════════════════════
   LISTING HERO SPLIT
   ════════════════════════════════ */

/* Full-viewport split: photos left, info right */
.listing-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  height: calc(100vh - 80px); /* subtract nav */
  margin-top: 80px;
  max-height: 860px;
  min-height: 600px;
}

/* ── Left: photo collage ── */
.listing-hero-photos {
  position: relative;
  overflow: hidden;
  background: #111;
}

.listing-collage {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 3px;
}

.collage-slot {
  overflow: hidden;
  background: #1a1a1a;
  cursor: pointer;
}

.collage-main { flex: 1; min-height: 0; }

.collage-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  height: 210px;
  flex-shrink: 0;
}

.collage-slot img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease);
}
.collage-slot:hover img { transform: scale(1.04); }

/* Dim sub-slots slightly so main reads first */
.collage-sub { opacity: 0.86; }
.collage-sub:hover { opacity: 1; transition: opacity 0.3s; }

/* View all photos button */
.gallery-all-btn {
  position: absolute;
  bottom: 20px; right: 20px;
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  padding: 9px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  transition: background var(--t), box-shadow var(--t);
  z-index: 5;
  line-height: 1;
}
.gallery-all-btn:hover {
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.gallery-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1c1c1c, #2a2a2a);
}

/* ── Right: info panel ── */
.listing-hero-info {
  overflow-y: auto;
  background: var(--white);
  scrollbar-width: none;
  border-left: 1px solid var(--border);
}
.listing-hero-info::-webkit-scrollbar { display: none; }

.listing-hero-info-inner {
  padding: 44px 52px 52px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  justify-content: center;
}

/* Price row inside hero */
.hero-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 20px;
  flex-wrap: wrap;
}
.hero-price-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.hero-tour-btn {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color var(--t);
}
.hero-tour-btn:hover { color: var(--gold); }

/* Description preview in hero */
.hero-description { margin-top: 16px; }
.hero-desc-text {
  font-size: 13px;
  line-height: 1.85;
  color: var(--mid);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: none;
}
.hero-read-more {
  display: none;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold);
  background: none;
  border: none;
  border-bottom: 1px solid var(--gold);
  padding: 0 0 2px;
  cursor: pointer;
  transition: color var(--t), border-color var(--t);
}
.hero-read-more:hover { color: var(--ink); border-color: var(--ink); }
.hero-read-more.visible { display: inline-block; }

/* ── Description modal ── */
.desc-modal {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.desc-modal.hidden { display: none; }
.desc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
}
.desc-modal-box {
  position: relative;
  background: var(--white);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 48px 48px 40px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.2);
}
.desc-modal-close {
  position: absolute;
  top: 20px; right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  transition: color var(--t);
}
.desc-modal-close:hover { color: var(--ink); }
.desc-modal-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.desc-modal-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 20px;
  line-height: 1.2;
}
.desc-modal-text {
  font-size: 14px;
  line-height: 1.9;
  color: var(--mid);
}
.desc-modal-enquire {
  margin-top: 28px;
  width: 100%;
}

/* ════════════════════════════════
   PROPERTY DETAIL — LIGHTBOX
   ════════════════════════════════ */
/* ── Lightbox ── */
/* ════════════════════════════════
   CUSTOM GALLERY
   ════════════════════════════════ */
#cg {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.38s ease;
}
#cg.cg--open {
  opacity: 1;
  pointer-events: auto;
}
#cg.cg--closing {
  opacity: 0;
  pointer-events: none;
}

/* Backdrop */
.cg-bg {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.97);
  cursor: pointer;
}

/* Close */
.cg-close {
  position: absolute;
  top: 22px; right: 26px;
  z-index: 10;
  color: rgba(255,255,255,0.55);
  padding: 8px;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
  line-height: 0;
}
.cg-close:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

/* Counter */
.cg-counter {
  position: absolute;
  top: 28px; left: 32px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  z-index: 10;
}

/* Stage */
.cg-stage {
  position: relative;
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 96px 16px;
  overflow: hidden;
}
.cg-img {
  position: absolute;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  opacity: 0;
  pointer-events: none;
  user-select: none;
}
.cg-img.cg-img--active {
  opacity: 1;
  pointer-events: auto;
}

/* Arrows */
.cg-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  line-height: 0;
}
.cg-arrow:hover {
  color: #fff;
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.22);
}
.cg-arrow--prev { left: 24px; }
.cg-arrow--next { right: 24px; }

/* Footer + thumbnails */
.cg-footer {
  width: 100%;
  padding: 12px 24px 20px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 10;
}
.cg-thumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  max-width: 100%;
  padding: 4px 4px 2px;
  scrollbar-width: none;
}
.cg-thumbs::-webkit-scrollbar { display: none; }
.cg-thumb {
  flex: 0 0 72px;
  height: 48px;
  object-fit: cover;
  border-radius: 2px;
  opacity: 0.35;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: opacity 0.25s, border-color 0.25s, transform 0.25s;
}
.cg-thumb:hover { opacity: 0.75; transform: translateY(-2px); }
.cg-thumb.cg-thumb--active {
  opacity: 1;
  border-color: var(--gold);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .cg-stage { padding: 64px 16px 12px; }
  .cg-arrow--prev { left: 10px; }
  .cg-arrow--next { right: 10px; }
  .cg-thumb { flex: 0 0 54px; height: 36px; }
}

/* ════════════════════════════════
   SIMILAR — dark section
   ════════════════════════════════ */
.similar-section {
  background: #0f0f0f;
  padding: 80px 0 88px;
}
.similar-header {
  text-align: center;
  margin-bottom: 48px;
}
.similar-section .section-eyebrow { color: var(--gold); justify-content: center; }
.similar-section .section-eyebrow::before { background: var(--gold); }
.similar-section .section-title { color: var(--white); margin-top: 8px; }

/* Cards inside the dark section get inverted styling */
.listings-grid--similar .listing-card-body {
  background: transparent;
}
.listings-grid--similar .listing-card-title { color: var(--white); }
.listings-grid--similar .listing-card-type,
.listings-grid--similar .listing-card-location { color: rgba(255,255,255,0.4); }
.listings-grid--similar .listing-card-price { color: var(--gold-lt); }
.listings-grid--similar .listing-card-specs { color: rgba(255,255,255,0.35); }
.listings-grid--similar .listing-card-footer { border-top-color: rgba(255,255,255,0.1); }
.listings-grid--similar .listing-card:hover { transform: translateY(-4px); }

.similar-footer {
  text-align: center;
  margin-top: 48px;
}

/* ── Sticky scroll bar ── */
.detail-sticky-bar {
  position: fixed;
  top: 80px;
  left: 0; right: 0;
  z-index: 89;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(0,0,0,0.01);
  transform: translateY(-100%);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  opacity: 0;
  pointer-events: none;
}
.detail-sticky-bar.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.detail-sticky-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.detail-sticky-back {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transition: color var(--t);
  flex-shrink: 0;
}
.detail-sticky-back:hover { color: var(--ink); }
.detail-sticky-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.detail-sticky-divider {
  width: 1px;
  height: 18px;
  background: var(--border);
  flex-shrink: 0;
}
.detail-sticky-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}
.detail-sticky-cta {
  padding: 8px 18px !important;
  font-size: 10px !important;
  flex-shrink: 0;
  letter-spacing: 0.12em;
}

/* ── Detail page layout ── */
.detail-section { padding: 56px 0 80px; }
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}

/* Breadcrumb inside hero info panel */
.detail-breadcrumb {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.detail-breadcrumb a { color: var(--mid); transition: color var(--t); }
.detail-breadcrumb a:hover { color: var(--gold); }

.detail-badges { display: flex; gap: 6px; margin-bottom: 12px; }
.detail-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  color: var(--white);
}
.detail-badge--sale { background: var(--ink); }
.detail-badge--rent { background: var(--gold); }
.detail-badge--rented { background: #5B3FA0; }
.detail-badge--type { background: var(--mid); }
.detail-badge--new { background: var(--muted); }

.detail-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 6px;
}
.detail-title-th {
  font-family: var(--font-th);
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.detail-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 0;
  letter-spacing: 0.04em;
}

/* Price group (used in hero) */
.detail-price-group { display: flex; flex-direction: column; gap: 3px; }
.detail-price {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.detail-price-usd { font-size: 11px; color: var(--muted); letter-spacing: 0.04em; margin-top: 3px; }

/* Specs horizontal strip */
.detail-specs {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 24px 0;
}
.detail-spec {
  display: flex;
  flex-direction: column;
  padding-right: 32px;
  margin-right: 32px;
}
.detail-spec:last-child { margin-right: 0; padding-right: 0; }
.detail-spec-value {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}
.detail-spec-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-top: 5px;
}

.detail-divider { height: 1px; background: var(--border); margin: 32px 0; }

.detail-description h2, .detail-features h2, .detail-map h2 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.detail-description p { color: var(--mid); line-height: 1.9; font-size: 14px; }
.detail-location { color: var(--muted); font-size: 12px; margin-bottom: 16px; letter-spacing: 0.04em; }

/* Features — 3-column grid */
.features-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.features-list li {
  font-size: 12px;
  color: var(--mid);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 0;
}
.features-list li::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.map-placeholder {
  height: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-placeholder span { font-size: 12px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }

/* Sidebar */
.detail-sidebar { position: sticky; top: 77px; } /* below nav */
.enquiry-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 28px;
  margin-bottom: 12px;
}
.enquiry-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.enquiry-ref { font-size: 11px; color: var(--muted); margin-bottom: 20px; letter-spacing: 0.08em; }

/* Key facts in sidebar */
.detail-facts-card {
  background: var(--surface);
  padding: 20px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.detail-fact-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.detail-fact-row:last-child { border-bottom: none; padding-bottom: 0; }
.detail-fact-label { color: var(--muted); letter-spacing: 0.04em; }
.detail-fact-value { font-weight: 600; color: var(--ink); }

.advisor-card {
  background: var(--surface);
  padding: 16px 20px;
  margin-top: 12px;
}
.advisor-label { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.advisor-info { display: flex; align-items: center; gap: 12px; }
.advisor-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ink);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 14px; font-weight: 500; color: var(--gold);
  letter-spacing: 0.05em;
}
.advisor-avatar::after { content: 'TBC'; }
.advisor-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.advisor-phone a { font-size: 12px; color: var(--gold); }


/* ════════════════════════════════
   FORMS
   ════════════════════════════════ */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--white);
  font-size: 13px;
  color: var(--ink);
  transition: border-color var(--t);
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--ink); }
.form-group input.error, .form-group textarea.error { border-color: #c0392b; }
.form-note { font-size: 11px; color: var(--muted); margin-top: 10px; text-align: center; letter-spacing: 0.04em; }
.form-success { text-align: center; padding: 24px 0; }
.form-success p { color: var(--mid); font-size: 14px; }
.form-success h3 { font-size: 1.2rem; font-weight: 400; margin: 8px 0; }

/* Contact page */
.contact-section { padding: 64px 0 80px; }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
}
.contact-form-wrap h2 { margin-bottom: 10px; font-weight: 400; }
.contact-form-wrap > p { color: var(--mid); margin-bottom: 32px; font-size: 14px; line-height: 1.8; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.contact-info-card {
  background: var(--surface);
  border-radius: var(--r);
  padding: 28px;
  margin-bottom: 16px;
}
.contact-info-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 24px; }
.contact-detail { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-icon { font-size: 14px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.contact-detail-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}
.contact-detail a { color: var(--ink); font-size: 13px; }
.contact-detail a:hover { color: var(--gold); }
.contact-detail p { font-size: 13px; color: var(--mid); }
.contact-social { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.social-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--mid);
  letter-spacing: 0.06em;
  transition: all var(--t);
}
.social-btn:hover { border-color: var(--ink); color: var(--ink); }
.contact-list-cta {
  background: var(--ink);
  border-radius: var(--r);
  padding: 28px;
}
.contact-list-cta h3 { color: var(--white); font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.contact-list-cta p { color: rgba(255,255,255,0.5); font-size: 13px; margin-bottom: 20px; line-height: 1.75; }

/* ════════════════════════════════
   FOOTER
   ════════════════════════════════ */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.5); padding-top: 60px; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand .logo-en { color: var(--white); font-size: 16px; }
.footer-brand .logo-th { color: var(--gold-lt); }
.footer-tagline { font-size: 12px; color: rgba(255,255,255,0.3); margin-top: 12px; letter-spacing: 0.04em; }
.footer-links h4, .footer-contact h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; }
.footer-links a, .footer-contact a {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  padding: 5px 0;
  transition: color var(--t);
  display: block;
  letter-spacing: 0.02em;
}
.footer-links a:hover, .footer-contact a:hover { color: var(--white); }
.footer-contact p { font-size: 12px; color: rgba(255,255,255,0.35); padding: 3px 0; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 12px 16px;
  border-radius: 2px;
  transition: all var(--t);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.footer-social a:hover { color: var(--white); border-color: rgba(255,255,255,0.4); }
.footer-bottom { padding: 20px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.footer-bottom p { font-size: 11px; color: rgba(255,255,255,0.5); letter-spacing: 0.04em; }

/* ════════════════════════════════
   PAGE HEADER SUB
   ════════════════════════════════ */
.page-header-sub { color: rgba(255,255,255,0.4); font-size: 13px; margin-top: 8px; }

/* ════════════════════════════════
   ARTICLE CARDS
   ════════════════════════════════ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.articles-grid--3 { grid-template-columns: repeat(3, 1fr); }

.article-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform var(--t);
}
.article-card:hover { transform: translateY(-3px); }

.article-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--surface);
  border-radius: 0;
  margin-bottom: 14px;
}
.article-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.article-card:hover .article-card-img img { transform: scale(1.04); }
.article-img-placeholder {
  width: 100%; height: 100%;
  background: var(--surface);
}

.article-card-body { flex: 1; display: flex; flex-direction: column; }
.article-category {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
}
.article-card-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 8px;
}
.article-card-excerpt {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px solid var(--border);
  letter-spacing: 0.04em;
}

.article-skeleton {
  aspect-ratio: 16/10;
  background: var(--surface);
  border-radius: var(--r);
  animation: pulse 1.5s ease-in-out infinite;
}

/* ════════════════════════════════
   FEATURED ARTICLE
   ════════════════════════════════ */
.featured-article-section { padding: 48px 0 0; }
.featured-article-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow var(--t);
}
.featured-article-card:hover { box-shadow: var(--shadow-hover); }
.featured-article-img {
  aspect-ratio: unset;
  min-height: 380px;
  overflow: hidden;
}
.featured-article-img img { width: 100%; height: 100%; object-fit: cover; }
.featured-placeholder {
  width: 100%; height: 100%;
  background: var(--surface);
}
.featured-article-body {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
}
.featured-article-title { font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 400; margin: 8px 0 6px; line-height: 1.25; }
.featured-article-title-th { font-family: var(--font-th); font-size: 12px; color: var(--gold); margin-bottom: 14px; }
.featured-article-excerpt { font-size: 13px; color: var(--mid); line-height: 1.8; margin-bottom: 20px; flex: 1; }
.featured-article-body .article-meta { border-top: 1px solid var(--border); padding-top: 16px; }

/* ════════════════════════════════
   CATEGORY TABS
   ════════════════════════════════ */
.articles-main-section { padding: 40px 0 80px; }
.category-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.category-tab {
  padding: 7px 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--mid);
  background: var(--white);
  cursor: pointer;
  transition: all var(--t);
}
.category-tab:hover { border-color: var(--ink); color: var(--ink); }
.category-tab.active { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* ════════════════════════════════
   ARTICLE HERO
   ════════════════════════════════ */
.article-hero {
  position: relative;
  padding-top: 64px;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.article-hero-bg { position: absolute; inset: 0; }
.article-hero-placeholder {
  width: 100%; height: 100%;
  background: var(--ink);
  background-size: cover;
  background-position: center;
}
.article-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 70%, transparent 100%);
}
.article-hero-content {
  position: relative; z-index: 2;
  padding: 80px 0 52px;
  max-width: 720px;
}
.article-hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--white);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin: 10px 0 8px;
  line-height: 1.15;
}
.article-hero-title-th { font-family: var(--font-th); font-size: 13px; color: var(--gold-lt); margin-bottom: 14px; }
.article-hero-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  letter-spacing: 0.04em;
}
.article-meta-dot { color: rgba(255,255,255,0.2); }
.article-author { color: rgba(255,255,255,0.35); }

/* ════════════════════════════════
   ARTICLE BODY
   ════════════════════════════════ */
.article-body-section { padding: 56px 0 80px; }
.article-body-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: start;
}
.article-content { font-size: 15px; line-height: 1.85; color: var(--mid); }
.article-content p { margin-bottom: 22px; }
.article-subheading {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 36px 0 14px;
  scroll-margin-top: 90px;
}
.article-highlight {
  margin: 32px 0;
  padding: 22px 24px;
  background: var(--surface);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.7;
  font-style: italic;
  font-weight: 300;
}
.article-highlight-ornament { display: none; }
.article-list { margin: 0 0 22px; }
.article-list li {
  padding: 9px 0 9px 20px;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--mid);
}
.article-list li:last-child { border-bottom: none; }
.article-list li::before { content: '—'; position: absolute; left: 0; color: var(--gold); font-size: 10px; top: 13px; }

.article-skeleton-line {
  height: 14px;
  background: var(--surface);
  border-radius: 2px;
  margin-bottom: 12px;
  animation: pulse 1.5s ease-in-out infinite;
}
.article-skeleton-line.short { width: 55%; }

/* Article sidebar */
.article-sidebar { position: sticky; top: 82px; }
.article-sidebar-card {
  background: var(--surface);
  border-radius: var(--r);
  padding: 20px;
  margin-bottom: 12px;
}
.article-sidebar-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.toc-nav { display: flex; flex-direction: column; gap: 2px; }
.toc-link {
  font-size: 12px;
  color: var(--mid);
  padding: 6px 8px;
  border-left: 2px solid transparent;
  border-radius: 0 2px 2px 0;
  transition: all var(--t);
  line-height: 1.4;
}
.toc-link:hover { color: var(--ink); border-left-color: var(--border); }
.toc-link.active { color: var(--ink); border-left-color: var(--gold); font-weight: 600; background: rgba(196,154,60,0.06); }

.article-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.article-tag {
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--mid);
  transition: all var(--t);
}
.article-tag:hover { border-color: var(--ink); color: var(--ink); }

.article-sidebar-cta {
  background: var(--ink);
  border-radius: var(--r);
  padding: 22px;
}
.sidebar-cta-label { font-size: 13px; font-weight: 500; color: var(--white); margin-bottom: 6px; line-height: 1.4; }
.sidebar-cta-sub { font-size: 12px; color: rgba(255,255,255,0.4); margin-bottom: 18px; }

/* ════════════════════════════════
   NEWSLETTER
   ════════════════════════════════ */
.newsletter-section { background: var(--ink); padding: 64px 0; }
.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.newsletter-text h2 {
  color: var(--white);
  font-weight: 300;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
  margin: 10px 0 12px;
}
.newsletter-text p { color: rgba(255,255,255,0.4); font-size: 13px; line-height: 1.8; }
.newsletter-input-row { display: flex; flex-direction: column; gap: 8px; }
.newsletter-input-row input {
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2px;
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-size: 13px;
  transition: border-color var(--t);
}
.newsletter-input-row input::placeholder { color: rgba(255,255,255,0.25); }
.newsletter-input-row input:focus { outline: none; border-color: rgba(255,255,255,0.4); }

/* Articles preview on home page */
.articles-preview-section { background: var(--surface); }

/* ════════════════════════════════
   RESPONSIVE
   ════════════════════════════════ */
@media (max-width: 1100px) {
  .districts-grid { grid-template-columns: repeat(3, 1fr); }
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid, .articles-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .featured-article-card { grid-template-columns: 1fr; }
  .featured-article-img { min-height: 240px; }
  /* Hero split stacks on medium screens */
  .listing-hero { grid-template-columns: 1fr; height: auto; max-height: none; min-height: 0; }
  .listing-hero-photos { height: 460px; }
  .listing-hero-info-inner { padding: 40px 40px; justify-content: flex-start; }
  .detail-layout { grid-template-columns: 1fr; gap: 40px; }
  .detail-sidebar { position: static; top: auto; }
  .listings-layout { grid-template-columns: 1fr; }
  .filters-sidebar { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
  .article-body-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .newsletter-inner { grid-template-columns: 1fr; gap: 32px; }
  .why-inner { grid-template-columns: 1fr; }
  .why-visual { display: none; }
  .listings-grid--similar { grid-template-columns: repeat(2, 1fr); }
}

/* Nav collapses to hamburger below 1024px to prevent logo/nav overlap */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 768px) {
  .listings-grid, .articles-grid, .articles-grid--3 { grid-template-columns: 1fr; }
  .listings-grid--similar { grid-template-columns: 1fr; }
  .districts-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-search { flex-direction: column; }
  .hero-listing-cta { display: none; }
  .search-group { flex-direction: column; }
  .search-select { border-right: none; border-bottom: 1px solid var(--border); }
  .form-row { grid-template-columns: 1fr; }
  .features-list { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; }
  .cta-actions { flex-direction: column; align-items: center; }
  .stats-strip { padding: 16px; }
  .stat { padding: 10px 16px; }
  .stat-divider { display: none; }
  .section { padding: 56px 0; }
  .container { padding: 0 20px; }
  /* Hero on mobile: photos shorter, info pads down */
  .listing-hero-photos { height: 300px; }
  .listing-hero-info-inner { padding: 32px 20px; }
  .collage-bottom { height: 140px; }
  /* Sticky bar */
  .detail-sticky-title { display: none; }
  .detail-sticky-divider { display: none; }
  .detail-sticky-inner { padding: 0 20px; gap: 12px; }
  /* Specs */
  .detail-spec-value { font-size: 1.4rem; }
  .hero-price-row { flex-direction: column; align-items: flex-start; }
  .hero-price-actions { align-items: flex-start; flex-direction: row; }
}

@media (max-width: 480px) {
  .districts-grid { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 1.9rem; }
  .features-list { grid-template-columns: 1fr; }
}
