/* =========================================================================
   NY Rentals — Premium bilingual NYC apartment rental site
   Design language: Airbnb / Zillow / Apple / Stripe inspired
   ========================================================================= */

:root {
  /* Brand */
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --blue-soft: #EFF4FF;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6B7280;
  --line: #E5E7EB;
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --white: #FFFFFF;
  --gold: #F59E0B;
  --green: #10B981;
  --red: #EF4444;

  /* Radii */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Shadows */
  --sh-1: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.10);
  --sh-2: 0 4px 16px rgba(16,24,40,.08);
  --sh-3: 0 12px 32px rgba(16,24,40,.12);
  --sh-blue: 0 8px 24px rgba(37,99,235,.28);

  /* Layout */
  --maxw: 1200px;
  --header-h: 74px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Bilingual toggle: both languages live in the DOM (SEO) ------- */
.zh { display: none; }
html[data-lang="zh"] .en { display: none; }
html[data-lang="zh"] .zh { display: inline; }
html[data-lang="zh"] .zh.block { display: block; }
.en.block, .zh.block { display: block; }
html[data-lang="zh"] .en.block { display: none; }

/* ---------- Utilities --------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section.tight { padding: 56px 0; }
.bg-soft { background: var(--bg-soft); }
.center { text-align: center; }

.eyebrow {
  color: var(--blue);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 14px;
}
.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
}
.section-head { margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  padding: 13px 26px; font-weight: 700; font-size: .98rem;
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease, color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--sh-blue); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--sh-1); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-light { background: rgba(255,255,255,.14); color:#fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn-light:hover { background: rgba(255,255,255,.24); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: .88rem; }

/* ---------- Header ------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: var(--header-h);
  display: flex; align-items: center; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.24rem; letter-spacing: -.02em; }
.logo .mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), #60A5FA);
  display: grid; place-items: center; color: #fff; box-shadow: var(--sh-blue);
}
.logo .mark svg { width: 20px; height: 20px; }
.logo b { color: var(--blue); }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 14px; }
.nav-links a {
  padding: 9px 14px; border-radius: var(--r-sm); font-weight: 600; font-size: .96rem;
  color: var(--ink-2); transition: background .16s, color .16s;
}
.nav-links a:hover, .nav-links a.active { background: var(--blue-soft); color: var(--blue); }
/* CTA links live in the nav only for the mobile slide-in menu */
.mobile-cta { display: none !important; }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 8px 14px; font-weight: 700; font-size: .88rem; color: var(--ink-2);
  background: #fff; transition: border-color .16s, color .16s;
}
.lang-toggle:hover { border-color: var(--blue); color: var(--blue); }
.lang-toggle, .nav-links a { white-space: nowrap; }
.lang-toggle svg { width: 16px; height: 16px; }

.nav-login { font-weight: 600; color: var(--ink-2); padding: 9px 12px; border-radius: var(--r-sm); }
.nav-login:hover { color: var(--blue); }

.hamburger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: 12px; align-items: center; justify-content: center;
}
.hamburger span { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: .2s; }
.hamburger span::before, .hamburger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); transition: .2s; }
.hamburger span::before { top: -6px; } .hamburger span::after { top: 6px; }
body.menu-open .hamburger span { background: transparent; }
body.menu-open .hamburger span::before { top: 0; transform: rotate(45deg); }
body.menu-open .hamburger span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Image placeholder (graceful, never a broken square) --------- */
.media { position: relative; overflow: hidden; background: var(--bg-soft); }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.media::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(135deg, #DBEAFE 0%, #EFF6FF 45%, #F1F5F9 100%);
}
.media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; opacity: .5;
  background-image:
    linear-gradient(rgba(37,99,235,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.08) 1px, transparent 1px);
  background-size: 26px 26px, 26px 26px;
  -webkit-mask-image: radial-gradient(120% 80% at 70% 20%, #000 30%, transparent 75%);
          mask-image: radial-gradient(120% 80% at 70% 20%, #000 30%, transparent 75%);
}
.media img { position: relative; z-index: 2; }
.media img.broken { opacity: 0; }
.media.is-empty::before, .media.is-empty::after { opacity: 1; }

/* ---------- HERO -------------------------------------------------------- */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; color: #fff; }
.hero-video, .hero-fallback {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero-fallback { background: linear-gradient(140deg, #0B1220, #17305e 55%, #2563EB); z-index: -1; }
.hero-overlay { position: absolute; inset: 0; background: #000; opacity: .30; z-index: 1; }
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero-inner { max-width: 760px; padding: 40px 0; }
.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.8rem); line-height: 1.08; font-weight: 800;
  letter-spacing: -.03em; margin: 0 0 18px; text-shadow: 0 2px 24px rgba(0,0,0,.28);
}
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255,255,255,.92); margin: 0 0 32px; max-width: 620px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; }
.hero-badges div { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: .96rem; }
.hero-badges svg { width: 20px; height: 20px; color: #93C5FD; }

/* ---------- Search box -------------------------------------------------- */
.search-card {
  background: rgba(255,255,255,.97); color: var(--ink);
  border-radius: var(--r-lg); box-shadow: var(--sh-3);
  padding: 14px; margin-top: 38px; max-width: 940px;
}
.search-grid { display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 8px; align-items: end; }
.search-field { padding: 8px 12px; border-radius: var(--r-sm); transition: background .16s; }
.search-field:hover { background: var(--bg-soft); }
.search-field label { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 3px; }
.search-field select, .search-field input {
  width: 100%; border: none; background: transparent; font-family: inherit;
  font-size: .96rem; font-weight: 600; color: var(--ink); outline: none; padding: 2px 0;
}
.search-field select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.search-btn { height: 100%; }
.search-card .btn-primary { height: 54px; padding: 0 22px; }

/* ---------- Neighborhood cards ------------------------------------------ */
.hood-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hood-card { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 3/4; box-shadow: var(--sh-1); display: block; }
.hood-card .media { position: absolute; inset: 0; }
.hood-card .media::after { opacity: .35; }
.hood-card .veil { position: absolute; inset: 0; z-index: 3; background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.15) 55%, transparent 100%); }
.hood-card .label { position: absolute; z-index: 4; left: 16px; bottom: 14px; right: 16px; color: #fff; }
.hood-card .label b { font-size: 1.15rem; font-weight: 700; display: block; }
.hood-card .label span { font-size: .85rem; opacity: .9; }
.hood-card img { transition: transform .6s ease; }
.hood-card:hover img { transform: scale(1.07); }
.hood-card:hover { box-shadow: var(--sh-3); }

/* ---------- Listing cards ----------------------------------------------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cards-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.listing-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-1);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s;
  display: flex; flex-direction: column;
}
.listing-card:hover { transform: translateY(-5px); box-shadow: var(--sh-3); border-color: transparent; }
.listing-card .media { aspect-ratio: 4/3; }
.listing-card:hover .media img { transform: scale(1.06); }
.card-badges { position: absolute; top: 12px; left: 12px; z-index: 5; display: flex; gap: 6px; }
.chip {
  background: rgba(17,24,39,.82); color: #fff; font-size: .74rem; font-weight: 700;
  padding: 5px 10px; border-radius: var(--r-pill); backdrop-filter: blur(4px);
}
.chip.blue { background: var(--blue); }
.chip.green { background: var(--green); }
.fav-btn {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.92); display: grid; place-items: center;
  box-shadow: var(--sh-1); transition: transform .16s, background .16s;
}
.fav-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; transition: .16s; }
.fav-btn:hover { transform: scale(1.12); }
.fav-btn.on svg { fill: var(--red); stroke: var(--red); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-price { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }
.card-price span { font-size: .82rem; font-weight: 600; color: var(--muted); }
.card-title { font-size: 1.02rem; font-weight: 700; margin: 6px 0 2px; line-height: 1.35; }
.card-hood { color: var(--muted); font-size: .9rem; display: flex; align-items: center; gap: 5px; }
.card-hood svg { width: 15px; height: 15px; }
.card-specs { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .88rem; font-weight: 600; }
.card-specs .spec { display: flex; align-items: center; gap: 6px; }
.card-specs svg { width: 16px; height: 16px; color: var(--muted); }
.card-subway { margin-top: 12px; font-size: .84rem; color: var(--blue); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.card-subway svg { width: 15px; height: 15px; }
.card-link { position: absolute; inset: 0; z-index: 4; } /* whole-card click */

/* ---------- Why choose us ----------------------------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 30px 26px; box-shadow: var(--sh-1); transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.feature .ico { width: 56px; height: 56px; border-radius: 16px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 18px; }
.feature .ico svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.12rem; margin: 0 0 8px; font-weight: 700; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Testimonials ------------------------------------------------ */
.tst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tst { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; box-shadow: var(--sh-1); }
.tst .stars { color: var(--gold); margin-bottom: 12px; letter-spacing: 2px; }
.tst p { font-size: 1rem; color: var(--ink-2); margin: 0 0 20px; }
.tst .who { display: flex; align-items: center; gap: 12px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), #60A5FA); color: #fff; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.tst .who b { display: block; font-size: .96rem; }
.tst .who span { color: var(--muted); font-size: .84rem; }

/* ---------- CTA band ---------------------------------------------------- */
.cta {
  border-radius: var(--r-lg); padding: 60px 40px; text-align: center; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--blue-dark), var(--blue) 55%, #3B82F6);
}
.cta::after { content:""; position:absolute; inset:0; opacity:.18; background-image: radial-gradient(circle at 20% 30%, #fff 0, transparent 8px), radial-gradient(circle at 80% 70%, #fff 0, transparent 6px); background-size: 120px 120px; }
.cta h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; margin: 0 0 12px; position: relative; }
.cta p { font-size: 1.1rem; opacity: .94; margin: 0 0 28px; position: relative; }
.cta .btn { position: relative; }

/* ---------- Footer ------------------------------------------------------ */
.site-footer { background: #0B1220; color: #cbd5e1; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.site-footer .logo b { color: #93C5FD; }
.footer-about { color: #94a3b8; font-size: .95rem; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: .95rem; margin: 0 0 16px; font-weight: 700; }
.footer-col a { display: block; color: #94a3b8; padding: 6px 0; font-size: .92rem; transition: color .16s; }
.footer-col a:hover { color: #fff; }
.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #cbd5e1; transition: background .16s, color .16s; }
.socials a:hover { background: var(--blue); color: #fff; }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #64748b; font-size: .86rem; }

/* ---------- Mobile bottom nav ------------------------------------------- */
.mobile-nav { display: none; }

/* =========================================================================
   LISTINGS PAGE
   ========================================================================= */
.listings-top { background: #fff; border-bottom: 1px solid var(--line); padding: 18px 0; position: sticky; top: var(--header-h); z-index: 40; }
.listings-top .wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mini-search { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 10px 18px; box-shadow: var(--sh-1); }
.mini-search svg { width: 18px; height: 18px; color: var(--muted); }
.mini-search input { border: none; outline: none; flex: 1; font-family: inherit; font-size: .96rem; }
.listings-tools { display: flex; align-items: center; gap: 10px; }
.select-pill { border: 1px solid var(--line); border-radius: var(--r-pill); padding: 10px 16px; font-weight: 600; font-size: .9rem; background: #fff; color: var(--ink-2); appearance: none; -webkit-appearance:none; cursor: pointer; }
.result-count { color: var(--muted); font-weight: 600; font-size: .92rem; }

.listings-layout { display: grid; grid-template-columns: 288px 1fr; gap: 32px; align-items: start; padding: 32px 0 72px; }
.filters { position: sticky; top: calc(var(--header-h) + 74px); background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--sh-1); }
.filters h3 { font-size: 1.05rem; margin: 0 0 6px; display:flex; justify-content: space-between; align-items:center; }
.filters .reset { font-size: .82rem; color: var(--blue); font-weight: 600; }
.filter-group { padding: 18px 0; border-top: 1px solid var(--line); }
.filter-group:first-of-type { border-top: none; }
.filter-group > label { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); display: block; margin-bottom: 12px; }
.filter-group select, .filter-group input[type=text], .filter-group input[type=search], .range-row input[type=number] { width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; font-family: inherit; font-size: .92rem; font-weight: 600; outline: none; }
.filter-group input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.filter-group input[type=date] { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 13px 14px; font-family: inherit; font-size: .95rem; font-weight: 600; color: var(--ink-2); background: #fff; outline: none; }
.range-row { display: flex; align-items: center; gap: 8px; }
.range-row span { color: var(--muted); }
input[type=range] { width: 100%; accent-color: var(--blue); }
.pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-opt { border: 1px solid var(--line); border-radius: var(--r-pill); padding: 8px 14px; font-size: .86rem; font-weight: 600; color: var(--ink-2); background: #fff; transition: .15s; }
.pill-opt:hover { border-color: var(--blue); color: var(--blue); }
.pill-opt.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.check-list { display: flex; flex-direction: column; gap: 11px; }
.check-list label { display: flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.check-list input { width: 18px; height: 18px; accent-color: var(--blue); }
.listings-main .cards-grid { grid-template-columns: repeat(2, 1fr); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; }
.pagination a { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; font-weight: 700; color: var(--ink-2); background: #fff; }
.pagination a.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.pagination a:hover:not(.on) { border-color: var(--blue); color: var(--blue); }

/* =========================================================================
   DETAIL PAGE
   ========================================================================= */
.detail-wrap { padding: 28px 0 80px; }
.breadcrumb { color: var(--muted); font-size: .88rem; margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--blue); }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; border-radius: var(--r-lg); overflow: hidden; height: 480px; }
.gallery .media { height: 100%; }
.gallery .g-main { grid-row: 1 / 3; }
.gallery .media img, .gallery .media { cursor: pointer; }
.gallery .media:hover img { transform: scale(1.04); }
.gallery-more { position: absolute; right: 12px; bottom: 12px; z-index: 6; background: rgba(255,255,255,.95); color: var(--ink); padding: 9px 16px; border-radius: var(--r-pill); font-weight: 700; font-size: .86rem; box-shadow: var(--sh-1); display: flex; gap: 7px; align-items:center; }
.gallery-more svg { width: 16px; height: 16px; }

.detail-grid { display: grid; grid-template-columns: 1fr 372px; gap: 40px; margin-top: 36px; align-items: start; }
.detail-title { font-size: clamp(1.5rem,3vw,2.1rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 8px; }
.detail-addr { color: var(--muted); display: flex; align-items: center; gap: 7px; margin-bottom: 18px; }
.detail-price { font-size: 2rem; font-weight: 800; color: var(--blue); }
.detail-price span { font-size: .95rem; color: var(--muted); font-weight: 600; }
.spec-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 22px 0; }
.spec-box { flex: 1; min-width: 120px; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; text-align: center; }
.spec-box svg { width: 24px; height: 24px; color: var(--blue); margin-bottom: 6px; }
.spec-box b { display: block; font-size: 1.15rem; }
.spec-box span { color: var(--muted); font-size: .82rem; }
.detail-section { padding: 28px 0; border-top: 1px solid var(--line); }
.detail-section h2 { font-size: 1.3rem; font-weight: 800; margin: 0 0 16px; }
.detail-section p { color: var(--ink-2); }
.amenities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.amenity { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-2); font-size: .95rem; }
.amenity svg { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; }
.map-embed { height: 340px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); position: relative; background: var(--bg-soft); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.nearby-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.nearby-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.nearby-item .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.nearby-item .ic svg { width: 19px; height: 19px; }
.nearby-item b { font-size: .92rem; } .nearby-item span { color: var(--muted); font-size: .82rem; }

/* Sticky contact card */
.contact-card { position: sticky; top: calc(var(--header-h) + 20px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: 24px; }
.landlord { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.landlord .media { width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0; }
.landlord b { font-size: 1.05rem; display: flex; align-items: center; gap: 6px; }
.verified { display: inline-flex; align-items: center; gap: 3px; color: var(--blue); font-size: .78rem; font-weight: 700; background: var(--blue-soft); padding: 3px 8px; border-radius: var(--r-pill); }
.verified svg { width: 13px; height: 13px; }
.landlord span { color: var(--muted); font-size: .86rem; }
.contact-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.qr-box { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; }
.qr-box .media { width: 128px; height: 128px; margin: 8px auto 0; border-radius: var(--r-sm); border: 1px solid var(--line); }
.qr-box p { font-size: .84rem; color: var(--muted); margin: 0 0 4px; }

/* =========================================================================
   ADMIN / POST LISTING
   ========================================================================= */
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - var(--header-h)); }
.admin-side { background: #0B1220; color: #cbd5e1; padding: 26px 18px; }
.admin-side .logo { color: #fff; margin-bottom: 26px; padding: 0 8px; }
.admin-side .logo b { color: #93C5FD; }
.admin-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; font-weight: 600; font-size: .95rem; color: #94a3b8; margin-bottom: 4px; transition: .15s; }
.admin-nav a svg { width: 19px; height: 19px; }
.admin-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-nav a.active { background: var(--blue); color: #fff; }
.admin-main { padding: 34px 40px; background: var(--bg-soft); }
.admin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; flex-wrap: wrap; gap: 14px; }
.admin-head h1 { font-size: 1.6rem; font-weight: 800; margin: 0; }
.admin-head p { color: var(--muted); margin: 4px 0 0; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--sh-1); margin-bottom: 24px; }
.admin-card h2 { font-size: 1.12rem; margin: 0 0 20px; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px;
  font-family: inherit; font-size: .95rem; outline: none; transition: border-color .15s, box-shadow .15s; background:#fff;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.field textarea { resize: vertical; min-height: 120px; }
.dropzone { border: 2px dashed var(--line); border-radius: var(--r); padding: 40px; text-align: center; color: var(--muted); background: var(--bg-soft); transition: .18s; cursor: pointer; }
.dropzone:hover, .dropzone.drag { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.dropzone svg { width: 42px; height: 42px; margin-bottom: 10px; }
.amenity-check { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.amenity-check label { display: flex; align-items: center; gap: 9px; font-size: .92rem; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 14px; cursor: pointer; transition: .15s; }
.amenity-check input { width: 18px; height: 18px; accent-color: var(--blue); }
.amenity-check label:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--sh-1); }
.stat .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display:grid; place-items:center; margin-bottom: 12px; }
.stat .ic svg { width: 20px; height: 20px; }
.stat b { font-size: 1.7rem; font-weight: 800; display: block; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: .88rem; }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 8px; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1200px) {
  .hood-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1023px) {
  /* Tablet: compact nav still visible */
  .nav-links { gap: 0; margin-left: 6px; }
  .nav-links a { padding: 8px 9px; font-size: .88rem; }
  .nav-login { display: none; }
  .cards-grid, .cards-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hood-grid { grid-template-columns: repeat(3, 1fr); }
  .tst-grid { grid-template-columns: 1fr; }
  .search-grid { grid-template-columns: repeat(3, 1fr); }
  .search-card .btn-primary { grid-column: 1 / -1; }
  .detail-grid { grid-template-columns: 1fr; }
  .contact-card { position: static; }
  .listings-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  :root { --header-h: 64px; }
  .section { padding: 56px 0; }
  .wrap { padding: 0 18px; }
  .nav-links { display: none; }
  .nav-actions .btn:not(.hamburger) { display: none; }
  .lang-toggle { display: inline-flex; }
  .hamburger { display: flex; }

  /* Mobile slide-in menu */
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: #fff; padding: 20px; z-index: 200; overflow-y: auto; margin: 0;
  }
  .nav-links.open a { padding: 15px 16px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links.open .mobile-cta { display: block !important; }
  .nav-links.open a.btn.mobile-cta { display: flex !important; margin-top: 18px; border-bottom: none; justify-content: center; }
  .nav-links.open .nav-login.mobile-cta { color: var(--blue); text-align: center; }

  .hero { min-height: 82vh; }
  .search-grid { grid-template-columns: 1fr 1fr; }
  .search-field.wide { grid-column: 1 / -1; }
  .cards-grid, .cards-grid.cols-4, .listings-main .cards-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .hood-grid { grid-template-columns: repeat(2, 1fr); }
  .amenities-grid, .nearby-grid, .amenity-check { grid-template-columns: 1fr; }
  .form-grid, .stat-row { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
  .gallery .media { height: 220px; }
  .gallery .g-main { grid-row: auto; }
  .gallery .g-hide-m { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cta { padding: 44px 22px; }
  .listings-top { position: static; }
  .admin-main { padding: 22px 16px; }

  /* Mobile bottom nav */
  .mobile-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    background: #fff; border-top: 1px solid var(--line); padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(16,24,40,.06);
  }
  .mobile-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted); font-size: .68rem; font-weight: 600; padding: 4px; }
  .mobile-nav a svg { width: 22px; height: 22px; }
  .mobile-nav a.active { color: var(--blue); }
  .mobile-nav a.post { color: var(--blue); }
  .mobile-nav a.post .ic { width: 46px; height: 46px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; margin-top: -26px; box-shadow: var(--sh-blue); }
  .mobile-nav a.post .ic svg { width: 24px; height: 24px; }
  body { padding-bottom: 66px; }
  .site-footer { margin-bottom: 0; }

  /* Sticky mobile contact bar on detail page */
  .mobile-contact-bar { display: flex; }
}
@media (max-width: 400px) {
  .hood-grid { grid-template-columns: 1fr; }
  .search-grid { grid-template-columns: 1fr; }
}

/* Sticky mobile contact bar (detail page) */
.mobile-contact-bar {
  display: none; position: fixed; bottom: 66px; left: 0; right: 0; z-index: 85;
  background: #fff; border-top: 1px solid var(--line); padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.mobile-contact-bar .btn { flex: 1; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
