:root {
  /* Hama brand: the logo's sky blue and flame red on clean white. Shared by every Hama surface. */
  --sky: #00b8f0; --sky-dark: #0090bd; --sky-deep: #006f94; --sky-soft: #e6f7fd;
  --flame: #ff3018; --flame-dark: #d2230f; --flame-soft: #fff1ee;
  --ink: #10222b; --muted: #5d6f78; --paper: #ffffff; --wash: #f4f9fb; --soft: #e6f7fd; --line: #d9e6ec;
  --charcoal: #0e2f3f; --coral: #ff3018; --coral-dark: #d2230f; --green: #0090bd; --green-dark: #006f94; --blue: #00b8f0; --gold: #f59e0b; --rose: #d2230f; --ok: #1f8a5a; --amber: #b8791a;
  --shadow: 0 24px 70px rgba(16, 34, 43, .12); --shadow-soft: 0 12px 32px rgba(16, 34, 43, .08);
}

/* Classic House Hunt client-first skin */
/* (merged into the brand root above) */
body { background: var(--paper); color: var(--ink); }
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  padding: 34px clamp(18px, 5vw, 64px) 0;
  background: transparent;
  border: 0;
  color: #fff;
  backdrop-filter: none;
}
.brand span { display: none; }
.brand strong {
  color: rgba(255,255,255,.82);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 14px;
}
nav { gap: 10px; }
nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 8px;
  color: #fff;
  background: rgba(255,255,255,.08);
  font-size: 14px;
}
nav a:hover, nav a[href="#studio"], nav a[data-owner-admin]:hover {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}
main {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin: 0 auto 56px;
  padding: 0;
}
.hero {
  order: 1;
  width: 100%;
  min-height: 360px;
  display: block;
  padding: 92px clamp(18px, 5vw, 64px) 96px;
  background: linear-gradient(135deg, #0e2f3f 0%, #0090bd 46%, #f59e0b 100%);
  color: #fff;
}
.hero-copy { max-width: 1280px; }
.hero-copy .eyebrow {
  color: rgba(255,255,255,.78);
  font-size: 14px;
  letter-spacing: .08em;
}
.hero-copy h1 {
  margin: 18px 0 12px;
  max-width: none;
  font-size: clamp(56px, 8vw, 96px);
  line-height: .9;
  color: #fff;
}
.hero-copy p:not(.eyebrow) {
  max-width: 980px;
  color: rgba(255,255,255,.9);
  font-size: 22px;
}
.market-panel { display: none; }
.natural-search {
  max-width: 1000px;
  margin-top: 20px;
  box-shadow: 0 14px 36px rgba(14, 50, 40, .18);
}
.near-me-choice {
  max-width: 1000px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.near-me-button {
  min-height: 46px;
  padding: 0 20px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.34);
  background: rgba(255,255,255,.1);
}
.near-me-button:hover,
.near-me-button:focus-visible {
  background: var(--green);
  border-color: var(--green);
}
.near-me-button[disabled] {
  cursor: wait;
  opacity: .7;
}
.near-me-choice span {
  color: rgba(255,255,255,.82);
  font-size: 14px;
  font-weight: 750;
}
.search-assistant {
  max-width: 1000px;
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.13);
  color: #fff;
}
.search-assistant p { color: rgba(255,255,255,.82); }
.hero-actions {
  max-width: 820px;
  margin-top: 18px;
}
.hero-actions button,
.hero-actions .secondary {
  min-height: 44px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.36);
  background: rgba(255,255,255,.08);
}
.hero-actions button:first-child,
.hero-actions button[data-route="VACANT"] {
  background: var(--green);
  border-color: var(--green);
}
.trust-strip { order: 3; width: min(1440px, calc(100% - 64px)); margin: 24px auto 0; }
#media { order: 4; }
#hunt {
  order: 2;
  width: min(1440px, calc(100% - 64px));
  margin: -66px auto 0;
  display: block;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}
#studio { order: 5; }
#landlord { order: 6; }
#saved { order: 7; }
#inbox { order: 8; }
#profile { order: 9; }
#services { order: 10; }
.section-shell {
  width: min(1440px, calc(100% - 64px));
  margin-left: auto;
  margin-right: auto;
}
.filters {
  padding: 24px 28px 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.filters .section-title.compact {
  display: block;
  max-width: none;
  margin-bottom: 20px;
}
.filters .section-title.compact h2 {
  font-size: 30px;
}
.filters .section-title.compact p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
}
.filters form {
  position: static;
  display: grid;
  grid-template-columns: 1.35fr .8fr .85fr .68fr 1.05fr .78fr;
  gap: 14px;
  align-items: end;
}
.search-location-card {
  padding: 0;
  border: 0;
  background: transparent;
}
.search-location-card span,
label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}
.search-location-card small { display: none; }
.search-geo-card {
  grid-column: 1 / -1;
  padding: 0;
  border: 0;
  background: transparent;
}
.search-geo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.search-geo-actions button { min-width: 150px; }
.search-geo-actions button:first-child { background: var(--green); }
.search-geo-card small {
  display: inline-flex;
  margin-top: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fbfcfa;
}
.filters fieldset {
  grid-column: 1 / 5;
  align-self: stretch;
  background: transparent;
}
#searchForm > button[type="submit"] {
  grid-column: 5;
  min-height: 64px;
  background: var(--green);
}
#saveSearch {
  grid-column: 6;
  min-height: 64px;
  background: #fbfcfa;
  border: 1px solid var(--line);
  color: var(--green-dark);
}
.search-intel-panel {
  margin: 14px 0 0;
  border-color: var(--line);
  background: #fbfcfa;
}
.results-area {
  margin-top: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.results-toolbar strong { font-size: 28px; }
.segmented { background: #f7f8f4; }
.segmented button.active { background: var(--green-dark); }
.property-card { box-shadow: none; }
.profile-inbox-link { margin-top: 16px; width: max-content; }
.profile-saved-panel {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.profile-panel-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}
.profile-panel-title strong {
  font-size: 22px;
}
.profile-panel-title span {
  color: var(--muted);
}
.profile-action-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.profile-action-stack .secondary {
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  background: rgba(255,255,255,.08);
}

@media (max-width: 1080px) {
  .site-header { position: relative; padding: 18px; background: linear-gradient(135deg, #0e2f3f 0%, #0090bd 55%, #f59e0b 100%); }
  .hero { padding-top: 34px; }
  .filters form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters fieldset, #searchForm > button[type="submit"], #saveSearch { grid-column: auto; }
  .search-geo-card { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .site-header {
    position: relative;
    padding: 16px 12px 12px;
    background: linear-gradient(135deg, #0e2f3f 0%, #0090bd 55%, #f59e0b 100%);
  }
  nav { grid-template-columns: repeat(3, 1fr); background: transparent; border-color: rgba(255,255,255,.24); }
  nav a { display: grid; min-height: 40px; color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.24); }
  nav a[href="#media"], nav a[href="#saved"], nav a[href="#profile"] { display: grid; }
  .hero { padding: 30px 14px 86px; }
  .hero-copy h1 { font-size: 56px; max-width: none; }
  .hero-copy p:not(.eyebrow) { font-size: 18px; }
  #hunt, .section-shell, .trust-strip { width: min(100% - 18px, 1440px); }
  #hunt { margin-top: -56px; }
  .filters, .results-area { padding: 18px; }
  .filters .section-title.compact { display: block; }
  .filters form { grid-template-columns: 1fr; }
  .search-geo-actions { display: grid; grid-template-columns: 1fr; }
  .filters fieldset, #searchForm > button[type="submit"], #saveSearch { grid-column: 1; min-height: 48px; }
  .profile-inbox-link { width: 100%; }
  .profile-panel-title { display: grid; }
  .profile-action-stack { display: grid; }
  .profile-auth-actions { grid-template-columns: 1fr; }
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--wash);
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, .primary, .secondary, .import-button {
  border: 0;
  border-radius: 8px;
  min-height: 44px;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
button:hover, .primary:hover, .secondary:hover, .import-button:hover { transform: translateY(-1px); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(214, 95, 74, .28); outline-offset: 2px; }
button, .primary { background: var(--coral); color: #fff; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.secondary, .import-button { background: #eef3f5; color: var(--charcoal); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.hidden { display: none !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 32px;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(230, 223, 216, .9);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: max-content; }
.brand span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: var(--charcoal); color: #fff; font-weight: 900; }
.brand strong { letter-spacing: 0; }
nav { display: flex; align-items: center; justify-content: flex-end; gap: 18px; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-weight: 800; font-size: 14px; }
nav a:hover { color: var(--ink); }

main { width: min(1240px, calc(100% - 32px)); margin: 0 auto 56px; }
.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  gap: 34px;
  align-items: center;
  padding: 56px 0 28px;
}
.hero-copy h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: .96;
  letter-spacing: 0;
}
.hero-copy p:not(.eyebrow) { max-width: 710px; color: var(--muted); font-size: 19px; line-height: 1.55; }
.eyebrow { margin: 0 0 10px; color: var(--coral-dark); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0; }
.natural-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 790px;
  margin-top: 26px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.natural-search input { min-height: 54px; font-size: 16px; border: 0; background: transparent; }
.natural-search button { min-width: 120px; }
.search-assistant {
  display: grid;
  gap: 8px;
  max-width: 790px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(45, 109, 89, .18);
  border-radius: 8px;
  background: rgba(238, 247, 242, .86);
  color: #0e2f3f;
}
.search-assistant strong { font-size: 14px; }
.search-assistant p { margin: 0; color: #006f94; font-size: 13px; }
.search-chips, #searchIntelList { display: flex; flex-wrap: wrap; gap: 6px; }
.search-chips span, #searchIntelList span {
  border-radius: 999px;
  background: #fff;
  color: var(--charcoal);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(45, 109, 89, .16);
}
.route-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.route-row button { min-height: 38px; padding: 0 12px; color: var(--charcoal); background: #e6f7fd; }
.route-row button:hover { background: var(--charcoal); color: #fff; }
.auth-panel {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, .7fr) repeat(4, auto);
  gap: 10px;
  max-width: 980px;
  margin-top: 16px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow-soft);
}
.auth-panel input { min-height: 46px; }
.auth-panel small { grid-column: 1 / -1; color: var(--muted); font-weight: 750; }
.auth-panel button { min-width: 104px; padding: 0 12px; }
.auth-progress {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.auth-progress span {
  min-height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.auth-progress span.active {
  border-color: rgba(45, 109, 89, .28);
  background: #e6f7fd;
  color: #0e2f3f;
}
.auth-help {
  grid-column: 1 / -1;
  padding: 9px 10px;
  border-radius: 8px;
  background: #f4f9fb;
  color: #785f51;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}
.account-type-picker {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(45, 109, 89, .18);
  background: #f4f9fb;
}
.account-type-picker legend {
  padding: 0 4px;
  color: #0e2f3f;
}
.account-type-picker label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--charcoal);
  font-weight: 900;
}
.private-workspace-badge {
  display: inline-flex;
  align-items: center;
  max-width: 690px;
  min-height: 40px;
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(45, 109, 89, .22);
  border-radius: 8px;
  background: #e6f7fd;
  color: #0e2f3f;
  font-size: 13px;
  font-weight: 850;
}
.market-panel {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.market-panel img { width: 100%; height: 440px; object-fit: cover; display: block; }
.market-card-body { display: grid; gap: 10px; padding: 18px; }
.market-card-body strong { font-size: 24px; }
.market-card-body p { color: var(--muted); margin: 0; }
.market-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 8px; }
.market-metrics span { display: grid; gap: 2px; padding: 10px; border-radius: 8px; background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 800; }
.market-metrics b { color: var(--ink); font-size: 24px; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow-soft);
}
.trust-strip article { display: grid; gap: 6px; min-height: 118px; padding: 18px; background: #fff; }
.trust-strip strong { font-size: 17px; }
.trust-strip span { color: var(--muted); line-height: 1.42; }

.section-shell, .workspace {
  margin-top: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  scroll-margin-top: 96px;
}
.section-shell { padding: 30px; }
.section-title { max-width: 790px; margin-bottom: 22px; }
.section-title.compact { margin-bottom: 16px; }
h2 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 44px); line-height: 1.08; letter-spacing: 0; }
p { line-height: 1.5; }
.section-title p:not(.eyebrow), .split > div > p { color: var(--muted); }

input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
}
textarea { min-height: 96px; resize: vertical; padding-top: 10px; }
label { display: grid; gap: 7px; color: var(--muted); font-weight: 800; font-size: 13px; }
fieldset {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  background: #fff;
}
fieldset legend { color: var(--muted); font-weight: 900; font-size: 13px; }
fieldset label { display: inline-flex; align-items: center; gap: 6px; }
fieldset input { width: auto; min-height: auto; }
#searchForm fieldset {
  align-items: start;
}
#searchForm fieldset legend {
  pointer-events: none;
}
#searchForm fieldset label {
  position: relative;
  z-index: 1;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--charcoal);
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
}
#searchForm input[type="checkbox"] {
  position: relative;
  z-index: 2;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  flex: 0 0 22px;
  margin: 0;
  accent-color: var(--green);
}
#searchForm input,
#searchForm select,
#searchForm button {
  scroll-margin-bottom: 180px;
}

.workspace { display: grid; grid-template-columns: 330px minmax(0, 1fr); align-items: stretch; overflow: hidden; }
.filters { padding: 22px; background: #fff; border-right: 1px solid var(--line); }
.filters form { display: grid; gap: 12px; position: sticky; top: 94px; }
.search-location-card {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(45, 109, 89, .22);
  border-radius: 8px;
  background: #e6f7fd;
}
.search-location-card span {
  color: #0e2f3f;
  font-size: 17px;
  font-weight: 950;
}
.search-location-card small {
  color: #006f94;
  font-weight: 760;
  line-height: 1.35;
}
.search-location-card input {
  border-color: rgba(45, 109, 89, .28);
  background: #fff;
}
.search-geo-card {
  display: grid;
  gap: 7px;
  padding: 10px 12px;
  border: 1px dashed rgba(49, 95, 123, .34);
  border-radius: 8px;
  background: #f5f9fb;
}
.search-geo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.search-geo-actions button:first-child {
  background: var(--blue);
}
.search-geo-actions button {
  min-height: 42px;
}
.search-geo-card small {
  color: #315f7b;
  font-weight: 800;
  line-height: 1.35;
}
.search-intel-panel {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(188, 82, 58, .18);
  border-radius: 8px;
  background: #f4f9fb;
}
.search-intel-panel strong { color: var(--charcoal); font-size: 14px; }
.search-intel-panel small { color: var(--muted); line-height: 1.35; }
.results-area { padding: 22px; min-width: 0; }
.results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.results-toolbar strong { display: block; font-size: 22px; }
.results-toolbar small { display: block; color: var(--muted); margin-top: 4px; }
.segmented { position: relative; display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: #f7f4f0; }
.segmented button { position: relative; z-index: 2; min-height: 36px; padding: 0 12px; background: transparent; color: var(--muted); scroll-margin-bottom: 180px; }
.segmented button.active { background: var(--charcoal); color: #fff; }

.property-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.property-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-soft); }
.image-button { position: relative; display: block; width: 100%; height: 255px; padding: 0; border-radius: 0; background: #d9e6ec; overflow: hidden; }
.image-button img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .24s ease; }
.property-card:hover .image-button img { transform: scale(1.035); }
.image-button span, .gallery-tile span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  border-radius: 999px;
  background: rgba(24, 20, 17, .82);
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}
.property-body { padding: 16px; display: grid; gap: 10px; }
.property-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.property-top strong { font-size: 19px; line-height: 1.2; }
.property-top span { flex: 0 0 auto; border-radius: 999px; background: #e6f7fd; color: #0e2f3f; padding: 5px 9px; font-size: 12px; font-weight: 900; }
.property-body p, .property-body small { color: var(--muted); margin: 0; }
.poster-card-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}
.poster-card-controls button { min-height: 38px; }
.danger {
  border-color: rgba(188, 82, 58, .32) !important;
  color: #8b2f23 !important;
  background: #fff5f1 !important;
}
.property-kind { color: #006f94 !important; font-weight: 900; }
.near-me-distance {
  display: inline-flex;
  width: fit-content;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--green-dark);
  background: #e7f2ec;
  font-weight: 900;
}
.feature-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.feature-row b { background: #eef3f5; color: var(--charcoal); border-radius: 999px; padding: 5px 8px; font-size: 12px; }
.match { color: var(--coral-dark) !important; font-weight: 900; }
.match-gap { color: #785f51 !important; font-weight: 800; }
.match-meter {
  overflow: hidden;
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: #eee4db;
}
.match-meter b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--coral));
}
.card-actions { display: grid; grid-template-columns: 1fr 104px 92px; gap: 8px; margin-top: 4px; }
.card-actions button { min-height: 40px; padding: 0 10px; }

.map-workspace { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(320px, .72fr); gap: 14px; align-items: stretch; }
.map-frame { position: sticky; top: 92px; min-height: 660px; }
.map-view { position: relative; min-height: 660px; height: min(72vh, 760px); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: linear-gradient(145deg, #dfd8ce 0%, #f8f5f0 48%, #e6eee8 100%); box-shadow: var(--shadow-soft); }
.map-view::before { content: ''; position: absolute; inset: 14px; border: 1px solid rgba(36,31,28,.12); border-radius: 8px; background: linear-gradient(90deg, rgba(36,31,28,.08) 1px, transparent 1px), linear-gradient(rgba(36,31,28,.08) 1px, transparent 1px); background-size: 76px 76px; }
.map-view.leaflet-container::before { content: none; }
.map-view button { position: absolute; z-index: 2; display: grid; gap: 2px; min-height: 48px; padding: 7px 10px; background: var(--charcoal); color: #fff; box-shadow: var(--shadow-soft); }
.map-view button span { font-size: 11px; color: #e8ded5; }
.map-view.leaflet-container, .listing-map-picker.leaflet-container { font-family: inherit; }
.hama-price-pin-shell { border: 0; background: transparent; }
.hama-price-pin {
  position: static !important;
  display: inline-grid !important;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px !important;
  min-height: 36px !important;
  min-width: 82px;
  padding: 0 9px !important;
  border: 2px solid rgba(255,255,255,.96);
  border-radius: 999px;
  background: #fff !important;
  color: var(--green-dark) !important;
  box-shadow: 0 9px 24px rgba(24,20,17,.24) !important;
  font-weight: 950;
  cursor: pointer;
}
.hama-price-pin span { display: inline-grid; place-items: center; min-width: 28px; height: 22px; border-radius: 999px; background: #e6f7fd; color: var(--green-dark) !important; font-size: 11px !important; }
.hama-price-pin.active { background: var(--coral) !important; color: #fff !important; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(154, 53, 39, .28) !important; }
.hama-price-pin.active span { background: rgba(255,255,255,.22); color: #fff !important; }
.map-search-area {
  position: absolute;
  z-index: 590;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  min-height: 42px;
  padding: 0 18px;
  background: var(--green-dark);
  color: #fff;
  box-shadow: 0 12px 34px rgba(24,20,17,.24);
}
.map-visible-summary {
  position: absolute;
  z-index: 590;
  left: 14px;
  right: 14px;
  bottom: 14px;
  width: max-content;
  max-width: calc(100% - 28px);
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(24,20,17,.14);
}
.map-popup { display: grid; gap: 6px; min-width: 210px; max-width: 250px; }
.map-popup img {
  width: 100%;
  height: 116px;
  object-fit: cover;
  border-radius: 8px;
  background: #d9e6ec;
}
.map-popup strong { font-size: 15px; line-height: 1.2; }
.map-popup span { color: var(--muted); font-size: 12px; }
.map-popup-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.map-popup button { position: static; width: 100%; min-height: 34px; margin-top: 4px; padding: 0 10px; }
.map-listing-tray { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 660px; max-height: min(72vh, 760px); border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; box-shadow: var(--shadow-soft); }
.map-tray-head { display: grid; gap: 4px; padding: 14px; border-bottom: 1px solid var(--line); }
.map-tray-head strong { font-size: 18px; }
.map-tray-head small { color: var(--muted); font-weight: 800; }
.map-listing-stack { overflow: auto; display: grid; align-content: start; gap: 10px; padding: 12px; }
.map-tray-card { border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.map-tray-card.selected, .property-card.selected { border-color: rgba(214,95,74,.72); box-shadow: 0 12px 34px rgba(214,95,74,.16); }
.map-tray-main { position: static; width: 100%; min-height: auto; padding: 0; border-radius: 0; display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 10px; background: #fff; color: var(--ink); text-align: left; box-shadow: none; }
.map-tray-main img { width: 118px; height: 96px; object-fit: cover; display: block; }
.map-tray-main span { min-width: 0; display: grid; align-content: center; gap: 4px; padding: 9px 10px 9px 0; color: var(--ink); }
.map-tray-main strong, .map-tray-main small, .map-tray-main em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-tray-main small { color: var(--muted); font-weight: 900; }
.map-tray-main em { color: var(--green-dark); font-size: 12px; font-style: normal; font-weight: 900; }
.map-tray-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 10px 10px; }
.map-tray-actions button { min-height: 36px; }
.map-empty { display: grid; place-items: center; min-height: 520px; padding: 24px; text-align: center; color: var(--muted); }
.compare-view { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.compare-view table { width: 100%; border-collapse: collapse; background: #fff; }
.compare-view th, .compare-view td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-view th { background: #f5f1ed; color: var(--charcoal); font-size: 13px; }
.compare-view button { min-height: 36px; }

.media-showcase { overflow: hidden; }
.media-experience { display: grid; grid-template-columns: minmax(0, 1.35fr) 330px; gap: 16px; align-items: stretch; }
.media-hero-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); min-height: 430px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow-soft); }
.spotlight-image { min-height: 430px; width: 100%; border-radius: 0; background-size: cover; background-position: center; padding: 0; }
.media-hero-copy { display: grid; align-content: center; gap: 12px; padding: 28px; }
.media-hero-copy span, .tour-main aside span { width: max-content; border-radius: 999px; background: #e6f7fd; color: #0e2f3f; padding: 5px 9px; font-size: 12px; font-weight: 900; }
.media-hero-copy h3, .tour-main h3 { margin: 0; font-size: clamp(26px, 4vw, 42px); line-height: 1.05; letter-spacing: 0; }
.media-hero-copy p { color: var(--muted); margin: 0; }
.media-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.media-side-panel { display: grid; align-content: start; gap: 12px; border: 1px solid var(--line); border-radius: 8px; background: #ffffff; padding: 18px; }
.media-side-panel strong { font-size: 20px; }
.media-side-panel ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.media-side-panel li { display: grid; grid-template-columns: 72px 1fr; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }
.media-side-panel li span { display: grid; place-items: center; min-height: 26px; border-radius: 999px; font-size: 11px; font-weight: 900; }
.media-side-panel li.done span { background: #e6f7fd; color: #0e2f3f; }
.media-side-panel li.todo span { background: #f9ead7; color: #8b5a13; }
.media-side-panel small { color: var(--muted); }
.media-gallery { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-auto-rows: 168px; gap: 10px; margin-top: 16px; }
.gallery-tile { position: relative; overflow: hidden; min-height: auto; padding: 0; border-radius: 8px; background: #d9e6ec; }
.gallery-tile.large { grid-row: span 2; }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .22s ease; }
.gallery-tile:hover img { transform: scale(1.035); }
.room-tour { display: grid; grid-template-columns: repeat(6, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.room-tour article { min-width: 150px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.room-tour img { width: 100%; height: 104px; object-fit: cover; display: block; }
.room-tour div { display: grid; gap: 4px; padding: 9px; }
.room-tour strong { font-size: 13px; }
.room-tour small { color: var(--muted); }

.studio-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; }
.studio-grid .wide, .wide { grid-column: 1 / -1; }
.studio-grid.is-disabled {
  opacity: .58;
}
.poster-gate {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid rgba(188, 82, 58, .2);
  border-radius: 8px;
  background: #f4f9fb;
  color: var(--charcoal);
}
.poster-gate p { margin: 0; color: var(--muted); }
.poster-gate .primary { display: inline-grid; place-items: center; width: fit-content; min-height: 40px; padding: 0 14px; border-radius: 8px; background: var(--green); color: #fff; text-decoration: none; font-weight: 950; }
.media-studio { display: grid; grid-template-columns: .9fr 1.1fr; gap: 16px; align-items: start; border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: #ffffff; }
.media-studio strong { display: block; margin-bottom: 0; }
.studio-panel-heading { display: flex; justify-content: space-between; gap: 12px; align-items: start; margin-bottom: 10px; }
.studio-panel-heading span { color: var(--muted); font-size: 12px; font-weight: 900; text-align: right; }
.photo-studio-panel { min-width: 0; }
.location-picker { display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: #ffffff; }
.picker-copy { display: grid; gap: 4px; }
.picker-copy strong { font-size: 18px; }
.picker-copy p { margin: 0; color: var(--muted); }
.picker-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.listing-map-picker { min-height: 360px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #efe9e1; }
#locationPinStatus { color: var(--muted); font-weight: 800; }
.photo-preview { min-height: 168px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-content: start; }
.thumb { display: grid; padding: 0; overflow: hidden; background: #fff; color: var(--ink); border: 2px solid transparent; min-height: 132px; }
.thumb.active { border-color: var(--coral); }
.thumb img { width: 100%; height: 96px; object-fit: cover; }
.thumb span { display: grid; place-items: center; min-height: 34px; font-size: 12px; font-weight: 900; }
.recorder { display: grid; gap: 10px; }
.recorder-stage {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #10222b;
}
#cameraPreview,
#recordedPreview {
  width: 100%;
  height: 100%;
  min-height: 340px;
  max-height: 520px;
  display: block;
  object-fit: cover;
  background: #10222b;
}
.studio-empty-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: rgba(255,255,255,.82);
  text-align: center;
  font-weight: 800;
  background: radial-gradient(circle at center, rgba(255,255,255,.09), transparent 58%);
  pointer-events: none;
}
.recording-timer {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--rose);
  font-weight: 950;
  box-shadow: 0 12px 30px rgba(0,0,0,.24);
}
.recorder-actions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.recorder-actions button:nth-child(2) { background: var(--blue); }
.recorder-actions button:nth-child(3) { background: var(--rose); }
.upload-health { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; color: var(--muted); font-weight: 850; }
#mediaQualityScore { color: var(--green-dark); }
.media-checklist-studio { display: flex; flex-wrap: wrap; gap: 8px; }
.media-checklist-studio span { padding: 7px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; }
.media-checklist-studio .done { background: #e8f5ee; color: var(--green-dark); }
.media-checklist-studio .todo { background: #f8eadf; color: var(--coral-dark); }
#recordingStatus { color: var(--muted); }
.media-studio[data-studio-state="recording"] .recorder-stage { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(188,69,54,.12); }
.media-studio[data-studio-state="ready"] .recorder-stage,
.media-studio[data-studio-state="attached"] .recorder-stage { border-color: var(--green); }

.hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.hub-grid article { border: 1px solid var(--line); border-radius: 8px; padding: 16px; background: #fff; }
.hub-grid article > strong { display: block; margin-bottom: 10px; font-size: 18px; }
.hub-grid p { display: grid; gap: 4px; margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.hub-grid span, .hub-grid small { color: var(--muted); }
.hub-grid button { min-height: 36px; justify-self: start; }

.inbox-shell { background: #f8f6f3; }
.inbox-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; margin: -4px 0 16px; align-items: center; }
.inbox-tools input { min-height: 44px; background: #fff; }
.import-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
#conversationStatus { margin: 8px 0 0; color: var(--muted); font-weight: 700; }
.inbox-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr) 290px; gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow-soft); }
.thread-list { min-height: 600px; max-height: 760px; overflow: auto; padding: 8px; display: grid; align-content: start; gap: 6px; background: #fff; border-right: 1px solid var(--line); }
.thread { min-height: 82px; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 10px; align-items: center; justify-items: stretch; text-align: left; background: transparent; color: var(--ink); padding: 10px; }
.thread:hover { background: #f8f4f0; }
.thread.active { background: #e6f7fd; color: var(--ink); box-shadow: none; }
.thread-avatar { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--charcoal); color: #fff; font-weight: 900; }
.thread-avatar i { position: absolute; right: 0; bottom: 1px; width: 11px; height: 11px; border: 2px solid #fff; border-radius: 50%; background: #7a8a92; }
.thread-avatar i.online,
.presence-dot.online { background: #1f9d61; }
.thread-copy { min-width: 0; display: grid; gap: 3px; }
.thread-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-copy span, .thread-copy small, .thread-copy em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
.thread-copy em { font-style: normal; font-weight: 900; color: var(--coral-dark); }
.empty-thread { display: block; padding: 12px; color: var(--muted); }
.thread-panel { min-width: 0; overflow: hidden; background: #fff; display: grid; grid-template-rows: auto minmax(320px, 1fr) auto auto; }
.thread-header { display: grid; gap: 4px; padding: 15px 18px; background: #fff; font-weight: 900; border-bottom: 1px solid var(--line); }
.chat-title-row { display: grid; grid-template-columns: auto minmax(0, auto) minmax(0, 1fr); gap: 8px; align-items: center; }
.chat-title-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-title-row small { color: #1f6f4a; font-weight: 900; }
.presence-dot { width: 10px; height: 10px; border-radius: 50%; background: #7a8a92; box-shadow: 0 0 0 3px rgba(31,157,97,.1); }
.thread-header span { color: var(--muted); font-size: 12px; font-weight: 800; }
.privacy-route { display: block; color: var(--coral-dark); font-size: 11px; font-weight: 900; overflow-wrap: anywhere; }
.messages { min-height: 420px; max-height: 620px; overflow: auto; padding: 18px; display: grid; align-content: start; gap: 10px; background: linear-gradient(180deg, #fff 0%, #f4f9fb 100%); }
.message { max-width: min(78%, 620px); margin: 0; padding: 11px 13px; border-radius: 8px; background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 4px 16px rgba(24,20,17,.04); }
.message b { display: block; font-size: 12px; color: var(--coral-dark); margin-bottom: 4px; }
.message small { display: block; margin-top: 7px; color: inherit; opacity: .58; font-size: 11px; }
.message.you { justify-self: end; background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
.message.you b { color: #f6d8d0; }
.quick-replies { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 12px 12px; background: #fff; }
.quick-replies button { min-height: 34px; background: #eef3f5; color: var(--charcoal); padding: 0 11px; font-size: 13px; }
.message-form { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.attach-button { background: #eef3f5; color: var(--charcoal); padding: 0; font-size: 22px; }
.conversation-details { display: grid; align-content: start; gap: 12px; padding: 14px; background: #ffffff; border-left: 1px solid var(--line); }
.conversation-details img { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; }
.conversation-details strong { font-size: 18px; line-height: 1.2; }
.conversation-details p { margin: 0; color: var(--muted); }
.conversation-details .detail-price { color: var(--ink); font-size: 21px; font-weight: 900; }
.conversation-details .detail-actions { display: grid; gap: 8px; }
.recipient-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 8px; align-items: center; padding: 11px; border: 1px solid rgba(45,109,89,.18); border-radius: 8px; background: #e6f7fd; }
.recipient-card strong,
.recipient-card small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recipient-card small { grid-column: 2; color: #006f94; font-weight: 800; }

.quick-chat-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 130;
  width: min(420px, calc(100vw - 28px));
  pointer-events: none;
}
.quick-chat-card {
  pointer-events: auto;
  overflow: hidden;
  border: 1px solid rgba(36,31,28,.16);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 80px rgba(24, 20, 17, .24);
}
.quick-chat-header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: #e6f7fd;
  border-bottom: 1px solid rgba(45,109,89,.18);
}
.quick-chat-header img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}
.quick-chat-header span {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.quick-chat-header strong,
.quick-chat-header small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quick-chat-header small {
  color: #006f94;
  font-weight: 800;
}
.quick-chat-header button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}
.quick-chat-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  max-height: min(430px, 52vh);
  overflow: auto;
  padding: 14px;
  background: linear-gradient(180deg, #fff 0%, #f4f9fb 100%);
}
.quick-chat-replies {
  padding: 0 12px 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
}
.quick-chat-notice {
  display: block;
  padding: 9px 14px 0;
  color: var(--muted);
  font-weight: 800;
}
.quick-chat-form {
  grid-template-columns: minmax(0, 1fr) auto;
  border-top: 1px solid var(--line);
}

.os-pulse {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 125;
  width: min(360px, calc(100vw - 36px));
  display: grid;
  gap: 8px;
  pointer-events: none;
}
.os-pulse-toggle,
.os-pulse-panel {
  pointer-events: auto;
  border: 1px solid rgba(31, 107, 79, .24);
  box-shadow: 0 18px 60px rgba(24, 33, 31, .18);
}
.os-pulse-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 46px;
  padding: 0 13px;
  border-radius: 8px;
  color: #fff;
  background: var(--charcoal);
}
.os-pulse-toggle small { color: rgba(255,255,255,.76); font-weight: 850; }
.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #38d07d;
  box-shadow: 0 0 0 5px rgba(56, 208, 125, .18);
}
.os-pulse[data-backend="local_only"] .pulse-dot {
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(199, 152, 59, .2);
}
.os-pulse-panel {
  padding: 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
}
.os-pulse-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}
.os-pulse-grid article {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}
.os-pulse-grid strong,
.os-pulse-grid span {
  display: block;
  overflow-wrap: anywhere;
}
.os-pulse-grid span,
.os-pulse-panel small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.profile-auth-card { grid-column: 1 / -1; padding: 20px; border: 1px solid rgba(45, 109, 89, .18); border-radius: 8px; background: linear-gradient(135deg, #fff 0%, #ffffff 58%, #e6f7fd 100%); box-shadow: var(--shadow-soft); }
.profile-auth-card strong { display: block; font-size: 22px; margin-bottom: 6px; }
.profile-auth-card p { max-width: 820px; margin: 0; color: var(--muted); line-height: 1.5; }
.profile-auth-form { max-width: none; margin-top: 16px; box-shadow: none; background: rgba(255,255,255,.78); }
.profile-auth-form button[data-auth-action="signin"] { background: var(--green); }
.profile-auth-form small { min-height: 22px; color: #0e2f3f; }
.profile-auth-form .auth-help { background: #fff; color: #5d524b; border: 1px solid rgba(230, 223, 216, .72); }
.password-reset-card {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(31, 107, 79, .22);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.password-reset-card span {
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.password-reset-card strong {
  margin: 0;
  font-size: 24px;
}
.password-reset-card label {
  display: grid;
  gap: 8px;
  color: #0e2f3f;
}
.password-reset-card input {
  min-height: 52px;
  border-color: rgba(31, 107, 79, .24);
  background: #fbfcfa;
}
.password-reset-card button {
  width: 100%;
}
.password-reset-card .secondary {
  color: var(--green);
  background: #f5faf6;
  border: 1px solid rgba(31, 107, 79, .18);
}
.password-reset-card small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}
.password-reset-card[data-reset-state="expired"] {
  border-color: rgba(185, 71, 52, .34);
  background: #f4f9fb;
}
.google-auth-button {
  width: 100%;
  min-height: 54px;
  grid-column: 1 / -1;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.google-auth-button::before {
  content: "G";
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-right: 8px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #4285f4 0 25%, #34a853 25% 50%, #fbbc05 50% 75%, #ea4335 75%);
  font-weight: 950;
}
.auth-divider {
  position: relative;
  display: grid;
  grid-column: 1 / -1;
  place-items: center;
  margin: 4px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--line);
}
.auth-divider span {
  position: relative;
  padding: 0 10px;
  background: #fff;
}
.profile-auth-actions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.text-auth-button {
  grid-column: 1 / -1;
  min-height: 40px;
  color: var(--green-dark);
  background: transparent;
  border: 0;
  box-shadow: none;
}
.profile-auth-form [data-auth-signout] { grid-column: 1 / -1; width: 100%; }
.profile-auth-form.compact-hidden {
  display: none;
}
.signed-in-account-card {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(31, 107, 79, .18);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.signed-in-account-card > div:first-child {
  display: grid;
  gap: 5px;
}
.signed-in-account-card span {
  width: max-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e6f7fd;
  color: #14533e;
  font-size: 12px;
  font-weight: 950;
}
.signed-in-account-card strong {
  margin: 0;
  font-size: 22px;
}
.signed-in-account-card small {
  color: var(--muted);
  font-weight: 800;
}
.signed-in-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.signed-in-actions a,
.signed-in-actions button {
  min-height: 42px;
  padding: 0 14px;
}
.profile-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.profile-form label:nth-child(3), .profile-form button, .profile-form small { grid-column: 1 / -1; }
.profile-form select:disabled { background: #eef3f5; color: var(--muted); }
.profile-form small { color: var(--muted); font-weight: 800; }
.profile-close {
  display: none;
}
body.profile-workspace-open {
  overflow: hidden;
}
body.payment-workspace-open {
  overflow: hidden;
}
body.profile-workspace-open #profile.profile-shell,
body.payment-workspace-open #payments.payment-shell {
  position: fixed;
  z-index: 130;
  inset: 14px 14px 14px 112px;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 22px;
  overflow: auto;
  border: 1px solid rgba(220, 228, 222, .92);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.97), rgba(251,252,250,.97)),
    var(--wash);
  box-shadow: 0 30px 90px rgba(8, 31, 25, .24);
}
body.profile-workspace-open #profile .profile-close,
body.payment-workspace-open #payments .profile-close {
  position: sticky;
  top: 0;
  z-index: 3;
  display: inline-flex;
  float: right;
  min-height: 40px;
  margin: 0 0 10px 10px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
body.profile-workspace-open #profile .section-title {
  margin-bottom: 14px;
}
body.payment-workspace-open #payments .section-title {
  margin-bottom: 14px;
}
.poster-workspace {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(45, 109, 89, .18);
  border-radius: 8px;
  background: #f4f9fb;
}
.poster-listings { display: grid; gap: 10px; }
.poster-listing {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.poster-listing.is-taken { background: #f4f9fb; }
.poster-listing img {
  width: 92px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
}
.poster-listing div { min-width: 0; }
.poster-listing strong, .poster-listing span, .poster-listing small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poster-listing span, .poster-listing small { color: var(--muted); }
.poster-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.poster-actions button { min-height: 36px; padding: 0 10px; }
.landlord-shell {
  background: #f8fbf7;
}
.landlord-portal {
  display: grid;
  gap: 16px;
}
.landlord-overview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.landlord-overview article,
.landlord-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.landlord-overview article {
  padding: 16px;
}
.landlord-overview strong {
  display: block;
  color: var(--green);
  font-size: 24px;
  line-height: 1;
}
.landlord-overview span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 850;
}
.landlord-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}
.landlord-listings,
.rent-ledger-list,
.payment-request-list {
  display: grid;
  gap: 10px;
}
.landlord-listing,
.rent-item,
.payment-request {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.landlord-listing {
  grid-template-columns: 104px minmax(0, 1fr) auto;
}
.landlord-listing.is-taken,
.rent-item.overdue {
  background: #f4f9fb;
  border-color: #ecd1c7;
}
.rent-item.paid {
  background: #f0f8f2;
}
.landlord-listing img {
  width: 104px;
  height: 78px;
  object-fit: cover;
  border-radius: 8px;
}
.landlord-listing strong,
.landlord-listing span,
.landlord-listing small,
.rent-item strong,
.rent-item span,
.rent-item small,
.payment-request strong,
.payment-request span,
.payment-request small {
  display: block;
}
.landlord-listing span,
.landlord-listing small,
.rent-item span,
.rent-item small,
.payment-request span,
.payment-request small {
  color: var(--muted);
}
.landlord-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.landlord-actions button {
  min-height: 36px;
  padding: 0 10px;
}
.rent-ledger-form,
.landlord-support-form {
  display: grid;
  grid-template-columns: 1.2fr repeat(5, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(31, 107, 79, .16);
  border-radius: 8px;
  background: #f4f9fb;
}
.landlord-support-form {
  grid-template-columns: minmax(180px, .8fr) minmax(180px, .9fr) minmax(0, 2fr) auto;
}
.landlord-support-form .wide {
  grid-column: auto;
}
.landlord-support-form textarea {
  min-height: 44px;
  resize: vertical;
}
.rent-ledger-form button,
.landlord-support-form button {
  min-height: 44px;
  white-space: nowrap;
}
.privacy-panel { padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--charcoal); color: #fff; box-shadow: var(--shadow-soft); }
.privacy-panel strong { display: block; margin-bottom: 10px; font-size: 18px; }
.privacy-panel ul { display: grid; gap: 10px; margin: 0; padding-left: 18px; color: #efe6dc; line-height: 1.45; }

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.service-card { padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow-soft); }
.service-card span { color: var(--coral-dark); font-size: 12px; font-weight: 900; }
.service-card strong { display: block; margin: 8px 0; font-size: 20px; }
.service-card p { color: var(--muted); min-height: 76px; }
.service-card small { display: block; min-height: 50px; color: var(--blue); font-weight: 800; }
.service-card button { width: 100%; margin-top: 12px; background: #eef3f5; color: var(--charcoal); }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 22px 28px; color: var(--muted); border-top: 1px solid var(--line); background: #fff; }
.back-to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 115;
  min-width: 54px;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 14px 32px rgba(24, 33, 31, .24);
}
.back-to-top:hover {
  transform: translateY(-2px);
  background: var(--charcoal);
}

.tour-modal { position: fixed; inset: 0; z-index: 120; display: grid; grid-template-rows: auto minmax(0, 1fr); align-items: start; justify-items: center; gap: 10px; padding: 18px; background: rgba(24, 20, 17, .82); }
.tour-shell { position: relative; width: min(1180px, 96vw); max-height: calc(100vh - 92px); overflow: auto; border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.tour-close { justify-self: end; z-index: 140; margin: 0; min-width: 72px; background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-soft); pointer-events: auto; }
.tour-main { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 0; clear: both; }
.tour-primary { width: 100%; height: min(72vh, 680px); object-fit: cover; background: #10222b; }
.tour-main aside { display: grid; align-content: center; gap: 12px; padding: 24px; }
.tour-main aside p { margin: 0; color: var(--muted); }
.tour-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tour-video { margin: 0 18px 18px; padding: 16px; border-radius: 8px; background: #eef3f5; color: var(--charcoal); }
.tour-video p { margin: 6px 0 0; color: var(--muted); }
.tour-video video { display: block; width: 100%; max-height: 420px; margin-top: 10px; border-radius: 8px; background: #10222b; }
.tour-video a { display: inline-flex; margin-top: 10px; font-weight: 950; color: var(--blue); }
.tour-strip { display: grid; grid-template-columns: repeat(6, minmax(140px, 1fr)); gap: 10px; padding: 0 18px 18px; overflow-x: auto; }
.tour-strip button { display: grid; min-width: 140px; min-height: auto; padding: 0; overflow: hidden; background: #fff; color: var(--ink); border: 1px solid var(--line); }
.tour-strip img { width: 100%; height: 96px; object-fit: cover; }
.tour-strip span { padding: 8px; font-size: 12px; font-weight: 900; }

@media (max-width: 1080px) {
  .hero, .workspace, .map-workspace, .media-experience, .media-hero-card, .tour-main, .profile-grid, .inbox-layout { grid-template-columns: 1fr; }
  .auth-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-panel small { grid-column: 1 / -1; }
  .filters { border-right: 0; border-bottom: 1px solid var(--line); }
  .filters form { position: static; }
  .map-frame { position: relative; top: auto; min-height: 520px; }
  .map-view { min-height: 520px; height: 58vh; }
  .map-listing-tray { min-height: auto; max-height: none; }
  .property-grid, .service-grid, .hub-grid, .trust-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .studio-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .conversation-details { border-left: 0; border-top: 1px solid var(--line); }
  .thread-list { min-height: auto; max-height: 360px; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 720px) {
  body { padding-bottom: 0; }
  main { width: min(100% - 18px, 1240px); margin-bottom: 28px; }
  .site-header { position: sticky; padding: 12px 18px 10px; align-items: flex-start; flex-direction: column; gap: 10px; }
  .brand span { width: 36px; height: 36px; }
  .brand strong { font-size: 15px; }
  nav {
    position: static;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 7px;
    border: 1px solid rgba(230,223,216,.92);
    border-radius: 8px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 8px 24px rgba(24,20,17,.08);
    backdrop-filter: blur(18px);
  }
  nav a { min-height: 38px; display: grid; place-items: center; border-radius: 8px; font-size: 12px; background: #f7f3ef; color: var(--charcoal); }
  nav a[href="#media"], nav a[href="#saved"], nav a[href="#profile"] { display: none; }
  footer, .results-toolbar { align-items: flex-start; flex-direction: column; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 22px 0 16px; gap: 18px; }
  .hero-copy h1 { font-size: 40px; max-width: 380px; }
  .hero-copy p:not(.eyebrow) { font-size: 16px; }
  .market-panel img { height: 310px; }
  .natural-search, .auth-panel, .account-type-picker, .message-form, .card-actions, .recorder-actions, .property-grid, .service-grid, .hub-grid, .studio-grid, .photo-preview, .trust-strip, .profile-form, .inbox-tools { grid-template-columns: 1fr; }
  .poster-listing { grid-template-columns: 76px minmax(0, 1fr); }
  .poster-actions { grid-column: 1 / -1; justify-content: stretch; }
  .poster-actions button { flex: 1 1 120px; }
  .natural-search { padding: 8px; box-shadow: var(--shadow-soft); }
  .natural-search input { min-height: 48px; }
  .route-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .route-row button { min-height: 44px; padding: 0 10px; }
  .market-metrics { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .trust-strip article { min-height: auto; }
  .section-shell, .results-area, .filters { padding: 18px; }
  .workspace { border-radius: 8px; }
  .filters form { gap: 10px; }
  fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  fieldset legend { grid-column: 1 / -1; }
  .results-toolbar .segmented { order: 2; }
  .image-button { height: 235px; }
  .property-top { gap: 8px; }
  .property-top strong { font-size: 18px; }
  .card-actions { gap: 7px; }
  .map-workspace { gap: 10px; }
  .map-frame { min-height: 430px; }
  .map-view { min-height: 430px; height: 62vh; border-radius: 0; }
  .map-search-area { top: 10px; width: calc(100% - 28px); max-width: 360px; }
  .map-visible-summary { width: auto; border-radius: 8px; font-size: 12px; }
  .map-tray-main { grid-template-columns: 96px minmax(0, 1fr); }
  .map-tray-main img { width: 96px; height: 88px; }
  .message { max-width: 92%; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; }
  .media-gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-tile.large { grid-row: span 1; }
  .spotlight-image, .tour-primary { min-height: 300px; height: 320px; }
  .media-hero-copy { padding: 20px; }
  .media-studio { grid-template-columns: 1fr; }
  .listing-map-picker { min-height: 320px; }
  .picker-actions { display: grid; grid-template-columns: 1fr; }
  .recorder-stage,
  #cameraPreview,
  #recordedPreview { min-height: 260px; }
  .upload-health { grid-template-columns: 1fr; }
  .inbox-shell { padding: 18px 0 0; overflow: hidden; }
  .inbox-shell .section-title, .inbox-tools { padding: 0 18px; }
  .inbox-layout { border-left: 0; border-right: 0; border-radius: 0; box-shadow: none; }
  .thread-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(245px, 82vw);
    grid-template-columns: none;
    gap: 8px;
    min-height: auto;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 18px;
    scroll-snap-type: x proximity;
  }
  .thread { scroll-snap-align: start; min-height: 92px; border: 1px solid var(--line); background: #fff; }
  .thread.active { border-color: rgba(214,95,74,.45); }
  .thread-panel { grid-template-rows: auto minmax(300px, 58vh) auto auto; }
  .thread-header { padding: 14px 18px; }
  .messages { min-height: 300px; max-height: 58vh; padding: 14px; }
  .quick-replies { flex-wrap: nowrap; overflow-x: auto; padding: 0 14px 12px; }
  .quick-replies button { min-width: max-content; }
  .quick-chat-dock {
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
  }
  .quick-chat-header {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }
  .quick-chat-header img {
    width: 42px;
    height: 42px;
  }
  .quick-chat-header [data-open-full-inbox] {
    display: none;
  }
  .quick-chat-messages {
    max-height: 48vh;
  }
  .message-form { position: sticky; bottom: 0; z-index: 10; background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -8px 22px rgba(24,20,17,.06); }
  .message-form input { min-height: 46px; }
  .conversation-details { padding: 18px; }
  .conversation-details img { height: 210px; }
  .profile-grid { grid-template-columns: 1fr; }
  .tour-modal { padding: 10px; }
  .tour-shell { width: 100%; max-height: 94vh; }
  .tour-strip { grid-template-columns: repeat(6, minmax(128px, 1fr)); padding: 0 12px 12px; }
}

/* Final classic visual layer: keep product features, restore the preferred House Hunt look. */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  padding: 34px clamp(18px, 5vw, 64px) 0;
  background: transparent;
  border: 0;
  color: #fff;
  backdrop-filter: none;
}
.brand span { display: none; }
.brand strong {
  color: rgba(255,255,255,.82);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 14px;
}
.site-header nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.site-header nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 8px;
  color: #fff;
  background: rgba(255,255,255,.08);
  font-size: 14px;
}
.site-header nav a[href="#studio"] {
  background: var(--green);
  border-color: var(--green);
}
main {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin: 0 auto 56px;
  padding: 0;
}
.hero {
  order: 1;
  width: 100%;
  min-height: 640px;
  display: block;
  padding: 98px clamp(18px, 5vw, 64px) 124px;
  background-image:
    linear-gradient(90deg, rgba(8, 31, 25, .92) 0%, rgba(16, 58, 47, .78) 42%, rgba(16, 58, 47, .28) 70%, rgba(8, 31, 25, .14) 100%),
    linear-gradient(180deg, rgba(8, 31, 25, .18), rgba(8, 31, 25, .5)),
    url('assets/hama-client-advisor-hero-20260905.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  color: #fff;
}
.hero-copy {
  width: min(1280px, 100%);
  margin: 0 auto;
}
.hero-copy .eyebrow {
  color: rgba(255,255,255,.78);
  font-size: 14px;
  letter-spacing: .08em;
}
.hero-copy h1 {
  margin: 18px 0 12px;
  max-width: 760px;
  font-size: clamp(58px, 7.2vw, 104px);
  line-height: .88;
  color: #fff;
  text-wrap: balance;
}
.hero-copy p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255,255,255,.94);
  font-size: 22px;
  line-height: 1.42;
  text-shadow: 0 2px 22px rgba(8,31,25,.42);
}
.hero .market-panel { display: none; }
.hero .auth-panel,
.hero .private-workspace-badge {
  display: none;
}
.hero .natural-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: min(740px, 100%);
  margin-top: 28px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 18px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 22px 56px rgba(8, 31, 25, .28);
}
.hero .natural-search input {
  color: var(--ink);
  background: transparent;
}
.hero .natural-search button {
  min-width: 150px;
  border-radius: 14px;
  background: var(--green);
}
.hero .search-assistant {
  display: block;
  width: min(740px, 100%);
  margin-top: 12px;
  border-color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
  color: var(--ink);
}
.hero .search-assistant p,
.hero .search-assistant strong {
  color: var(--ink);
}
.hero-actions {
  width: min(740px, 100%);
  margin-top: 18px;
  margin-left: 0;
  justify-content: flex-start;
}
.hero-actions button,
.hero-actions .secondary {
  min-height: 54px;
  padding: 0 24px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.36);
  background: rgba(255,255,255,.08);
  font-size: 16px;
}
.hero-actions button[data-route="VACANT"] {
  background: var(--green);
  border-color: var(--green);
}
#hunt {
  order: 2;
  width: min(1440px, calc(100% - 64px));
  margin: -82px auto 0;
  display: block;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.trust-strip { order: 3; width: min(1440px, calc(100% - 64px)); margin: 24px auto 0; }
#media { order: 4; }
#studio { order: 5; }
#landlord { order: 6; }
#saved { order: 7; }
#inbox { order: 8; }
#profile { order: 9; }
#services { order: 10; }
.section-shell {
  width: min(1440px, calc(100% - 64px));
  margin-left: auto;
  margin-right: auto;
}
.filters {
  padding: 24px 28px 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.filters .section-title.compact {
  display: block;
  max-width: none;
  margin-bottom: 20px;
}
.filters .section-title.compact h2 { font-size: 30px; }
.filters .section-title.compact p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
}
.filters form {
  position: static;
  display: grid;
  grid-template-columns: 1.35fr .8fr .85fr .68fr 1.05fr .78fr;
  gap: 14px;
  align-items: end;
}
.search-location-card {
  padding: 0;
  border: 0;
  background: transparent;
}
.search-location-card span,
label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}
.search-location-card small { display: none; }
.search-geo-card {
  grid-column: 1 / -1;
  padding: 0;
  border: 0;
  background: transparent;
}
.search-geo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.search-geo-actions button { min-width: 150px; }
.search-geo-actions button:first-child { background: var(--green); }
.search-geo-card small {
  display: inline-flex;
  margin-top: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fbfcfa;
}
.filters fieldset {
  grid-column: 1 / 5;
  align-self: stretch;
  background: transparent;
}
#searchForm > button[type="submit"] {
  grid-column: 5;
  min-height: 64px;
  background: var(--green);
}
#saveSearch {
  grid-column: 6;
  min-height: 64px;
  background: #fbfcfa;
  border: 1px solid var(--line);
  color: var(--green-dark);
}
.search-intel-panel {
  margin: 14px 0 0;
  border-color: var(--line);
  background: #fbfcfa;
}
.results-area {
  margin-top: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.results-toolbar strong { font-size: 28px; }
.segmented { background: #f7f8f4; }
.segmented button.active { background: var(--green-dark); }
.property-card { box-shadow: none; }
.profile-inbox-link { margin-top: 16px; width: max-content; }

@media (max-width: 1080px) {
  .site-header {
    position: relative;
    padding: 18px;
    background: linear-gradient(135deg, #0e2f3f 0%, #0090bd 55%, #f59e0b 100%);
  }
  .hero { padding-top: 34px; }
  .filters form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters fieldset, #searchForm > button[type="submit"], #saveSearch { grid-column: auto; }
  .search-geo-card { grid-column: 1 / -1; }
  .landlord-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rent-ledger-form,
  .landlord-support-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landlord-support-form .wide { grid-column: 1 / -1; }
  .rent-ledger-form button,
  .landlord-support-form button { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .site-header {
    position: relative;
    padding: 16px 12px 12px;
    background: linear-gradient(135deg, #0e2f3f 0%, #0090bd 55%, #f59e0b 100%);
  }
  .site-header nav {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 7px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
  }
  .site-header nav a,
  .site-header nav a[href="#media"],
  .site-header nav a[href="#saved"],
  .site-header nav a[href="#profile"] {
    display: grid;
    min-height: 40px;
    color: #fff;
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.24);
  }
  .hero { padding: 30px 14px 86px; }
  .hero-copy h1 { font-size: 56px; max-width: none; }
  .hero-copy p:not(.eyebrow) { font-size: 18px; }
  .hero-actions { margin-left: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
  #hunt, .section-shell, .trust-strip { width: min(100% - 18px, 1440px); }
  #hunt { margin-top: -56px; }
  .filters, .results-area { padding: 18px; }
  .filters .section-title.compact { display: block; }
  .filters form { grid-template-columns: 1fr; }
  .search-geo-actions { display: grid; grid-template-columns: 1fr; }
  .filters fieldset, #searchForm > button[type="submit"], #saveSearch { grid-column: 1; min-height: 48px; }
  .profile-inbox-link { width: 100%; }
  .landlord-overview,
  .rent-ledger-form,
  .landlord-support-form,
  .landlord-listing,
  .rent-item,
  .payment-request {
    grid-template-columns: 1fr;
  }
  .landlord-listing img {
    width: 100%;
    height: 190px;
  }
  .landlord-actions {
    justify-content: stretch;
  }
  .landlord-actions button {
    flex: 1 1 140px;
  }

  .payment-trust-grid {
    grid-template-columns: 1fr;
  }

  .protected-payment-card {
    grid-template-columns: 1fr;
  }

  .protected-payment-card img {
    width: 100%;
    height: 190px;
  }
}

/* Zillow-effect Hama marketplace polish: distinct brand, search-first, left rail */
body {
  background:
    radial-gradient(circle at 18% 0%, rgba(199, 152, 59, .12), transparent 32%),
    linear-gradient(180deg, #f8faf7 0%, #eef3ee 100%);
}

.client-rail {
  position: fixed;
  inset: 16px auto 16px 16px;
  z-index: 80;
  width: 82px;
  display: grid;
  grid-template-rows: auto repeat(7, minmax(58px, auto));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(220, 228, 222, .86);
  border-radius: 18px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 24px 80px rgba(15, 35, 28, .14);
  backdrop-filter: blur(18px);
}

.client-rail a,
.client-rail button {
  min-height: 58px;
  width: 100%;
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 8px 4px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #31433d;
  text-decoration: none;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.client-rail a:hover,
.client-rail button:hover,
.client-rail a:focus-visible,
.client-rail button:focus-visible {
  color: #fff;
  background: #0090bd;
  outline: none;
}

.rail-brand {
  min-height: 62px;
  background: linear-gradient(145deg, #0e2f3f, #0090bd) !important;
  color: #fff !important;
}

.rail-brand span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  font-size: 25px;
  font-weight: 950;
}

.rail-icon {
  position: relative;
  width: 24px;
  height: 24px;
  display: block;
  color: currentColor;
}

.rail-search::before {
  content: "";
  position: absolute;
  inset: 3px 6px 7px 3px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.rail-search::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 9px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
}

.rail-tour::before {
  content: "";
  position: absolute;
  inset: 5px 3px;
  border: 3px solid currentColor;
  border-radius: 6px;
}

.rail-tour::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  border-left: 8px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.rail-post::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 3px solid currentColor;
  border-radius: 7px;
}

.rail-post::after {
  content: "+";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 900;
}

.rail-owner::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 3px;
  height: 14px;
  border: 3px solid currentColor;
  border-top: 0;
  border-radius: 0 0 5px 5px;
}

.rail-owner::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-left: 3px solid currentColor;
  border-top: 3px solid currentColor;
  transform: rotate(45deg);
}

.rail-profile::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 10px;
  height: 10px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.rail-profile::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 4px;
  height: 9px;
  border: 3px solid currentColor;
  border-radius: 999px 999px 4px 4px;
}

.rail-pay::before {
  content: "";
  position: absolute;
  inset: 5px 3px;
  border: 3px solid currentColor;
  border-radius: 6px;
}

.rail-pay::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  top: 11px;
  height: 3px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor;
}

.rail-services::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 3px solid currentColor;
  border-radius: 5px;
  box-shadow: 9px 9px 0 -4px currentColor, -9px 9px 0 -4px currentColor;
}

.rail-admin::before {
  content: "";
  position: absolute;
  inset: 4px 3px;
  border: 3px solid currentColor;
  border-radius: 6px;
}

.rail-admin::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  top: 9px;
  height: 3px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor;
}

main {
  padding-left: 112px;
}

#home.hero {
  min-height: 720px;
  display: block;
  padding: 92px 72px 136px 0;
  background-image:
    linear-gradient(90deg, rgba(8, 31, 25, .94) 0%, rgba(13, 53, 42, .84) 38%, rgba(13, 53, 42, .42) 68%, rgba(8, 31, 25, .08) 100%),
    linear-gradient(180deg, rgba(8, 31, 25, .12), rgba(8, 31, 25, .52)),
    url('assets/hama-client-advisor-hero-20260905.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  color: #fff;
}

#home .hero-copy {
  width: 100%;
  max-width: 760px;
  margin: 0;
}

#home .hero-copy h1 {
  max-width: 720px;
  margin: 0 0 16px;
  color: #fff;
  font-size: 86px;
  line-height: .9;
  text-shadow: 0 7px 34px rgba(8,31,25,.38);
}

#home .hero-copy .eyebrow {
  color: rgba(255,255,255,.84);
}

#home .hero-copy p:not(.eyebrow) {
  max-width: 640px;
  color: rgba(255,255,255,.94);
  font-size: 21px;
  text-shadow: 0 3px 22px rgba(8,31,25,.42);
}

#home .natural-search {
  width: min(850px, 100%);
  margin-top: 26px;
  padding: 10px;
  border: 1px solid rgba(31, 107, 79, .22);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 70px rgba(20, 73, 56, .16);
}

#home .natural-search input {
  min-height: 62px;
  padding: 0 16px;
  font-size: 17px;
}

#home .natural-search button {
  min-width: 132px;
  border-radius: 13px;
  background: #0090bd;
}

#home .near-me-button,
#home .hero-actions button,
#home .hero-actions .secondary {
  color: #fff;
  border-color: rgba(255,255,255,.38);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
}

#home .near-me-button:hover,
#home .hero-actions button:hover,
#home .hero-actions .secondary:hover {
  color: #fff;
  background: #0090bd;
}

#home .near-me-choice span {
  color: rgba(255,255,255,.9);
  text-shadow: 0 2px 14px rgba(8,31,25,.35);
}

#home .search-assistant {
  pointer-events: none;
  width: min(850px, 100%);
  margin-top: 12px;
  border: 1px solid rgba(31, 107, 79, .14);
  background: rgba(255,255,255,.78);
  color: var(--ink);
  box-shadow: 0 12px 36px rgba(20, 73, 56, .08);
}

#home .search-assistant p,
#home .search-assistant strong {
  color: #111915;
}

#home .search-assistant p {
  font-size: 18px;
  line-height: 1.35;
}

#home .search-assistant .search-chips b {
  color: #0f513e;
}

#home .hero-actions {
  position: relative;
  z-index: 90;
  width: min(850px, 100%);
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
}
#home .hero-copy {
  pointer-events: none;
}
#home.hero {
  pointer-events: none;
}
#home .natural-search,
#home .natural-search *,
#home .near-me-choice,
#home .near-me-choice *,
#home .hero-actions,
#home .hero-actions button,
#home .hero-actions .secondary {
  pointer-events: auto;
}

#home .hero-actions button,
#home .hero-actions .secondary {
  min-height: 48px;
  padding: 0 18px;
}

#home .hero-actions button[data-route="HOUSE"],
#home .hero-actions button[data-route="VACANT"] {
  color: #fff;
  background: #0090bd;
}

#home .market-panel {
  display: none;
}

#home .market-panel img {
  width: 100%;
  height: min(54vw, 490px);
  min-height: 390px;
  object-fit: cover;
  object-position: 57% center;
}

#home .market-card-body {
  padding: 20px;
}

.home-matches {
  order: 2;
  width: min(1440px, calc(100% - 64px));
  margin: -78px auto 28px;
  padding: 18px;
  border: 1px solid rgba(220, 228, 222, .9);
  border-radius: 22px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 22px 80px rgba(18, 47, 38, .14);
  backdrop-filter: blur(14px);
}

.home-matches-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.home-matches-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.04;
}

.home-matches-head a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #0090bd;
  background: #f4f9fb;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.home-match-deck {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) repeat(4, minmax(160px, 1fr));
  gap: 12px;
}

.home-match-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(18, 47, 38, .08);
}

.home-match-card:first-child {
  grid-row: span 2;
}

.home-match-card button {
  width: 100%;
  height: 150px;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #e8ede8;
  overflow: hidden;
}

.home-match-card:first-child button {
  height: 275px;
}

.home-match-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .22s ease;
}

.home-match-card:hover img {
  transform: scale(1.035);
}

.home-match-body {
  display: grid;
  gap: 7px;
  padding: 13px;
}

.home-match-body strong {
  font-size: 17px;
  line-height: 1.16;
}

.home-match-card:first-child strong {
  font-size: 24px;
}

.home-match-body span,
.home-match-body small {
  color: var(--muted);
  line-height: 1.3;
}

.home-score-pill {
  width: max-content;
  padding: 6px 9px;
  border-radius: 999px;
  color: #0e2f3f !important;
  background: #e6f7fd;
  font-weight: 900;
  font-size: 12px;
}

.home-match-empty {
  grid-column: 1 / -1;
  min-height: 120px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  background: #fbfcfb;
  text-align: center;
}

#hunt { order: 3; }
.trust-strip { order: 4; }
#media { order: 5; }
#studio { order: 6; }
#landlord { order: 7; }
#saved { order: 8; }
#inbox { order: 9; }
#profile { order: 10; }
#payments { order: 11; }
#services { order: 12; }

.payment-shell {
  display: grid;
  gap: 18px;
}

.payment-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.payment-trust-grid article,
.payment-empty {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.payment-trust-grid strong,
.payment-empty strong {
  color: var(--ink);
  font-size: 18px;
}

.payment-trust-grid span,
.payment-empty span {
  color: var(--muted);
  line-height: 1.35;
}

.protected-payment-list {
  display: grid;
  gap: 12px;
}

.protected-payment-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.protected-payment-card img {
  width: 128px;
  height: 92px;
  object-fit: cover;
  border-radius: 8px;
}

.protected-payment-card strong,
.protected-payment-card span,
.protected-payment-card small {
  display: block;
}

.protected-payment-card span,
.protected-payment-card small {
  color: var(--muted);
}

.payment-clearance {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.payment-clearance span {
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  background: #f8faf7;
}

.payment-clearance span.done {
  border-color: rgba(31, 107, 79, .2);
  color: #0e2f3f;
  background: #e6f7fd;
}

@media (max-width: 1180px) {
  .client-rail {
    inset: auto 12px 12px;
    width: auto;
    grid-template-columns: repeat(8, minmax(44px, 1fr));
    grid-template-rows: none;
    padding: 8px;
    border-radius: 18px;
  }

  .client-rail a,
  .client-rail button {
    min-height: 50px;
  }

  .client-rail b {
    display: none;
  }

  main {
    padding-left: 0;
    padding-bottom: 148px;
  }

  body.profile-workspace-open #profile.profile-shell {
    inset: 10px;
    padding: 18px;
  }

  body.payment-workspace-open #payments.payment-shell {
    inset: 10px;
    padding: 18px;
  }

  #home.hero {
    grid-template-columns: 1fr;
    min-height: 640px;
    padding: 58px 18px 150px;
    background-position: 62% center;
  }

  #home .market-panel img {
    height: 340px;
    min-height: 0;
  }

  .home-matches {
    width: min(100% - 24px, 1440px);
    margin: -82px auto 22px;
  }

  .home-match-deck {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .client-rail {
    grid-template-columns: repeat(8, minmax(34px, 1fr));
    gap: 4px;
    padding: 6px;
  }

  .client-rail .rail-brand {
    display: none;
  }

  #home.hero {
    min-height: 650px;
    padding: 34px 10px 132px;
    background-image:
      linear-gradient(180deg, rgba(8, 31, 25, .88) 0%, rgba(12, 45, 36, .78) 46%, rgba(12, 45, 36, .42) 100%),
      url('assets/hama-client-advisor-hero-20260905.png');
    background-position: 64% center;
  }

  #home .hero-copy h1 {
    max-width: 360px;
    font-size: 38px;
    line-height: .98;
  }

  #home .hero-copy p:not(.eyebrow) {
    max-width: 350px;
    font-size: 14px;
  }

  #home .natural-search,
  #home .hero-actions,
  #home .near-me-choice,
  #home .search-assistant {
    width: 100%;
  }

  #home .natural-search {
    grid-template-columns: 1fr;
    border-radius: 14px;
  }

  #home .natural-search button {
    min-height: 50px;
  }

  #home .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #home .search-assistant {
    display: none;
  }

  .client-rail a,
  .client-rail button {
    min-height: 44px;
    padding: 6px 2px;
  }

  #home .market-panel img {
    height: 260px;
  }

  .home-matches {
    padding: 12px;
  }

  .home-matches-head {
    align-items: start;
    flex-direction: column;
  }

  .home-match-deck {
    grid-template-columns: 1fr;
  }

  .home-match-card:first-child {
    grid-row: auto;
  }

.home-match-card:first-child button,
  .home-match-card button {
    height: 220px;
  }

  .os-pulse {
    left: 14px;
    right: 14px;
    bottom: 150px;
    pointer-events: none;
  }

  .os-pulse * {
    pointer-events: none;
  }

  .os-pulse-toggle {
    width: 100%;
  }
}

@media (min-width: 1181px) {
  .os-pulse {
    left: 116px;
    bottom: 18px;
  }
}

/* Mobile viewport integrity: nothing may widen the layout viewport past the device width.
   A wider layout viewport pushes fixed overlays (tour close, workspace close) off-screen on phones. */
@media (max-width: 1180px) {
  .client-rail {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 4px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: calc(100vw - 24px);
    grid-template-columns: none;
    grid-template-rows: none;
    overflow: hidden;
  }

  .client-rail a,
  .client-rail button {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    padding-left: 0;
    padding-right: 0;
  }

  .client-rail .rail-icon {
    flex: none;
  }

  .payment-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tour-modal {
    width: 100vw;
    max-width: 100vw;
  }
}

@media (max-width: 720px) {
  .payment-trust-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .payment-trust-grid article,
  .payment-trust-grid strong,
  .payment-trust-grid span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 720px) {
  /* Signed-in account card must stack on phones; a non-wrapping flex row here widened the whole layout viewport. */
  .signed-in-account-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }

  .signed-in-account-card > div:first-child {
    min-width: 0;
  }

  .signed-in-account-card strong,
  .signed-in-account-card small {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .signed-in-actions {
    justify-content: flex-start;
  }

  #listingForm .consent-check {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

/* Account + payment workspaces: compact signed-in header, tidy close control, payment card first */
.profile-auth-card.is-signed-in > strong,
.profile-auth-card.is-signed-in > p {
  display: none;
}
.profile-auth-card.is-signed-in .signed-in-account-card {
  margin-top: 0;
}
body.payment-workspace-open #payments .profile-close,
body.profile-workspace-open #profile .profile-close {
  justify-self: end;
  width: auto;
  max-width: max-content;
}
body.payment-workspace-open #payments.payment-shell {
  align-content: start;
}
.payment-how {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px dashed rgba(31, 107, 79, .28);
  border-radius: 8px;
  background: #f4f9fb;
}
.payment-how > strong {
  color: #0e2f3f;
  font-size: 15px;
}
.payment-how > small {
  color: var(--muted);
  font-weight: 800;
}
.payment-how .payment-trust-grid article {
  padding: 12px;
  box-shadow: none;
}
.payment-how .payment-trust-grid strong {
  font-size: 15px;
}
.payment-how .payment-trust-grid span {
  font-size: 13px;
}
@media (max-width: 720px) {
  .payment-how .payment-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .payment-how .payment-trust-grid article {
    padding: 10px;
  }
}

@media (max-width: 720px) {
  /* Payment card stacks on phones: image, details, then actions. */
  .protected-payment-card {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .protected-payment-card img {
    width: 100%;
    height: 170px;
  }
  .protected-payment-card > div {
    min-width: 0;
  }
  .protected-payment-card .landlord-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .protected-payment-card .landlord-actions button {
    width: 100%;
  }
}

@media (max-width: 1180px) {
  /* Live OS pulse becomes a compact pill just above the rail so it never sits on hero buttons. */
  .os-pulse {
    left: auto;
    right: 14px;
    bottom: 84px;
    width: auto;
    max-width: calc(100vw - 28px);
    justify-items: end;
  }
  .os-pulse-toggle {
    width: max-content;
    max-width: calc(100vw - 28px);
  }
}

/* Media tour must sit above the floating OS pulse and quick chat. */
.tour-modal { z-index: 140; }
.tour-close { z-index: 141; }

/* ---------- Hire a Hama agent workspace ---------- */
#hire .profile-close { display: none !important; }
.hire-shell { display: grid; gap: 18px; }
.hire-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 16px; align-items: start; }
.hire-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.hire-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 800; color: var(--muted); }
.hire-form .wide { grid-column: 1 / -1; }
.hire-form textarea { min-height: 80px; }
.hire-side { display: grid; gap: 12px; }
.hire-request-list { display: grid; gap: 10px; }
.hire-card { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow-soft); }
.hire-card-head { display: flex; justify-content: space-between; gap: 10px; align-items: start; flex-wrap: wrap; }
.hire-card small { color: var(--muted); font-weight: 700; }
.hire-status { display: inline-flex; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 900; background: #e6f7fd; color: #0e2f3f; }
.hire-status.new { background: #fff1ee; color: #b8791a; }
.hire-status.matched { background: #e4f6ec; color: #1f8a5a; }
.hire-status.cancelled, .hire-status.closed { background: #fde8e5; color: #d2230f; }
.hire-activity { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.hire-activity li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.hire-activity small { color: var(--muted); white-space: nowrap; }
.hire-how { display: grid; gap: 8px; padding: 14px 16px; border: 1px dashed rgba(31, 107, 79, .28); border-radius: 8px; background: #f4f9fb; }
.hire-how ol { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 6px; }
.hire-how small { color: var(--muted); font-weight: 800; }
.rail-hire::before { content: ""; position: absolute; top: 2px; left: 7px; width: 10px; height: 10px; border-radius: 50%; border: 3px solid currentColor; }
.rail-hire::after { content: ""; position: absolute; left: 3px; right: 3px; bottom: 2px; height: 9px; border: 3px solid currentColor; border-bottom: 0; border-radius: 10px 10px 0 0; }
.rail-brand img { display: block; width: 62px; height: auto; max-width: 100%; border-radius: 0; background: transparent; object-fit: contain; }
.rail-brand { background: #fff !important; border: 1px solid var(--line); }
@media (max-width: 720px) {
  .hire-grid, .hire-form { grid-template-columns: 1fr; }
  .hire-activity li { flex-direction: column; gap: 0; }
}

/* Hire a Hama agent sits right after the home screen in the page flow. */
#hire { order: 2; }

@media (max-width: 1180px) {
  body.hero-in-view .os-pulse { opacity: 0; pointer-events: none; transition: opacity .2s ease; }
}

/* Floating controls share the strip above the bottom rail: OS pill left, Top button right. */
@media (max-width: 1180px) {
  .os-pulse { left: 14px; right: auto; justify-items: start; }
  .back-to-top { bottom: 84px; right: 14px; }
}

@media (max-width: 1180px) {
  /* Room for the floating strip (OS pill, Top button) plus the rail, so the last control is always reachable. */
  main { padding-bottom: 210px; }
}

/* Agent Portal entry points */
#home .hero-actions a.secondary { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.service-card a.primary { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border-radius: 8px; background: var(--green); color: #fff; font-weight: 900; text-decoration: none; }
.poster-gate p { margin: 8px 0 0; color: var(--muted); }

.client-rail .rail-brand { padding: 8px 4px; min-height: 56px; }
@media (max-width: 1180px) { .client-rail .rail-brand { display: none; } }

/* Hire request chat */
.hire-chat { border-top: 1px solid var(--line); padding-top: 8px; }
.hire-chat summary { cursor: pointer; font-weight: 900; color: #0e2f3f; }
.hire-unread { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #ff3018; color: #fff; font-size: 11px; }
.hire-chat-thread { display: grid; gap: 6px; max-height: 260px; overflow: auto; padding: 8px 0; }
.hire-msg { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: #f3f6f4; max-width: 92%; }
.hire-msg.client { justify-self: end; background: #e6f7fd; }
.hire-msg.hama { background: #fff1ee; }
.hire-msg b { font-size: 12px; color: var(--muted); }
.hire-msg small { color: var(--muted); font-size: 11px; }
.hire-chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.property-card .agent-badge, .home-match-card .agent-badge { display: inline-flex; padding: 3px 8px; border-radius: 999px; background: #e6f7fd; color: #0090bd; font-size: 11px; font-weight: 900; }

/* ---------- Dedicated portal mode ---------- */
body.portal-mode .client-rail, body.portal-mode #osPulse, body.portal-mode #backToTop, body.portal-mode .quick-chat-dock { display: none !important; }
body.portal-mode main { width: min(1240px, calc(100% - 32px)); padding: 16px 0 60px; }
body.portal-mode main > * { display: none !important; }
body.portal-mode main > .portal-active { display: block !important; }
body.portal-mode main > #hunt.portal-active { display: block !important; margin-top: 0; width: 100%; }
body.portal-mode main > #huntResults.portal-active { display: block !important; }
body.portal-mode #profile .profile-close, body.portal-mode #payments .profile-close, body.portal-mode #hire .profile-close { display: none !important; }
body.portal-mode #profile.profile-shell, body.portal-mode #payments.payment-shell, body.portal-mode #hire.hire-shell { position: static; inset: auto; box-shadow: none; }
body.portal-mode .section-shell { margin-top: 0; }
.portal-bar { position: sticky; top: 0; z-index: 140; display: flex; align-items: center; gap: 16px; padding: 10px 18px; background: #fff; border-bottom: 3px solid #00b8f0; box-shadow: 0 8px 24px rgba(16, 34, 43, .08); }
.portal-bar-brand img { display: block; height: 40px; width: auto; }
.portal-bar-nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.portal-bar-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; font-weight: 900; color: #10222b; text-decoration: none; white-space: nowrap; }
.portal-bar-nav a:hover { background: #e6f7fd; }
.portal-bar-nav a.active { background: #00b8f0; color: #fff; }
.portal-unread { display: inline-flex; padding: 1px 7px; border-radius: 999px; background: #ff3018; color: #fff; font-size: 11px; }
.portal-bar-user { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.portal-bar-user b { font-size: 13px; color: #5d6f78; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-role { padding: 4px 10px; border-radius: 999px; background: #fff4f2; color: #d2230f; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.portal-bar-user button, .portal-bar-user a.primary { min-height: 38px; padding: 0 14px; }
body.portal-mode footer { margin-top: 0; }
@media (max-width: 860px) {
  .portal-bar { flex-wrap: wrap; padding: 8px 10px; gap: 8px; }
  .portal-bar-brand img { height: 32px; }
  .portal-bar-nav { order: 3; width: 100%; }
  .portal-bar-user b { display: none; }
  body.portal-mode main { width: min(100% - 16px, 1240px); padding-bottom: 40px; }
}

/* Protected payment card: details keep room on tablets; actions drop to their own row. */
@media (max-width: 1180px) {
  .protected-payment-card { grid-template-columns: 96px minmax(0, 1fr); }
  .protected-payment-card img { width: 96px; height: 72px; }
  .protected-payment-card .landlord-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .protected-payment-card .landlord-actions button { flex: 0 1 auto; }
}

#siteNotify, #portalBarNotify { display: inline-flex; align-items: center; }
.signed-in-actions #siteNotify .hama-bell { width: 42px; height: 42px; }
@media (max-width: 720px) { .signed-in-actions { align-items: center; } }

/* Connect: lead capture for every audience */
.connect-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 18px; align-items: start; }
.connect-lead { color: var(--muted); font-weight: 600; margin: 8px 0 0; max-width: 640px; }
.connect-side { display: grid; gap: 12px; }
.connect-card { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.connect-card p { margin: 0; color: var(--muted); font-size: 14px; }
.connect-card .secondary { justify-self: start; }
.connect-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.connect-form [data-connect-field][hidden] { display: none; }
.campaign-strip { position: sticky; top: 0; z-index: 60; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 10px 14px; background: #10222b; color: #fff; font-weight: 800; font-size: 14px; }
.campaign-strip a { color: #ffd166; }
@media (max-width: 860px) { .connect-grid { grid-template-columns: 1fr; } }

.property-card.hama-focus { outline: 3px solid #ff3018; outline-offset: 4px; }

/* Coverage: mission, vision and the 47 counties */
.about-shell .about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 18px; }
.about-shell .about-card { padding: 22px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-soft); display: grid; gap: 8px; align-content: start; }
.about-shell .about-card strong { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--sky-dark); }
.about-shell .about-card p { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.55; }
.about-shell .about-card.flame strong { color: var(--flame-dark); }
.coverage-summary { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 10px; }
.coverage-summary span { padding: 8px 14px; border-radius: 999px; background: var(--soft); color: var(--sky-deep); font-weight: 700; font-size: 14px; }
.coverage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.coverage-grid button { text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; display: grid; gap: 2px; }
.coverage-grid button small { color: var(--muted); font-weight: 500; font-size: 12px; }
.coverage-grid button:hover, .coverage-grid button:focus-visible { border-color: var(--sky); box-shadow: 0 0 0 3px var(--sky-soft); outline: none; }
.coverage-grid button.core { border-color: var(--sky); background: var(--sky-soft); }

/* Page flow: the hero is the home section and comes first on every device. Sections are placed explicitly here;
   anything without a place lands after the last one, never above the hero. */
main > * { order: 90; }
#home { order: 1; }
#homeMatches { order: 2; }
#hire { order: 3; }
#hunt { order: 4; }
#huntResults { order: 5; }
.trust-strip { order: 6; }
#media { order: 7; }
#studio { order: 8; }
#landlord { order: 9; }
#payments { order: 10; }
#inbox { order: 11; }
#profile { order: 12; }
#saved { order: 13; }
#services { order: 14; }
#about { order: 15; }
#connect { order: 16; }
/* Footer: legal and contact links */
footer .footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
footer .footer-links a { color: var(--sky-dark); text-decoration: none; font-weight: 600; }
footer .footer-links a:hover, footer .footer-links a:focus-visible { text-decoration: underline; }

/* Narrow screens (bottom rail active below 1180px): the footer needs room beneath the fixed rail. */
@media (max-width: 1180px) {
  footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

/* Wide screens: the left rail is fixed, so the footer starts where the main column starts. */
@media (min-width: 1181px) {
  footer { padding-left: 140px; }
}

/* Example homes (hosted mode only): honest labelling of sample listings */
.example-badge { position: absolute; top: 12px; left: 12px; z-index: 3; padding: 5px 10px; border-radius: 999px; background: var(--flame); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; pointer-events: none; }
.property-card, .home-match-card { position: relative; }

/* ===== Sign-in sheet ===== */
.auth-sheet { position: fixed; inset: 0; z-index: 150; display: grid; align-items: end; }
.auth-sheet[hidden] { display: none; }
.auth-sheet-backdrop { position: absolute; inset: 0; background: rgba(16, 34, 43, .45); opacity: 0; transition: opacity .25s ease; }
.auth-sheet.open .auth-sheet-backdrop { opacity: 1; }
.auth-sheet-card { position: relative; width: 100%; max-width: 520px; margin: 0 auto; background: #fff; border-radius: 22px 22px 0 0; padding: 10px 18px calc(18px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 10px; transform: translateY(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 -18px 50px rgba(16, 34, 43, .18); }
.auth-sheet.open .auth-sheet-card { transform: none; }
.auth-sheet-grip { display: block; width: 44px; height: 5px; border-radius: 999px; background: var(--line); margin: 0 auto 10px; }
.auth-sheet h3 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
.auth-sheet p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.auth-sheet-form { display: grid; gap: 8px; }
.auth-sheet-form input { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; }
.auth-sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.auth-sheet-form button, .auth-sheet-cancel { font: inherit; font-weight: 700; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--sky-dark); background: var(--sky-dark); color: #fff; cursor: pointer; }
.auth-sheet-form button.secondary, .auth-sheet-cancel { background: #fff; color: var(--sky-dark); }
.auth-sheet-cancel { justify-self: center; border-color: transparent; }
.auth-sheet-form small { min-height: 1.2em; color: var(--muted); }
@media (min-width: 761px) { .auth-sheet { align-items: center; } .auth-sheet-card { border-radius: 22px; transform: translateY(16px); opacity: 0; transition: transform .22s ease, opacity .22s ease; } .auth-sheet.open .auth-sheet-card { transform: none; opacity: 1; } }

/* ===== Chat like a messenger ===== */
.quick-chat-messages .message { max-width: 84%; padding: 8px 12px; border-radius: 14px; background: #fff; box-shadow: 0 1px 1px rgba(16, 34, 43, .08); margin: 6px 0; line-height: 1.4; }
.quick-chat-messages .message.you { margin-left: auto; background: var(--sky-soft); border-bottom-right-radius: 4px; }
.quick-chat-messages .message.you b { display: none; }
.quick-chat-messages .message:not(.you) { border-bottom-left-radius: 4px; }
.quick-chat-messages .message:not(.you) b { display: block; font-size: 12px; color: var(--sky-deep); margin-bottom: 2px; }
.quick-chat-messages .message small { display: block; font-size: 11px; color: var(--muted); text-align: right; margin-top: 3px; }
.quick-chat-example { display: grid; gap: 8px; padding: 12px; background: var(--flame-soft, #fff1ee); border-top: 1px solid var(--line); font-size: 14px; line-height: 1.45; }
.quick-chat-example-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.quick-chat-example-actions button, .quick-chat-example-actions .button-link { font: inherit; font-weight: 700; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--sky-dark); background: var(--sky-dark); color: #fff; text-decoration: none; cursor: pointer; }
.quick-chat-example-actions .secondary { background: #fff; color: var(--sky-dark); }
@keyframes chatSlideUp { from { transform: translateY(24px); opacity: .5; } to { transform: none; opacity: 1; } }
@media (max-width: 760px) {
  .quick-chat-dock { inset: 0; left: 0; right: 0; bottom: 0; width: auto; pointer-events: auto; }
  .quick-chat-card { height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto auto; border: 0; border-radius: 0; animation: chatSlideUp .28s ease-out; }
  .quick-chat-messages { overflow-y: auto; padding: 12px 12px 8px; background: #eef3f5; }
  .quick-chat-form { position: sticky; bottom: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--line); }
  .quick-chat-notice { padding: 6px 12px; }
  body.quick-chat-active .client-rail, body.quick-chat-active #backToTop, body.quick-chat-active .os-pulse, body.quick-chat-active .back-to-top { display: none !important; }
  body.quick-chat-active, body.auth-sheet-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .quick-chat-card { animation: none; } .auth-sheet-card, .auth-sheet-backdrop { transition: none; } }

/* Rail icons: professional, named, visible on every screen size */
.client-rail .ico { width: 24px; height: 24px; display: block; }
.client-rail a, .client-rail button { color: #3d4f58; gap: 4px; font-size: 11px; font-weight: 750; letter-spacing: .01em; }
.client-rail a:hover, .client-rail button:hover { color: var(--sky-deep); background: var(--sky-soft); }
.client-rail a.active { color: var(--sky-deep); background: var(--sky-soft); }
@media (max-width: 1180px) {
  .client-rail b { display: block !important; font-size: 10px; line-height: 1; }
  .client-rail a, .client-rail button { min-height: 54px; padding: 6px 2px; gap: 3px; }
  .client-rail .ico { width: 22px; height: 22px; }
}
/* Portal bar icons and smooth section changes */
.portal-bar-nav a .ico { width: 18px; height: 18px; flex: none; }
@keyframes portalFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
body.portal-mode main > .portal-active { animation: portalFade .22s ease-out; }
.portal-bar-nav a { transition: background .15s ease, color .15s ease; }
@media (prefers-reduced-motion: reduce) { body.portal-mode main > .portal-active { animation: none; } }

/* The rail stays above page content (hero action rows included) and below overlays (chat 130, tour 140, sheet 150). */
.client-rail { z-index: 112; }

/* Phone rail: eight named items fit; the owner-only Admin item shows only for the owner. */
@media (max-width: 760px) {
  .client-rail b { font-size: 9.5px; letter-spacing: 0; font-weight: 700; }
  .client-rail a, .client-rail button { padding: 6px 1px; }
  .client-rail [data-owner-admin] { display: none; }
  body.owner-admin .client-rail [data-owner-admin] { display: grid; }
}


/* Paid promotion badges */
.promo-badge { display: inline-block; background: var(--flame); color: #fff; border-radius: 999px; padding: 2px 9px; font-size: 11px; font-weight: 800; letter-spacing: .02em; margin-right: 6px; vertical-align: middle; }
.promo-badge.tier-1 { background: var(--sky-dark); }


/* Marketplace offers (client side) */
.offer-list { display: grid; gap: 10px; margin: 10px 0; }
.offer-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--wash); display: grid; gap: 6px; }
.offer-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.offer-rank { font-size: 12px; font-weight: 800; color: var(--sky-deep); background: var(--sky-soft); border-radius: 999px; padding: 2px 8px; }
.offer-pitch { margin: 0; font-size: 14px; }
.offer-pitch em { color: var(--muted); font-style: normal; }
.offer-fit { color: var(--muted); }
.offer-card .landlord-actions { margin: 0; }
.hire-review-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
