@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400..800;1,9..40,400..800&display=swap');

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f7f4ef;
  --surface-warm: #fbf8f4;
  --ink: #222222;
  --muted: #6a625b;
  --border: #e8e1d8;
  --accent: #a85f3d;
  --accent-dark: #7c4027;
  --accent-soft: #f4e4da;
  --success: #2f7d54;
  --danger: #b42318;
  --radius-sm: 0;
  --radius: 0;
  --radius-lg: 0;
  --shadow: rgba(0,0,0,0.02) 0 0 0 1px, rgba(0,0,0,0.05) 0 8px 22px, rgba(0,0,0,0.08) 0 18px 42px;
  --shadow-soft: rgba(0,0,0,0.04) 0 4px 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  text-rendering: geometricPrecision;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
a { color: inherit; }

.page { min-height: 100vh; background: linear-gradient(180deg, #fff 0%, #fff 55%, #fbf8f4 100%); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(232,225,216,0.72);
}
.brand {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-align: left;
  padding: 0;
  min-height: 44px;
}
.brand img { width: 98px; height: auto; }
.brand span { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  padding: 11px 16px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
}
.site-nav button:hover, .site-nav button.active { background: var(--surface-soft); border-color: var(--border); }

main { width: 100%; }
.hero-clean {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(48px, 9vw, 120px) clamp(18px, 4vw, 56px) 64px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  text-transform: uppercase;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.14em;
  font-weight: 800;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  margin-bottom: 22px;
  text-wrap: balance;
}
h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.05; letter-spacing: -0.045em; margin-bottom: 12px; }
h3 { font-size: 18px; line-height: 1.2; letter-spacing: -0.03em; }
p { color: var(--muted); line-height: 1.62; }
.hero-lead { font-size: clamp(18px, 2.2vw, 22px); max-width: 620px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 22px; }
.btn, a.btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  border-radius: 0;
  padding: 13px 20px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  box-shadow: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover, a.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.secondary { background: var(--surface-soft); }
.btn.small { min-height: 40px; padding: 10px 15px; font-size: 13px; }
.hero-card { display: grid; gap: 14px; }
.listing-mini, .soft-note {
  background: #fff;
  border-radius: 0;
  box-shadow: var(--shadow);
  padding: 14px;
}
.listing-mini img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; margin-bottom: 14px; }
.listing-mini strong, .listing-mini span { display: block; }
.listing-mini strong { font-size: 18px; letter-spacing: -0.03em; }
.listing-mini span { color: var(--muted); margin-top: 4px; }
.soft-note { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; padding: 18px 20px; }
.soft-note:before { content: ""; width: 10px; height: 10px; background: var(--success); border-radius: 0; margin-top: 7px; grid-row: span 2; }
.soft-note strong { display: block; }
.soft-note span { color: var(--muted); font-size: 14px; line-height: 1.45; }

.section-simple, .content-shell, .detail-shell, .wizard-shell, .auth-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px clamp(18px, 4vw, 56px);
}
.section-title, .listings-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 24px; }
.section-title h2, .listings-head h1 { margin: 0; }
.listings-head p { max-width: 560px; margin-bottom: 0; }
.notice { background: var(--accent-soft); border: 1px solid #ecd1c3; color: var(--accent-dark); padding: 14px 16px; border-radius: 0; font-weight: 700; }
.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.rental-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  box-shadow: rgba(0,0,0,0.02) 0 0 0 1px, rgba(0,0,0,0.04) 0 6px 18px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.rental-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.image-button { border: 0; padding: 0; background: transparent; width: 100%; display: block; }
.image-button img, .rental-card > img { width: 100%; aspect-ratio: 1.24 / 1; object-fit: cover; }
.rental-body { padding: 18px; }
.rental-heading { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.rental-heading h3 { margin-bottom: 6px; }
.rental-heading strong { white-space: nowrap; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.facts span {
  background: var(--surface-soft);
  border-radius: 0;
  padding: 7px 10px;
  color: #4b4540;
  font-size: 13px;
  font-weight: 700;
}
.facts.large span { font-size: 14px; padding: 9px 12px; }
.card-actions { border-top: 1px solid var(--border); padding-top: 14px; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.card-actions span { color: var(--muted); font-size: 13px; font-weight: 700; }
.card-actions button {
  border: 0;
  background: var(--ink);
  color: #fff;
  border-radius: 0;
  padding: 10px 14px;
  font-weight: 800;
}
.split-band { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.plain-steps { display: grid; gap: 14px; }
.plain-step { display: grid; grid-template-columns: 42px 1fr; gap: 16px; background: #fff; border: 1px solid var(--border); border-radius: 0; padding: 18px; }
.plain-step > span { width: 42px; height: 42px; background: var(--ink); color: #fff; border-radius: 0; display: grid; place-items: center; font-weight: 800; }
.plain-step strong { display: block; margin-bottom: 3px; }
.plain-step p { margin: 0; }

.text-link { border: 0; background: transparent; color: var(--muted); padding: 0; margin-bottom: 18px; font-weight: 800; }
.detail-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 0.55fr); gap: 24px; align-items: stretch; }
.detail-hero > img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; border-radius: 0; box-shadow: var(--shadow); }
.detail-panel { background: #fff; border: 1px solid var(--border); border-radius: 0; padding: clamp(24px, 4vw, 42px); box-shadow: var(--shadow); }
.detail-panel h1 { font-size: clamp(36px, 4vw, 58px); }
.detail-price { margin-top: 24px; border-top: 1px solid var(--border); padding-top: 20px; }
.detail-price strong { display: block; font-size: 28px; letter-spacing: -0.04em; }
.detail-price span { color: var(--muted); }

.auth-shell { min-height: calc(100vh - 86px); display: grid; place-items: center; }
.auth-card { max-width: 620px; background: #fff; border: 1px solid var(--border); border-radius: 0; padding: clamp(28px, 6vw, 58px); box-shadow: var(--shadow); }
.auth-card h1 { font-size: clamp(38px, 5vw, 62px); }
.help-copy { margin-top: 24px; font-size: 14px; }
.help-copy a { font-weight: 800; color: var(--accent-dark); }

.dashboard-shell { display: grid; grid-template-columns: 290px minmax(0, 1fr); min-height: 100vh; }
.side-panel { background: #201a16; color: #fff; padding: 26px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.side-panel img { width: 120px; margin-bottom: 28px; }
.side-panel h2 { font-size: 24px; margin-bottom: 8px; color: #fff; }
.side-panel p { color: rgba(255,255,255,0.68); font-size: 14px; }
.side-panel nav { display: grid; gap: 8px; margin-top: 22px; }
.side-panel nav button { border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.04); color: #fff; border-radius: 0; min-height: 44px; padding: 12px 14px; text-align: left; font-weight: 800; }
.side-panel nav button.active, .side-panel nav button:hover { background: #fff; color: var(--ink); }
.dashboard-main { padding: clamp(24px, 5vw, 56px); }
.dash-stack { display: grid; gap: 24px; }
.page-title h1 { font-size: clamp(36px, 5vw, 60px); margin-bottom: 10px; }
.page-title p:last-child { max-width: 720px; }
.action-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.action-card, .form-card, .next-card, .wizard-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 24px;
  box-shadow: rgba(0,0,0,0.025) 0 0 0 1px, rgba(0,0,0,0.04) 0 8px 22px;
}
.action-card h3 { font-size: 20px; margin-bottom: 8px; }
.action-card p { min-height: 56px; }
.next-card { background: linear-gradient(135deg, #fff 0%, var(--surface-warm) 100%); }
.next-card > span, .metric-grid span { color: var(--accent-dark); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.next-card h2 { max-width: 680px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.metric-grid > div { background: #fff; border: 1px solid var(--border); border-radius: 0; padding: 20px; }
.metric-grid strong { display: block; margin-top: 8px; font-size: 34px; letter-spacing: -0.05em; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 8px; }
.field.full, .check-row, .privacy-note.full { grid-column: 1 / -1; }
.field span { font-size: 13px; font-weight: 800; color: #4d453e; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  border-radius: 0;
  padding: 13px 14px;
  min-height: 48px;
  outline: none;
}
.field textarea { min-height: 116px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field small { color: var(--muted); line-height: 1.45; }
.check-row { display: flex; align-items: center; gap: 10px; color: #443d38; font-weight: 700; }
.check-row input { width: 18px; height: 18px; accent-color: var(--accent-dark); }
.privacy-note { margin-top: 18px; border: 1px solid var(--border); border-radius: 0; padding: 14px 16px; background: var(--surface-warm); }
.privacy-note summary { font-weight: 800; cursor: pointer; }
.privacy-note p { margin: 10px 0 0; }
.error-copy { color: var(--danger); font-weight: 800; }

.wizard-shell { max-width: 920px; }
.wizard-card { padding: clamp(24px, 5vw, 42px); }
.wizard-top { display: flex; justify-content: space-between; gap: 24px; align-items: start; margin-bottom: 26px; }
.wizard-top h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 10px; }
.step-pill { background: var(--ink); color: #fff; min-width: 58px; height: 58px; display: grid; place-items: center; border-radius: 0; font-weight: 800; }
.wizard-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; border-top: 1px solid var(--border); padding-top: 22px; }
.selected-property { display: grid; grid-template-columns: 170px 1fr; gap: 18px; align-items: center; background: var(--surface-warm); border: 1px solid var(--border); border-radius: 0; padding: 14px; margin-bottom: 18px; }
.selected-property.compact { grid-template-columns: 112px 1fr; }
.selected-property img { width: 100%; aspect-ratio: 1.2 / 1; object-fit: cover; border-radius: 0; }
.selected-property h2 { font-size: 24px; }
.review-list { display: grid; gap: 10px; }
.review-row { display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--border); padding: 14px 0; }
.review-row span { color: var(--muted); font-weight: 700; }
.review-row strong { text-align: right; }
.consent-box { margin-top: 22px; background: var(--surface-warm); border: 1px solid var(--border); border-radius: 0; padding: 18px; }
.consent-box p { color: #3f3832; }

.toast { position: fixed; right: 22px; bottom: 22px; background: var(--ink); color: #fff; border-radius: 0; padding: 14px 18px; z-index: 40; box-shadow: var(--shadow); font-weight: 800; }

@media (max-width: 980px) {
  .hero-clean, .detail-hero, .split-band, .dashboard-shell { grid-template-columns: 1fr; }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side-panel { position: relative; top: 0; height: auto; }
  .side-panel nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-hero > img { min-height: 360px; }
}

@media (max-width: 680px) {
  .site-header { align-items: stretch; flex-direction: column; padding: 14px 18px; }
  .brand span { display: none; }
  .site-nav { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
  .site-nav button { padding-inline: 8px; }
  h1 { font-size: 42px; }
  .hero-clean, .section-simple, .content-shell, .detail-shell, .wizard-shell, .auth-shell, .dashboard-main { padding-inline: 18px; }
  .listing-grid, .action-grid, .metric-grid, .form-grid { grid-template-columns: 1fr; }
  .section-title, .listings-head, .wizard-top { flex-direction: column; align-items: start; }
  .selected-property { grid-template-columns: 1fr; }
  .wizard-actions { flex-direction: column-reverse; }
  .wizard-actions .btn { width: 100%; }
  .card-actions { flex-direction: column; align-items: start; }
  .side-panel nav { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

.site-nav button.auth-nav-button {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.site-nav button.auth-nav-button:hover,
.site-nav button.auth-nav-button.active {
  background: #000;
  color: #fff;
  border-color: #000;
}
