/* ─── Design tokens ────────────────────────────────────────────── */
:root {
  --paper:       #F7F4EE;
  --surface:     #FFFFFF;
  --ink:         #14110E;
  --slate:       #5C5853;
  --line:        #E3DDD2;
  --brand:       #173A2F;
  --action:      #173A2F;
  --focus:       #1F7A4D;

  --under:       #1F7A4D;
  --under-bg:    #E7F2EC;
  --fair:        #5C5853;
  --fair-bg:     #EFEBE3;
  --over:        #B23A2E;
  --over-bg:     #F6E7E3;
  --unvalued:    #8A857C;
  --unvalued-bg: #F0EDE6;

  --header-h: 64px;
}

/* ─── Base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

h1, h2, h3, h4, h5 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

.num {
  font-family: 'IBM Plex Mono', monospace;
  font-feature-settings: "tnum" 1;
}

a { color: inherit; text-decoration: none; }
a:hover { color: inherit; }

/* ─── Shared buttons ────────────────────────────────────────────── */
.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  background: var(--action);
  color: #fff;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  transition: opacity .15s;
  text-decoration: none;
  line-height: 1;
}
.btn-action:hover { opacity: .87; color: #fff; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: transparent;
  color: var(--ink);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  text-decoration: none;
  line-height: 1;
}
.btn-ghost:hover { border-color: var(--slate); background: var(--paper); color: var(--ink); }
.btn-ghost.danger { color: var(--over); border-color: var(--over); }
.btn-ghost.danger:hover { background: var(--over-bg); color: var(--over); border-color: var(--over); }

.btn-full { width: 100%; justify-content: center; }
.btn-action.btn-lg, .btn-ghost.btn-lg { font-size: 16px; padding: 13px 28px; }

/* ─── Section label ─────────────────────────────────────────────── */
.section-label {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 10px;
}

/* ─── Verdict pill ──────────────────────────────────────────────── */
.verdict-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}
.verdict-pill.under   { background: var(--under-bg);   color: var(--under);   }
.verdict-pill.fair    { background: var(--fair-bg);    color: var(--fair);    }
.verdict-pill.over    { background: var(--over-bg);    color: var(--over);    }
.verdict-pill.unvalued{ background: var(--unvalued-bg);color: var(--unvalued);}

.verdict-cite {
  font-size: 11px;
  color: var(--unvalued);
  margin-top: 5px;
}

/* ══════════════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════════════ */
.hs-header {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.hs-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hs-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--brand);
}
.hs-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--brand);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hs-logo-mark i { color: #fff; font-size: 18px; }

.hs-header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hs-nav-link {
  padding: 7px 13px;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  border-radius: 7px;
  transition: color .15s, background .15s;
}
.hs-nav-link:hover, .hs-nav-link.active { color: var(--ink); background: var(--paper); }

.hs-header-divider {
  width: 1px;
  height: 20px;
  background: var(--line);
  margin: 0 4px;
}

.hs-hamburger {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
}

/* Account dropdown in header */
.hs-account-dropdown { position: relative; }
.hs-account-dropdown .dropdown-menu {
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(20,17,14,.10);
  padding: 6px;
  min-width: 180px;
}
.hs-account-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: background .15s;
}
.hs-account-dropdown .dropdown-item:hover { background: var(--paper); }
.hs-account-dropdown .dropdown-item.danger { color: var(--over); }
.hs-account-dropdown .dropdown-item.danger:hover { background: var(--over-bg); }
.hs-account-dropdown .dropdown-item i { font-size: 17px; flex-shrink: 0; color: var(--slate); }
.hs-account-dropdown .dropdown-item.danger i { color: var(--over); }

@media (max-width: 991px) {
  .hs-header { height: 54px; }
  .hs-header-nav { display: none; }
  .hs-hamburger { display: flex; }
}

/* Offcanvas mobile nav */
.hs-offcanvas .offcanvas-header { border-bottom: 1px solid var(--line); }
.hs-offcanvas .mob-nav-item a {
  display: block;
  font-size: 16px;
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.hs-offcanvas .mob-nav-item a.danger { color: var(--over); }

/* ══════════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════════ */
.hs-footer {
  background: var(--ink);
  padding: 56px 0 32px;
}
.hs-footer-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.hs-footer-logo-mark {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,.12);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hs-footer-logo-mark i { color: #fff; font-size: 15px; }
.hs-footer-desc {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  max-width: 260px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.hs-footer-social { display: flex; gap: 8px; }
.hs-footer-social a {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.55);
  font-size: 17px;
  transition: background .15s, color .15s;
}
.hs-footer-social a:hover { background: rgba(255,255,255,.15); color: #fff; }

.hs-footer-col-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  margin-bottom: 14px;
}
.hs-footer-links { list-style: none; padding: 0; margin: 0; }
.hs-footer-links li { margin-bottom: 9px; }
.hs-footer-links a { font-size: 14px; color: rgba(255,255,255,.5); transition: color .15s; }
.hs-footer-links a:hover { color: rgba(255,255,255,.88); }

.hs-footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,.35);
}

@media (max-width: 767px) {
  .hs-footer { padding: 40px 0 24px; }
  .hs-footer-desc { max-width: 100%; }
}

/* ══════════════════════════════════════════════════════════════════
   ACCOUNT LAYOUT (profile, favorites, membership, change-password)
══════════════════════════════════════════════════════════════════ */
.account-page { padding: 48px 0 72px; min-height: calc(100vh - var(--header-h)); }
.account-sidebar { position: sticky; top: 80px; }
.account-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.account-avatar i { font-size: 36px; color: var(--slate); }
.account-username {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  color: var(--ink);
}
.account-email {
  font-size: 13px;
  color: var(--slate);
  text-align: center;
  margin-bottom: 20px;
}
.account-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.account-nav li { margin-bottom: 2px; }
.account-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  transition: background .15s, color .15s;
}
.account-nav-link:hover { background: var(--paper); color: var(--ink); }
.account-nav-link.active { background: var(--under-bg); color: var(--under); }
.account-nav-link.danger { color: var(--over); }
.account-nav-link.danger:hover { background: var(--over-bg); color: var(--over); }
.account-nav-link i { font-size: 18px; flex-shrink: 0; }

.account-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
}
.account-card-title {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}
.account-card-sub { font-size: 14px; color: var(--slate); margin-bottom: 28px; }

.form-actions { display: flex; gap: 10px; padding-top: 8px; }

/* ══════════════════════════════════════════════════════════════════
   FORM FIELDS (auth, profile, change-password, contact)
══════════════════════════════════════════════════════════════════ */
.hs-form-group { margin-bottom: 16px; }
.hs-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.hs-form-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.hs-form-input-wrap { position: relative; }
.hs-form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
}
.hs-form-input::placeholder { color: var(--unvalued); }
.hs-form-input:focus { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(31,122,77,.10); }
.hs-form-input:disabled { background: var(--paper); color: var(--slate); cursor: not-allowed; }
.hs-form-input.has-toggle { padding-right: 44px; }
.hs-form-input.is-error { border-color: var(--over); }
.hs-form-input.is-error:focus { box-shadow: 0 0 0 3px rgba(178,58,46,.10); }

.hs-pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--slate);
  font-size: 18px;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color .15s;
}
.hs-pw-toggle:hover { color: var(--ink); }

.hs-field-error { font-size: 12px; color: var(--over); margin-top: 5px; display: none; }
.hs-field-error.show { display: block; }

.hs-form-error {
  background: var(--over-bg);
  border: 1px solid var(--over);
  border-radius: 9px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--over);
}

@media (max-width: 480px) {
  .hs-form-row { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════
   AUTH CARD (login, register, password reset pages)
══════════════════════════════════════════════════════════════════ */
.hs-auth-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}
.hs-auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px 40px 36px;
  box-shadow: 0 4px 32px rgba(20,17,14,.07);
}
.hs-auth-card.wide { max-width: 480px; }

.hs-auth-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.hs-auth-logo-mark {
  width: 40px;
  height: 40px;
  background: var(--brand);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hs-auth-logo-mark i { color: #fff; font-size: 22px; }
.hs-auth-logo-name {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
}

.hs-auth-title { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.hs-auth-sub { font-size: 14px; color: var(--slate); margin-bottom: 28px; }

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s, border-color .15s;
  margin-bottom: 20px;
  text-decoration: none;
}
.btn-google:hover { background: var(--paper); border-color: var(--slate); color: var(--ink); }
.btn-google svg { flex-shrink: 0; }

.hs-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--unvalued);
  margin-bottom: 20px;
}
.hs-auth-divider::before, .hs-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.hs-form-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 8px;
}
.hs-remember { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--slate); cursor: pointer; }
.hs-remember input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--focus); cursor: pointer; }
.hs-forgot { font-size: 13px; color: var(--slate); transition: color .15s; }
.hs-forgot:hover { color: var(--ink); }

.btn-sign-in {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 13px 20px;
  background: var(--action);
  color: #fff;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity .15s;
  margin-bottom: 20px;
}
.btn-sign-in:hover { opacity: .87; }

.btn-create {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 13px 20px;
  background: var(--action);
  color: #fff;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity .15s;
  margin-bottom: 20px;
}
.btn-create:hover { opacity: .87; }

.hs-terms {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 20px;
  cursor: pointer;
}
.hs-terms input[type="checkbox"] { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; accent-color: var(--focus); cursor: pointer; }
.hs-terms a { color: var(--action); font-weight: 600; }
.hs-terms a:hover { opacity: .8; }

.hs-auth-switch { text-align: center; font-size: 14px; color: var(--slate); }
.hs-auth-switch a { color: var(--action); font-weight: 600; transition: opacity .15s; }
.hs-auth-switch a:hover { opacity: .8; }

.hs-data-note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--unvalued);
  line-height: 1.5;
}
.hs-data-note i { font-size: 14px; flex-shrink: 0; margin-top: 1px; }

.hs-auth-footer {
  text-align: center;
  padding: 20px 16px;
  font-size: 12px;
  color: var(--unvalued);
  border-top: 1px solid var(--line);
  background: var(--surface);
  flex-shrink: 0;
}
.hs-auth-footer a { color: var(--slate); transition: color .15s; }
.hs-auth-footer a:hover { color: var(--ink); }

@media (max-width: 480px) {
  .hs-auth-card { padding: 28px 20px 24px; border-radius: 16px; }
}

/* ══════════════════════════════════════════════════════════════════
   PROPERTY CARD (home featured, favorites)
══════════════════════════════════════════════════════════════════ */
.prop-card-wrap {
  position: relative;
  height: 100%;
  transition: transform .18s ease;
}
.prop-card-wrap:hover { transform: translateY(-4px); }

.prop-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  transition: box-shadow .18s ease;
}
.prop-card-wrap:hover .prop-card {
  box-shadow: 0 10px 28px rgba(20,17,14,.10);
}

.prop-card-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.prop-card-img-ph {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
}
.prop-card-img-ph i { font-size: 36px; opacity: .4; }

.prop-card-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background .15s;
  z-index: 1;
}
.prop-card-wishlist:hover { background: #fff; }
.prop-card-wishlist i { font-size: 17px; color: var(--slate); }
.prop-card-wishlist .heart-filled { display: none; color: #E53935; }
.prop-card-wishlist.active .heart-empty { display: none; }
.prop-card-wishlist.active .heart-filled { display: block; color: #E53935; }
.prop-card-wishlist.active { background: #fff; border-color: rgba(229,57,53,.25); }

/* Saved/favorites heart badge (always-filled) */
.prop-card-heart {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--over-bg);
  border-radius: 7px;
  z-index: 1;
}
.prop-card-heart i { font-size: 16px; color: #E53935; }

.prop-card-body { padding: 14px 16px 16px; position: relative; }

.prop-card-addr {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prop-card-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.prop-card-tag-dot {
  width: 3px;
  height: 3px;
  background: var(--line);
  border-radius: 50%;
  flex-shrink: 0;
}

.prop-card-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 14px;
}
.prop-card-price-main {
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
}
.prop-card-price-label {
  font-size: 13px;
  color: var(--slate);
  font-weight: 400;
}

.prop-card-verdict {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.prop-card-verdict .verdict-pill { margin-bottom: 7px; }
.prop-card-fair-row {
  font-size: 13px;
  color: var(--slate);
}
.prop-card-fair-row .num { font-size: 13px; color: var(--ink); }

.hs-empty-state { text-align: center; padding: 40px 0; color: var(--slate); }
.hs-empty-state i { font-size: 40px; margin-bottom: 12px; display: block; opacity: .4; }
.hs-empty-state p { font-size: 15px; margin-bottom: 20px; }

/* ══════════════════════════════════════════════════════════════════
   STATUS / TRANSACTION PAGES (payment, email verification)
══════════════════════════════════════════════════════════════════ */
.hs-status-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 16px;
}
.hs-status-card {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 44px 40px 40px;
  text-align: center;
  box-shadow: 0 4px 32px rgba(20,17,14,.07);
}
.hs-status-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 30px;
}
.hs-status-icon.sm { width: 56px; height: 56px; font-size: 26px; }
.hs-status-icon.success { background: var(--under-bg); color: var(--under); }
.hs-status-icon.error   { background: var(--over-bg);  color: var(--over);  }
.hs-status-icon.info    { background: var(--fair-bg);  color: var(--fair);  }
.hs-status-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.hs-status-body { font-size: 15px; color: var(--slate); margin-bottom: 28px; line-height: 1.65; }
.hs-status-hint { font-size: 13px; color: var(--slate); margin-bottom: 24px; }
.hs-status-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hs-status-actions.col { flex-direction: column; }

@media (max-width: 480px) {
  .hs-status-card { padding: 32px 20px 28px; }
}
