:root {
  --red: #e10600;
  --red-dark: #c10500;
  --ink: #1b1b1b;
  --muted: #5c6168;
  --soft: #8b9098;
  --line: #e6e7ea;
  --bg: #f5f6f8;
  --card: #fff;
  --green: #0c7a45;
  --green-bg: #e7f6ee;
  --shadow: 0 1px 2px rgba(20, 20, 20, 0.04), 0 12px 32px rgba(20, 20, 20, 0.06);
  --radius: 14px;
  --max: 1160px;
  --header: 108px;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
button { cursor: pointer; }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-bar, .subnav, .wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.header-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.04em;
  flex: none;
}
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--red);
  display: grid;
  place-items: center;
}
.logo em { font-style: normal; color: var(--red); }
.header-search {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 4px 4px 14px;
  min-width: 0;
}
.header-search select, .header-search input {
  border: 0;
  background: transparent;
  outline: none;
  height: 38px;
}
.header-search select { max-width: 140px; font-weight: 600; }
.header-search input { flex: 1; min-width: 0; }
.header-search button {
  border: 0;
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  height: 38px;
  padding: 0 16px;
  font-weight: 700;
}
.header-search button:hover { background: var(--red-dark); }
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  padding: 10px 16px;
  background: #fff;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { border-color: var(--line); background: #fff; }
.btn-ghost:hover { border-color: #ccc; }
.icon-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  text-decoration: none;
  position: relative;
  background: #fff;
}
.icon-link.on, .icon-link:hover { border-color: #f3b4b2; }
.fav-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 4px;
}
.menu-toggle { display: none; }
.short { display: none; }
.subnav {
  display: flex;
  gap: 4px;
  overflow: auto;
  padding-bottom: 0;
}
.subnav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 650;
  font-weight: 600;
  padding: 10px 12px 12px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.subnav a:hover { color: var(--ink); }
.subnav a.active { color: var(--red); border-bottom-color: var(--red); }

.page { padding: 22px 0 64px; }
.home-search { background: #fff; border-bottom: 1px solid var(--line); }
.search-card { padding: 22px 0 18px; }
.search-card h1 {
  margin: 0 0 4px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.045em;
  line-height: 1.1;
}
.search-card .lede { margin: 0 0 16px; color: var(--muted); }
.purpose { display: flex; gap: 8px; margin-bottom: 12px; }
.purpose button, .chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 650;
  font-weight: 600;
}
.purpose button.on, .chip.on { background: #1b1b1b; color: #fff; border-color: #1b1b1b; }
.search-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.4fr auto;
  gap: 10px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 12px;
  outline: none;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #111; }
.quick-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.quick-links a {
  text-decoration: none;
  background: var(--bg);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.quick-links a:hover { color: var(--ink); }

.cats {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.cat {
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 8px 12px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
}
.cat:hover { border-color: #f0b4b1; }
.cat svg { display: block; margin: 0 auto 8px; }
.section { margin-top: 28px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.section-head h2 { margin: 0; font-size: 22px; letter-spacing: -0.03em; }
.section-head a { color: var(--red); font-weight: 700; text-decoration: none; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.vcard, .row {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
}
.vcard { display: flex; flex-direction: column; }
.vcard-media, .row-media { position: relative; display: block; background: #eee; }
.vcard-media { aspect-ratio: 16 / 10; }
.vcard-media img, .row-media img, .gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.vcard-body, .row-body { padding: 12px 14px 14px; }
.badge {
  position: absolute;
  left: 10px;
  top: 10px;
  background: #fff;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
}
.badge-sale { color: #0c4f9a; }
.badge-rent { color: var(--red); }
.heart {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.heart.on svg { fill: var(--red); stroke: var(--red); }
.heart.static { position: static; flex: none; box-shadow: none; border: 1px solid var(--line); }
.title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.title-row h1 { margin-top: 6px; }
.price { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.price span { font-weight: 600; font-size: 14px; color: var(--muted); }
.vcard h3, .row h2 { margin: 4px 0; font-size: 16px; letter-spacing: -0.02em; line-height: 1.35; }
.vcard h3 a, .row h2 a { text-decoration: none; }
.vcard h3 a:hover, .row h2 a:hover { color: var(--red); }
.loc, .muted { color: var(--muted); margin: 0; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 10px 0 0; }
.specs li {
  background: var(--bg);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 650;
  font-weight: 600;
}
.verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--green);
  background: var(--green-bg);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
}
.verified.broker {
  color: #1d4e89;
  background: #e8f1fb;
}
.row-foot, .card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--muted); }

.cities { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.city-card {
  position: relative;
  min-height: 120px;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  background: #222 center/cover no-repeat;
}
.city-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
}
.city-card span { position: relative; z-index: 1; font-weight: 800; }
.city-card small { position: relative; z-index: 1; display: block; font-weight: 600; opacity: .9; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.step b { display: block; font-size: 28px; color: var(--red); letter-spacing: -0.04em; }
.step h3 { margin: 4px 0; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

.crumb { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.crumb a { color: var(--muted); }
.layout { display: grid; grid-template-columns: 270px 1fr; gap: 18px; align-items: start; }
.filters, .detail-side, .form-card, .agent {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.filters { padding: 14px; position: sticky; top: 120px; }
.filters h2 { margin: 0 0 8px; font-size: 16px; }
.filter-block { padding: 10px 0; border-top: 1px solid var(--line); }
.filter-block:first-of-type { border-top: 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip.on { background: var(--red); border-color: var(--red); }
.check { display: flex; gap: 8px; align-items: center; margin: 6px 0; font-weight: 600; }
.results-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; margin-bottom: 12px; }
.results-head h1 { margin: 0; font-size: 26px; letter-spacing: -0.04em; }
.results-tools { display: flex; gap: 8px; align-items: center; }
.results-tools select { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: grid; grid-template-columns: 280px 1fr; }
.row-media { min-height: 190px; }
.row-body { display: flex; flex-direction: column; }
.excerpt { color: var(--muted); margin: 8px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.empty { background: #fff; border: 1px dashed #ccc; border-radius: 16px; padding: 36px 20px; text-align: center; }
.empty h2 { margin: 0 0 6px; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.pager button, .pager span {
  min-width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
}
.pager .on { background: var(--ink); color: #fff; border-color: var(--ink); }

.detail { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
.gallery-main { border-radius: 16px; overflow: hidden; background: #ddd; aspect-ratio: 16 / 10; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; }
.thumbs button { border: 2px solid transparent; padding: 0; border-radius: 10px; overflow: hidden; width: 92px; height: 68px; background: #ddd; }
.thumbs button.on { border-color: var(--red); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-copy { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px 18px; margin-top: 12px; }
.detail-copy h1 { margin: 6px 0; font-size: 28px; letter-spacing: -0.04em; line-height: 1.2; }
.detail-side { position: sticky; top: 120px; }
.agent { padding: 16px; }
.agent .price { font-size: 28px; }
.agent-name { display: flex; gap: 10px; align-items: center; margin: 12px 0; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; background: #111; color: #fff;
  display: grid; place-items: center; font-weight: 800;
}
.amenity-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.amenity-grid span { background: var(--bg); border-radius: 999px; padding: 6px 10px; font-weight: 600; font-size: 13px; }
.enquiry { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.success { background: var(--green-bg); color: var(--green); border-radius: 12px; padding: 10px 12px; font-weight: 650; font-weight: 600; }

.form-card { padding: 18px; max-width: 820px; }
.form-card h1 { margin: 0 0 6px; letter-spacing: -0.04em; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .wide { grid-column: 1 / -1; }
.help { color: var(--muted); margin-top: 0; }
.error { color: var(--red); font-weight: 700; margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 14px; }

.site-footer { background: #111; color: #ddd; padding: 36px 0 20px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 18px; }
.site-footer a { color: #ddd; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer h3 { margin: 0 0 8px; color: #fff; font-size: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.legal { border-top: 1px solid #2a2a2a; margin-top: 22px; padding-top: 12px; color: #9a9a9a; font-size: 13px; }

.modal-back, .lightbox {
  position: fixed; inset: 0; background: rgba(12,12,12,.55);
  display: grid; place-items: center; z-index: 50; padding: 20px;
}
.modal { background: #fff; border-radius: 18px; padding: 18px; width: min(420px, 100%); }
.modal h2 { margin: 0 0 8px; }
.lightbox img { max-width: min(1000px, 100%); max-height: 84vh; border-radius: 12px; }
.toast {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  background: #111; color: #fff; padding: 10px 14px; border-radius: 999px; z-index: 60;
  font-weight: 650; font-weight: 600;
}
.filter-toggle { display: none; }

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

@media (max-width: 980px) {
  .cats { grid-template-columns: repeat(4, 1fr); }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
  .cities { grid-template-columns: 1fr 1fr; }
  .layout, .detail, .foot-grid { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .filter-toggle { display: inline-flex; }
  .row { grid-template-columns: 1fr; }
  .row-media { aspect-ratio: 16/10; min-height: 0; }
  .search-grid { grid-template-columns: 1fr 1fr; }
  .detail-side { position: static; }
}
@media (max-width: 720px) {
  .header-bar { flex-wrap: wrap; min-height: 60px; padding-bottom: 10px; }
  .header-search { flex: 1 1 100%; order: 5; }
  .menu-toggle { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; }
  .subnav { display: none; }
  .subnav.open { display: flex; }
  .long { display: none; }
  .short { display: inline; }
  .grid, .steps, .search-grid, .form-grid, .cities { grid-template-columns: 1fr; }
}
