/* ============================================================
   RentOrSale Properties — shared stylesheet
   Brand palette: emerald → sage → beige → cream
   ============================================================ */

:root {
  --emerald-900: #1B5E47;
  --emerald-800: #235E48;
  --emerald-700: #2D6A50;
  --emerald-500: #3D7B5F;
  --sage-400:    #7FA77A;
  --sage-200:    #C7DAC4;
  --beige-300:   #C5BB8E;
  --cream-100:   #E8DDB5;
  --cream-50:    #F6EFD9;
  --cream-25:    #FBF8EC;

  --ink-900:     #14211B;
  --ink-700:     #3B4A43;
  --ink-500:     #6F7C77;
  --ink-300:     #B6BFBB;
  --line:        #E6DFC8;
  --surface:     #FFFFFF;
  --bg:          #FBF8EC;

  --danger:      #B43144;
  --warn:        #C28000;
  --success:     #1F7A4D;

  --shadow-sm:   0 2px 8px rgba(20, 33, 27, 0.06);
  --shadow:      0 6px 24px rgba(20, 33, 27, 0.10);
  --shadow-lg:   0 12px 48px rgba(20, 33, 27, 0.16);

  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   20px;

  --font-body:   -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--emerald-700); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
.nav {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.94);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 24px;
}
.brand {
  font-size: 22px;
  font-weight: 800;
  color: var(--emerald-900);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.brand .dot { color: var(--sage-400); }
.brand .ico {
  width: 28px; height: 28px;
  background: var(--emerald-900);
  color: var(--cream-100);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--ink-700);
  font-weight: 600;
  font-size: 14px;
}
.nav-link:hover {
  background: var(--cream-50);
  text-decoration: none;
}
.nav-link.active { color: var(--emerald-900); }
.nav-cta {
  background: var(--emerald-900);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
}
.nav-cta:hover {
  background: var(--emerald-700);
  text-decoration: none;
}
.menu-btn {
  display: none;
  background: transparent;
  border: 0;
  font-size: 22px;
  color: var(--ink-900);
}

/* ---------- hero ---------- */
.hero {
  background:
    linear-gradient(135deg, rgba(27,94,71,0.92) 0%, rgba(45,106,80,0.85) 45%, rgba(127,167,122,0.78) 100%),
    url('https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?auto=format&fit=crop&w=1920&q=80') center/cover;
  color: #fff;
  padding: 72px 24px 96px;
  text-align: center;
}
.hero h1 {
  font-size: 48px;
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -1px;
  line-height: 1.1;
}
.hero .sub {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 36px;
  opacity: 0.94;
}
@media (max-width: 700px) {
  .hero { padding: 56px 18px 72px; }
  .hero h1 { font-size: 32px; }
  .hero .sub { font-size: 15px; }
}

/* ---------- search card ---------- */
.search-tabs {
  display: inline-flex;
  background: rgba(0,0,0,0.20);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 14px;
  gap: 2px;
}
.search-tab {
  padding: 9px 18px;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.85);
  font-weight: 700;
  font-size: 14px;
  border-radius: 9px;
  cursor: pointer;
}
.search-tab.active {
  background: #fff;
  color: var(--emerald-900);
}
.search-box {
  background: #fff;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: flex;
  align-items: stretch;
  color: var(--ink-900);
  gap: 0;
}
.search-box .field {
  flex: 1;
  padding: 10px 18px;
  border-right: 1px solid var(--line);
  text-align: left;
  min-width: 0;
}
.search-box .field:last-of-type { border-right: 0; }
.search-box .field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 4px;
}
.search-box .field select,
.search-box .field input {
  border: 0;
  outline: 0;
  width: 100%;
  font-size: 15px;
  font-family: inherit;
  background: transparent;
  color: var(--ink-900);
  padding: 0;
}
.search-box .search-btn {
  background: var(--emerald-900);
  color: #fff;
  border: 0;
  padding: 0 30px;
  font-weight: 800;
  border-radius: 12px;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.search-box .search-btn:hover { background: var(--emerald-700); }
@media (max-width: 800px) {
  .search-box { flex-direction: column; padding: 14px; gap: 12px; }
  .search-box .field { border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 4px; }
  .search-box .field:last-of-type { border-bottom: 0; }
  .search-box .search-btn { width: 100%; padding: 14px; justify-content: center; }
}

/* ---------- trust strip ---------- */
.trust-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 24px;
}
.trust-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.trust-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--emerald-900);
  letter-spacing: -0.5px;
}
.trust-label {
  font-size: 12px;
  color: var(--ink-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
@media (max-width: 700px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .trust-num { font-size: 22px; }
}

/* ---------- sections ---------- */
section.section { padding: 64px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}
.section-head h2 {
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: -0.6px;
  color: var(--ink-900);
}
.section-head p {
  margin: 0;
  color: var(--ink-500);
  font-size: 15px;
}
.see-all {
  color: var(--emerald-700);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
@media (max-width: 700px) {
  .section.section { padding: 44px 0; }
  .section-head h2 { font-size: 24px; }
}

/* ---------- localities grid ---------- */
.locality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}
.locality-card {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.locality-card:hover { transform: translateY(-4px); }
.locality-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,33,27,0) 30%, rgba(20,33,27,0.85) 100%);
}
.locality-card .info {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  color: #fff;
}
.locality-card .name {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 2px;
}
.locality-card .count {
  font-size: 12px;
  opacity: 0.9;
}

/* ---------- property cards ---------- */
.prop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}
.prop-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.prop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.prop-card .photo {
  aspect-ratio: 16 / 11;
  background-size: cover;
  background-position: center;
  background-color: var(--cream-50);
  position: relative;
}
.prop-card .badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
}
.prop-card .badge {
  background: var(--emerald-900);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.prop-card .badge.alt {
  background: var(--cream-100);
  color: var(--emerald-900);
}
.prop-card .save {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 0;
  color: var(--ink-700);
}
.prop-card .body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.prop-card .price {
  font-size: 20px;
  font-weight: 800;
  color: var(--emerald-900);
  letter-spacing: -0.4px;
}
.prop-card .price-sub {
  font-size: 12px;
  color: var(--ink-500);
  margin-left: 4px;
  font-weight: 600;
}
.prop-card .title {
  font-size: 15px;
  color: var(--ink-900);
  margin: 4px 0 4px;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prop-card .area {
  font-size: 13px;
  color: var(--ink-500);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}
.prop-card .meta {
  display: flex;
  gap: 14px;
  color: var(--ink-700);
  font-size: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.prop-card .meta span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

/* ---------- skeleton ---------- */
.skel {
  background: linear-gradient(90deg, var(--cream-50) 0%, #ECE4C7 50%, var(--cream-50) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.skel-card .skel.photo { aspect-ratio: 16/11; border-radius: 0; }
.skel-card .skel.line { height: 14px; margin: 12px 16px; }
.skel-card .skel.line.short { width: 50%; }

/* ---------- why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.why-card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--emerald-900);
  color: var(--cream-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}
.why-card h3 {
  font-size: 16px;
  margin: 0 0 4px;
  font-weight: 800;
  color: var(--ink-900);
}
.why-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-500);
}
@media (max-width: 800px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ---------- testimonials ---------- */
.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.test-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.test-card .stars { color: var(--warn); font-size: 14px; margin-bottom: 8px; }
.test-card .quote { font-size: 15px; color: var(--ink-700); margin: 0 0 14px; }
.test-card .author { display: flex; align-items: center; gap: 10px; }
.test-card .avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background-size: cover; background-position: center;
  background-color: var(--cream-100);
}
.test-card .name { font-weight: 700; font-size: 14px; }
.test-card .role { font-size: 12px; color: var(--ink-500); }
@media (max-width: 800px) {
  .test-grid { grid-template-columns: 1fr; }
}

/* ---------- big CTA ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--emerald-900), var(--emerald-700) 60%, var(--sage-400));
  color: #fff;
  padding: 56px 24px;
  text-align: center;
}
.cta-band h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  color: var(--cream-100);
}
.cta-band p {
  margin: 0 0 22px;
  font-size: 15px;
  opacity: 0.92;
}
.cta-btn {
  background: #fff;
  color: var(--emerald-900);
  border: 0;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 15px;
}
.cta-btn:hover { background: var(--cream-50); }

/* ---------- footer ---------- */
footer {
  background: var(--ink-900);
  color: var(--cream-100);
  padding: 48px 24px 22px;
  font-size: 13px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-inner h4 {
  color: #fff;
  font-size: 14px;
  margin: 0 0 12px;
  font-weight: 800;
}
.footer-inner ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-inner a { color: var(--cream-100); opacity: 0.85; }
.footer-inner a:hover { opacity: 1; text-decoration: underline; }
.copy {
  max-width: 1200px;
  margin: 28px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.1);
  opacity: 0.7;
  font-size: 12px;
}
@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* ---------- lead modal ---------- */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(20,33,27,0.55);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
}
.modal-bg.open { display: flex; }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.modal .head {
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0;
  background: #fff;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal .head h3 { margin: 0 0 4px; font-size: 19px; font-weight: 800; }
.modal .head .sub { color: var(--ink-500); font-size: 13px; margin: 0; }
.modal .close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--cream-50);
  border: 0;
  font-size: 18px;
  color: var(--ink-700);
}
.modal form { padding: 16px 24px 24px; }
.modal .intent-row { display: flex; gap: 8px; margin-bottom: 14px; }
.modal .intent-btn {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-700);
}
.modal .intent-btn.active {
  background: var(--emerald-900);
  color: #fff;
  border-color: var(--emerald-900);
}
.modal .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.modal .row.single { grid-template-columns: 1fr; }
.modal label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-700);
  margin-bottom: 4px;
}
.modal input, .modal select, .modal textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--ink-900);
}
.modal input:focus, .modal select:focus, .modal textarea:focus {
  outline: 2px solid var(--sage-400);
  border-color: var(--sage-400);
}
.modal textarea { min-height: 70px; resize: vertical; }
.modal .submit-btn {
  width: 100%;
  margin-top: 6px;
  padding: 13px;
  background: var(--emerald-900);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
}
.modal .submit-btn:disabled { background: var(--ink-500); cursor: not-allowed; }
.modal .status {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  display: none;
}
.modal .status.success {
  display: block;
  background: rgba(31,122,77,0.12);
  color: var(--success);
}
.modal .status.error {
  display: block;
  background: rgba(180,49,68,0.12);
  color: var(--danger);
}

/* ---------- listings page ---------- */
.listings-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  padding: 28px 0;
  align-items: start;
}
.filter-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 88px;
}
.filter-panel h4 {
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 16px 0 8px;
  color: var(--ink-500);
  font-weight: 700;
}
.filter-panel h4:first-of-type { margin-top: 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--line);
  background: var(--cream-25);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--ink-700);
  font-weight: 600;
  cursor: pointer;
}
.chip:hover { background: var(--cream-50); }
.chip.active {
  background: var(--emerald-900);
  color: #fff;
  border-color: var(--emerald-900);
}
.filter-panel input[type=number],
.filter-panel select {
  width: 100%;
  border: 1px solid var(--line);
  padding: 9px 12px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
}
.filter-panel .range-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filter-panel .reset-btn {
  margin-top: 18px;
  width: 100%;
  padding: 11px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-700);
  font-weight: 700;
  font-size: 14px;
}
.filter-panel .reset-btn:hover { background: var(--cream-50); }

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.results-bar .count { font-size: 14px; color: var(--ink-700); font-weight: 600; }
.results-bar select {
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  background: #fff;
}
.empty-state {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 60px 24px;
  text-align: center;
  color: var(--ink-500);
}
.empty-state h3 { color: var(--ink-700); margin: 12px 0 6px; }

.load-more {
  display: block;
  margin: 32px auto 0;
  padding: 12px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 700;
  color: var(--ink-700);
}
.load-more:hover { background: var(--cream-50); }

/* Mobile: collapsible filter panel + sticky show/hide button */
.mobile-filter-btn {
  display: none;
  position: sticky;
  top: 64px;
  z-index: 50;
  width: 100%;
  padding: 12px 16px;
  background: var(--emerald-900);
  color: #fff;
  border: 0;
  border-radius: 0;
  font-weight: 800;
  font-size: 14px;
  text-align: left;
  margin-bottom: 14px;
  display: none;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}
.mobile-filter-btn .badge-count {
  background: var(--cream-100);
  color: var(--emerald-900);
  border-radius: 12px;
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 800;
  margin-left: 8px;
}
@media (max-width: 800px) {
  .listings-wrap { grid-template-columns: 1fr; gap: 0; padding-top: 12px; }
  .mobile-filter-btn { display: flex; }
  .filter-panel {
    position: static;
    display: none;
    margin-bottom: 18px;
  }
  .filter-panel.open { display: block; }
}

/* ---------- property detail page ---------- */
.prop-detail {
  max-width: 1100px;
  margin: 28px auto;
  padding: 0 24px;
}
.prop-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 8;
  background: var(--cream-50);
}
.prop-gallery .pic {
  background-size: cover;
  background-position: center;
}
.prop-gallery .pic:first-child {
  grid-row: 1 / 3;
}
.prop-gallery .placeholder {
  background:
    linear-gradient(135deg, var(--cream-100), var(--beige-300));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-900);
  font-size: 36px;
}
.prop-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  margin-bottom: 22px;
}
.prop-title h1 {
  margin: 0 0 6px;
  font-size: 28px;
  letter-spacing: -0.4px;
}
.prop-title .area {
  color: var(--ink-500);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.prop-price-block {
  text-align: right;
}
.prop-price-block .big-price {
  font-size: 30px;
  font-weight: 800;
  color: var(--emerald-900);
  letter-spacing: -0.5px;
}
.prop-price-block .per-sqft {
  font-size: 13px;
  color: var(--ink-500);
}
.highlight-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
}
.highlight-item {
  text-align: center;
  padding: 8px;
}
.highlight-item .val { font-size: 17px; font-weight: 800; color: var(--ink-900); }
.highlight-item .lab { font-size: 11px; color: var(--ink-500); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; margin-top: 2px; }
@media (max-width: 700px) {
  .prop-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 4/3; }
  .prop-gallery .pic:first-child { grid-column: 1 / 3; grid-row: 1 / 2; }
  .highlight-row { grid-template-columns: repeat(2, 1fr); }
  .prop-title h1 { font-size: 22px; }
  .prop-price-block { text-align: left; }
}
.prop-grid-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
.prop-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 18px;
}
.prop-section h3 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink-900);
}
.prop-section .desc {
  white-space: pre-wrap;
  color: var(--ink-700);
  line-height: 1.65;
  font-size: 15px;
  margin: 0;
}
.amenity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.amenity {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-700);
}
.amenity .check {
  width: 22px; height: 22px;
  background: var(--cream-50);
  color: var(--emerald-900);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}
.broker-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 88px;
}
.broker-card .top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.broker-card .avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  background-size: cover; background-position: center;
  background-color: var(--cream-100);
}
.broker-card .nm { font-weight: 800; font-size: 16px; }
.broker-card .role { font-size: 12px; color: var(--ink-500); }
.broker-card .verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--emerald-700);
  margin-top: 4px;
}
.broker-card .contact-btn {
  width: 100%;
  padding: 13px;
  background: var(--emerald-900);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 8px;
}
.broker-card .contact-btn:hover { background: var(--emerald-700); }
.broker-card .callback-btn {
  width: 100%;
  padding: 13px;
  background: var(--cream-50);
  color: var(--emerald-900);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
}
.broker-card .small {
  font-size: 11px;
  color: var(--ink-500);
  text-align: center;
  margin-top: 10px;
}
@media (max-width: 800px) {
  .prop-grid-layout { grid-template-columns: 1fr; }
  .broker-card { position: static; }
  .amenity-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- floating mobile CTA ---------- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: var(--emerald-900);
  color: #fff;
  padding: 14px;
  border-radius: 12px;
  font-weight: 800;
  text-align: center;
  font-size: 15px;
  z-index: 80;
  box-shadow: var(--shadow-lg);
  border: 0;
}
@media (max-width: 700px) { .mobile-cta { display: block; } }

/* ---------- mini search header (on inner pages) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--emerald-900), var(--emerald-700));
  color: #fff;
  padding: 28px 24px 24px;
}
.page-header h1 {
  margin: 0 0 4px;
  font-size: 24px;
  color: var(--cream-100);
  font-weight: 800;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.page-header .crumb {
  font-size: 13px;
  opacity: 0.85;
  max-width: 1200px;
  margin: 0 auto;
}
.page-header .crumb a { color: var(--cream-100); }

/* ============================================================
   Square Yards-inspired components
   ============================================================ */

/* ---------- quick search chip strip ---------- */
.quick-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.quick-strip .inner {
  display: inline-flex;
  gap: 8px;
  padding: 0 24px;
  white-space: nowrap;
}
.quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--cream-25);
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.quick-chip:hover {
  background: var(--cream-50);
  color: var(--emerald-900);
  text-decoration: none;
}
.quick-chip .ic { font-size: 14px; }

/* ---------- richer prop-card additions ---------- */
.prop-card .badge.verified { background: var(--success); }
.prop-card .badge.fresh    { background: var(--warn); color: var(--ink-900); }
.prop-card .badge.fromweb  { background: var(--sage-400); color: var(--ink-900); }
.prop-card .body .row-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}
.prop-card .card-contact-btn {
  flex: 1;
  background: var(--emerald-900);
  color: #fff;
  border: 0;
  padding: 9px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.prop-card .card-contact-btn:hover { background: var(--emerald-700); }
.prop-card .card-ghost-btn {
  background: var(--cream-50);
  color: var(--emerald-900);
  border: 1px solid var(--line);
  padding: 9px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.prop-card .card-ghost-btn:hover { background: var(--cream-100); }
.prop-card .views-pill {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(20,33,27,0.78);
  color: #fff;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---------- applied filters bar ---------- */
.applied-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  min-height: 0;
}
.applied-bar:empty { display: none; }
.applied-pill {
  background: var(--cream-50);
  border: 1px solid var(--line);
  padding: 5px 8px 5px 12px;
  border-radius: 16px;
  font-size: 12px;
  color: var(--emerald-900);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.applied-pill button {
  background: var(--emerald-900);
  color: #fff;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.clear-all {
  background: transparent;
  border: 0;
  color: var(--ink-500);
  font-size: 12px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
  margin-left: 4px;
}

/* ---------- EMI calculator ---------- */
.emi-card {
  background: linear-gradient(135deg, var(--cream-50), var(--cream-25));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 18px;
}
.emi-card h3 {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-900);
}
.emi-card h3 .ic {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--emerald-900);
  color: var(--cream-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.emi-row { margin-bottom: 14px; }
.emi-row .head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--ink-700);
  font-weight: 600;
}
.emi-row .head strong {
  font-weight: 800;
  color: var(--emerald-900);
}
.emi-row input[type=range] {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  background: var(--line);
  border-radius: 3px;
  outline: none;
}
.emi-row input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  background: var(--emerald-900);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(20,33,27,0.25);
}
.emi-result {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.emi-result .cell { text-align: center; }
.emi-result .cell .val {
  font-size: 18px;
  font-weight: 800;
  color: var(--emerald-900);
}
.emi-result .cell .lab {
  font-size: 11px;
  color: var(--ink-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 2px;
}

/* ---------- SEO link grid ---------- */
.seo-band {
  background: var(--ink-900);
  color: var(--cream-100);
  padding: 48px 24px 56px;
}
.seo-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.seo-col h4 {
  margin: 0 0 14px;
  font-size: 14px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.seo-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.seo-col a {
  color: var(--cream-100);
  opacity: 0.78;
  font-size: 13px;
}
.seo-col a:hover { opacity: 1; text-decoration: underline; }
@media (max-width: 800px) {
  .seo-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
}
@media (max-width: 480px) {
  .seo-grid { grid-template-columns: 1fr; }
}

/* ---------- budget chip rail in filter sidebar ---------- */
.budget-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }

/* ============================================================
   Persona routing — homepage 3-up + owner band + brokers page
   ============================================================ */

/* ---------- 3-persona cards on homepage ---------- */
.persona-band {
  background: linear-gradient(180deg, var(--cream-25) 0%, var(--bg) 100%);
  padding: 56px 0;
}
.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.persona-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}
.persona-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.persona-card .pill {
  display: inline-block;
  background: var(--cream-50);
  color: var(--emerald-900);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 14px;
  letter-spacing: 0.5px;
  width: fit-content;
  margin-bottom: 14px;
}
.persona-card .ico {
  font-size: 36px;
  margin-bottom: 12px;
  line-height: 1;
}
.persona-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.4px;
}
.persona-card p {
  font-size: 14px;
  color: var(--ink-700);
  margin: 0 0 16px;
  flex: 1;
}
.persona-card .go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--emerald-900);
  color: #fff;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  border: 0;
  width: fit-content;
  cursor: pointer;
}
.persona-card .go:hover { background: var(--emerald-700); text-decoration: none; }
@media (max-width: 800px) {
  .persona-grid { grid-template-columns: 1fr; }
}

/* ---------- owner band ---------- */
.owner-band {
  background: var(--cream-100);
  padding: 56px 24px;
}
.owner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  align-items: center;
}
.owner-copy h2 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 800;
  color: var(--emerald-900);
  letter-spacing: -0.5px;
}
.owner-copy p {
  margin: 0 0 22px;
  font-size: 16px;
  color: var(--ink-700);
}
.owner-copy .stats-row {
  display: flex;
  gap: 28px;
  margin: 0 0 22px;
  flex-wrap: wrap;
}
.owner-copy .stat .big {
  font-size: 22px;
  font-weight: 800;
  color: var(--emerald-900);
}
.owner-copy .stat .lab {
  font-size: 12px;
  color: var(--ink-700);
  font-weight: 600;
}
.owner-copy .cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.owner-copy .primary-btn {
  background: var(--emerald-900);
  color: #fff;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 15px;
  border: 0;
}
.owner-copy .primary-btn:hover { background: var(--emerald-700); text-decoration: none; }
.owner-copy .secondary-btn {
  background: transparent;
  color: var(--emerald-900);
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 15px;
  border: 1.5px solid var(--emerald-900);
}
.owner-mock {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.owner-mock .step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
}
.owner-mock .step:last-child { border-bottom: 0; }
.owner-mock .num {
  width: 28px; height: 28px;
  background: var(--emerald-900);
  color: var(--cream-100);
  border-radius: 50%;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.owner-mock .step .t { font-weight: 800; font-size: 14px; color: var(--ink-900); }
.owner-mock .step .s { font-size: 12px; color: var(--ink-500); margin-top: 2px; }
@media (max-width: 800px) {
  .owner-inner { grid-template-columns: 1fr; }
  .owner-copy h2 { font-size: 24px; }
}

/* ---------- brokers landing page ---------- */
.broker-hero {
  background:
    linear-gradient(135deg, rgba(20,33,27,0.92) 0%, rgba(27,94,71,0.88) 50%, rgba(61,123,95,0.82) 100%),
    url('https://images.unsplash.com/photo-1521791136064-7986c2920216?auto=format&fit=crop&w=1920&q=80') center/cover;
  color: #fff;
  padding: 72px 24px 80px;
}
.broker-hero .inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.broker-hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 7px 14px;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--cream-100);
}
.broker-hero h1 {
  font-size: 44px;
  margin: 0 0 16px;
  letter-spacing: -0.8px;
  line-height: 1.1;
  font-weight: 800;
}
.broker-hero p.sub {
  font-size: 17px;
  margin: 0 0 26px;
  opacity: 0.94;
  max-width: 540px;
}
.broker-hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.broker-hero .store-btn {
  background: #fff;
  color: var(--emerald-900);
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
}
.broker-hero .store-btn:hover { background: var(--cream-50); text-decoration: none; }
.broker-hero .ghost-btn {
  background: transparent;
  color: #fff;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 15px;
  border: 1.5px solid rgba(255,255,255,0.45);
}
.broker-hero .phone-mock {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 18px;
  padding: 24px;
  backdrop-filter: blur(8px);
}
.broker-hero .phone-mock .row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.broker-hero .phone-mock .row:last-child { border-bottom: 0; }
.broker-hero .phone-mock .row .icon {
  width: 36px; height: 36px;
  background: var(--cream-100);
  color: var(--emerald-900);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}
.broker-hero .phone-mock .row .t { font-weight: 800; font-size: 14px; }
.broker-hero .phone-mock .row .s { font-size: 12px; opacity: 0.8; }
@media (max-width: 800px) {
  .broker-hero .inner { grid-template-columns: 1fr; }
  .broker-hero h1 { font-size: 30px; }
}

/* ---------- pricing card ---------- */
.pricing-band { padding: 64px 0; }
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border: 2px solid var(--emerald-900);
  background: linear-gradient(180deg, var(--cream-50) 0%, var(--surface) 30%);
  box-shadow: var(--shadow);
  transform: scale(1.03);
}
.price-card .tier {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.price-card.featured .tier { color: var(--emerald-900); }
.price-card .recommended {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--emerald-900);
  color: var(--cream-100);
  padding: 5px 14px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
}
.price-card { position: relative; }
.price-card .price {
  font-size: 38px;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -1px;
}
.price-card .price .per {
  font-size: 14px;
  color: var(--ink-500);
  font-weight: 600;
  margin-left: 4px;
}
.price-card .tag-line {
  font-size: 13px;
  color: var(--ink-500);
  margin: 4px 0 18px;
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.price-card li {
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink-700);
}
.price-card li::before {
  content: "✓";
  color: var(--emerald-900);
  font-weight: 800;
  flex-shrink: 0;
  width: 18px;
}
.price-card li.muted { color: var(--ink-500); }
.price-card li.muted::before { content: "—"; color: var(--ink-300); }
.price-card .pc-btn {
  width: 100%;
  padding: 13px;
  border: 0;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
}
.price-card .pc-btn.primary { background: var(--emerald-900); color: #fff; }
.price-card .pc-btn.primary:hover { background: var(--emerald-700); text-decoration: none; }
.price-card .pc-btn.outline {
  background: transparent;
  color: var(--emerald-900);
  border: 1.5px solid var(--emerald-900);
}
@media (max-width: 800px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
}

/* ---------- broker benefits ---------- */
.benefit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 30px;
  align-items: center;
}
.benefit-row.reverse > div:first-child { order: 2; }
.benefit-row h3 {
  font-size: 24px;
  margin: 0 0 10px;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.4px;
}
.benefit-row p {
  font-size: 15px;
  color: var(--ink-700);
  margin: 0;
}
.benefit-row .visual {
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}
.benefit-row .visual .emoji {
  font-size: 60px;
  display: block;
  margin-bottom: 10px;
}
.benefit-row .visual .label {
  font-size: 14px;
  font-weight: 700;
  color: var(--emerald-900);
}
@media (max-width: 700px) {
  .benefit-row { grid-template-columns: 1fr; }
  .benefit-row.reverse > div:first-child { order: 0; }
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--emerald-900);
  font-weight: 800;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .ans {
  padding: 0 22px 18px;
  font-size: 14px;
  color: var(--ink-700);
  line-height: 1.7;
  margin: 0;
}

/* ---------- role picker modal (Owner vs Broker) ---------- */
.role-modal {
  max-width: 540px;
}
.role-modal .head { text-align: center; }
.role-modal .head h3 { font-size: 22px; }
.role-modal .head .sub { font-size: 14px; }
.role-pick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 20px 24px 28px;
}
@media (max-width: 480px) {
  .role-pick-grid { grid-template-columns: 1fr; }
}
.role-pick-card {
  background: var(--cream-25);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 22px 18px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
  text-align: left;
  text-decoration: none;
  color: inherit;
  display: block;
}
.role-pick-card:hover {
  border-color: var(--emerald-700);
  background: var(--cream-50);
  transform: translateY(-2px);
  text-decoration: none;
}
.role-pick-card .ic {
  font-size: 38px;
  line-height: 1;
  margin-bottom: 12px;
}
.role-pick-card .ttl {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink-900);
  margin-bottom: 4px;
}
.role-pick-card .desc {
  font-size: 13px;
  color: var(--ink-700);
  line-height: 1.5;
  margin: 0 0 12px;
}
.role-pick-card .arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--emerald-900);
  font-size: 13px;
  font-weight: 800;
}

/* ============================================================
   Autocomplete (locality search)
   Reusable across hero search, listings sidebar, lead modal,
   and post-property form. Wraps any <input> in .ac-wrap and
   appends an absolutely-positioned dropdown.
   ============================================================ */
.ac-wrap {
  position: relative;
}
.ac-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  max-height: 320px;
  overflow-y: auto;
  z-index: 110;
  box-shadow: var(--shadow);
  display: none;
}
.ac-dropdown.open { display: block; }
.ac-item {
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-900);
  border-bottom: 1px solid var(--cream-50);
}
.ac-item:last-child { border-bottom: 0; }
.ac-item:hover, .ac-item.ac-active {
  background: var(--cream-50);
}
.ac-item .ac-pin {
  color: var(--emerald-700);
  font-size: 14px;
  flex-shrink: 0;
}
.ac-item .ac-label {
  flex: 1;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ac-item .ac-label mark {
  background: rgba(31, 122, 77, 0.15);
  color: inherit;
  padding: 0;
  border-radius: 2px;
}
.ac-item .ac-area-hint {
  font-size: 11px;
  color: var(--ink-500);
  font-weight: 600;
  flex-shrink: 0;
}
.ac-empty {
  padding: 16px;
  text-align: center;
  color: var(--ink-500);
  font-size: 13px;
}
.ac-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cream-50);
  border: 0;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-700);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.ac-wrap.has-value .ac-clear { display: flex; }
/* When inside a small hero "field" cell, the dropdown should align
   with the field's outer edges, not the input itself. */
.search-box .field.ac-wrap {
  overflow: visible;
}
.search-box .field.ac-wrap .ac-dropdown {
  left: 0;
  right: 0;
  top: calc(100% + 6px);
}
