:root {
  --ink: #13231f;
  --ink-soft: #42524d;
  --forest: #174a3b;
  --forest-2: #24644f;
  --mint: #dcece3;
  --mint-light: #eef6f1;
  --cream: #f6f3eb;
  --paper: #fffdf8;
  --white: #ffffff;
  --line: #dfe4de;
  --line-dark: #c7d0c9;
  --amber: #d99045;
  --amber-soft: #faead7;
  --danger: #a34238;
  --danger-soft: #f9e9e6;
  --success: #267354;
  --success-soft: #e3f2ea;
  --warning: #99651e;
  --warning-soft: #fff2d9;
  --muted: #708079;
  --shadow-sm: 0 1px 2px rgba(19, 35, 31, .06), 0 8px 24px rgba(19, 35, 31, .05);
  --shadow: 0 20px 60px rgba(19, 35, 31, .13);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --content: 1180px;
  --font-sans: Inter, Aptos, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: Iowan Old Style, Baskerville, Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--cream);
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 320px;
  max-width: 100%;
  overflow-x: clip;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, .display { font-family: var(--font-display); font-weight: 500; letter-spacing: -.035em; }
h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); line-height: .98; margin-bottom: 1.4rem; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.05; margin-bottom: 1rem; }
h3 { font-size: 1.12rem; line-height: 1.3; margin-bottom: .45rem; }
p { margin-bottom: 1rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid rgba(217, 144, 69, .55);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  transform: translateY(-160%);
  padding: .75rem 1rem;
  color: var(--white);
  background: var(--forest);
  border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - 40px), var(--content)); min-width: 0; margin-inline: auto; }
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section--paper { background: var(--paper); }
.section--forest { color: var(--white); background: var(--forest); }
.section-heading { max-width: 690px; margin-bottom: 2.25rem; }
.section-heading p { max-width: 590px; color: var(--ink-soft); }
.section--forest .section-heading p { color: rgba(255,255,255,.72); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  color: var(--forest-2);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow::before { width: 22px; height: 1px; content: ""; background: currentColor; }
.section--forest .eyebrow { color: #a8d4bc; }

.site-header {
  position: relative;
  z-index: 20;
  min-height: 76px;
  border-bottom: 1px solid rgba(19,35,31,.08);
  background: rgba(246,243,235,.92);
  backdrop-filter: blur(16px);
}
.site-header--overlay { position: absolute; inset: 0 0 auto; background: transparent; border-color: rgba(255,255,255,.16); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-width: 0; min-height: 76px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.04rem; font-weight: 800; letter-spacing: -.02em; }
.brand__mark { display: grid; place-items: center; width: 38px; height: 38px; color: var(--paper); background: var(--forest); border-radius: 12px; }
.brand__mark svg { width: 22px; height: 22px; }
.site-header--overlay .brand { color: var(--white); }
.site-header--overlay .brand__mark { color: var(--forest); background: var(--paper); }
.nav { min-width: 0; display: flex; align-items: center; gap: .45rem; }
.nav__link { padding: .65rem .9rem; border-radius: 999px; color: var(--ink-soft); font-size: .9rem; font-weight: 650; }
.nav__link:hover { color: var(--ink); background: rgba(255,255,255,.5); }
.site-header--overlay .nav__link { color: rgba(255,255,255,.86); }
.site-header--overlay .nav__link:hover { color: var(--white); background: rgba(255,255,255,.1); }
.site-header--overlay .button--cream,
.site-header--overlay .button--cream:hover { color: var(--forest); }

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .72rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--white);
  background: var(--forest);
  font-size: .92rem;
  font-weight: 760;
  line-height: 1.1;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); background: var(--forest-2); box-shadow: 0 8px 24px rgba(23,74,59,.16); }
.button:active:not(:disabled) { transform: translateY(0); }
.button:disabled { opacity: .58; cursor: not-allowed; }
.button svg { flex: 0 0 auto; width: 18px; height: 18px; }
.button--cream { color: var(--forest); background: var(--cream); }
.button--cream:hover:not(:disabled) { background: var(--white); }
.button--secondary { color: var(--forest); border-color: var(--line-dark); background: var(--white); }
.button--secondary:hover:not(:disabled) { background: var(--mint-light); border-color: #aebdb4; }
.button--ghost { color: var(--ink-soft); background: transparent; }
.button--ghost:hover:not(:disabled) { color: var(--ink); background: rgba(19,35,31,.06); box-shadow: none; }
.button--danger { color: var(--danger); border-color: #ebc7c2; background: var(--danger-soft); }
.button--danger:hover:not(:disabled) { color: var(--white); background: var(--danger); }
.button--small { min-height: 38px; padding: .55rem .9rem; font-size: .82rem; }
.button--wide { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.spinner {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }

.hero {
  min-height: min(860px, 100svh);
  display: flex;
  align-items: end;
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(12,39,31,.93) 0%, rgba(12,39,31,.76) 48%, rgba(12,39,31,.25) 100%),
    linear-gradient(130deg, #406a57 0%, #8aa38d 45%, #d7bb8f 100%);
}
.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: .32;
  background-image:
    radial-gradient(circle at 72% 32%, rgba(255,255,255,.8) 0 2px, transparent 3px),
    linear-gradient(119deg, transparent 52%, rgba(255,255,255,.14) 52.1% 52.5%, transparent 52.6%),
    linear-gradient(26deg, transparent 67%, rgba(255,255,255,.11) 67.1% 67.4%, transparent 67.5%);
  background-size: 58px 58px, 100% 100%, 100% 100%;
}
.hero::after {
  position: absolute;
  right: clamp(-180px, -6vw, -60px);
  bottom: -18%;
  width: clamp(420px, 62vw, 900px);
  aspect-ratio: 1.3;
  content: "";
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 48% 48% 0 0;
  transform: rotate(-7deg);
  box-shadow: inset 0 0 0 90px rgba(255,255,255,.035), inset 0 0 0 180px rgba(255,255,255,.025);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding-top: 130px; padding-bottom: clamp(3rem, 7vw, 6rem); }
.hero__copy { min-width: 0; max-width: 780px; }
.hero .eyebrow { color: #afd8c1; }
.hero__copy h1 { max-width: 760px; overflow-wrap: anywhere; }
.hero__copy > p { max-width: 600px; margin-bottom: 2rem; color: rgba(255,255,255,.78); font-size: clamp(1.02rem, 2vw, 1.2rem); }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.1rem 1.7rem; margin: 1.4rem 0 0; padding: 0; list-style: none; color: rgba(255,255,255,.76); font-size: .82rem; }
.hero__trust li { display: flex; align-items: center; gap: .45rem; }
.hero__trust svg { width: 16px; height: 16px; color: #abd4bd; }

.search-shell {
  width: 100%;
  min-width: 0;
  max-width: 1070px;
  margin-top: 2.4rem;
  padding: .75rem;
  color: var(--ink);
  background: rgba(255,253,248,.96);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.journey-tabs { max-width: 100%; min-width: 0; display: flex; gap: .3rem; margin: 0 0 .65rem; padding: .25rem; border-radius: 999px; background: #e9ede8; width: fit-content; }
.journey-tab { min-width: 0; min-height: 35px; padding: .45rem .8rem; border: 0; border-radius: 999px; color: var(--ink-soft); background: transparent; font-size: .78rem; font-weight: 750; cursor: pointer; }
.journey-tab[aria-selected="true"] { color: var(--forest); background: var(--white); box-shadow: 0 1px 5px rgba(19,35,31,.1); }
.search-form { display: grid; grid-template-columns: minmax(180px, 1.5fr) repeat(3, minmax(120px, .75fr)) auto; align-items: end; gap: .45rem; }
.search-form > *, .search-form input, .search-form select { min-width: 0; max-width: 100%; }
.search-form .field { margin: 0; padding: .25rem .75rem; border-left: 1px solid var(--line); }
.search-form .field:first-child { border-left: 0; }
.search-form label { font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; }
.search-form input, .search-form select { min-height: 33px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.search-form input:focus, .search-form select:focus { outline: 0; box-shadow: none; }
.search-submit { min-height: 56px; min-width: 138px; border-radius: 16px; }

.trust-bar { background: var(--forest); color: var(--white); }
.trust-bar__inner { min-height: 88px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; }
.trust-point { padding: .8rem 1.5rem; border-left: 1px solid rgba(255,255,255,.13); text-align: center; }
.trust-point:first-child { border-left: 0; }
.trust-point strong { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; }
.trust-point span { color: rgba(255,255,255,.64); font-size: .75rem; }

.results-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.75rem; }
.results-toolbar h2 { margin-bottom: .3rem; }
.results-count { color: var(--muted); font-size: .9rem; }
.filter-chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: .35rem; min-height: 34px; padding: .45rem .75rem; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: .77rem; font-weight: 680; }
.chip--green { color: var(--success); border-color: #c2ddcf; background: var(--success-soft); }
.chip--amber { color: var(--warning); border-color: #edd8ae; background: var(--warning-soft); }

.property-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.property-card { min-width: 0; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.property-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(19,35,31,.11); }
.property-card__media { position: relative; aspect-ratio: 1.38; overflow: hidden; background: var(--mint); }
.property-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.property-card:hover .property-card__media img { transform: scale(1.025); }
.property-card__badge { position: absolute; top: .85rem; left: .85rem; padding: .36rem .58rem; color: var(--forest); background: rgba(255,253,248,.92); border-radius: 999px; font-size: .69rem; font-weight: 800; backdrop-filter: blur(8px); }
.property-card__body { padding: 1.1rem 1.15rem 1.2rem; }
.property-card__location { display: flex; align-items: center; gap: .32rem; margin-bottom: .35rem; color: var(--muted); font-size: .76rem; }
.property-card__location svg { width: 14px; height: 14px; }
.property-card h3 { margin-bottom: .65rem; font-size: 1.08rem; }
.property-card__facts { display: flex; gap: 1rem; margin-bottom: 1rem; color: var(--ink-soft); font-size: .78rem; }
.property-card__facts span { display: flex; align-items: center; gap: .3rem; }
.property-card__facts svg { width: 15px; height: 15px; color: var(--muted); }
.property-card__footer { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.property-card__price strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.property-card__price span { color: var(--muted); font-size: .68rem; }
.text-button { display: inline-flex; align-items: center; gap: .25rem; padding: .35rem 0; border: 0; color: var(--forest-2); background: transparent; font-size: .79rem; font-weight: 800; cursor: pointer; }
.text-button svg { width: 15px; height: 15px; transition: transform .15s; }
.text-button:hover svg { transform: translateX(2px); }

.skeleton { position: relative; overflow: hidden; background: #e5e8e3; border-radius: 8px; }
.skeleton::after { position: absolute; inset: 0; content: ""; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.skeleton-card { min-height: 390px; border-radius: var(--radius); }

.empty-state { grid-column: 1 / -1; padding: clamp(2.5rem, 8vw, 5rem); text-align: center; background: var(--paper); border: 1px dashed var(--line-dark); border-radius: var(--radius); }
.empty-state__icon { width: 56px; height: 56px; display: grid; place-items: center; margin: 0 auto 1rem; color: var(--forest-2); background: var(--mint); border-radius: 18px; }
.empty-state__icon svg { width: 27px; height: 27px; }
.empty-state h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; }
.empty-state p { max-width: 480px; margin-inline: auto; color: var(--muted); }

.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius-lg); background: rgba(255,255,255,.13); }
.how-card { min-height: 270px; padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--forest); }
.how-card__number { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 3.5rem; color: #b8ddc7; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; font-size: .76rem; font-weight: 800; }
.how-card h3 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; }
.how-card p { margin-bottom: 0; color: rgba(255,255,255,.65); font-size: .9rem; }

.privacy-note { display: flex; align-items: flex-start; gap: .75rem; padding: .9rem 1rem; color: var(--ink-soft); background: var(--mint-light); border: 1px solid #d5e6dc; border-radius: 12px; font-size: .8rem; }
.privacy-note svg { width: 19px; height: 19px; flex: 0 0 auto; color: var(--success); }
.privacy-note strong { color: var(--ink); }
.fee-note { padding: 1rem; color: #6b4a18; background: var(--warning-soft); border: 1px solid #ecd4a6; border-radius: 12px; font-size: .82rem; }
.fee-note strong { color: #513811; }

.field { display: flex; flex-direction: column; gap: .38rem; margin-bottom: 1rem; }
.field label, .field__label { color: var(--ink-soft); font-size: .78rem; font-weight: 760; }
.field__hint { margin: -.1rem 0 0; color: var(--muted); font-size: .72rem; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 47px;
  padding: .68rem .8rem;
  color: var(--ink);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 105px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9ba7a1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--forest-2); box-shadow: 0 0 0 3px rgba(36,100,79,.11); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field-error { min-height: 1em; margin: 0; color: var(--danger); font-size: .7rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-span { grid-column: 1 / -1; }
.check-row { display: flex; align-items: flex-start; gap: .65rem; color: var(--ink-soft); font-size: .8rem; }
.check-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--forest); }

dialog {
  width: min(680px, calc(100% - 24px));
  max-height: min(880px, calc(100svh - 24px));
  margin: auto;
  padding: 0;
  color: var(--ink);
  border: 0;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(10,27,22,.62); backdrop-filter: blur(5px); }
.dialog--wide { width: min(940px, calc(100% - 24px)); }
.dialog__header { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; background: rgba(255,253,248,.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.dialog__header h2 { margin: 0; font-family: var(--font-sans); font-size: 1rem; font-weight: 800; letter-spacing: -.01em; }
.icon-button { width: 39px; height: 39px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-soft); background: var(--white); cursor: pointer; }
.icon-button:hover { color: var(--ink); background: var(--mint-light); }
.icon-button svg { width: 18px; height: 18px; }
.dialog__body { padding: 1.35rem; }
.dialog__footer { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: flex-end; gap: .7rem; padding: 1rem 1.25rem; background: rgba(255,253,248,.96); border-top: 1px solid var(--line); backdrop-filter: blur(12px); }

.detail-layout { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 560px; }
.detail-media { min-height: 360px; background: var(--mint); }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-content { display: flex; flex-direction: column; padding: clamp(1.4rem, 4vw, 2.25rem); }
.detail-content h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.detail-content__location { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .85rem; }
.detail-content__location svg { width: 16px; height: 16px; }
.detail-price { margin: 1.2rem 0; font-family: var(--font-display); font-size: 1.7rem; }
.detail-price span { color: var(--muted); font-family: var(--font-sans); font-size: .75rem; }
.detail-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: 1.3rem; }
.detail-fact { padding: .75rem; text-align: center; background: var(--mint-light); border-radius: 10px; }
.detail-fact strong { display: block; font-size: .95rem; }
.detail-fact span { color: var(--muted); font-size: .65rem; }
.amenities { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1.35rem; padding: 0; list-style: none; }
.amenities li { padding: .38rem .6rem; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; font-size: .72rem; }
.detail-actions { margin-top: auto; padding-top: 1rem; }

.page-shell { min-height: 100svh; background: #f4f5f0; }
.portal-header { position: sticky; top: 0; z-index: 12; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.portal-header__inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-inline: 1.25rem; }
.portal-header__actions { display: flex; align-items: center; gap: .65rem; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; color: var(--forest); background: var(--mint); border-radius: 50%; font-size: .78rem; font-weight: 850; }
.portal-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: calc(100svh - 68px); }
.portal-sidebar { position: sticky; top: 68px; height: calc(100svh - 68px); display: flex; flex-direction: column; padding: 1.35rem 1rem; border-right: 1px solid var(--line); background: var(--paper); }
.portal-nav { display: flex; flex-direction: column; gap: .3rem; }
.portal-nav__item { width: 100%; min-height: 43px; display: flex; align-items: center; gap: .7rem; padding: .65rem .75rem; border: 0; border-radius: 10px; color: var(--ink-soft); background: transparent; font-size: .85rem; font-weight: 700; text-align: left; cursor: pointer; }
.portal-nav__item:hover { color: var(--ink); background: var(--mint-light); }
.portal-nav__item[aria-current="page"] { color: var(--forest); background: var(--mint); }
.portal-nav__item svg { width: 18px; height: 18px; }
.portal-sidebar__footer { margin-top: auto; padding: 1rem .75rem 0; color: var(--muted); border-top: 1px solid var(--line); font-size: .7rem; }
.portal-main { min-width: 0; padding: clamp(1.25rem, 4vw, 2.5rem); }
.portal-content { max-width: 1160px; margin-inline: auto; }
.portal-title { display: flex; align-items: start; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.portal-title h1 { margin: 0 0 .35rem; font-family: var(--font-sans); font-size: clamp(1.65rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -.035em; }
.portal-title p { margin: 0; color: var(--muted); font-size: .88rem; }
.portal-view[hidden] { display: none !important; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.stat-card { padding: 1.2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stat-card__top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.2rem; }
.stat-card__icon { width: 38px; height: 38px; display: grid; place-items: center; color: var(--forest-2); background: var(--mint-light); border-radius: 11px; }
.stat-card__icon svg { width: 19px; height: 19px; }
.stat-card__label { color: var(--muted); font-size: .72rem; font-weight: 700; }
.stat-card__value { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.stat-card__meta { color: var(--muted); font-size: .72rem; }

.panel { margin-bottom: 1.25rem; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.panel__header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.15rem; border-bottom: 1px solid var(--line); }
.panel__header h2 { margin: 0; font-family: var(--font-sans); font-size: .98rem; font-weight: 800; letter-spacing: -.015em; }
.panel__header p { margin: .2rem 0 0; color: var(--muted); font-size: .75rem; }
.panel__body { padding: 1.15rem; }
.panel__body--flush { padding: 0; }

.status { display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .55rem; border-radius: 999px; font-size: .67rem; font-weight: 800; white-space: nowrap; }
.status::before { width: 6px; height: 6px; content: ""; border-radius: 50%; background: currentColor; }
.status--published, .status--active, .status--contact-unlocked { color: var(--success); background: var(--success-soft); }
.status--draft, .status--pending-owner { color: var(--warning); background: var(--warning-soft); }
.status--paused, .status--awaiting-payment { color: #4c66a1; background: #e9eefb; }
.status--archived, .status--expired { color: var(--muted); background: #eef0ed; }
.status--unavailable, .status--failed { color: var(--danger); background: var(--danger-soft); }

.data-list { width: 100%; border-collapse: collapse; }
.data-list th { padding: .7rem 1rem; color: var(--muted); background: #fafbf8; border-bottom: 1px solid var(--line); font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.data-list td { padding: .9rem 1rem; border-bottom: 1px solid var(--line); font-size: .8rem; vertical-align: middle; }
.data-list tr:last-child td { border-bottom: 0; }
.data-list__primary { display: flex; align-items: center; gap: .75rem; min-width: 220px; }
.data-list__thumb { width: 58px; height: 47px; flex: 0 0 auto; overflow: hidden; background: var(--mint); border-radius: 9px; }
.data-list__thumb img { width: 100%; height: 100%; object-fit: cover; }
.data-list__primary strong { display: block; }
.data-list__primary span { color: var(--muted); font-size: .7rem; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: .45rem; }

.property-list-mobile { display: none; }
.mobile-item { padding: 1rem; border-bottom: 1px solid var(--line); }
.mobile-item:last-child { border-bottom: 0; }
.mobile-item__top { display: flex; gap: .8rem; }
.mobile-item__thumb { width: 76px; height: 64px; flex: 0 0 auto; border-radius: 10px; overflow: hidden; background: var(--mint); }
.mobile-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mobile-item__main { min-width: 0; flex: 1; }
.mobile-item__main h3 { margin-bottom: .25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-item__meta { color: var(--muted); font-size: .72rem; }
.mobile-item__actions { display: flex; gap: .5rem; margin-top: .8rem; }

.inquiry-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; padding: 1.15rem; border-bottom: 1px solid var(--line); }
.inquiry-card:last-child { border-bottom: 0; }
.inquiry-card__ref { margin-bottom: .3rem; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .04em; }
.inquiry-card h3 { margin-bottom: .25rem; }
.inquiry-card__meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--ink-soft); font-size: .76rem; }
.inquiry-card__meta span { display: flex; align-items: center; gap: .32rem; }
.inquiry-card__meta svg { width: 14px; height: 14px; color: var(--muted); }
.inquiry-card__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: .8rem; }

.form-page { max-width: 850px; }
.form-section { margin-bottom: 1.25rem; padding: clamp(1.1rem, 3vw, 1.5rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.form-section__header { display: flex; align-items: flex-start; gap: .85rem; margin-bottom: 1.3rem; }
.form-section__number { width: 30px; height: 30px; display: grid; flex: 0 0 auto; place-items: center; color: var(--forest); background: var(--mint); border-radius: 9px; font-size: .72rem; font-weight: 850; }
.form-section__header h2 { margin: 0 0 .15rem; font-family: var(--font-sans); font-size: 1rem; font-weight: 800; letter-spacing: -.01em; }
.form-section__header p { margin: 0; color: var(--muted); font-size: .75rem; }
.form-actions { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; gap: .7rem; margin: 0 -1rem -1rem; padding: 1rem; background: rgba(244,245,240,.92); border-top: 1px solid var(--line); backdrop-filter: blur(14px); }

.upload-zone { min-height: 150px; display: grid; place-items: center; padding: 1.5rem; color: var(--ink-soft); border: 1.5px dashed var(--line-dark); border-radius: 14px; background: #fafbf8; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.upload-zone:hover, .upload-zone.is-dragging { border-color: var(--forest-2); background: var(--mint-light); }
.upload-zone svg { width: 29px; height: 29px; margin-bottom: .6rem; color: var(--forest-2); }
.upload-zone strong { display: block; color: var(--ink); font-size: .84rem; }
.upload-zone span { color: var(--muted); font-size: .7rem; }
.image-previews { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; margin-top: .8rem; }
.image-preview { position: relative; aspect-ratio: 1.25; overflow: hidden; background: var(--mint); border-radius: 10px; }
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-preview button { position: absolute; top: .35rem; right: .35rem; width: 27px; height: 27px; display: grid; place-items: center; color: var(--white); border: 0; border-radius: 50%; background: rgba(19,35,31,.75); cursor: pointer; }
.image-preview button svg { width: 14px; height: 14px; }

.auth-page { min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); }
.auth-art { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 100svh; padding: clamp(2rem, 5vw, 4rem); overflow: hidden; color: var(--white); background: var(--forest); }
.auth-art::before, .auth-art::after { position: absolute; content: ""; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; }
.auth-art::before { width: 600px; height: 600px; right: -280px; top: -170px; box-shadow: inset 0 0 0 100px rgba(255,255,255,.025), inset 0 0 0 200px rgba(255,255,255,.018); }
.auth-art::after { width: 350px; height: 350px; left: -160px; bottom: -130px; }
.auth-art > * { position: relative; z-index: 1; }
.auth-art .brand { color: var(--white); }
.auth-art .brand__mark { color: var(--forest); background: var(--paper); }
.auth-art__copy { max-width: 520px; }
.auth-art__copy h1 { font-size: clamp(2.6rem, 5vw, 4.8rem); }
.auth-art__copy p { max-width: 420px; color: rgba(255,255,255,.67); }
.auth-art__point { display: flex; align-items: center; gap: .6rem; color: rgba(255,255,255,.68); font-size: .78rem; }
.auth-art__point svg { width: 18px; height: 18px; color: #a8d4bc; }
.auth-content { display: grid; place-items: center; padding: 2rem; }
.auth-card { width: min(100%, 460px); }
.auth-card h2 { margin-bottom: .45rem; font-family: var(--font-sans); font-size: 1.8rem; font-weight: 800; letter-spacing: -.035em; }
.auth-card > p { margin-bottom: 1.7rem; color: var(--muted); font-size: .88rem; }
.divider { display: flex; align-items: center; gap: .75rem; margin: 1rem 0; color: var(--muted); font-size: .7rem; }
.divider::before, .divider::after { height: 1px; flex: 1; content: ""; background: var(--line); }
.demo-box { padding: 1rem; background: var(--mint-light); border: 1px solid #d5e6dc; border-radius: 13px; }
.demo-box strong { display: block; margin-bottom: .2rem; font-size: .82rem; }
.demo-box p { margin-bottom: .75rem; color: var(--ink-soft); font-size: .75rem; }

.status-page { min-height: 100svh; background: #f1f3ee; }
.status-header { padding-block: 1rem; border-bottom: 1px solid var(--line); background: var(--paper); }
.status-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.status-header__secure { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .72rem; }
.status-header__secure svg { width: 15px; height: 15px; color: var(--success); }
.status-wrap { width: min(calc(100% - 32px), 700px); margin-inline: auto; padding-block: clamp(2.5rem, 8vw, 5.5rem); }
.status-card { overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.status-card__hero { padding: clamp(1.5rem, 5vw, 2.5rem); text-align: center; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--mint-light), var(--paper)); }
.status-card__icon { width: 66px; height: 66px; display: grid; place-items: center; margin: 0 auto 1.2rem; color: var(--forest-2); background: var(--white); border: 1px solid #d8e6dd; border-radius: 22px; box-shadow: var(--shadow-sm); }
.status-card__icon svg { width: 31px; height: 31px; }
.status-card__icon--success { color: var(--success); background: var(--success-soft); }
.status-card__icon--warning { color: var(--warning); background: var(--warning-soft); }
.status-card__icon--danger { color: var(--danger); background: var(--danger-soft); }
.status-card__hero h1 { margin-bottom: .6rem; font-family: var(--font-sans); font-size: clamp(1.55rem, 4vw, 2rem); font-weight: 800; letter-spacing: -.035em; }
.status-card__hero p { max-width: 480px; margin: 0 auto; color: var(--muted); font-size: .86rem; }
.status-card__body { padding: clamp(1.2rem, 4vw, 2rem); }
.summary-list { margin: 0 0 1.25rem; }
.summary-row { display: flex; justify-content: space-between; align-items: start; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.summary-row:last-child { border-bottom: 0; }
.summary-row dt { color: var(--muted); font-size: .75rem; }
.summary-row dd { margin: 0; font-size: .8rem; font-weight: 730; text-align: right; }
.timeline { margin: 1.3rem 0; padding: 0; list-style: none; }
.timeline li { position: relative; min-height: 48px; padding: 0 0 1.1rem 2rem; color: var(--muted); font-size: .78rem; }
.timeline li::before { position: absolute; left: 4px; top: 3px; width: 10px; height: 10px; content: ""; border: 3px solid var(--paper); border-radius: 50%; background: var(--line-dark); box-shadow: 0 0 0 1px var(--line-dark); }
.timeline li::after { position: absolute; left: 8px; top: 17px; bottom: -1px; width: 2px; content: ""; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.is-done { color: var(--ink-soft); }
.timeline li.is-done::before { background: var(--success); box-shadow: 0 0 0 1px var(--success); }
.timeline li.is-current { color: var(--ink); font-weight: 750; }
.timeline li.is-current::before { background: var(--amber); box-shadow: 0 0 0 2px #f2d8ba; }
.contact-card { padding: 1.2rem; text-align: center; background: var(--success-soft); border: 1px solid #c5dfd1; border-radius: 15px; }
.contact-card__avatar { width: 56px; height: 56px; display: grid; place-items: center; margin: 0 auto .8rem; color: var(--white); background: var(--forest-2); border-radius: 50%; font-family: var(--font-display); font-size: 1.35rem; }
.contact-card h3 { margin-bottom: .1rem; }
.contact-card__phone { margin-bottom: 1rem; color: var(--ink-soft); font-size: .9rem; }

.decision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1rem; }
.decision-button { min-height: 105px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .25rem; padding: 1rem; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; background: var(--white); text-align: left; cursor: pointer; }
.decision-button:hover { border-color: var(--forest-2); background: var(--mint-light); }
.decision-button strong { display: flex; align-items: center; gap: .45rem; }
.decision-button strong svg { width: 18px; height: 18px; }
.decision-button span { color: var(--muted); font-size: .7rem; }
.decision-button--no:hover { border-color: var(--danger); background: var(--danger-soft); }

.payment-panel { padding: 1.1rem; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.payment-total { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.payment-total span { color: var(--muted); font-size: .75rem; }
.payment-total strong { font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.payment-method { display: flex; align-items: center; gap: .8rem; padding: .9rem; margin-bottom: 1rem; border: 1px solid var(--forest-2); border-radius: 12px; background: var(--mint-light); }
.payment-method__radio { width: 18px; height: 18px; display: grid; place-items: center; border: 2px solid var(--forest-2); border-radius: 50%; }
.payment-method__radio::after { width: 8px; height: 8px; content: ""; border-radius: 50%; background: var(--forest-2); }
.payment-method strong { display: block; font-size: .82rem; }
.payment-method span { color: var(--muted); font-size: .68rem; }

.site-footer { padding-block: 2.8rem; color: rgba(255,255,255,.7); background: #0d2e25; }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-footer .brand { color: var(--white); }
.site-footer .brand__mark { color: var(--forest); background: var(--paper); }
.site-footer p { margin: 0; font-size: .75rem; }
.site-footer__links { display: flex; gap: 1rem; font-size: .75rem; }

.toast-region { position: fixed; z-index: 1000; right: 1rem; bottom: 1rem; width: min(380px, calc(100% - 2rem)); display: grid; gap: .55rem; }
.toast { display: flex; align-items: flex-start; gap: .65rem; padding: .85rem 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); animation: toast-in .2s ease-out; }
.toast p { margin: 0; font-size: .78rem; }
.toast__dot { width: 8px; height: 8px; flex: 0 0 auto; margin-top: .34rem; border-radius: 50%; background: var(--forest-2); }
.toast--success .toast__dot { background: var(--success); }
.toast--error .toast__dot { background: var(--danger); }
.toast--leaving { opacity: 0; transform: translateY(8px); transition: .2s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.error-banner { display: flex; align-items: flex-start; gap: .65rem; margin-bottom: 1rem; padding: .8rem .9rem; color: var(--danger); background: var(--danger-soft); border: 1px solid #ebc5c0; border-radius: 10px; font-size: .76rem; }
.error-banner svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; }
[hidden] { display: none !important; }

/*
 * Centred hero, desktop only — the phone keeps the left-aligned stack, where centred copy costs
 * reading rhythm on a narrow column. The search fields stay left-aligned inside their cells: a
 * label and the value under it belong together, and centred input text reads as decoration.
 */
@media (min-width: 741px) {
  .hero__inner { text-align: center; }
  .hero__copy { margin-inline: auto; }
  .hero__copy h1, .hero__copy > p { margin-inline: auto; }
  /* The eyebrow's rule is mirrored, so the centred line is not lopsided. */
  .hero .eyebrow::after { width: 22px; height: 1px; content: ""; background: currentColor; }
  .search-shell { margin-inline: auto; }
  .journey-tabs { margin-inline: auto; }
  .search-form, .search-form .field { text-align: left; }
  .hero__trust { justify-content: center; }
  /* The backdrop darkens to the left, so a centred column needs the scrim carried further across. */
  .hero {
    background:
      linear-gradient(90deg, rgba(12,39,31,.92) 0%, rgba(12,39,31,.84) 50%, rgba(12,39,31,.4) 100%),
      linear-gradient(130deg, #406a57 0%, #8aa38d 45%, #d7bb8f 100%);
  }
}

@media (max-width: 980px) {
  .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-form { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .search-form .field { border-left: 0; }
  .search-form .field:first-child { grid-column: span 2; }
  .search-submit { grid-column: span 4; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-media { min-height: 310px; max-height: 400px; }
  .portal-layout { grid-template-columns: 80px minmax(0,1fr); }
  .portal-nav__item { justify-content: center; }
  .portal-nav__item span { display: none; }
  .portal-sidebar__footer { display: none; }
  .auth-page { grid-template-columns: .8fr 1.2fr; }
}

@media (max-width: 740px) {
  .container { width: min(calc(100% - 28px), var(--content)); }
  .site-header, .site-header__inner { min-height: 66px; }
  .nav__link:not(.nav__link--primary), .desktop-only { display: none !important; }
  .hero { min-height: auto; }
  .hero__inner { padding-top: 120px; padding-bottom: 2.5rem; }
  .hero::after { opacity: .4; }
  .hero__copy > p { font-size: .96rem; }
  .search-shell { padding: .7rem; margin-top: 1.6rem; border-radius: 17px; }
  .search-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-form .field:first-child { grid-column: 1 / -1; }
  .search-submit { grid-column: 1 / -1; }
  .trust-bar__inner { min-height: 78px; }
  .trust-point { padding: .65rem .4rem; }
  .trust-point strong { font-size: 1rem; }
  .trust-point span { font-size: .61rem; }
  .results-toolbar { align-items: start; flex-direction: column; }
  .how-grid { grid-template-columns: 1fr; }
  .how-card { min-height: auto; }
  .how-card__number { margin-bottom: 2rem; }
  .form-grid, .form-grid--3 { grid-template-columns: 1fr; }
  .form-span { grid-column: auto; }
  .dialog__footer { align-items: stretch; flex-direction: column-reverse; }
  .dialog__footer .button { width: 100%; }
  .portal-layout { display: block; }
  .portal-sidebar { position: fixed; z-index: 15; top: auto; right: 0; bottom: 0; left: 0; height: 66px; padding: .45rem .7rem; border-top: 1px solid var(--line); border-right: 0; box-shadow: 0 -8px 24px rgba(19,35,31,.07); }
  .portal-nav { height: 100%; flex-direction: row; justify-content: space-around; }
  .portal-nav__item { min-height: 48px; flex: 1; flex-direction: column; gap: .1rem; padding: .25rem; font-size: .6rem; }
  .portal-nav__item span { display: block; }
  .portal-nav__item svg { width: 18px; height: 18px; }
  .portal-sidebar__footer { display: none; }
  .portal-main { padding: 1.1rem 1rem 90px; }
  .portal-title { align-items: stretch; flex-direction: column; margin-bottom: 1.4rem; }
  .portal-title .button { width: 100%; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
  .stat-card { padding: .9rem .75rem; }
  .stat-card__top { margin-bottom: .8rem; }
  .stat-card__icon { width: 32px; height: 32px; }
  .stat-card__value { font-size: 1.55rem; }
  .stat-card__meta { display: none; }
  .data-list-wrap { display: none; }
  .property-list-mobile { display: block; }
  .inquiry-card { grid-template-columns: 1fr; }
  .inquiry-card__side { align-items: flex-start; }
  .auth-page { display: block; }
  .auth-art { min-height: 280px; padding: 1.5rem; }
  .auth-art__copy { margin-top: 3rem; }
  .auth-art__copy h1 { margin-bottom: .8rem; font-size: 2.5rem; }
  .auth-art__point { display: none; }
  .auth-content { padding: 2rem 1.25rem 3rem; }
  .image-previews { grid-template-columns: repeat(3, 1fr); }
  .site-footer__inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 540px) {
  h1 { font-size: 2.65rem; }
  .hero__trust { gap: .6rem 1rem; }
  .hero__trust li:last-child { display: none; }
  .journey-tabs { width: 100%; }
  .journey-tab { flex: 1 1 0; padding-inline: .35rem; white-space: nowrap; }
  .site-header__inner { gap: .55rem; }
  .site-header .brand { gap: .5rem; font-size: .95rem; white-space: nowrap; }
  .site-header .brand__mark { width: 36px; height: 36px; }
  .nav__link--primary { min-height: 40px; padding-inline: .75rem; font-size: .78rem; white-space: nowrap; }
  .hero__copy, .hero__copy h1, .search-shell { width: 100%; max-width: 100%; }
  .search-form { display: block; }
  .search-form .field { margin-bottom: .55rem; padding: .3rem .25rem .65rem; border-bottom: 1px solid var(--line); }
  .search-submit { width: 100%; margin-top: .35rem; }
  .property-grid { grid-template-columns: 1fr; }
  .property-card__media { aspect-ratio: 1.55; }
  .trust-bar__inner { grid-template-columns: 1fr 1fr; }
  .trust-point:last-child { display: none; }
  .detail-media { min-height: 250px; }
  .detail-content { padding: 1.25rem; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-card:last-child { grid-column: 1 / -1; }
  .image-previews { grid-template-columns: repeat(2, 1fr); }
  .decision-grid { grid-template-columns: 1fr; }
  .status-wrap { width: min(calc(100% - 20px), 700px); padding-block: 1rem 2.5rem; }
  .status-card { border-radius: 20px; }
  .status-header__secure span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
