﻿@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --brand: #C1121F;
  --brand-dark: #9B0E19;
  --text: #1A1A1A;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --border-dark: #D1D5DB;
  --bg: #FFFFFF;
  --bg-subtle: #F9FAFB;
  --bg-band: #F3F4F6;
  --footer-bg: #111827;
  --max: 1120px;
  --header-h: 64px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { display: block; max-width: 100%; }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.container-wide { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }

/* Header — scrolls away on browse pages; not sticky */
.site-header {
  position: relative;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.site-header:has(.header-menu.is-open) {
  z-index: 2147483000;
}

body.nav-open .site-header {
  z-index: 2147483646;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.logo-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-desktop {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: clamp(2px, 0.5vw, 10px);
  flex: 1;
}

.nav-link {
  display: inline-block;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand);
  background: transparent;
}

.nav-item { position: relative; }

.dropdown-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 6px;
  z-index: 110;
}

.nav-item.is-open .dropdown-panel { display: block; }

.dropdown-inner {
  display: flex;
  gap: 32px;
  min-width: 360px;
  padding: 20px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.dropdown-col { display: flex; flex-direction: column; gap: 2px; min-width: 140px; }

.dropdown-label {
  margin-bottom: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.dropdown-col a {
  padding: 4px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.dropdown-col a:hover { color: var(--brand); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.header-mobile-actions {
  display: none;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-action {
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius);
}

.header-action:hover { color: var(--text); background: var(--bg-subtle); }

.header-action--primary {
  color: var(--brand);
  font-weight: 600;
}

.header-dashboard-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 50%;
}

.header-dashboard-link--mobile {
  display: inline-flex;
  justify-self: start;
}

.header-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-avatar--initial {
  border: 1px solid rgba(193, 18, 31, 0.15);
}

.header-notification {
  position: relative;
}

.header-menu {
  position: relative;
}

.header-menu-popover {
  transform-origin: top right;
}

.app-layer-dropdown {
  z-index: 2147483001;
}

.header-menu.is-open .header-menu-popover {
  animation: header-menu-in .16s ease-out both;
}

@keyframes header-menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.header-notification-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}

.header-notification-unread {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 14px;
  text-align: center;
}

.header-notification-trigger:hover,
.header-notification-trigger[aria-expanded="true"] {
  background: var(--bg-subtle);
  color: var(--text);
}

.header-notification-trigger svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-notification-popover {
  position: absolute;
  z-index: 130;
  top: calc(100% + 10px);
  right: 0;
  width: 250px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.16);
}

.header-menu-popover[hidden] {
  display: none;
}

.header-notification-head {
  margin: -2px -2px 13px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--border);
}

.header-notification-popover strong {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
}

.header-notification-empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.header-notification-list {
  display: grid;
  gap: 2px;
}

.header-notification-list[hidden] {
  display: none;
}

.header-notification-item {
  position: relative;
  padding: 10px 10px 10px 22px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: .82rem;
  line-height: 1.4;
}

.header-notification-item.is-unread {
  background: #fff5f5;
  color: var(--text);
}

.header-notification-item.is-unread::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.header-notification--mobile {
  justify-self: start;
}

.header-account-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.header-account-trigger:hover,
.header-account-trigger[aria-expanded="true"] {
  background: var(--bg-subtle);
}

.header-avatar--guest {
  background: #f4f5f7;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.header-avatar--guest svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.header-account-popover {
  position: absolute;
  z-index: 130;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  overflow: hidden;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, .16);
}

.header-account-identity {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: -8px -8px 7px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--border);
}

.header-account-identity .header-avatar {
  width: 36px;
  height: 36px;
}

.header-account-identity div {
  min-width: 0;
}

.header-account-identity strong,
.header-account-identity span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-account-identity strong {
  color: var(--text);
  font-size: .88rem;
}

.header-account-identity span {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: .76rem;
}

.header-account-links {
  display: grid;
}

.header-account-links a,
.header-account-links button,
.header-account-links .header-dashboard-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: .84rem;
  font-weight: 550;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.header-account-links a:hover,
.header-account-links button:hover {
  background: var(--bg-subtle);
  color: var(--text);
}

.header-account-links button[data-account-signout] {
  margin-top: 6px;
  padding-top: 11px;
  border-top: 1px solid var(--border);
  border-radius: 0 0 8px 8px;
}

.header-account-links svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-account-loading {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  opacity: .55;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 2147483647;
  padding: 8px 20px 32px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  overflow-y: auto;
}

.nav-mobile.is-open { display: block; }

.mobile-group { border-bottom: 1px solid var(--border); }

.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 0;
  border: 0;
  background: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.mobile-toggle svg { transition: transform 0.2s; }
.mobile-group.is-open .mobile-toggle svg { transform: rotate(180deg); }

.mobile-submenu { display: none; padding: 0 0 12px 8px; }
.mobile-group.is-open .mobile-submenu { display: block; }

.mobile-submenu a,
.mobile-link {
  display: block;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.mobile-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { border-color: var(--border-dark); background: var(--bg); color: var(--text); }
.btn-outline:hover { border-color: var(--text-muted); }
.btn-block { width: 100%; }

/* Hero */
.hero {
  position: relative;
  padding: 48px 0 56px;
  background-color: #1a2332;
  background-size: cover;
  background-position: center;
}

.hero--visual {
  min-height: 420px;
  display: flex;
  align-items: center;
  padding: 72px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #1a2332;
  background-image:
    linear-gradient(180deg, rgba(15, 20, 28, 0.45) 0%, rgba(15, 20, 28, 0.65) 100%),
    url("/images/hero-malaysia.jpg");
  background-size: cover;
  background-position: center 40%;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
}

.hero-eyebrow {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-title {
  margin: 0 0 28px;
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.search-module--float {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  border: 0;
}

/* Search module */
.search-module {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
}

.search-tabs {
  position: relative;
  display: flex;
  border-bottom: 1px solid var(--border);
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.search-tab {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 0;
  border-bottom: 0;
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease;
}

.search-tab.is-active {
  background: var(--bg);
  color: var(--brand);
}

.search-tab-underline {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--brand);
  pointer-events: none;
  transition: transform 220ms ease, width 220ms ease;
}

.search-tab-underline.no-transition {
  transition: none;
}

.search-row {
  display: flex;
  align-items: stretch;
  min-height: 58px;
}

.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 16px;
  min-width: 0;
}

.search-input-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 18px 0;
  font-size: 1rem;
  color: var(--text);
  background: transparent;
}

.search-input-wrap input::placeholder { color: #9CA3AF; }

.search-actions {
  display: flex;
  align-items: stretch;
  border-left: 1px solid var(--border);
}

.search-filters-btn {
  margin: 7px;
  padding: 0 17px;
  border: 1px solid #d5d9df;
  border-right: 1px solid var(--border);
  border-radius: 5px;
  background: #f7f8fa;
  color: #303741;
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.search-filters-btn:hover {
  border-color: #aeb5bf;
  background: #eef0f3;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.08);
}

.search-submit {
  margin: 7px 7px 7px 0;
  padding: 0 25px;
  border: 0;
  border-radius: 5px;
  background: var(--brand);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(193, 18, 31, 0.2);
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.search-submit:hover {
  background: var(--brand-dark);
  box-shadow: 0 5px 12px rgba(193, 18, 31, 0.28);
}

.search-submit:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(193, 18, 31, 0.22);
}

/* Homepage search proportions */
.search-module {
  max-width: 840px;
  border-color: rgba(209, 213, 219, .78);
  border-radius: 15px;
  background: #fff;
}

.search-module--float {
  box-shadow: 0 14px 38px rgba(15, 23, 42, .16);
}

.search-module .search-tabs {
  min-height: 48px;
  border-bottom-color: #e7e9ed;
  background: #fff;
}

.search-module .search-tab {
  padding: 14px 20px;
  background: #fff;
  color: #4b5563;
  font-size: .88rem;
  font-weight: 600;
}

.search-module .search-tab:hover {
  background: #fafafa;
  color: #242a33;
}

.search-module .search-tab.is-active {
  color: var(--brand);
  font-weight: 750;
}

.search-module .search-tab-underline {
  height: 3px;
}

.search-module .search-row {
  min-height: 68px;
  align-items: center;
  padding: 8px 10px 8px 18px;
  gap: 14px;
}

.search-module .search-input-wrap {
  gap: 11px;
  padding: 0;
}

.search-module .search-input-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  color: #66717f;
}

.search-module .search-input-wrap input {
  min-height: 48px;
  padding: 0;
}

.search-module .search-actions {
  align-items: center;
  gap: 10px;
  border: 0;
}

.search-module .search-filters-btn,
.search-module .search-submit {
  display: inline-flex;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: 999px;
}

.search-module .search-filters-btn {
  gap: 8px;
  padding: 0 19px;
  border: 1px solid #cfd4da;
  background: #fff;
}

.search-module .search-filters-btn svg {
  width: 17px;
  height: 17px;
}

.search-module .search-submit {
  min-width: 104px;
  padding: 0 27px;
  font-weight: 750;
}

.btn-light {
  background: #fff;
  color: var(--text);
  border: 0;
}

.btn-light:hover {
  background: #f3f4f6;
}

/* Homepage visual sections */
.section-heading {
  margin: 0 0 24px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-markets { padding: 56px 0; }
.section-journey { padding: 48px 0 56px; background: var(--bg-subtle); border-top: 1px solid var(--border); }
.section-guides { padding: 56px 0 64px; }

.market-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.market-tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 220px;
  padding: 20px;
  border-radius: 10px;
  overflow: hidden;
  background-color: #374151;
  background-image:
    linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.72) 100%),
    var(--tile-img);
  background-size: cover;
  background-position: center;
  transition: transform 0.2s ease;
}

.market-tile:hover { transform: translateY(-3px); }

.market-tile--wide {
  grid-column: span 2;
  min-height: 220px;
}

.market-tile-label {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.journey-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.journey-item:hover {
  border-color: var(--border-dark);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.journey-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.journey-item:hover .journey-icon { color: var(--brand); }

.journey-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

.visual-band {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.visual-band-bg {
  position: absolute;
  inset: 0;
  background-color: #2d3748;
  background-image:
    linear-gradient(90deg, rgba(15, 20, 28, 0.82) 0%, rgba(15, 20, 28, 0.45) 55%, rgba(15, 20, 28, 0.25) 100%),
    url("/images/industrial.jpg");
  background-size: cover;
  background-position: center;
}

.visual-band-content {
  position: relative;
  z-index: 1;
  padding: 48px 0;
}

.visual-band-title {
  margin: 0 0 20px;
  max-width: 420px;
  color: #fff;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.guide-cards--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 720px;
}

.guide-card {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  min-height: 200px;
  transition: transform 0.2s ease;
}

.guide-card:hover { transform: translateY(-3px); }

.guide-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.guide-card-img--buy {
  background-color: #4a5568;
  background-image: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7) 100%), url("/images/kuala-lumpur.jpg");
}

.guide-card-img--rent {
  background-color: #5a6a7a;
  background-image: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7) 100%), url("/images/selangor.jpg");
}

.guide-card-img--industrial {
  background-color: #3d4f5f;
  background-image: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7) 100%), url("/images/industrial.jpg");
}

.guide-card-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}

.search-filters-panel {
  display: none;
  padding: 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}

.search-filters-panel.is-open { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.search-filters-panel label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.search-filters-panel select {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: 0.88rem;
}

.hero-popular {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 4px;
  margin-top: 20px;
  font-size: 0.84rem;
}

.hero-popular span { color: rgba(255, 255, 255, 0.7); margin-right: 4px; }

.hero-popular a {
  color: rgba(255, 255, 255, 0.9);
  padding: 2px 8px;
  border-radius: 4px;
}

.hero-popular a:hover { background: rgba(255, 255, 255, 0.12); text-decoration: underline; }

/* Sections */
.section { padding: 48px 0; }
.section--subtle { background: var(--bg-subtle); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-title {
  margin: 0 0 20px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-lead {
  margin: -12px 0 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Horizontal lists */
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  font-size: 0.9rem;
  line-height: 1.8;
}

.link-row a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--border-dark);
}

.link-row a:hover { color: var(--brand); text-decoration-color: var(--brand); }

.link-row .sep {
  margin: 0 10px;
  color: var(--border-dark);
  text-decoration: none;
}

/* Explore tabs */
.explore-section { padding: 48px 0; }

.explore-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.explore-tab {
  padding: 10px 18px;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.explore-tab.is-active {
  color: var(--brand);
  border-bottom-color: var(--brand);
  font-weight: 600;
}

.explore-panel { display: none; }
.explore-panel.is-active { display: block; }

.explore-rows { display: grid; gap: 0; }

.explore-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.explore-row:last-child { border-bottom: 0; }

.explore-row h3 {
  margin: 0 0 2px;
  font-size: 0.95rem;
  font-weight: 600;
}

.explore-row p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.explore-row a {
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Market directory */
.market-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px 24px;
}

.market-col strong {
  display: block;
  margin-bottom: 10px;
  font-size: 0.88rem;
  font-weight: 600;
}

.market-col > a {
  display: block;
  padding: 3px 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.market-col > a:hover { color: var(--brand); }

.market-sub {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.market-sub span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.market-sub a {
  display: block;
  padding: 2px 0;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.market-sub a:hover { color: var(--brand); }

/* Category links */
.category-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.category-links a {
  padding: 14px 18px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.category-links a:hover { background: var(--bg-subtle); color: var(--text); }

.category-links a:nth-child(4n) { border-right: 0; }
.category-links a:nth-last-child(-n+4) { border-bottom: 0; }

/* Feature band */
.feature-band {
  padding: 40px 0;
  background: var(--bg-band);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feature-band-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.feature-band h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 600;
}

.feature-band p {
  margin: 0 0 16px;
  max-width: 560px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.feature-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 16px;
}

.feature-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.feature-links a:hover { color: var(--brand); }

/* Editorial rows */
.editorial-list { border-top: 1px solid var(--border); }

.editorial-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.editorial-row h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
}

.editorial-row p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  max-width: 640px;
}

.editorial-row a {
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  padding-top: 2px;
}

/* Professional section */
.pro-section {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.pro-section h2 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
}

.pro-section p {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.pro-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.pro-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pro-links a:hover { color: var(--brand); }

/* Inner pages */
.page-header {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  margin: 0 0 16px;
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.page-search {
  max-width: 640px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.filter-link {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.filter-link:hover,
.filter-link.is-active {
  border-color: var(--brand);
  color: var(--brand);
}

.empty-state {
  padding: 40px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-subtle);
  text-align: center;
}

.empty-state p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.listing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.listing-card-link {
  display: block;
  color: inherit;
}

.listing-card-body {
  padding: 14px 16px 16px;
}

.listing-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand);
  margin-bottom: 6px;
}

.listing-card h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.listing-location {
  margin: 0 0 8px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.listing-price {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand);
}

.listing-meta {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.dir-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.dir-col strong {
  display: block;
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.dir-col a {
  display: block;
  padding: 4px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.dir-col a:hover { color: var(--brand); }

/* Forms */
.form-panel {
  max-width: 520px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.form-panel h2 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 600;
}

.form-panel > p {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.project-enquiry-card {
  width: min(100%, 860px);
  max-width: 860px;
  margin: 36px auto 0;
  padding: 28px;
  border: 1px solid #dfe3e8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(15, 23, 42, .07);
  box-sizing: border-box;
}

.project-enquiry-card h2 {
  font-size: 1.25rem;
  font-weight: 750;
}

@media (max-width: 600px) {
  .project-enquiry-card {
    margin-top: 24px;
    padding: 20px;
    border-radius: 10px;
  }
}

.form-grid { display: grid; gap: 14px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
}

.form-group textarea { min-height: 100px; resize: vertical; }

.form-status {
  display: none;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 0.86rem;
}

.form-status.show { display: block; }
.form-status.ok { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.form-status.err { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }

/* Guides page */
.guide-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.guide-section h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 600;
}

.guide-section p {
  margin: 0 0 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 680px;
  line-height: 1.65;
}

.guide-section ul {
  margin: 12px 0 0;
  padding-left: 1.2rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.guide-section li { margin-bottom: 6px; }

.guide-breadcrumb {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.guide-breadcrumb a {
  color: var(--brand);
  text-decoration: none;
}

.guide-breadcrumb a:hover { text-decoration: underline; }

.guide-article {
  max-width: 720px;
}

.guide-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Prose */
.prose { max-width: 720px; }
.prose h2 { margin: 1.5rem 0 0.5rem; font-size: 1.05rem; }
.prose p, .prose li { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.65; }
.prose a { color: var(--brand); text-decoration: underline; }
.prose ul { padding-left: 1.2rem; }

.faq-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.faq-item strong { display: block; margin-bottom: 4px; font-size: 0.92rem; }
.faq-item p { margin: 0; color: var(--text-muted); font-size: 0.88rem; }

.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.option-list {
  margin: 24px 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.option-list li {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.option-list li:last-child { border-bottom: 0; }
.option-list strong { display: block; margin-bottom: 2px; font-weight: 600; }
.option-list span { color: var(--text-muted); font-size: 0.86rem; }

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.65);
  padding: 48px 0 0;
  margin-top: 0;
}

.footer-inner {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px 24px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-heading {
  display: block;
  margin-bottom: 14px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.86rem;
  font-weight: 600;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
  .market-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .category-links { grid-template-columns: repeat(2, 1fr); }
  .category-links a:nth-child(4n) { border-right: 1px solid var(--border); }
  .category-links a:nth-child(2n) { border-right: 0; }
}

@media (max-width: 768px) {
  .nav-desktop, .header-actions { display: none; }
  .header-inner {
    gap: 10px;
    width: min(1200px, calc(100% - 20px));
  }
  .logo {
    margin-right: auto;
  }
  .logo-name {
    display: none;
  }
  .header-mobile-actions { display: flex; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
  }
  .hero--visual { min-height: 380px; padding: 48px 0 56px; }
  .market-tiles { grid-template-columns: repeat(2, 1fr); }
  .market-tile { min-height: 160px; }
  .market-tile--wide { grid-column: span 2; }
  .journey-grid { grid-template-columns: repeat(3, 1fr); }
  .guide-cards { grid-template-columns: 1fr; }
  .guide-card { min-height: 160px; }
  .search-row { flex-direction: column; }
  .search-actions { border-left: 0; border-top: 1px solid var(--border); }
  .search-filters-btn { flex: 1; border-right: 0; }
  .search-submit { flex: 1; padding: 14px; }
  .search-module {
    border-radius: 14px;
  }
  .search-module .search-tabs {
    min-height: 46px;
  }
  .search-module .search-tab {
    flex: 0 0 auto;
    min-width: 92px;
    padding: 13px 16px;
  }
  .search-module .search-row {
    width: 100%;
    align-items: stretch;
    padding: 12px;
    gap: 10px;
    box-sizing: border-box;
  }
  .search-module .search-input-wrap {
    width: 100%;
    min-height: 48px;
    padding: 0 4px;
    box-sizing: border-box;
  }
  .search-module .search-actions {
    width: 100%;
    gap: 10px;
    border: 0;
  }
  .search-module .search-filters-btn,
  .search-module .search-submit {
    height: 46px;
    margin: 0;
    padding: 0 20px;
  }
  .search-filters-panel.is-open { grid-template-columns: 1fr; }
  .market-grid { grid-template-columns: repeat(2, 1fr); }
  .dir-links { grid-template-columns: 1fr; }
  .split-2 { grid-template-columns: 1fr; }
  .feature-band-inner { flex-direction: column; }
  .explore-row { grid-template-columns: 1fr; gap: 8px; }
  .editorial-row { grid-template-columns: 1fr; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .section { padding: 36px 0; }
  .section-markets, .section-guides { padding: 40px 0; }
  .hero--visual { min-height: 340px; padding: 40px 0 48px; }
  .market-tiles { grid-template-columns: 1fr; }
  .market-tile--wide { grid-column: span 1; }
  .journey-grid { grid-template-columns: repeat(2, 1fr); }
  .market-grid, .category-links { grid-template-columns: 1fr; }
  .category-links a { border-right: 0 !important; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
}

.login-page-body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(193, 18, 31, 0.06), rgba(255, 255, 255, 0) 42%),
    var(--bg-subtle);
}

.login-page-header {
  padding: 18px 24px;
}

.login-page-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 48px;
  min-height: calc(100vh - 82px);
}

.login-page-card {
  width: min(420px, 100%);
  margin: 0;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.10);
}

.login-page-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #fff5f5;
  border: 1px solid #ffe1e1;
}

.login-page-brand img {
  border-radius: 8px;
}

.login-page-card h1 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  line-height: 1.2;
  color: var(--text);
}

.login-page-card .login-page-sub {
  color: var(--text-muted);
  margin: 0 0 24px;
  font-size: 0.95rem;
}

.login-page-card .form-stack {
  gap: 13px;
}

.login-page-card label {
  color: var(--text);
}

.login-page-card label span {
  color: var(--text-muted);
  font-weight: 500;
}

.login-page-card input {
  background: #fff;
}

.login-page-card .btn-primary {
  margin-top: 4px;
  min-height: 44px;
  border-radius: 6px;
  font-weight: 700;
}

.login-page-switch {
  margin: 4px 0 0 !important;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.login-page-switch button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--brand);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.login-page-switch button:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

@media (max-width: 480px) {
  .login-page-header {
    padding: 16px 18px;
  }

  .login-page-main {
    align-items: flex-start;
    padding: 18px 14px 28px;
  }

  .login-page-card {
    padding: 24px 20px;
  }
}

.alert {
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  margin: 10px 0;
}

.alert-err {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.alert-warn {
  background: #FFF7ED;
  color: #9A3412;
  border: 1px solid #FED7AA;
}

.alert-ok {
  background: #ECFDF5;
  color: #166534;
  border: 1px solid #BBF7D0;
}

/* Category page filters */
.category-filters {
  margin-top: 20px;
}

.category-deal-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-2, #f3f4f6);
  border-radius: 999px;
  margin-bottom: 16px;
}

.category-deal-btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
}

.category-deal-btn.is-active {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.category-filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  align-items: end;
  padding: 16px;
  background: var(--surface-2, #f9fafb);
  border-radius: var(--radius);
  border: 1px solid var(--border, #e5e7eb);
}

.category-filter-form label {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.category-filter-form input,
.category-filter-form select {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--border, #d1d5db);
  border-radius: 8px;
  background: #fff;
}

/* Forum */
.forum-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}

.forum-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  flex: 1;
}

.forum-filters label {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.forum-filters input,
.forum-filters select {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--border, #d1d5db);
  border-radius: 8px;
  min-width: 140px;
}

.forum-grid {
  display: grid;
  gap: 16px;
}

.forum-card {
  padding: 20px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius);
  background: #fff;
}

.forum-card h2 {
  font-size: 1.1rem;
  margin: 10px 0 8px;
}

.forum-card h2 a {
  color: inherit;
  text-decoration: none;
}

.forum-card h2 a:hover {
  color: var(--brand);
}

.forum-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.82rem;
}

.forum-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #FEE2E2;
  color: #991B1B;
  font-weight: 700;
  text-transform: capitalize;
}

.forum-badge-muted {
  background: #f3f4f6;
  color: #374151;
}

.forum-status-open {
  color: #166534;
  font-weight: 600;
}

.forum-status-closed {
  color: #6b7280;
}

.forum-card-sub,
.forum-card-details {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.forum-card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.forum-card-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border, #e5e7eb);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.forum-detail {
  padding: 24px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 24px;
}

.forum-detail-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.forum-detail-facts dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.forum-detail-facts dd {
  margin: 4px 0 0;
  font-weight: 600;
}

.forum-replies-section h2 {
  margin-bottom: 16px;
}

.forum-reply {
  padding: 16px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: #fff;
}

.forum-reply header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.forum-reply-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.forum-reply-photo {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}

.forum-back {
  margin-bottom: 16px;
}

.forum-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
}

.forum-modal {
  position: relative;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
}

.forum-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.forum-auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.forum-auth-tab {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border, #d1d5db);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
}

.forum-auth-tab.is-active {
  border-color: var(--brand);
  color: var(--brand);
}

.forum-index-notice {
  padding: 32px 24px;
  text-align: center;
  border: 1px dashed var(--border, #d1d5db);
  border-radius: var(--radius);
  background: #fff;
}

.forum-index-notice h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.forum-index-notice p {
  margin: 0 0 8px;
  color: var(--text-muted);
  line-height: 1.6;
}

.forum-index-notice p:last-child {
  margin-bottom: 0;
}

.agent-forum-reply {
  margin-bottom: 12px;
  padding: 12px;
  background: var(--surface-2, #f9fafb);
  border-radius: 8px;
}

.agent-credit-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.forum-reply-panel {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius);
  background: #fff;
}

.forum-reply-panel--muted {
  background: var(--surface-2, #f9fafb);
}

.forum-poster-card {
  padding: 24px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.forum-poster-card-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.forum-poster-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.forum-poster-name {
  margin: 0 0 4px;
  font-size: 1.35rem;
}

.forum-poster-date {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.forum-status-pill {
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.forum-poster-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.forum-request-message {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border, #e5e7eb);
}

.forum-request-message h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.forum-request-message p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

.forum-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 24px;
  max-width: 100%;
}

#forum-root,
.container-wide {
  max-width: 100%;
  overflow-x: hidden;
}

.forum-page-detail {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  overflow-x: hidden;
}

.forum-poster-card {
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.forum-replies-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 100%;
}

.forum-reply--social {
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.forum-reply-actions {
  flex-wrap: wrap;
}

.forum-reply-form-card {
  max-width: 100%;
  box-sizing: border-box;
}

.forum-contact-poster {
  flex: 1 1 100%;
  min-width: 0;
  max-width: 100%;
}

.forum-contact-hint {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.forum-contact-poster--unlocked {
  padding: 16px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  background: var(--surface-2, #f9fafb);
}

.forum-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.forum-avatar--sm {
  width: 28px;
  height: 28px;
  display: inline-flex;
  vertical-align: middle;
  margin-right: 6px;
}

.forum-avatar--lg {
  width: 64px;
  height: 64px;
}

.forum-avatar--initial,
.forum-reply-avatar.forum-avatar--initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-weight: 700;
}

.forum-card-poster {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.forum-replies-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.forum-reply--social {
  border-radius: 14px;
  padding: 18px;
}

.forum-reply-meta time {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.forum-reply-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.forum-reply-body p {
  margin: 0 0 12px;
  line-height: 1.55;
}

.forum-reply-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border, #e5e7eb);
}

.forum-listing-card {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  background: var(--surface-2, #f9fafb);
  text-decoration: none;
  color: inherit;
  margin-bottom: 12px;
}

.forum-listing-card-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.user-inbox {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-inbox-item {
  padding: 16px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  background: #fff;
}

.user-inbox-item.is-unread {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px rgba(193, 18, 31, 0.08);
}

.user-inbox-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.user-inbox-head time {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.user-inbox-snippet {
  margin: 0 0 8px;
  line-height: 1.5;
}

.user-inbox-listing {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.user-inbox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.forum-detail-facts--inline {
  margin-top: 0;
}

.forum-reply-panel h3 {
  margin: 0 0 12px;
}

.forum-reply-form-card {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.forum-reply-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.forum-reply-form-head h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
}

.forum-reply-form-sub {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.forum-reply-credit-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #FEF2F2;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.forum-reply-form-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--surface-2, #f9fafb);
  border: 1px solid var(--border, #e5e7eb);
}

.forum-reply-form-profile-text p {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.forum-reply-form-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.forum-reply-form-avatar--initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
}

.forum-reply-form-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.forum-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.forum-field-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.forum-field-optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.forum-reply-form-fields textarea,
.forum-reply-form-fields input,
.forum-reply-form-fields select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

.forum-reply-form-fields textarea {
  min-height: 120px;
  resize: vertical;
}

.forum-reply-submit {
  margin-top: 4px;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
}

.forum-reply-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.forum-reply-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* Header auth */
.header-auth-loading {
  opacity: 0.5;
  min-width: 3rem;
  text-align: center;
}

.header-auth-menu {
  position: relative;
}

.header-auth-trigger {
  cursor: pointer;
  border: 0;
  font: inherit;
}

.header-auth-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius, 8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  z-index: 200;
}

.header-auth-dropdown.is-open {
  display: block;
}

.header-auth-dropdown .header-auth-name {
  display: block;
  padding: 8px 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border, #e5e7eb);
  margin-bottom: 4px;
}

.header-auth-dropdown a,
.header-auth-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  font: inherit;
  font-size: 0.9rem;
  color: var(--text, #111);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

.header-auth-dropdown a:hover,
.header-auth-dropdown button:hover {
  background: var(--surface-2, #f3f4f6);
}

.forum-reply-verified {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #DCFCE7;
  color: #166534;
  font-size: 0.72rem;
  font-weight: 700;
}

/* Agent directory & public profile */
.agent-search-bar {
  max-width: 720px;
  margin-top: 16px;
}

.agent-search-bar .search-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.agent-search-bar .search-input-wrap {
  flex: 1;
  min-width: 200px;
}

.agent-search-bar input[type="search"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.agent-search-bar .page-search-shell {
  display: flex;
  min-height: 58px;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 5px 7px 5px 18px;
  border: 1px solid #d9dde3;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 3px 11px rgba(15, 23, 42, .06);
  box-sizing: border-box;
}

.agent-search-bar .page-search-shell .search-input-wrap {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  padding: 0;
}

.agent-search-bar .page-search-shell input[type="search"] {
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
}

.page-search-leading-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  color: var(--brand);
}

.agent-search-bar .page-search-submit {
  display: inline-flex;
  width: 46px;
  height: 46px;
  min-width: 46px;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: .9rem;
  font-weight: 750;
  box-shadow: 0 3px 8px rgba(193, 18, 31, .2);
  cursor: pointer;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.agent-search-bar .page-search-submit svg {
  width: 20px;
  height: 20px;
}

.agent-search-bar .page-search-submit:hover {
  background: var(--brand-dark);
  box-shadow: 0 5px 12px rgba(193, 18, 31, .28);
}

.agent-search-bar .page-search-submit:active {
  transform: translateY(1px);
}

.agent-directory-status {
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.agent-directory-loading {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.filter-bar--category {
  align-items: center;
}

.filter-bar-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 4px;
}

.agent-directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 1120px;
}

.agent-card {
  display: block;
  overflow: hidden;
  padding: 0;
  border: 1px solid #e1e5ea;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.06);
}

.agent-card-agency-banner {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 11px;
  padding: 9px 18px;
  background: var(--agent-card-agency, #3f3f46);
  color: #fff;
}

.agent-card-agency-logo {
  width: auto;
  max-width: 110px;
  height: 34px;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .96);
  object-fit: contain;
}

.agent-card-agency-banner strong {
  min-width: 0;
  overflow: hidden;
  font-size: .9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-card-main {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
}

.agent-card-photo {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.agent-card-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 1.4rem;
}

.agent-card-body {
  flex: 1;
  min-width: 0;
}

.agent-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.agent-card-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.agent-verified-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #DCFCE7;
  color: #166534;
  font-size: 0.72rem;
  font-weight: 700;
}

.agent-card-ren,
.agent-card-agency {
  margin: 4px 0 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.agent-official-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px 20px;
  margin: 0;
}

.agent-official-grid div {
  margin: 0;
}

.agent-official-grid dt {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted, #6b7280);
}

.agent-official-grid dd {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary, #111827);
}

.agent-official-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border, #e5e7eb);
  font-size: 0.875rem;
  color: var(--text-muted, #6b7280);
}

.agent-card-specs {
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.agent-spec-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-subtle);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.agent-card-areas,
.agent-card-bio {
  margin: 8px 0 0;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.agent-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.agent-card-actions .btn {
  min-height: 38px;
  border-radius: 5px;
}

.agent-card-actions .btn-primary {
  margin-left: auto;
}

.agent-profile-hero-panel {
  display: block;
  overflow: hidden;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  margin-bottom: 24px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.07);
}

.agent-profile-agency-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 13px 24px;
  background: var(--agent-agency-color, #272a30);
  color: #fff;
}

.agent-profile-agency-logo {
  width: auto;
  max-width: 132px;
  height: 40px;
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .96);
  object-fit: contain;
}

.agent-profile-agency-banner strong {
  min-width: 0;
  overflow: hidden;
  font-size: 1rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-profile-hero-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px;
}

.agent-profile-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 22px;
}

.agent-profile-hero-photo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px #e5e7eb, 0 5px 14px rgba(15, 23, 42, .1);
}

.agent-profile-hero-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
}

.agent-profile-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.agent-profile-hero-meta h1 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -.025em;
}

.agent-profile-ren,
.agent-profile-agency {
  margin: 6px 0 0;
  color: var(--text-secondary);
}

.agent-profile-agency {
  color: #234f83;
  font-weight: 650;
}

.agent-profile-agency-address {
  width: min(340px, 38%);
  flex: 0 0 auto;
  padding-left: 26px;
  border-left: 1px solid #e5e7eb;
}

.agent-profile-agency-address span {
  display: block;
  margin-bottom: 6px;
  color: #8a94a1;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.agent-profile-agency-address p {
  margin: 0;
  color: #4b5563;
  font-size: .87rem;
  line-height: 1.55;
}

.agent-profile-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 16px 28px;
  border-top: 1px solid #e5e7eb;
  background: #fafafa;
}

.agent-profile-action {
  display: inline-flex;
  min-width: 112px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #252c35;
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.agent-profile-action:hover {
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: 0 3px 10px rgba(15, 23, 42, .07);
}

.agent-profile-hero-panel.is-solo .agent-profile-hero-body {
  padding-top: 30px;
}

.agent-profile-section {
  margin-bottom: 28px;
}

.agent-profile-section h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.agent-activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.agent-activity-item {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-subtle);
}

.agent-activity-item time {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.listing-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.listing-card-img--placeholder {
  background: linear-gradient(135deg, #374151, #991B1B);
}

@media (max-width: 900px) {
  .agent-directory-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .agent-card {
    text-align: center;
  }

  .agent-card-main {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .agent-card-actions {
    justify-content: center;
  }

  .agent-card-actions .btn-primary {
    margin-left: 0;
  }

  .agent-profile-hero-panel {
    text-align: left;
  }

  .agent-profile-hero-body,
  .agent-profile-identity {
    flex-direction: column;
    align-items: flex-start;
  }

  .agent-profile-hero-body {
    gap: 22px;
    padding: 22px;
  }

  .agent-profile-identity {
    width: 100%;
  }

  .agent-profile-agency-address {
    width: 100%;
    padding: 18px 0 0;
    border-top: 1px solid #e5e7eb;
    border-left: 0;
  }

  .agent-profile-contact {
    padding: 15px 22px 20px;
  }

  .agent-profile-action {
    flex: 1 1 120px;
  }
}

/* Internal messenger */
.messenger-page {
  max-width: 720px;
}

.messenger-page--split {
  max-width: none;
}

.messenger-panel-split {
  padding: 0;
  overflow: hidden;
}

.messenger-split {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 560px;
  height: calc(100vh - 220px);
  max-height: 760px;
  background: var(--surface, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.messenger-split-inbox {
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 10px;
  background: #fafafa;
}

.messenger-split-thread {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

.messenger-thread-pane {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  padding: 16px;
}

.messenger-split-thread .messenger-thread-head {
  flex-shrink: 0;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.messenger-split-thread .messenger-messages {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  margin-bottom: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 8px 0;
}

.messenger-split-thread .messenger-compose {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: auto;
  background: #fff;
}

.messenger-empty-inbox {
  margin: 0;
  padding: 16px 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}

.messenger-inbox-item.is-active {
  border-color: var(--brand);
  background: rgba(220, 38, 38, 0.06);
}

.messenger-split-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 320px;
  color: var(--text-muted);
  text-align: center;
  padding: 24px;
}

@media (max-width: 768px) {
  .messenger-split {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
  }

  .messenger-split-inbox {
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: 240px;
  }

  .messenger-split-thread {
    min-height: 420px;
  }

  .messenger-agent-banner {
    height: 112px;
  }

  .messenger-inbox-brand {
    width: 48px;
  }

  .messenger-inbox-brand-stack {
    width: 48px;
    height: 48px;
  }

  .messenger-inbox-brand-stack .messenger-avatar {
    width: 30px;
    height: 30px;
  }

  .messenger-agent-brand-ribbon {
    margin-left: 16px;
    margin-right: 16px;
  }

  .messenger-agent-card {
    padding: 0 16px 16px;
  }

  .messenger-agent-title {
    gap: 8px;
  }

  .messenger-inbox-agency-head,
  .messenger-inbox-agent-body {
    padding-left: 10px;
    padding-right: 10px;
  }
}

.messenger-loading {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.messenger-inbox-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
  background: #fff;
}

.messenger-inbox-item:hover {
  border-color: var(--brand);
}

.messenger-inbox-item--user {
  display: block;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.messenger-inbox-item--user.is-active {
  border-color: var(--brand);
  background: #fff8f8;
}

.messenger-inbox-agency-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--messenger-agency-color, #b45309);
  color: #fff;
}

.messenger-inbox-agency-head .messenger-inbox-agency-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  padding: 4px;
  border-radius: 8px;
  background: rgba(255,255,255,0.96);
  box-shadow: none;
}

.messenger-inbox-agency-copy {
  min-width: 0;
  flex: 1;
}

.messenger-inbox-agency-copy strong {
  display: block;
  margin: 0;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.messenger-inbox-unread {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.messenger-inbox-agent-body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
}

.messenger-inbox-item--user .messenger-avatar {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.messenger-inbox-agent-copy {
  min-width: 0;
  flex: 1;
}

.messenger-inbox-agent-name {
  display: block;
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 0.96rem;
  font-weight: 700;
}

.messenger-inbox-listing,
.messenger-inbox-preview {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.4;
}

.messenger-inbox-listing {
  font-size: 0.82rem;
  font-weight: 600;
}

.messenger-inbox-preview {
  margin-top: 4px;
  font-size: 0.84rem;
}

.messenger-inbox-agent-copy time {
  display: block;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.74rem;
}

.messenger-inbox-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.messenger-inbox-item.has-agency-brand {
  position: relative;
  overflow: hidden;
  gap: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.96)),
    linear-gradient(135deg, color-mix(in srgb, var(--messenger-agency-color, #991b1b) 12%, white), #fff);
}

.messenger-inbox-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  width: 54px;
}

.messenger-inbox-brand-band {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: var(--messenger-agency-color, #991b1b);
}

.messenger-inbox-brand-stack {
  position: relative;
  width: 54px;
  height: 54px;
}

.messenger-inbox-brand-stack .messenger-avatar {
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 34px;
  height: 34px;
  border: 2px solid #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.messenger-inbox-agency-logo {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
}

.messenger-inbox-agency-logo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--messenger-agency-color, #991b1b);
  color: #fff;
  font-weight: 700;
}

.messenger-inbox-body strong {
  display: block;
  margin-bottom: 4px;
}

.messenger-inbox-agency-name {
  display: block;
  margin-bottom: 5px;
  color: var(--messenger-agency-color, #991b1b);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.messenger-inbox-body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.messenger-inbox-body time {
  display: block;
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.messenger-inbox-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.messenger-inbox-status--unread {
  background: #dbeafe;
  color: #1e40af;
}

.messenger-inbox-status--read {
  background: #f3f4f6;
  color: #6b7280;
}

.messenger-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.messenger-avatar--lg {
  width: 56px;
  height: 56px;
}

.messenger-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.messenger-thread-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.messenger-thread-head h2 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.messenger-thread-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.ld2-enquiry-agency {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 16px;
  margin: 0;
  background: var(--ld2-agency-color, #3f3f46);
  color: #fff;
  box-sizing: border-box;
}

.ld2-enquiry-agency.is-solo {
  justify-content: center;
}

.ld2-enquiry-agency-logo {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.96);
  padding: 4px;
  box-sizing: border-box;
}

.ld2-enquiry-agency-logo--ph {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  padding: 0;
}

.ld2-enquiry-agency-logo--ph svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.ld2-enquiry-agency span {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ld2-enquiry-agency-info {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top: 0;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 14px rgba(0, 0, 0, 0.04);
}

.ld2-enquiry-agency-info-body {
  position: relative;
  padding: 18px;
}

.ld2-enquiry-agency-info-body h3 {
  margin: 0;
  color: #00447c;
  font-size: 0.9375rem;
  line-height: 1.35;
  text-align: left;
}

.ld2-enquiry-agency-info.is-solo .ld2-enquiry-agency-info-body {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ld2-enquiry-agency-info-agent {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 50%;
  object-fit: cover;
}

.ld2-enquiry-agency-info-agent--init {
  display: grid;
  place-items: center;
  background: #e5e7eb;
  color: #374151;
  font-weight: 700;
}

.ld2-enquiry-agency-info-body p {
  margin: 8px 0 0;
  color: #4b5563;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.messenger-listing-detail-header {
  border-radius: 18px 18px 0 0;
  overflow: hidden;
}

.messenger-ld2-header {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.messenger-ld2-body {
  display: flex;
  flex-direction: column;
}

.messenger-ld2-profile-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.messenger-ld2-meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.messenger-ld2-profile-photo {
  flex: 0 0 auto;
}

.messenger-ld2-profile-photo .ld2-enquiry-agency-info-agent {
  width: 58px;
  height: 58px;
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
}

.messenger-ld2-copy {
  min-width: 0;
  flex: 1;
}

.messenger-ld2-address {
  flex: 0 1 320px;
  min-width: 220px;
  text-align: right;
}

.messenger-ld2-address p {
  margin: 0;
}

.messenger-ld2-name-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

.messenger-ld2-verified {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
  font-size: 0.74rem;
  font-weight: 700;
}

.messenger-ld2-ren,
.messenger-ld2-agency {
  font-weight: 600;
}

.messenger-ld2-agency {
  color: #1f2937;
}

@media (max-width: 900px) {
  .messenger-ld2-meta-row {
    flex-direction: column;
  }

  .messenger-ld2-address {
    min-width: 0;
    text-align: left;
  }
}

.messenger-agent-header {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.95) 0%, #ffffff 72%),
    linear-gradient(135deg, color-mix(in srgb, var(--messenger-agency-color, #991b1b) 16%, white), #ffffff);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.messenger-agent-banner {
  height: 130px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--messenger-agency-color, #991b1b) 88%, black), var(--messenger-agency-color, #991b1b));
  background-size: cover;
  background-position: center;
}

.messenger-agent-brand-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: -24px 0 0 20px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  position: relative;
  z-index: 1;
}

.messenger-agent-brand-ribbon span {
  color: #1f2937;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.messenger-agent-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.messenger-agent-logo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--messenger-agency-color, #991b1b);
  color: #fff;
  font-weight: 700;
}

.messenger-agent-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: -18px;
  padding: 0 20px 18px;
}

.messenger-agent-card .messenger-avatar--lg {
  width: 74px;
  height: 74px;
  border: 4px solid #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.messenger-agent-copy {
  flex: 1;
  min-width: 0;
}

.messenger-agent-title {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 4px;
}

.messenger-agent-title h2 {
  margin: 0;
  color: #172033;
  font-size: 1.2rem;
}

.messenger-agent-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--messenger-agency-color, #991b1b) 14%, white);
  color: color-mix(in srgb, var(--messenger-agency-color, #991b1b) 74%, black);
  font-size: 0.75rem;
  font-weight: 700;
}

.messenger-agent-meta,
.messenger-agent-address {
  margin: 0;
  color: #4b5563;
  line-height: 1.5;
}

.messenger-agent-meta + .messenger-agent-meta,
.messenger-agent-meta + .messenger-agent-address {
  margin-top: 2px;
}

.messenger-agent-address {
  margin-top: 4px;
  white-space: pre-line;
}

.messenger-thread-link {
  font-size: 0.85rem;
  color: var(--brand);
}

.messenger-thread-forum {
  margin-top: 12px;
}

.messenger-thread-forum-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.messenger-thread-forum p {
  margin: 0 0 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.messenger-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-subtle);
  margin-bottom: 12px;
}

.messenger-bubble {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  align-self: flex-start;
}

.messenger-bubble.is-mine {
  align-self: flex-end;
  background: #FEE2E2;
  border-color: #FECACA;
}

.messenger-bubble p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.messenger-bubble time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.messenger-message-ticks {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: -0.08em;
  color: #94a3b8;
}

.messenger-message-ticks.is-read {
  color: #2563eb;
}

.messenger-compose {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.messenger-compose textarea {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  resize: vertical;
}

.form-privacy-note {
  margin: -4px 0 4px;
  padding: 12px 14px;
  border: 1px solid #f3d8b5;
  border-radius: 12px;
  background: #fff9ef;
  color: #8a5a20;
  font-size: 0.88rem;
  line-height: 1.5;
}

.messenger-empty {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  margin: 0;
}

.section--tight {
  padding-top: 12px;
}

/* 鈹€鈹€ Property browse (rea-style UX) 鈹€鈹€ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container-browse {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.browse-page {
  background: #fafafa;
  min-height: 100vh;
}

.browse-top {
  padding: 48px 0 36px;
  background: #fafafa;
}

.browse-page.is-searching .browse-top {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #ebebeb;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.browse-page.is-searching .browse-results {
  padding-top: 24px;
}

.browse-title {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.browse-lead {
  margin: 0 0 28px;
  font-size: 1rem;
  color: var(--text-muted);
}

.browse-results {
  padding: 36px 0 88px;
}

/* Location-first hero search */
.browse-hero-search {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.browse-page.is-searching .browse-hero-search {
  margin-bottom: 12px;
}

.browse-loc-chip {
  display: none;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 8px 14px;
  border: 1px solid #ebebeb;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.browse-page.is-searching .browse-loc-chip {
  display: inline-flex;
}

.browse-loc-chip-icon {
  width: 16px;
  height: 16px;
  color: var(--brand);
  flex-shrink: 0;
}

.browse-loc-chip-text {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browse-page.is-searching .browse-hero-field {
  height: 44px;
  border-radius: 14px;
  box-shadow: none;
}

.browse-hero-field {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 8px 0 20px;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.browse-hero-field:focus-within {
  border-color: #ddd;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.browse-hero-icon {
  width: 20px;
  height: 20px;
  color: var(--brand);
  flex-shrink: 0;
}

.browse-hero-field input {
  flex: 1;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 1.05rem;
  min-width: 0;
}

.browse-hero-field input:focus {
  outline: none;
}

.browse-hero-submit {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.browse-hero-submit svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
}

.browse-pill-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.browse-deal-pills {
  display: flex;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.browse-deal {
  padding: 9px 20px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
}

.browse-deal.is-active {
  background: var(--brand);
  color: #fff;
}

.browse-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.browse-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 1px solid #ebebeb;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 0.84rem;
  color: var(--text-secondary);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: border-color 0.15s, color 0.15s;
}

.browse-pill:hover {
  border-color: #ddd;
  color: var(--text);
}

.browse-pill.has-value {
  border-color: var(--brand);
  color: var(--brand);
  font-weight: 600;
}

.browse-pill-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.browse-popover {
  position: absolute;
  z-index: 100;
  min-width: 200px;
  max-width: 280px;
}

.browse-popover-inner {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.browse-popover-opt {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  color: var(--text);
  text-decoration: none;
}

.browse-popover-opt:hover,
.browse-popover-opt.is-active {
  background: #fafafa;
  color: var(--brand);
  font-weight: 600;
}

.browse-popover-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
}

.browse-popover-form input {
  padding: 10px 12px;
  border: 1px solid #ebebeb;
  border-radius: 10px;
  font: inherit;
}

.browse-filters {
  position: relative;
}

/* Residential view navigation: deliberately not a filter pill. */
.browse-map-nav {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  gap: 6px;
  padding: 0 8px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.browse-map-nav:hover {
  color: var(--brand);
}

.browse-map-nav-icon {
  width: 18px;
  height: 18px;
}

/* Discover sections */
.browse-discover {
  padding: 8px 0 40px;
}

.discover-heading {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.discover-areas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.discover-area {
  display: flex;
  align-items: flex-end;
  min-height: 120px;
  padding: 16px;
  border-radius: 18px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s;
}

.discover-area:hover {
  transform: translateY(-2px);
}

.discover-area--wide {
  grid-column: span 2;
  min-height: 140px;
}

.discover-area--kl { background: linear-gradient(135deg, #4a5568, #c1121f); }
.discover-area--johor { background: linear-gradient(135deg, #2d6a4f, #40916c); }
.discover-area--penang { background: linear-gradient(135deg, #1d3557, #457b9d); }
.discover-area--sabah { background: linear-gradient(135deg, #5c4d7d, #8e7dbe); }

.discover-spots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.discover-spot {
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #ebebeb;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.discover-spot:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.discover-guides {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.discover-guide {
  display: flex;
  align-items: center;
  min-height: 88px;
  padding: 16px 20px;
  border-radius: 18px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.discover-guide--buy { background: linear-gradient(135deg, #374151, #6b7280); }
.discover-guide--rent { background: linear-gradient(135deg, #9b0e19, #c1121f); }
.discover-guide--agent { background: linear-gradient(135deg, #1e3a5f, #3d5a80); }

/* Drawer */
.browse-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 200;
  transition: background 0.25s ease;
}

.browse-drawer-backdrop.is-open {
  background: rgba(0, 0, 0, 0.35);
}

.browse-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 100vw);
  height: 100vh;
  background: #fff;
  z-index: 201;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.browse-drawer.is-open {
  transform: translateX(0);
}

.browse-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
}

.browse-drawer-head h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.browse-drawer-close {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #f5f5f5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.browse-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px 24px;
}

.browse-acc {
  border-bottom: 1px solid #f0f0f0;
  padding: 4px 0;
}

.browse-acc-summary {
  padding: 14px 0;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  list-style: none;
}

.browse-acc-summary::-webkit-details-marker {
  display: none;
}

.browse-acc-body {
  padding: 0 0 16px;
}

.browse-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.browse-field input,
.browse-field select,
.browse-field-select {
  padding: 11px 14px;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  font: inherit;
  width: 100%;
}

.browse-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.browse-mini-chip {
  padding: 8px 14px;
  border: 1px solid #ebebeb;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-decoration: none;
  background: #fafafa;
}

.browse-mini-chip.is-active {
  border-color: var(--brand);
  color: var(--brand);
  background: #fff;
  font-weight: 600;
}

.browse-drawer-actions {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid #f0f0f0;
  margin-top: auto;
}

.browse-drawer-actions .btn {
  flex: 1;
}

body.browse-drawer-open {
  overflow: hidden;
}

.browse-results-head {
  margin-bottom: 8px;
}

.browse-results-title {
  margin: 0 0 4px;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.browse-results-meta {
  margin: 0 0 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.browse-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}

.browse-count {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.browse-count strong {
  color: var(--text);
  font-weight: 600;
}

.browse-count-loc {
  color: var(--text-muted);
  font-weight: 400;
}

.browse-sort-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-right: 6px;
}

.browse-sort--mobile {
  display: none;
}

.browse-sort--desktop {
  display: inline-flex;
  align-items: center;
}

.browse-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.browse-sort select {
  padding: 10px 14px;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  font: inherit;
  font-size: 0.88rem;
  background: #fff;
}

.browse-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.browse-map-btn.is-active {
  border-color: var(--brand);
  color: var(--brand);
}

.browse-map-icon {
  width: 16px;
  height: 16px;
}

.browse-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.browse-shell.has-sidebar {
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
}

.browse-shell.is-map-open {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}

.browse-shell.is-map-open.has-sidebar .browse-sidebar {
  display: none;
}

.browse-list-col {
  min-width: 0;
}

.browse-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: stretch;
}

.browse-cards--list {
  gap: 16px;
}

.browse-map {
  position: sticky;
  top: 80px;
  height: calc(100vh - 120px);
  min-height: 480px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #ebebeb;
}

.browse-empty {
  text-align: center;
  padding: 80px 24px;
}

.browse-empty h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.browse-empty p {
  margin: 0 0 24px;
  color: var(--text-muted);
}

.browse-pagination-wrap {
  width: 100%;
  max-width: 860px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #e7e9ed;
}

.browse-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.browse-page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.browse-page-link,
.browse-page-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #dfe3e8;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  background: #fff;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.browse-page-link:hover,
.browse-page-nav:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-1px);
}

.browse-page-link.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.browse-page-nav {
  gap: 7px;
  min-width: 102px;
}

.browse-page-nav svg {
  width: 16px;
  height: 16px;
}

.browse-page-nav.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.browse-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 40px;
  color: var(--text-muted);
}

.browse-pagination-summary {
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  text-align: center;
}

@media (max-width: 640px) {
  .browse-pagination-wrap {
    margin-top: 24px;
    padding-top: 18px;
  }

  .browse-pagination {
    gap: 7px;
  }

  .browse-page-numbers {
    gap: 5px;
  }

  .browse-page-link {
    min-width: 36px;
    height: 38px;
    padding: 0 9px;
  }

  .browse-page-nav {
    min-width: 40px;
    height: 38px;
    padding: 0 10px;
  }

  .browse-page-nav span {
    display: none;
  }

  .browse-page-ellipsis {
    width: 18px;
  }
}

/* Property card — list layout */
.pvc {
  width: 100%;
  max-width: none;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ebebeb;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.pvc:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
  border-color: #e0e0e0;
}

.pvc-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--pvc-agency-color, #3f3f46);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.pvc-strip.is-solo {
  background: #3f3f46;
}

.pvc-strip-logo {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  object-fit: contain;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.96);
  padding: 2px;
  box-sizing: border-box;
}

.pvc-strip-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.pvc-strip-avatar--initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

.pvc-strip-agency {
  font-size: 0.82rem;
  font-weight: 600;
  color: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pvc-layout {
  display: flex;
  flex-direction: column;
}

.pvc-media-wrap {
  position: relative;
}

.pvc-media {
  position: relative;
  height: 300px;
  background: #f0f0f0;
  overflow: hidden;
}

.pvc-media-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.pvc-carousel {
  position: absolute;
  inset: 0;
}

.pvc-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.pvc-slide.is-active {
  opacity: 1;
}

.pvc-slide--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ececec;
}

.pvc-placeholder-icon {
  width: 56px;
  height: 56px;
  color: #bbb;
}

.pvc-agency-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #ebebeb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pvc-fav {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 6px;
  background: rgba(245, 246, 248, 0.96);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.12);
  transition: background-color 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

.pvc-fav:hover {
  background: #e7e9ed;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.16);
}

.pvc-fav-icon {
  width: 22px;
  height: 22px;
  color: #aaa;
}

.pvc-fav.is-saved .pvc-fav-icon {
  color: var(--brand);
  fill: var(--brand);
  stroke: var(--brand);
}

.pvc .pvc-fav--inline {
  display: flex;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 6px;
  background: #f1f3f5;
  box-shadow: none;
}

.pvc .pvc-fav--inline:hover {
  background: #e2e5e9;
}

.pvc .pvc-fav--inline.is-saved {
  border: 1px solid var(--brand);
}

.pvc .pvc-fav--media {
  display: none;
}

.pvc-agent-chip {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #fff;
  overflow: hidden;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pvc-agent-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pvc-photo-count {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.78rem;
}

.pvc-photo-icon {
  width: 14px;
  height: 14px;
  stroke: #fff;
}

.pvc-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pvc-nav svg {
  width: 20px;
  height: 20px;
}

.pvc:hover .pvc-nav {
  opacity: 1;
}

.pvc-nav--prev { left: 14px; }
.pvc-nav--next { right: 14px; }

.pvc-fav--inline {
  position: static;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  box-shadow: none;
  background: #f5f5f5;
}

.pvc-fav--media {
  display: none;
}

.pvc-body {
  padding: 18px 20px 20px;
}

.pvc-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.pvc-location-primary {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.pvc-loc-icon {
  width: 18px;
  height: 18px;
  color: var(--brand);
  flex-shrink: 0;
}

.pvc-state {
  color: var(--text-muted);
  font-weight: 400;
}

.pvc-state::before {
  content: ", ";
}

.pvc-price {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.03em;
}

.pvc-address {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.pvc-address a {
  color: inherit;
  text-decoration: none;
}

.pvc-address a:hover {
  color: var(--brand);
}

.pvc-location-secondary {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.pvc-subtitle {
  margin: 0 0 6px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-transform: capitalize;
}

.pvc-title {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-muted);
}

.pvc-title a {
  color: inherit;
  text-decoration: none;
}

.pvc-title a:hover {
  color: var(--brand);
}

.pvc-attrs {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 14px;
}

.pvc-attr {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.pvc-attr-icon {
  width: 18px;
  height: 18px;
  color: #999;
}

.pvc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.pvc-tag {
  padding: 4px 10px;
  border-radius: 8px;
  background: #fafafa;
  border: 1px solid #ebebeb;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.pvc-agent-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-top: 18px;
  border-top: 1px solid #f5f5f5;
}

.pvc-agent-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.pvc-agent-avatar--initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

.pvc-agent-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}

.pvc-agent-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: #166534;
}

.pvc-verified-icon {
  width: 14px;
  height: 14px;
}

.pvc-agent-ren {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pvc-agent-agency {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.pvc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.pvc-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  border: 1px solid #ebebeb;
  border-radius: 14px;
  background: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}

.pvc-action-icon {
  width: 17px;
  height: 17px;
}

.pvc-action--wa {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}

.pvc-action--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.pvc-action[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}

/* Skeleton */
.pvc--skeleton {
  pointer-events: none;
}

.pvc--skeleton .pvc-layout {
  display: grid;
  grid-template-columns: 1fr;
}

.pvc-sk-media {
  height: 220px;
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: browse-shimmer 1.2s infinite;
}

.pvc-sk-body {
  padding: 18px 20px;
}

.pvc-sk-line {
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: browse-shimmer 1.2s infinite;
  margin-bottom: 12px;
}

.pvc-sk-line--short { width: 40%; }
.pvc-sk-line--price { width: 55%; height: 22px; }
.pvc-sk-line--attrs { width: 70%; }

@keyframes browse-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (min-width: 768px) {
  .pvc--list .pvc-layout {
    display: grid;
    grid-template-columns: minmax(240px, 38%) minmax(0, 1fr);
  }

  .pvc--list .pvc-media {
    height: 100%;
    min-height: 220px;
  }

  .pvc--list .pvc-sk-media {
    min-height: 220px;
    height: 100%;
  }

  .pvc-fav--inline {
    display: none;
  }

  .pvc-fav--media {
    display: flex;
  }

  .pvc-agent-row {
    margin-bottom: 14px;
    padding-top: 14px;
  }

  .pvc-actions {
    grid-template-columns: 1fr 1fr auto;
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .browse-shell:not(.has-sidebar):not(.is-map-open) .browse-cards--list {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .container-browse {
    width: calc(100% - 24px);
  }

  .browse-top {
    padding: 32px 0 24px;
  }

  .browse-hero-field {
    height: 48px;
    border-radius: 16px;
  }

  .browse-pill-row {
    flex-direction: column;
    align-items: stretch;
  }

  .browse-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .browse-pill {
    flex-shrink: 0;
  }

  .discover-areas {
    grid-template-columns: 1fr 1fr;
  }

  .discover-area--wide {
    grid-column: span 2;
  }

  .discover-guides {
    grid-template-columns: 1fr;
  }

  .pvc-media {
    height: 260px;
  }

  .pvc-sk-media {
    height: 260px;
  }

  .browse-shell.is-map-open {
    grid-template-columns: 1fr;
  }

  .browse-shell.is-map-open .browse-list-col {
    display: none;
  }

  .browse-map {
    position: fixed;
    inset: 0;
    top: 0;
    height: 100vh;
    min-height: 0;
    border-radius: 0;
    z-index: 150;
  }

  .browse-toolbar {
    flex-wrap: wrap;
  }

  .browse-sort--desktop {
    display: none;
  }

  .browse-sort--mobile {
    display: inline-flex;
    align-items: center;
  }

  .pvc-fav--inline {
    display: flex;
  }

  .pvc-fav--media {
    display: none;
  }

  .pvc-actions {
    grid-template-columns: 1fr;
  }
}

/* Focused listing search redesign */
.browse-page {
  background: #f6f6f6;
}

.browse-top {
  padding: 14px 0;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.browse-page.is-searching .browse-top {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.browse-results {
  padding: 24px 0 72px;
}

.browse-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.82rem;
  color: #6b7280;
  white-space: nowrap;
  overflow-x: auto;
}

.browse-crumbs a {
  color: #374151;
  text-decoration: none;
}

.browse-crumbs span::before {
  content: ">";
  margin-right: 8px;
  color: #9ca3af;
}

.browse-hero-search {
  margin-bottom: 12px;
}

.browse-loc-chip {
  display: none !important;
}

.browse-hero-field {
  height: 48px;
  max-width: 720px;
  border-radius: 6px;
  border-color: #d1d5db;
  box-shadow: none;
}

.browse-page.is-searching .browse-hero-field {
  height: 48px;
  border-radius: 6px;
}

.browse-hero-field input {
  font-size: 0.98rem;
}

.browse-hero-submit {
  width: 38px;
  height: 38px;
  border-radius: 6px;
}

.browse-pill-row {
  gap: 10px;
}

.browse-deal-pills,
.browse-pill,
.browse-sort select,
.browse-map-btn,
.browse-save-btn,
.browse-view-tabs {
  border-radius: 6px;
  box-shadow: none;
}

.browse-deal {
  padding: 9px 18px;
}

.browse-pill {
  padding: 9px 12px;
  border-color: #d1d5db;
  background: #fff;
  color: #374151;
}

.browse-pill.has-value {
  border-color: #c1121f;
  color: #c1121f;
}

.browse-results-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.browse-results-title {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.25;
}

.browse-results-meta {
  margin: 0;
  font-size: 0.93rem;
}

.browse-toolbar {
  align-items: center;
  padding: 12px 0 18px;
  margin-bottom: 0;
  border-bottom: 1px solid #e5e7eb;
}

.browse-toolbar-actions {
  gap: 8px;
}

.browse-save-btn,
.browse-map-btn,
.browse-view-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.browse-save-btn {
  padding: 0 13px;
}

.browse-save-btn.is-saved {
  border-color: #166534;
  color: #166534;
}

.browse-save-icon {
  width: 16px;
  height: 16px;
}

.browse-view-tabs {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid #d1d5db;
  background: #fff;
}

.browse-view-tab {
  min-width: 58px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.browse-view-tab + .browse-view-tab {
  border-left: 1px solid #d1d5db;
}

.browse-view-tab.is-active {
  background: #111827;
  color: #fff;
}

.browse-map-btn {
  padding: 0 13px;
}

.browse-shell {
  gap: 24px;
  margin-top: 18px;
}

.browse-shell.has-sidebar {
  grid-template-columns: minmax(0, 760px) 300px;
  align-items: start;
}

.browse-cards,
.browse-cards--list {
  gap: 14px;
}

.browse-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 112px);
}

.browse-side-card {
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.browse-side-kicker {
  margin: 0 0 8px;
  color: #c1121f;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.browse-side-card h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.browse-side-card p {
  margin: 0 0 14px;
  color: #6b7280;
  font-size: 0.88rem;
  line-height: 1.45;
}

.browse-side-card a {
  color: #c1121f;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.pvc {
  border-radius: 8px;
  border-color: #dfe3e8;
  box-shadow: none;
}

.pvc:hover {
  border-color: #c7cdd4;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.pvc-strip {
  min-height: 42px;
  padding: 8px 14px;
  background: #fff;
}

.pvc-layout {
  min-height: 238px;
}

.pvc-media {
  height: 238px;
}

.pvc-agency-badge,
.pvc-agent-chip {
  display: none;
}

.pvc-photo-count {
  bottom: 10px;
  left: 10px;
  border-radius: 4px;
}

.pvc-fav {
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
}

.pvc-body {
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.pvc-price-row {
  margin-bottom: 8px;
}

.pvc-price {
  font-size: 1.35rem;
  color: #111827;
}

.pvc-address {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.pvc-location-secondary {
  margin-bottom: 12px;
}

.pvc-attrs {
  gap: 16px;
  margin-bottom: 12px;
}

.pvc-tags {
  margin-bottom: 12px;
}

.pvc-tag {
  border-radius: 4px;
  background: #f9fafb;
}

.pvc-agent-row {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 14px;
}

.pvc-actions {
  display: none;
}

@media (min-width: 768px) {
  .pvc--list .pvc-layout {
    grid-template-columns: 278px minmax(0, 1fr);
  }

  .pvc--list .pvc-media {
    min-height: 238px;
  }
}

@media (max-width: 980px) {
  .browse-shell.has-sidebar {
    grid-template-columns: 1fr;
  }

  .browse-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .browse-top,
  .browse-page.is-searching .browse-top {
    position: static;
    padding: 12px 0;
  }

  .browse-results {
    padding-top: 18px;
  }

  .browse-toolbar {
    align-items: flex-start;
  }

  .browse-toolbar-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .browse-save-btn {
    display: none;
  }

  .browse-view-tabs {
    order: 4;
  }

  .pvc-media,
  .pvc-sk-media {
    height: 230px;
  }

  .pvc-body {
    padding: 16px;
  }

  .pvc-price {
    font-size: 1.22rem;
  }
}

/* Listing detail */

.ld-page {
  background: #fff;
}

.ld-hero-full {
  width: 100%;
  margin-bottom: 40px;
}

.ld-hero-full .ld-hero-wrap {
  margin-bottom: 0;
}

.ld-content {
  padding-bottom: 80px;
}

.ld-content .ld-back {
  display: inline-block;
  margin-bottom: 24px;
}

.page-header--compact {
  padding: 16px 0 0;
}

.ld-back {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
}

.ld-back:hover {
  color: var(--brand);
}

.ld-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.ld-hero-wrap {
  margin-bottom: 32px;
}

.ld-hero {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 520px;
  border-radius: 0;
  overflow: hidden;
  background: #f3f4f6;
}

.ld-hero--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  min-height: 420px;
  border-radius: 16px;
  background: linear-gradient(145deg, #e5e7eb, #d1d5db);
}

.ld-hero-empty-icon {
  width: 64px;
  height: 64px;
  color: #9ca3af;
}

.ld-hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ld-hero-slide.is-active {
  opacity: 1;
}

.ld-hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 0.2s;
}

.ld-hero-nav svg {
  width: 20px;
  height: 20px;
}

.ld-hero:hover .ld-hero-nav {
  opacity: 1;
}

.ld-hero-nav--prev { left: 16px; }
.ld-hero-nav--next { right: 16px; }

.ld-hero-count {
  position: absolute;
  bottom: 16px;
  right: 16px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.ld-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.ld-thumb {
  flex-shrink: 0;
  width: 96px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  transition: border-color 0.15s;
}

.ld-thumb.is-active {
  border-color: var(--brand);
}

.ld-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ld-details h1 {
  margin: 10px 0 8px;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.ld-meta {
  display: flex;
  gap: 8px;
}

.ld-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  margin: 0 0 12px;
  font-size: 0.92rem;
}

.ld-loc-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.ld-specs {
  margin: 0 0 24px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.ld-description p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.92rem;
  white-space: pre-wrap;
}

.ld-contact-card {
  position: sticky;
  top: 80px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.ld-contact-price {
  margin: 0 0 20px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.02em;
}

.ld-agent-card {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.ld-agent-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.ld-agent-avatar--initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
}

.ld-agent-name {
  font-weight: 600;
  font-size: 1rem;
  color: inherit;
  text-decoration: none;
}

.ld-agent-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: #166534;
  font-weight: 500;
}

.ld-verified-icon {
  width: 16px;
  height: 16px;
}

.ld-agent-agency {
  margin: 2px 0 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.ld-contact-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ld-btn-icon {
  width: 18px;
  height: 18px;
  margin-right: 4px;
  vertical-align: -3px;
}

.ld-btn-wa {
  background: #25d366 !important;
  border-color: #25d366 !important;
}

@media (max-width: 900px) {
  .ld-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ld-hero {
    min-height: 260px;
  }

  .ld-contact-card {
    position: static;
  }
}

/* Premium listing module rebuild */
.container-browse {
  width: min(1240px, calc(100% - 48px));
}

.browse-page {
  background: #f5f5f6;
}

.browse-top {
  padding: 18px 0 14px;
  background: #fff;
  border-bottom: 1px solid #e6e8ec;
}

.browse-page.is-searching .browse-top {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #e6e8ec;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}

.browse-crumbs {
  margin-bottom: 12px;
}

.browse-hero-search {
  position: relative;
  max-width: 760px;
  margin-bottom: 14px;
}

.browse-hero-field,
.browse-page.is-searching .browse-hero-field {
  height: 58px;
  padding-left: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.10);
}

.browse-hero-field:focus-within {
  border-color: #c1121f;
  box-shadow: 0 14px 40px rgba(193, 18, 31, 0.14);
}

.browse-hero-submit {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.browse-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(680px, 100%);
  padding: 18px;
  border: 1px solid #eceff3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.14);
  z-index: 80;
}

.browse-suggestions p {
  margin: 0 0 10px;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.browse-suggestions > div + div {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f1f3f5;
}

.browse-suggestion-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.browse-suggestion-pills a,
.browse-suggestion-empty {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #111827;
  background: #fff;
  font-size: 0.86rem;
  text-decoration: none;
}

.browse-pill-row {
  align-items: stretch;
}

.browse-deal-pills,
.browse-pill,
.browse-sort select,
.browse-map-btn,
.browse-save-btn,
.browse-view-tabs {
  border-radius: 999px;
}

.browse-deal-pills {
  min-height: 42px;
}

.browse-pill {
  min-height: 42px;
  padding: 0 15px;
  border-color: #d9dde3;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.browse-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.browse-popover {
  position: absolute;
  z-index: 120;
  min-width: 240px;
  max-width: 290px;
  animation: browse-pop 0.16s ease-out;
}

@keyframes browse-pop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.browse-popover-inner {
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.18);
}

.browse-popover-note {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  color: #374151;
  font-size: 0.9rem;
}

.browse-popover-note strong {
  color: #111827;
}

.browse-popover-note span {
  color: #6b7280;
  line-height: 1.45;
}

.browse-drawer,
.browse-drawer-backdrop {
  display: none !important;
}

body.browse-drawer-open {
  overflow: auto;
}

.browse-results {
  padding-top: 28px;
}

.browse-results-head {
  margin-bottom: 18px;
}

.browse-results-title {
  font-size: clamp(1.35rem, 1.8vw, 1.8rem);
}

.browse-toolbar {
  padding: 0 0 18px;
  border-bottom: 1px solid #e2e5e9;
}

.browse-toolbar-actions {
  gap: 10px;
}

.browse-view-tab {
  min-width: 62px;
}

.browse-shell {
  margin-top: 22px;
}

.browse-shell.has-sidebar {
  grid-template-columns: minmax(0, 790px) 320px;
}

.browse-cards--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.browse-cards--grid .pvc--list .pvc-layout {
  display: flex;
  flex-direction: column;
}

.browse-cards--grid .pvc-media {
  height: 250px;
}

.browse-sidebar {
  display: none;
}

@media (min-width: 981px) {
  .browse-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 980px) {
  .browse-shell,
  .browse-shell.has-sidebar {
    grid-template-columns: 1fr;
  }

  .browse-list-col {
    order: 1;
    width: 100%;
    max-width: none;
  }

  .browse-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    order: 2;
    position: static;
    width: 100%;
  }
}

.browse-side-card {
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.browse-side-card dl {
  margin: 16px 0 0;
}

.browse-side-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #f0f2f4;
}

.browse-side-card dt {
  color: #6b7280;
  font-size: 0.84rem;
}

.browse-side-card dd {
  margin: 0;
  color: #111827;
  font-weight: 700;
}

.browse-side-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.browse-side-links a {
  padding: 8px 10px;
  border-radius: 999px;
  background: #f7f7f8;
}

.pvc {
  cursor: pointer;
  border: 1px solid #e1e5ea;
  border-radius: 14px;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.pvc:hover {
  transform: translateY(-3px);
  border-color: #d2d8df;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.12);
}

.pvc-carousel img {
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.pvc:hover .pvc-slide.is-active {
  transform: scale(1.035);
}

.pvc-strip {
  background: var(--pvc-agency-color, #3f3f46);
  color: #fff;
}

.pvc-strip.is-solo {
  background: #3f3f46;
}

.pvc-strip-agency {
  color: #fff;
}

.pvc-price {
  color: #c1121f;
}

.pvc-address {
  font-size: 1.12rem;
}

.pvc-agent-row {
  border-top-color: #eef1f4;
}

.ld-page {
  background: #f7f7f8;
  color: #111827;
}

.ld-breadcrumb-wrap {
  background: #fff;
  border-bottom: 1px solid #eceff3;
}

.ld-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  color: #6b7280;
  font-size: 0.86rem;
  white-space: nowrap;
  overflow-x: auto;
}

.ld-breadcrumb a,
.ld-breadcrumb span {
  color: inherit;
  text-decoration: none;
}

.ld-breadcrumb a:hover {
  color: #c1121f;
}

.ld-breadcrumb a::after {
  content: ">";
  margin-left: 8px;
  color: #a1a7b0;
}

.ld-loading {
  display: grid;
  gap: 16px;
  width: min(1180px, calc(100% - 48px));
  margin: 32px auto;
}

.ld-loading div {
  height: 180px;
  border-radius: 18px;
  background: linear-gradient(90deg, #eee 25%, #f8f8f8 50%, #eee 75%);
  background-size: 200% 100%;
  animation: browse-shimmer 1.2s infinite;
}

.ld-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 22% 58% 20%;
  gap: 0;
  max-width: none;
  width: 100%;
  height: 480px;
  min-height: 480px;
  margin: 0;
  background: #2f3136;
  overflow: hidden;
}

.ld-gallery-main,
.ld-gallery-thumb {
  position: relative;
  padding: 0;
  border: 0;
  background: #111827;
  cursor: pointer;
  overflow: hidden;
  height: 100%;
  min-height: 0;
}

.ld-gallery-main img,
.ld-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.ld-gallery-main {
  height: 480px;
}

.ld-gallery-main img {
  height: 480px;
}

.ld-gallery-thumbs,
.detail-thumbnails {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  height: 480px;
  min-height: 0;
  background: #2f3136;
}

.ld-gallery-thumb {
  height: 100%;
  min-height: 0;
}

.ld-gallery-thumb img {
  height: 100%;
  object-fit: cover;
}

.ld-gallery-main:hover img,
.ld-gallery-thumb:hover img {
  transform: scale(1.025);
}

.ld-gallery-thumb span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  font-size: 2rem;
  font-weight: 800;
}

.ld-gallery-all {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.ld-gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  cursor: pointer;
  transform: translateY(-50%);
}

.ld-gallery-nav--prev { left: calc(22% + 18px); }
.ld-gallery-nav--next { right: calc(20% + 18px); }

.ld-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
}

.ld-back-icon {
  width: 16px;
  height: 16px;
}

.ld-price {
  margin: 16px 0 8px;
  color: #c1121f;
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  font-weight: 800;
}

.ld-overview {
  padding: 30px;
  border: 1px solid #e7eaee;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.ld-overview h1 {
  max-width: 760px;
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.12;
}

.ld-icon-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #d8dde4;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  cursor: pointer;
}

.ld-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ld-facts--compact {
  grid-template-columns: repeat(auto-fit, minmax(120px, max-content));
  margin-top: 18px;
}

.ld-fact {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 2px 10px;
  padding: 14px;
  border: 1px solid #eef1f4;
  border-radius: 14px;
  background: #fff;
}

.ld-facts--compact .ld-fact {
  min-width: 130px;
  padding: 10px 12px;
}

.ld-fact-icon {
  grid-row: span 2;
  width: 22px;
  height: 22px;
  color: #c1121f;
}

.ld-fact span {
  color: #6b7280;
  font-size: 0.76rem;
}

.ld-fact strong {
  color: #111827;
  font-size: 0.92rem;
}

.ld-content {
  padding: 36px 0 96px;
}

.ld-layout {
  grid-template-columns: minmax(0, 65%) minmax(320px, 35%);
  gap: 42px;
}

.ld-main-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.ld-section {
  padding: 28px;
  border: 1px solid #e7eaee;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.ld-section h2 {
  margin: 0 0 18px;
  font-size: 1.28rem;
}

.ld-description {
  max-height: 190px;
  overflow: hidden;
}

.ld-description.is-expanded {
  max-height: none;
}

.ld-description p {
  margin: 0;
  color: #374151;
  font-size: 1rem;
  line-height: 1.75;
  white-space: pre-wrap;
}

.ld-read-more {
  margin-top: 14px;
  border: 0;
  background: transparent;
  color: #c1121f;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.ld-highlight-list,
.ld-soft-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.ld-highlight-list span,
.ld-soft-grid div {
  padding: 14px;
  border-radius: 14px;
  background: #f7f8fa;
}

.ld-soft-grid strong,
.ld-soft-grid span {
  display: block;
}

.ld-soft-grid span {
  margin-top: 6px;
  color: #6b7280;
  font-size: 0.88rem;
  line-height: 1.45;
}

.ld-map-card {
  display: grid;
  place-items: center;
  min-height: 260px;
  border-radius: 18px;
  background: linear-gradient(135deg, #edf7f2, #eef2ff);
  color: #111827;
  text-align: center;
}

.ld-map-pin {
  width: 42px;
  height: 42px;
  color: #c1121f;
  margin-bottom: 8px;
}

.ld-mortgage-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-radius: 16px;
  background: #fafafa;
}

.ld-mortgage-card strong,
.ld-mortgage-card span {
  display: block;
}

.ld-mortgage-card span {
  margin-top: 5px;
  color: #6b7280;
}

.ld-contact-card {
  top: 96px;
  padding: 24px;
  border-radius: 22px;
  border-color: #e1e5ea;
  box-shadow: 0 18px 54px rgba(15, 23, 42, 0.12);
}

.ld-contact-kicker {
  margin: 0 0 14px;
  color: #c1121f;
  font-weight: 800;
}

.ld-agent-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 18px;
}

.ld-agent-stats div {
  padding: 12px;
  border-radius: 14px;
  background: #f7f8fa;
}

.ld-agent-stats strong,
.ld-agent-stats span {
  display: block;
}

.ld-agent-stats span {
  margin-top: 3px;
  color: #6b7280;
  font-size: 0.78rem;
}

.ld-similar {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(270px, 320px);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.ld-enquiry-section {
  scroll-margin-top: 120px;
}

.ld-enquiry-form {
  display: grid;
  gap: 18px;
}

.ld-enquiry-form label span,
.ld-enquiry-form legend {
  display: block;
  margin-bottom: 8px;
  color: #374151;
  font-weight: 700;
}

.ld-enquiry-form textarea {
  width: 100%;
  min-height: 140px;
  padding: 14px 16px;
  border: 1px solid #d8dde4;
  border-radius: 14px;
  resize: vertical;
  background: #fff;
}

.ld-enquiry-form textarea:focus {
  outline: none;
  border-color: #c1121f;
  box-shadow: 0 0 0 3px rgba(193, 18, 31, 0.10);
}

.ld-enquiry-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.ld-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ld-topic-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #e2e6ec;
  border-radius: 999px;
  background: #fafafa;
  cursor: pointer;
}

.ld-topic-grid input {
  width: 16px;
  height: 16px;
  accent-color: #c1121f;
}

.ld-topic-grid label span {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.ld-enquiry-status {
  min-height: 24px;
}

.ld-enquiry-loading {
  margin: 0;
  color: #6b7280;
  font-size: 0.92rem;
}

.ld-similar .pvc--list .pvc-layout {
  display: flex;
  flex-direction: column;
}

.ld-similar .pvc-media {
  height: 210px;
}

.ld-lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.92);
}

.ld-lightbox[hidden] {
  display: none;
}

.ld-lightbox img {
  max-width: min(1100px, 86vw);
  max-height: 86vh;
  object-fit: contain;
}

.ld-lightbox-close,
.ld-lightbox-nav {
  position: absolute;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  cursor: pointer;
}

.ld-lightbox-close {
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
}

.ld-lightbox-nav {
  top: 50%;
  width: 52px;
  height: 52px;
}

.ld-lightbox-prev { left: 24px; }
.ld-lightbox-next { right: 24px; }

#ld-lightbox-count {
  position: absolute;
  bottom: 24px;
  color: #fff;
  font-weight: 800;
}

body.ld-lightbox-open {
  overflow: hidden;
}

.ld-mobile-actions {
  display: none;
}

@media (max-width: 980px) {
  .container-browse {
    width: calc(100% - 28px);
  }

  .browse-page.is-searching .browse-top {
    position: static;
  }

  .browse-cards--grid {
    grid-template-columns: 1fr;
  }

  .ld-gallery {
    display: block;
    height: auto;
    min-height: 0;
    background: #111827;
  }

  .ld-gallery-main {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
  }

  .ld-gallery-thumbs {
    display: flex;
    overflow-x: auto;
    padding: 4px;
  }

  .ld-gallery-thumb {
    flex: 0 0 120px;
    height: 86px;
  }

  .ld-gallery-nav--next {
    right: 22px;
  }

  .ld-layout {
    grid-template-columns: 1fr;
  }

  .ld-facts,
  .ld-highlight-list,
  .ld-soft-grid {
    grid-template-columns: 1fr;
  }

  .ld-contact-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .browse-hero-field,
  .browse-page.is-searching .browse-hero-field {
    height: 52px;
    border-radius: 18px;
  }

  .browse-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .browse-toolbar-actions {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .browse-sort--mobile {
    display: inline-flex;
  }

  .browse-sort--desktop {
    display: none;
  }

  .ld-overview h1 {
    font-size: 1.72rem;
  }

  .ld-section {
    padding: 20px;
    border-radius: 16px;
  }

  .ld-mobile-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 220;
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 8px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -12px 30px rgba(15, 23, 42, 0.12);
  }

  .ld-mobile-actions a,
  .ld-mobile-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
  }

  .ld-mobile-actions a:last-child,
  .ld-mobile-actions button:last-child {
    background: #c1121f;
  }

  .ld-content {
    padding-bottom: 120px;
  }
}

/* Listing detail: realestate-style gallery and contact rebuild */
.ld-page {
  background: #f6f7f9;
}

.ld-content.container-browse {
  max-width: 1180px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 96px;
}

.ld-gallery {
  grid-template-columns: 22% 58% 20%;
  height: 480px;
  min-height: 480px;
}

.ld-gallery-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  height: 480px;
  min-width: 0;
  min-height: 0;
  padding: 22px 24px;
  background: #f7f7f8;
  border-right: 1px solid #e3e5e8;
  overflow: hidden;
}

.ld-gallery-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ld-gallery-info .ld-icon-action {
  min-height: 36px;
  padding: 0 11px;
  border-color: #d7dbe0;
  background: #fff;
  font-size: 0.86rem;
  font-weight: 700;
}

.ld-gallery-info .ld-icon-action svg {
  width: 16px;
  height: 16px;
}

.ld-gallery-summary {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.ld-gallery-summary h1 {
  margin: 0;
  color: #202124;
  font-size: clamp(1.25rem, 1.75vw, 1.85rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.ld-gallery-info .ld-meta {
  margin: 0;
}

.ld-gallery-info .ld-price {
  margin: 6px 0 0;
  color: #111827;
  font-size: clamp(1.15rem, 1.45vw, 1.45rem);
  line-height: 1.25;
}

.ld-gallery-info .ld-location {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0;
  color: #4b5563;
  font-size: 0.94rem;
  line-height: 1.45;
}

.ld-summary-facts {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: #2f343b;
  font-size: 0.92rem;
}

.ld-summary-facts span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.ld-summary-facts svg {
  width: 17px;
  height: 17px;
  color: #59606a;
}

.ld-viewing {
  margin-top: auto;
  flex-shrink: 0;
  padding-top: 14px;
  border-top: 1px solid #e2e5e9;
  color: #374151;
  font-size: 0.94rem;
  line-height: 1.45;
}

.ld-gallery-main {
  height: 480px;
}

.ld-gallery-thumbs,
.detail-thumbnails {
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  height: 480px;
  background: #2f3136;
}

.ld-gallery-thumb span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.56);
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.2;
  text-align: center;
}

.ld-gallery-all {
  display: none;
}

.ld-gallery-nav {
  width: 42px;
  height: 42px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.ld-gallery-nav--prev {
  left: calc(22% + 18px);
}

.ld-gallery-nav--next {
  right: calc(20% + 18px);
}

.ld-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}

.ld-overview {
  display: none;
}

.ld-section {
  border-radius: 12px;
  box-shadow: none;
}

.ld-section-lead {
  margin: -6px 0 14px;
  color: #111827;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.45;
}

.ld-contact-card {
  position: sticky;
  top: 88px;
  overflow: hidden;
  padding: 0;
  border: 1px solid #dfe3e8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(15, 23, 42, 0.10);
}

.ld-agency-header {
  padding: 16px 20px;
  background: #3f4146;
  color: #fff;
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.3;
}

.ld-contact-kicker,
.ld-agent-card,
.ld-agent-stats,
.ld-contact-actions,
.ld-contact-card .ld-enquiry-section {
  margin-left: 20px;
  margin-right: 20px;
}

.ld-contact-kicker {
  margin-top: 20px;
  margin-bottom: 12px;
  color: #6b7280;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ld-agent-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  margin-bottom: 16px;
}

.ld-agent-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}

.ld-agent-name {
  color: #005ea8;
  font-size: 1rem;
  font-weight: 900;
  text-decoration: none;
}

.ld-agent-agency {
  margin: 5px 0 0;
  color: #4b5563;
  font-size: 0.88rem;
  line-height: 1.35;
}

.ld-agent-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  color: #0f766e;
  font-size: 0.82rem;
  font-weight: 800;
}

.ld-agent-stats {
  gap: 8px;
  margin-bottom: 16px;
}

.ld-agent-stats div {
  border: 1px solid #edf0f3;
  border-radius: 10px;
  background: #f8fafc;
}

.ld-contact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.ld-contact-actions .btn:first-child {
  grid-column: 1 / -1;
}

.ld-contact-card .ld-enquiry-section {
  scroll-margin-top: 110px;
  margin-bottom: 20px;
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid #edf0f3;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ld-contact-card .ld-enquiry-section h2 {
  margin-bottom: 12px;
  font-size: 1.02rem;
}

.ld-contact-card .ld-enquiry-form {
  gap: 13px;
}

.ld-contact-card .ld-enquiry-form textarea {
  min-height: 112px;
  border-radius: 10px;
}

.ld-contact-card .ld-topic-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}

.ld-contact-card .ld-topic-grid label {
  border-radius: 10px;
  padding: 10px 12px;
}

.ld-contact-card .ld-enquiry-form button[type="submit"] {
  width: 100%;
}

.ld-map-card {
  border-radius: 12px;
  background: linear-gradient(135deg, #eef6f3, #eef3fb);
}

.ld-mortgage-card {
  border-radius: 12px;
}

@media (max-width: 1080px) {
  .ld-gallery {
    grid-template-columns: minmax(240px, 30%) minmax(0, 70%);
    height: auto;
    min-height: 0;
  }

  .ld-gallery-info {
    height: auto;
    min-height: 480px;
  }

  .ld-gallery-main,
  .ld-gallery-main img {
    height: 480px;
    min-height: 480px;
  }

  .ld-gallery-thumbs,
  .detail-thumbnails {
    display: none;
  }

  .ld-gallery-nav--prev {
    left: calc(30% + 18px);
  }

  .ld-gallery-nav--next {
    right: 18px;
  }
}

@media (max-width: 900px) {
  .ld-content.container-browse {
    width: calc(100% - 28px);
  }

  .ld-gallery {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .ld-gallery-info {
    order: 2;
    min-height: 0;
    padding: 22px 18px;
    border-right: 0;
  }

  .ld-gallery-main {
    order: 1;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .ld-gallery-thumbs {
    order: 3;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: 86px;
  }

  .ld-gallery-nav--prev {
    left: 16px;
    top: 34%;
  }

  .ld-gallery-nav--next {
    right: 16px;
    top: 34%;
  }

  .ld-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .ld-contact-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .ld-gallery-summary h1 {
    font-size: 1.55rem;
  }

  .ld-gallery-actions {
    justify-content: flex-start;
  }

  .ld-gallery-thumbs {
    display: none;
  }

  .ld-contact-actions {
    grid-template-columns: 1fr;
  }
}

/* Listing detail mockup #2 */
.detail-hero-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

.detail-hero,
.detail-hero.ld-gallery {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr) 280px;
  height: 480px;
  min-height: 480px;
  max-width: 1440px;
  margin: 0 auto;
  gap: 0;
  overflow: hidden;
  background: #2f3136;
}

.ld-gallery-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 480px;
  min-height: 0;
  padding: 0;
  background: #fff;
  border-right: 1px solid #e3e5e8;
  border-radius: 16px 0 0 16px;
  overflow: hidden;
}

.ld-agency-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: #fff;
  background: linear-gradient(135deg, #5c4033, #a67c52);
}

.ld-agency-banner--compact {
  border-radius: 0;
}

.ld-agency-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.15);
}

.ld-agency-logo--placeholder,
.ld-agency-logo--avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
}

.ld-agency-logo--placeholder svg,
.ld-agency-logo--avatar svg {
  width: 20px;
  height: 20px;
}

.ld-agency-banner-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ld-agency-banner-copy strong {
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.ld-agency-banner-copy span {
  font-size: 0.74rem;
  line-height: 1.35;
  opacity: 0.92;
}

.ld-gallery-info .ld-gallery-actions,
.ld-gallery-info .ld-gallery-summary {
  padding: 0 20px;
}

.ld-gallery-info .ld-gallery-summary {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-bottom: 16px;
}

.ld-summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ld-summary-tags span {
  padding: 5px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.78rem;
  font-weight: 700;
}

.ld-gallery-main-wrap {
  position: relative;
  height: 480px;
  min-height: 0;
}

.ld-gallery-main,
.ld-gallery-main img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.ld-gallery-counter {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 3;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  pointer-events: none;
}

.ld-gallery-thumb span strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1;
  margin-bottom: 4px;
}

.detail-thumbnails,
.ld-gallery-thumbs.detail-thumbnails {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  height: 480px;
  gap: 6px;
  padding: 0 0 0 6px;
  background: #2f3136;
}

.detail-main {
  max-width: 1320px;
  margin: 24px auto;
  padding: 0 24px 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

.detail-main-left {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.detail-main-right {
  min-width: 0;
}

.ld-map-section .ld-map-area {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 0.95rem;
}

.ld-map-frame {
  overflow: hidden;
  border-radius: 12px;
  background: #f3f4f6;
}

.ld-map-embed {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

.ld-map-placeholder {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 280px;
  padding: 24px;
  color: #374151;
  text-align: center;
  background: linear-gradient(135deg, #eef6f3, #eef3fb);
}

.ld-map-link {
  margin-top: 14px;
}

.ld-contact-card {
  position: sticky;
  top: 88px;
}

.ld-contact-body {
  padding: 0 20px 20px;
}

.ld-contact-card .ld-agency-banner {
  border-radius: 12px 12px 0 0;
}

.ld-contact-card .ld-contact-kicker,
.ld-contact-card .ld-agent-card,
.ld-contact-card .ld-agent-stats,
.ld-contact-card .ld-contact-actions {
  margin-left: 0;
  margin-right: 0;
}

.ld-enquiry-section {
  scroll-margin-top: 110px;
}

.ld-gallery-nav--prev {
  left: calc(330px + 16px);
}

.ld-gallery-nav--next {
  right: calc(280px + 16px);
}

@media (max-width: 1180px) {
  .detail-hero,
  .detail-hero.ld-gallery {
    grid-template-columns: 300px minmax(0, 1fr) 240px;
  }

  .ld-gallery-nav--prev {
    left: calc(300px + 12px);
  }

  .ld-gallery-nav--next {
    right: calc(240px + 12px);
  }
}

@media (max-width: 1080px) {
  .detail-hero,
  .detail-hero.ld-gallery {
    grid-template-columns: minmax(260px, 34%) minmax(0, 66%);
    height: auto;
    min-height: 0;
  }

  .ld-gallery-info,
  .ld-gallery-main-wrap,
  .ld-gallery-main,
  .ld-gallery-main img {
    height: 420px;
    min-height: 420px;
  }

  .detail-thumbnails,
  .ld-gallery-thumbs.detail-thumbnails {
    display: none;
  }

  .ld-gallery-nav--prev {
    left: calc(34% + 12px);
  }

  .ld-gallery-nav--next {
    right: 16px;
  }

  .detail-main {
    grid-template-columns: 1fr;
  }

  .ld-contact-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .detail-hero-wrap,
  .detail-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .detail-hero,
  .detail-hero.ld-gallery {
    grid-template-columns: 1fr;
    height: auto;
  }

  .ld-gallery-info {
    order: 2;
    height: auto;
    min-height: 0;
    border-radius: 0;
    border-right: 0;
  }

  .ld-gallery-main-wrap {
    order: 1;
    height: auto;
  }

  .ld-gallery-main,
  .ld-gallery-main img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .ld-gallery-nav--prev,
  .ld-gallery-nav--next {
    top: 28%;
  }
}

/* Browse sticky search/filter bar — main nav scrolls away; filters stick to viewport top */
.browse-top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.browse-page.is-searching .browse-top {
  top: 0;
}

/* Minimal shared footer */
.site-footer {
  margin-top: 0;
  padding: 42px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.72);
}

.footer-main {
  display: grid;
  grid-template-columns: auto minmax(320px, 1fr) auto;
  align-items: start;
  gap: 32px 64px;
  padding-bottom: 36px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: contain;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  padding-top: 8px;
}

.footer-nav a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: #fff;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.footer-contact span {
  color: #fff;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.78rem;
}

@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: auto 1fr;
    gap: 28px 48px;
  }

  .footer-contact {
    grid-column: 2;
  }
}

/* Homepage property exploration and latest news */
.home-explore,
.home-news-section {
  background: #fff;
}

.home-recent-searches {
  padding: 24px 0 26px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.home-recent-searches[hidden] {
  display: none;
}

.home-recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.home-recent-head h2 {
  margin: 0;
  color: var(--text);
  font-size: .95rem;
}

.home-recent-head button {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: .76rem;
  cursor: pointer;
}

.home-recent-head button:hover {
  color: var(--brand);
}

.home-recent-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.home-recent-item {
  display: flex;
  min-width: 0;
  align-items: center;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.home-recent-item:hover {
  border-color: #bcc2ca;
  box-shadow: 0 3px 12px rgba(20, 28, 38, .06);
}

.home-recent-run {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 3px;
  padding: 11px 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.home-recent-run span,
.home-recent-run small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-recent-run span {
  font-size: .84rem;
  font-weight: 650;
}

.home-recent-run small {
  color: var(--text-muted);
  font-size: .7rem;
  text-transform: capitalize;
}

.home-recent-star {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  margin-right: 8px;
  border: 0;
  border-radius: 6px;
  background: #f1f3f5;
  color: #8b95a1;
  cursor: pointer;
}

.home-recent-star:hover {
  background: #e2e5e9;
}

.home-recent-star svg {
  width: 18px;
  height: 18px;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.6;
}

.home-recent-star.is-saved {
  border: 1px solid var(--brand);
  color: var(--brand);
}

.pvc-view-row {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 12px;
}

.pvc-view-count {
  color: #8a94a1;
  font-size: .72rem;
  line-height: 1.3;
}

.home-recent-star.is-saved svg {
  fill: currentColor;
}

.home-explore {
  padding: 56px 0 36px;
}

.home-news-section {
  padding: 30px 0 66px;
}

.home-explore h2,
.home-section-head h2 {
  margin: 0;
  color: #232a33;
  font-size: 1.45rem;
  letter-spacing: -.025em;
}

.home-explore-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 20px 0;
}

.home-explore-tabs button {
  min-width: 96px;
  height: 42px;
  padding: 0 20px;
  border: 1px solid #90959c;
  border-radius: 999px;
  background: #fff;
  color: #242a32;
  font-size: .9rem;
  font-weight: 650;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.home-explore-tabs button:hover {
  border-color: #343a42;
}

.home-explore-tabs button.is-active {
  border: 2px solid #343a42;
  box-shadow: inset 0 0 0 1px #fff;
}

.home-property-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-tool-card {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  padding: 22px 18px 20px;
  border: 1px solid #dfe2e6;
  border-radius: 12px;
  background: #fff;
}

.home-tool-art {
  display: grid;
  height: 138px;
  place-items: center;
}

.home-tool-art svg {
  width: 155px;
  max-width: 80%;
  height: 105px;
}

.home-tool-card h3 {
  margin: 3px 0 8px;
  color: #252c35;
  font-size: 1.1rem;
  line-height: 1.3;
}

.home-tool-card p {
  margin: 0 0 10px;
  color: #687382;
  font-size: .91rem;
  line-height: 1.5;
}

.home-tool-card a {
  margin-top: auto;
  color: #0066b3;
  font-size: .9rem;
  font-weight: 750;
}

.home-tool-card a:hover {
  text-decoration: underline;
}

.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.home-section-head > a {
  color: #0066b3;
  font-size: .85rem;
  font-weight: 700;
}

.home-news-shell {
  position: relative;
}

.home-news-row {
  display: grid;
  grid-auto-columns: minmax(205px, 1fr);
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  padding: 2px 0 10px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.home-news-row::-webkit-scrollbar {
  display: none;
}

.home-news-card {
  display: grid;
  align-content: start;
  min-width: 0;
  color: #232a33;
  text-decoration: none;
  scroll-snap-align: start;
}

.home-news-card img,
.home-news-image-placeholder {
  display: block;
  width: 100%;
  height: 132px;
  margin-bottom: 11px;
  border-radius: 10px;
  object-fit: cover;
  background: linear-gradient(135deg, #e6eaee, #f5f6f7);
}

.home-news-card strong {
  display: -webkit-box;
  overflow: hidden;
  min-height: 42px;
  color: #252c35;
  font-size: .91rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-news-card > span:last-child {
  margin-top: 7px;
  color: #7b8490;
  font-size: .7rem;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.home-news-card:hover strong {
  color: var(--brand);
}

.home-news-loading {
  margin: 0;
  color: var(--text-muted);
  font-size: .88rem;
}

.home-news-arrow {
  position: absolute;
  z-index: 2;
  top: 49px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid #d8dce1;
  border-radius: 50%;
  background: #fff;
  color: #303740;
  box-shadow: 0 4px 16px rgba(20, 28, 38, .12);
  font-size: 1.9rem;
  cursor: pointer;
}

.home-news-arrow--prev {
  left: -18px;
}

.home-news-arrow--next {
  right: -18px;
}

@media (max-width: 800px) {
  .home-recent-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-property-tools {
    grid-template-columns: 1fr;
  }

  .home-tool-card {
    min-height: 270px;
  }

  .home-news-row {
    grid-auto-columns: minmax(220px, 62vw);
  }

  .home-news-arrow {
    display: none;
  }
}

@media (max-width: 520px) {
  .home-recent-list {
    grid-template-columns: 1fr;
  }

  .home-explore {
    padding: 40px 0 24px;
  }

  .home-news-section {
    padding: 26px 0 46px;
  }

  .home-explore-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .home-explore-tabs::-webkit-scrollbar {
    display: none;
  }

  .home-explore-tabs button {
    flex: 0 0 auto;
  }
}

@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-contact {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding-top: 34px;
  }

  .footer-inner {
    width: min(100% - 32px, 1200px);
  }

  .footer-main {
    padding-bottom: 30px;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    padding-top: 0;
  }

  .footer-contact a {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 980px) {
  .browse-top,
  .browse-page.is-searching .browse-top {
    position: sticky;
    top: 0;
  }
}

@media (max-width: 768px) {
  .browse-top,
  .browse-page.is-searching .browse-top {
    position: sticky;
    top: 0;
    z-index: 50;
  }
}

/* Desktop/tablet: hide mobile-only control rows */
.browse-page .browse-mobile-controls {
  display: none;
}

/* Mobile listing page: enforce 3-row control layout */
@media (max-width: 768px) {
  .browse-page {
    overflow-x: hidden;
  }

  .browse-page .container-browse {
    width: calc(100% - 24px);
    max-width: 100%;
  }

  .browse-page .browse-filters {
    overflow-x: hidden;
  }

  .browse-page .browse-hero-search,
  .browse-page .browse-pill-row {
    display: none;
  }

  .browse-page .browse-mobile-controls {
    display: grid;
    gap: 10px;
    width: 100%;
    max-width: 100%;
  }

  .browse-page .browse-mobile-row {
    width: 100%;
    min-width: 0;
  }

  .browse-page .browse-mobile-row--top {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .browse-page .browse-mobile-btn,
  .browse-page .browse-mobile-sort-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    color: #111827;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }

  .browse-page .browse-mobile-btn .browse-pill-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
  }

  .browse-page .browse-mobile-sort-wrap {
    position: relative;
    padding-right: 28px;
  }

  .browse-page .browse-mobile-sort-wrap span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .browse-page .browse-mobile-sort {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    border: 0;
    cursor: pointer;
  }

  .browse-page .browse-mobile-row--search {
    display: block;
  }

  .browse-page .browse-mobile-search-proxy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    color: #6b7280;
    font: inherit;
    font-size: 0.92rem;
    text-align: left;
  }

  .browse-page .browse-mobile-search-proxy .browse-pill-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #c1121f;
  }

  .browse-page .browse-mobile-search-proxy span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .browse-page .browse-mobile-row--categories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .browse-page .browse-mobile-deal-pill {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 40px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
  }

  .browse-page .browse-mobile-deal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 0 8px;
    color: #374151;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
  }

  .browse-page .browse-mobile-deal + .browse-mobile-deal {
    border-left: 1px solid #d1d5db;
  }

  .browse-page .browse-mobile-deal.is-active {
    background: #c1121f;
    color: #fff;
  }

  .browse-page .browse-mobile-cat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 40px;
    padding: 0 8px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    color: #374151;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }

  .browse-page .browse-mobile-cat.is-active {
    border-color: #c1121f;
    background: #c1121f;
    color: #fff;
  }

  /* Mobile listing summary: keep only 2 rows */
  .browse-page .browse-results-title {
    display: none;
  }

  .browse-page .browse-results-head {
    margin-bottom: 8px;
  }

  .browse-page .browse-results-meta {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
    color: #374151;
  }

  .browse-page .browse-toolbar {
    padding: 0 0 8px;
    border-bottom: 0;
    margin-bottom: 0;
  }

  .browse-page .browse-count {
    margin: 0;
    font-size: 0.96rem;
    color: #4b5563;
  }

  .browse-page .browse-toolbar-actions {
    display: none;
  }
}

/* Listing cards: desktop/tablet should match mobile-style stacked card
   with centered media instead of left-column media. */
@media (min-width: 768px) {
  .browse-page .browse-cards--list .pvc--list .pvc-layout {
    display: flex;
    flex-direction: column;
  }

  .browse-page .browse-cards--list .pvc--list .pvc-media-wrap {
    width: 100%;
  }

  .browse-page .browse-cards--list .pvc--list .pvc-media {
    width: 100%;
    margin: 0;
    min-height: 360px;
    height: 360px;
  }
}
