/* ==========================================================================
   Rentitt design system — bright green (#47FF47), deep green + orange accent
   ========================================================================== */

:root {
  --brand: #47ff47;
  --brand-strong: #2ee82e;
  --brand-ink: #06270a;
  --green-950: #0d2f14;
  --green-900: #123d1a;
  --green-800: #1c5a26;
  --green-700: #287f32;
  --green-650: #2f8d3a;
  --green-600: #33993f;
  --green-200: #c6e5cb;
  --green-100: #e7f4e9;
  --green-50: #f4faf5;

  --orange-700: #a54b15;
  --orange-600: #c75f1a;
  --orange-500: #e97320;
  --orange-200: #fbd4b3;
  --orange-100: #fef3e8;
  --orange-50: #fff9f4;

  --ink: #0a0a0a;
  --ink-2: #232823;
  --muted: #5f6b62;
  --muted-2: #8a948c;
  --border: #e3e8e3;
  --border-strong: #d2dad3;
  --surface: #ffffff;
  --surface-2: #f8faf8;
  --surface-3: #f1f5f1;

  --danger: #c0392b;
  --danger-bg: #fdecea;
  --warning: #b7791f;
  --warning-bg: #fdf6e3;
  --info: #2b6cb0;
  --info-bg: #ebf3fb;
  --success: #1e7a34;
  --success-bg: #e7f4e9;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 40, 22, 0.06);
  --shadow: 0 4px 16px rgba(16, 40, 22, 0.08);
  --shadow-lg: 0 18px 44px rgba(16, 40, 22, 0.14);
  --sidebar-w: 264px;
  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface-2);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-800); }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.9rem, 3vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
h3 { font-size: 1.18rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 840px; }
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.grid { display: grid; gap: 20px; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; }
.flex { display: flex; gap: 12px; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.center { justify-content: center; }
.end { justify-content: flex-end; }
.col { flex-direction: column; align-items: stretch; }
.grow { flex: 1 1 auto; min-width: 0; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.ml-auto { margin-left: auto; }
.text-sm { font-size: .86rem; }
.text-xs { font-size: .76rem; }
.text-muted { color: var(--muted); }
.text-green { color: var(--green-700); }
.text-orange { color: var(--orange-600); }
.text-danger { color: var(--danger); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.strong { font-weight: 600; }
.mono { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.divider { height: 1px; background: var(--border); margin: 18px 0; }
.muted-box { background: var(--surface-3); border-radius: var(--radius); padding: 14px 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius); border: 1px solid transparent;
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
  text-align: center; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn[hidden] { display: none; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-strong); color: var(--brand-ink); }
.btn-accent { background: var(--orange-500); color: #fff; }
.btn-accent:hover { background: var(--orange-600); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a2a2a; color: #fff; }
.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--green-700); color: var(--green-700); background: var(--green-50); }
.btn-ghost { background: transparent; color: var(--green-700); }
.btn-ghost:hover { background: var(--green-50); }
.btn-light { background: #fff; color: var(--green-800); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #a5301f; color: #fff; }
.btn-sm { padding: 6px 12px; font-size: .8rem; border-radius: 8px; }
.btn-lg { padding: 14px 26px; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }
.btn-group { display: inline-flex; gap: 8px; flex-wrap: wrap; }

/* ---------- public header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { position: relative; display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.22rem; color: var(--green-800); letter-spacing: -0.02em; }
.brand:hover { color: var(--green-800); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand);
  color: var(--brand-ink); font-weight: 700; font-size: 1rem; flex: none;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .14);
}
.brand-mark span { color: var(--orange-500); margin-left: 1px; }
.brand-logo { height: 40px; width: auto; max-width: 200px; object-fit: contain; flex: none; border-radius: 9px; }
.site-header .brand-logo { height: 50px; }
.sidebar-brand .brand-logo { height: 44px; background: #fff; padding: 3px; border-radius: 10px; }
.auth-side .brand-logo { height: 110px; background: #fff; padding: 8px; border-radius: 16px; }
.footer-brand .brand-logo { height: 92px; background: #fff; padding: 8px; border-radius: 16px; }
.brand-name { line-height: 1; }
.site-nav {
  display: flex; align-items: center; gap: 12px;
  position: absolute; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
}
.site-nav a { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); font-size: .84rem; font-weight: 500; padding: 6px 2px; border-bottom: 2px solid transparent; }
.site-nav a .ico { flex: none; color: var(--muted-2); transition: color .15s ease; }
.site-nav a:hover .ico, .site-nav a.active .ico { color: var(--green-700); }
.site-nav a:hover { color: var(--green-700); }
.site-nav a.active { color: var(--green-700); border-bottom-color: var(--orange-500); }
.site-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.4rem; cursor: pointer; color: var(--ink); }
.nav-toggle span { display: inline-flex; align-items: center; justify-content: center; }
.nav-toggle .nav-icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-icon-close { display: inline-flex; }
.site-nav-auth { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 88% -10%, rgba(233, 115, 32, .16), transparent 60%),
    radial-gradient(700px 420px at 5% 110%, rgba(71, 255, 71, .30), transparent 60%),
    linear-gradient(160deg, #f7fbf7 0%, #ffffff 55%, #fff8f2 100%);
  border-bottom: 1px solid var(--border);
}
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--green-100); color: var(--green-800); font-weight: 600; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; margin-bottom: 18px; }
.eyebrow.orange { background: var(--orange-100); color: var(--orange-700); }
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--green-700); background: linear-gradient(180deg, transparent 64%, rgba(71, 255, 71, .6) 64%); }
.hero-lead { font-size: 1.08rem; color: var(--muted); max-width: 52ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-trust { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hero-trust div strong { display: block; font-size: 1.35rem; color: var(--green-800); }
.hero-trust div span { font-size: .82rem; color: var(--muted); }

.hero-card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl);
  box-shadow: 0 30px 64px -32px rgba(9, 41, 15, .45), 0 2px 6px rgba(9, 41, 15, .04);
  width: 100%; max-width: 520px; justify-self: end;
}
.hero-card::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px;
  background: linear-gradient(90deg, var(--green-700), var(--green-600) 55%, var(--orange-500));
}
.hero-card-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 22px 20px 15px; border-bottom: 1px solid var(--border);
}
.hero-card-eyebrow {
  display: inline-flex; align-items: center; gap: 5px; color: var(--green-800);
  background: var(--green-50); border: 1px solid var(--green-200);
  padding: 4px 9px; border-radius: 999px; font-size: .68rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
}
.hero-card-head h3 { margin: 8px 0 0; font-size: 1.18rem; letter-spacing: -0.025em; }
.hero-card-link {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  color: var(--green-800); background: var(--green-50); border: 1px solid var(--green-200);
  padding: 7px 11px; border-radius: 999px; font-size: .76rem; font-weight: 700;
  transition: background .15s, border-color .15s;
}
.hero-card-link:hover { background: var(--green-100); border-color: var(--green-200); color: var(--green-900); }
.hero-card-list { padding: 5px 20px 0; }
.mini-listing {
  display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border);
  align-items: center; color: inherit;
}
.mini-listing:last-child { border-bottom: 0; }
.mini-listing:hover .mini-title { color: var(--green-700); }
.mini-media {
  width: 68px; height: 60px; flex: none; border-radius: 12px; overflow: hidden;
  background: linear-gradient(135deg, var(--green-100), var(--green-200));
  display: grid; place-items: center;
}
.mini-listing img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.mini-listing:hover img { transform: scale(1.06); }
.mini-thumb {
  display: grid; place-items: center; width: 100%; height: 100%;
  color: var(--green-700); font-weight: 700; font-size: .8rem; letter-spacing: .06em;
}
.mini-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.mini-title {
  font-weight: 650; font-size: .88rem; color: var(--ink); line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s;
}
.mini-meta {
  display: flex; align-items: center; gap: 4px; color: var(--muted);
  font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mini-meta svg { flex: none; }
.mini-rating { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; color: var(--muted); }
.mini-rating .stars { font-size: .7rem; }
.mini-price {
  flex: none; text-align: right; font-weight: 750; font-size: .96rem;
  color: var(--green-800); letter-spacing: -0.02em; line-height: 1.15;
}
.mini-price small { display: block; font-size: .64rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.hero-card-foot {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  padding: 12px 20px; background: #f8faf8; border-top: 1px solid var(--border);
  color: var(--muted); font-size: .74rem;
}
.hero-card-foot strong { color: var(--green-800); }
.status-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #22c55e; flex: none;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .16);
}
.hero-card-secure {
  margin-left: auto; display: inline-flex; align-items: center; gap: 4px;
  color: var(--green-800); font-weight: 600;
}

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.card-pad { padding: 22px; }
.card-head { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; font-size: 1.05rem; }
.card-body { padding: 22px; }
.card-body.tight { padding: 14px 18px; }
.card-foot { padding: 14px 22px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font-size: 1.65rem; margin-bottom: 4px; }
.page-head p { color: var(--muted); margin: 0; font-size: .92rem; }

/* ---------- stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
/* Portfolios can show a fifth metric; let the row fit as many as the width allows. */
.stat-grid.stat-grid-auto { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px 20px; position: relative; overflow: hidden;
}
.stat::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--brand); opacity: .95; }
.stat.accent::before { background: var(--orange-500); }
.stat .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.stat .value { font-size: 1.65rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; margin-top: 6px; }
.stat .hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }

/* ---------- property cards ---------- */
.property-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .15s, transform .15s; display: flex; flex-direction: column; }
.property-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.property-media { display: block; position: relative; aspect-ratio: 16 / 10; background: linear-gradient(140deg, var(--green-100), #e9efe9); overflow: hidden; }
.property-media img { width: 100%; height: 100%; object-fit: cover; }
.media-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: var(--green-700); font-weight: 700; font-size: 1.1rem; letter-spacing: .06em; }
.property-tag { position: absolute; top: 12px; left: 12px; background: rgba(255, 255, 255, .95); color: var(--green-800); font-size: .72rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.property-price { position: absolute; bottom: 12px; left: 12px; background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: .86rem; padding: 6px 11px; border-radius: 8px; }
.property-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.property-body h3 { font-size: 1.02rem; margin: 0; }
.property-body h3 a { color: inherit; }
.property-loc { color: var(--muted); font-size: .83rem; display: flex; gap: 6px; align-items: center; }
.property-meta { display: flex; flex-wrap: wrap; gap: 10px 14px; color: var(--muted); font-size: .8rem; border-top: 1px solid var(--border); padding-top: 10px; margin-top: auto; align-items: center; }
.property-meta span { display: inline-flex; gap: 5px; align-items: center; }

/* compact property thumbnails inside portals */
.portal-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-3); }
.portal-cover-sm { width: 76px; height: 58px; flex: none; object-fit: cover; border-radius: 9px; border: 1px solid var(--border); background: var(--surface-3); }
.portal-cover-row { display: flex; gap: 12px; align-items: center; min-width: 0; }

/* Ratings, sharing and reviews */
.stars { display: inline-flex; gap: 1px; color: #d5dcd5; font-size: .9rem; line-height: 1; letter-spacing: .02em; }
.stars .on { color: #f5a623; }
.rating-inline { white-space: nowrap; }
.rating-inline .stars { font-size: .78rem; }
.rating-summary { display: flex; align-items: center; gap: 8px; font-size: .86rem; }
.rating-score { display: flex; align-items: baseline; gap: 6px; }
.rating-score strong { font-size: 1.6rem; color: var(--green-800); letter-spacing: -0.02em; }
.share-btn {
  display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--border);
  background: #fff; color: var(--ink-2); font: inherit; font-size: .78rem; font-weight: 600;
  padding: 4px 9px; border-radius: 999px; cursor: pointer;
}
.share-btn:hover { background: var(--green-50); border-color: var(--green-200); color: var(--green-800); }
.share-btn.is-copied { border-color: var(--green-600); color: var(--green-800); }
.property-meta-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
  border-block: 1px solid var(--border); padding: 14px 0;
}
.property-meta-bar span { display: inline-flex; align-items: baseline; gap: 5px; }
.review-form { border-top: 1px solid var(--border); padding-top: 16px; }
.rating-options { display: flex; flex-wrap: wrap; gap: 8px; }
.rating-option {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 11px; font-size: .82rem; cursor: pointer; background: #fff;
}
.rating-option input { accent-color: var(--green-700); }
.rating-option:has(input:checked) { border-color: var(--green-600); background: var(--green-50); font-weight: 600; }
.review-list { display: flex; flex-direction: column; gap: 0; }
.review-item { border-top: 1px solid var(--border); padding: 12px 0; }
.review-item:first-child { border-top: 0; padding-top: 0; }
.review-item p { margin: 6px 0; }

/* M-Pesa prompt state */
.pay-pending { border-color: var(--green-200); }
.pay-pending-head { display: flex; gap: 12px; align-items: flex-start; }
.pay-pending-head h3 { font-size: 1.05rem; }
.pay-pulse {
  width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid;
  place-items: center; color: var(--green-800); background: var(--green-50);
  border: 1px solid var(--green-200); position: relative;
}
.pay-pulse::after {
  content: ""; position: absolute; inset: -1px; border-radius: 12px;
  border: 1px solid var(--green-600); opacity: 0; animation: pay-pulse 2s ease-out infinite;
}
@keyframes pay-pulse {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.22); opacity: 0; }
}
.pay-pending-amount {
  font-size: 2rem; letter-spacing: -0.04em; font-weight: 750;
  color: var(--green-800); margin: 16px 0 6px;
}
.pay-status {
  display: flex; align-items: center; gap: 9px; margin-top: 16px;
  background: var(--green-50); border: 1px solid var(--green-200);
  color: var(--green-800); padding: 11px 13px; border-radius: var(--radius);
  font-size: .84rem; font-weight: 600;
}
.pay-status.is-failed { background: var(--danger-bg); border-color: #f0c2c2; color: var(--danger); }
.pay-status.is-confirmed { background: var(--success-bg); border-color: #bfe3c6; color: var(--success); }
.spinner {
  width: 15px; height: 15px; border-radius: 50%; flex: none;
  border: 2px solid rgba(40, 127, 50, .22); border-top-color: var(--green-700);
  animation: spin .8s linear infinite;
}
.pay-status.is-failed .spinner, .pay-status.is-confirmed .spinner { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
code {
  background: var(--surface-3); border: 1px solid var(--border);
  border-radius: 5px; padding: 1px 5px; font-size: .92em;
}

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .74rem; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-muted { background: var(--surface-3); color: var(--muted); }
.badge-orange { background: var(--orange-100); color: var(--orange-700); }
.badge-green { background: var(--green-100); color: var(--green-800); }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.field > label, .label { font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.field .help, .help { font-size: .78rem; color: var(--muted); }
.field .errorlist, .errorlist { list-style: none; margin: 0; padding: 0; color: var(--danger); font-size: .8rem; }
.input, .select, .textarea, input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="tel"], input[type="date"], input[type="datetime-local"],
input[type="time"], input[type="file"], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border-strong);
  border-radius: var(--radius); background: #fff; font: inherit; font-size: .9rem; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.textarea, textarea { min-height: 90px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus, select:focus, textarea:focus, input:focus {
  outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(40, 127, 50, .13);
}
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; accent-color: var(--green-700); }
.checkbox-row { display: flex; align-items: flex-start; gap: 9px; font-size: .88rem; }
.checkbox-row label { font-weight: 500; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.form-note { background: var(--green-50); border: 1px solid var(--green-200); color: var(--green-800); padding: 12px 14px; border-radius: var(--radius); font-size: .85rem; }
.inline-form { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.input-sm { padding: 6px 10px; font-size: .82rem; }
.search-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.search-bar .input, .search-bar .select { width: auto; min-width: 160px; }
/* Search is the primary control: let it take the free space on desktop. */
.card-head .search-bar { flex: 1 1 auto; min-width: 0; }
.search-bar input[type="search"] { flex: 1 1 240px; min-width: 180px; }

/* ---------- live property search ---------- */
.live-search-form { position: relative; overflow: hidden; }
.live-search-form .search-bar { transition: opacity .15s ease; }
.live-search-form.is-searching .search-bar { opacity: .82; }
.live-search-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  opacity: 0; transition: opacity .15s ease; overflow: hidden;
}
.live-search-form.is-searching .live-search-progress { opacity: 1; }
.live-search-progress span {
  display: block; width: 38%; height: 100%; background: var(--brand);
  animation: live-search-slide 1.1s ease-in-out infinite;
}
@keyframes live-search-slide {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(300%); }
}
.live-results { transition: opacity .15s ease; }
.live-results[aria-busy="true"] { opacity: .55; pointer-events: none; }

/* Portal live search: the same behaviour on every list with a search box. */
[data-live-results] { transition: opacity .15s ease; }
[data-live-results][aria-busy="true"] { opacity: .5; pointer-events: none; }
.search-bar.is-searching { position: relative; }
.search-bar.is-searching input[type="search"] {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(51, 153, 63, .13);
}
.search-bar.is-searching::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--green-600), transparent);
  background-size: 45% 100%;
  background-repeat: no-repeat;
  animation: live-search-sweep 1s ease-in-out infinite;
}
@keyframes live-search-sweep {
  0% { background-position: -120% 0; }
  100% { background-position: 240% 0; }
}
.live-search-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.results-summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 20px; margin: 4px 0 16px;
}
.results-summary strong { color: #173a21; font-weight: 800; }

/* Listings page intro + filter panel */
.listings-intro {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  padding: 26px 28px;
  border: 1px solid #e3ece5;
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 10%, rgba(47, 143, 62, .14), transparent 42%),
    linear-gradient(135deg, #f4faf5 0%, #eef6f4 100%);
}
.listings-intro .page-head { margin-bottom: 0; align-items: center; }
.listings-intro .page-head > div:first-child { flex: 1 1 520px; min-width: 0; }
.listings-intro .pill-filters { flex: 0 1 auto; }
.listings-intro .eyebrow { margin-bottom: 14px; }
.listings-filter {
  border-color: #e7ece8;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(16, 40, 22, .05);
}
.listings-filter .search-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
}
.listings-filter .search-bar .input,
.listings-filter .search-bar .select {
  width: 100%;
  min-width: 0;
}
.listings-filter .search-bar input[type="search"] { grid-column: span 2; }
.listings-filter .filter-submit { grid-column: span 3; }
.listings-filter.has-filters .filter-submit { grid-column: span 2; }
.listings-filter .filter-reset { grid-column: span 1; }
@media (max-width: 900px) {
  .listings-filter .search-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listings-filter .search-bar input[type="search"],
  .listings-filter .filter-submit { grid-column: span 2; }
}
@media (max-width: 620px) {
  .listings-intro { padding: 20px; border-radius: 16px; }
  .listings-filter .search-bar { grid-template-columns: minmax(0, 1fr); }
  .listings-filter .search-bar input[type="search"],
  .listings-filter .search-bar .filter-submit,
  .listings-filter .search-bar .filter-reset,
  .listings-filter .search-bar > * { grid-column: span 1; }
}
.live-search-state { font-size: .8rem; color: var(--muted); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .live-search-progress span { animation: none; transform: none; width: 100%; }
  .live-results, .live-search-form .search-bar { transition: none; }
  .search-bar.is-searching::after { animation: none; background: var(--green-600); opacity: .55; }
  [data-live-results] { transition: none; }
}

/* radio role cards */
.role-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.role-option { position: relative; }
.role-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.role-option label {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--border-strong);
  border-radius: var(--radius); cursor: pointer; background: #fff; transition: all .15s;
}
.role-option label strong { display: block; font-size: .92rem; }
.role-option label span { font-size: .8rem; color: var(--muted); }
.role-option input:checked + label { border-color: var(--green-700); background: var(--green-50); box-shadow: 0 0 0 3px rgba(71, 255, 71, .26); }
.role-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--green-100); color: var(--green-800); display: grid; place-items: center; font-weight: 700; flex: none; }

/* ---------- tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.data th {
  text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); font-weight: 700; padding: 11px 14px; border-bottom: 1px solid var(--border);
  background: var(--surface-2); white-space: nowrap;
}
table.data td { padding: 13px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: var(--green-50); }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data tfoot td { font-weight: 700; border-top: 2px solid var(--border); background: var(--surface-2); }

/* ---------- tabs / filters ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 9px 14px; font-size: .87rem; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.active { color: var(--green-700); border-bottom-color: var(--green-700); }
.tabs a:hover { color: var(--green-700); }
.pill-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border-strong); background: #fff; font-size: .82rem; font-weight: 600; color: var(--muted); }
.pill.active { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 700; }

/* ---------- alerts / messages ---------- */
.messages { display: flex; flex-direction: column; gap: 8px; margin: 18px 0; }
.alert { padding: 12px 16px; border-radius: var(--radius); border: 1px solid transparent; font-size: .88rem; display: flex; gap: 10px; align-items: flex-start; transition: opacity .4s ease, transform .4s ease; }
.alert-success { background: var(--success-bg); border-color: #bfe3c7; color: #145c27; }
.alert.alert-fade { opacity: 0; transform: translateY(-6px); }
.alert-error, .alert-danger { background: var(--danger-bg); border-color: #f3c9c4; color: #8e2419; }
.alert-warning { background: var(--warning-bg); border-color: #f0e0b8; color: #7a5413; }
.alert-info, .alert-debug { background: var(--info-bg); border-color: #c9ddf2; color: #1e4f83; }

/* ---------- pagination ---------- */
.pagination { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong); border-radius: 9px; font-size: .85rem; color: var(--ink-2); background: #fff;
}
.pagination .current { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 700; }
.pagination .disabled { opacity: .45; }

/* ---------- empty state ---------- */
.empty { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty .glyph { width: 54px; height: 54px; border-radius: 16px; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; margin: 0 auto 14px; font-size: 1.4rem; font-weight: 700; }
.empty h3 { color: var(--ink); margin-bottom: 6px; }

/* ---------- public footer ---------- */
.site-footer {
  margin-top: 0;
  padding: 32px 0 24px;
  background: #062e1b;
  color: #d7e6d9;
}
.site-footer a { color: #eaf3ec; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 32px;
}
.footer-logo { display: inline-flex; align-items: center; gap: 9px; color: #fff; }
.footer-logo:hover { color: #fff; }
.footer-logo-img {
  width: auto;
  height: 56px;
  flex: none;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
  padding: 4px;
}
.footer-logo-house { display: inline-flex; color: #f08a3c; }
.footer-logo-name { color: #fff; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.footer-blurb {
  max-width: 38ch;
  margin: 14px 0 18px;
  color: #c7dac9;
  font-size: .83rem;
  line-height: 1.65;
}
.footer-social { display: flex; align-items: center; gap: 10px; }
.site-footer .footer-social-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.site-footer .footer-social-icon:hover,
.site-footer .footer-social-icon:focus-visible { color: #fff; }
.footer-social-icon:hover,
.footer-social-icon:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .28);
}
.footer-social-icon:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.footer-social-facebook { background: #1877f2; }
.footer-social-x { background: #111; }
.footer-social-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.footer-social-linkedin { background: #0a66c2; }
.footer-social .ico { fill: currentColor; stroke: none; }
.footer-social-instagram .ico { fill: none; stroke: currentColor; stroke-width: 1.8; }
.footer-col h3 {
  margin: 4px 0 14px;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; list-style: none; font-size: .84rem; }
.footer-col li { color: #c7dac9; line-height: 1.45; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact-icon { display: inline-flex; flex: none; margin-top: 2px; color: #8fb59a; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: #9dbaa4;
  font-size: .74rem;
}
.footer-bottom p { margin: 0; }
.footer-legal-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

@media (max-width: 767px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- auth ---------- */
.auth-shell { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-side {
  background:
    radial-gradient(600px 400px at 80% 10%, rgba(233, 115, 32, .25), transparent 60%),
    linear-gradient(160deg, var(--green-800), var(--green-950));
  color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between;
}
.auth-side h2 { color: #fff; font-size: 1.9rem; max-width: 20ch; }
.auth-side p { color: #cfe2d2; max-width: 42ch; }
.auth-side .brand { color: #fff; }
.auth-points { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 12px; font-size: .92rem; }
.auth-points li { display: flex; gap: 10px; align-items: flex-start; color: #e2efe4; }
.auth-points .tick { width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: grid; place-items: center; font-size: .7rem; flex: none; }
.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #fff; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card.wide { max-width: 620px; }
.auth-card h1 { font-size: 1.7rem; }
.auth-alt { text-align: center; font-size: .88rem; color: var(--muted); margin-top: 18px; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 10px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: #fff; font-weight: 600; font-size: .9rem; cursor: pointer; }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: var(--ink); border: 1px solid var(--border-strong); box-shadow: none; font-weight: 600; }
.btn-google:hover { background: #f8faf8; border-color: #c9d3cb; color: var(--ink); }
.btn-google svg { flex: 0 0 auto; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin: 18px 0; }
.or::before, .or::after { content: ""; height: 1px; background: var(--border); flex: 1; }

/* ---------- portal shell ---------- */
.portal-shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; background: var(--surface-2); }
.portal-sidebar { background: var(--green-950); color: #d9e8dc; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 20px 20px 16px; color: #fff; font-weight: 700; font-size: 1.1rem; }
.sidebar-role { padding: 0 20px 14px; }
.sidebar-role .badge { background: rgba(233, 115, 32, .18); color: var(--orange-200); font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; }
.sidebar-nav { padding: 6px 12px 20px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; }
.sidebar-nav .group { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: #7da886; padding: 14px 12px 6px; }
.sidebar-nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px; color: #cfe2d2; font-size: .885rem; font-weight: 500; margin-bottom: 2px; }
.sidebar-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sidebar-nav a.active { background: var(--brand); color: var(--brand-ink); font-weight: 700; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.sidebar-nav a.active .ico { opacity: 1; }
.sidebar-nav .ico { width: 18px; height: 18px; display: grid; place-items: center; opacity: .9; font-size: .78rem; }
.sidebar-nav .count { margin-left: auto; background: var(--orange-500); color: #fff; font-size: .68rem; padding: 1px 6px; border-radius: 999px; font-weight: 700; }
.sidebar-foot { padding: 14px; border-top: 1px solid rgba(255, 255, 255, .09); margin-top: auto; }
.sidebar-user { display: flex; gap: 10px; align-items: center; }
.sidebar-user .avatar { width: 34px; height: 34px; font-size: .78rem; }
.sidebar-user .who { font-size: .82rem; color: #fff; line-height: 1.25; }
.sidebar-user .who span { display: block; color: #8fb599; font-size: .72rem; }

.portal-main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 64px; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px; padding: 0 26px; position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(8px);
}
.topbar h1 { font-size: 1.02rem; margin: 0; }
.topbar .spacer { flex: 1; }
.portal-nav-toggle { display: none; }
.portal-nav-toggle span { display: inline-flex; align-items: center; justify-content: center; }
.portal-nav-toggle .when-open { display: none; }
.portal-nav-toggle[aria-expanded="true"] .when-closed { display: none; }
.portal-nav-toggle[aria-expanded="true"] .when-open { display: inline-flex; }
.portal-scrim { display: none; }
body.portal-nav-locked { overflow: hidden; }
.portal-content { padding: 26px; max-width: 1400px; width: 100%; }
.avatar {
  border-radius: 50%; background: var(--green-100); color: var(--green-800);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .82rem;
  width: 36px; height: 36px; flex: none; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.15rem; }
.avatar.orange { background: var(--orange-100); color: var(--orange-700); }

.notif-btn { position: relative; border: 1px solid var(--border); background: #fff; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; }
.notif-btn .dot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; background: var(--orange-500); border-radius: 50%; border: 2px solid #fff; }

/* ---------- detail lists ---------- */
.dl { display: grid; grid-template-columns: 160px 1fr; gap: 10px 16px; font-size: .89rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 500; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: .88rem; }
.kv:last-child { border-bottom: 0; }
.kv span:last-child { font-weight: 600; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 18px 24px; border-left: 2px solid var(--border); margin-left: 6px; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--green-700); }
.timeline .when { font-size: .75rem; color: var(--muted); }
.timeline .what { font-size: .88rem; }

.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.thumb-grid img { aspect-ratio: 4/3; object-fit: cover; border-radius: 9px; border: 1px solid var(--border); }

/* ---------- public detail gallery ---------- */
.gallery-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(140deg, var(--green-100), #e9efe9);
}
.gallery-stage > img { width: 100%; height: 100%; object-fit: cover; }
.gallery-stage:focus-visible { outline: 3px solid rgba(47, 143, 62, .45); outline-offset: -3px; }
.gallery-nav {
  position: absolute;
  top: 50%;
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: #173a21;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 40, 22, .18);
}
.gallery-nav:hover { background: #fff; }
.gallery-nav--prev { left: 12px; }
.gallery-nav--next { right: 12px; }
.gallery-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 999px;
  background: rgba(17, 24, 39, .74);
  padding: 4px 10px;
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
}
.gallery-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 9px;
  background: none;
  cursor: pointer;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.is-active { border-color: #2f8f3e; }
.gallery-thumb:focus-visible { outline: 3px solid rgba(47, 143, 62, .35); outline-offset: 2px; }

/* ---------- occupied property cards ---------- */
.property-card--unavailable { opacity: .94; }
.property-media--unavailable { cursor: default; }
.property-media--unavailable img { filter: grayscale(.18); }
.property-status {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 6px;
  background: rgba(31, 41, 55, .92);
  padding: 4px 9px;
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.occupied-section { border-top: 1px solid var(--border); padding-top: 28px; }

/* ---------- property photo manager ---------- */
.photo-cover-preview { position: relative; aspect-ratio: 16/9; max-width: 460px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface-3); margin-bottom: 16px; }
.photo-cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-source { position: absolute; right: 10px; bottom: 10px; background: rgba(17, 32, 23, .72); color: #fff; font-size: .7rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; }
.photo-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px dashed var(--border); }
.photo-row:last-of-type { border-bottom: 0; }
.photo-thumb { flex: none; width: 96px; height: 74px; object-fit: cover; border-radius: 9px; border: 1px solid var(--border); background: var(--surface-3); display: grid; place-items: center; color: var(--muted); }
.photo-thumb-empty { border-style: dashed; }
.photo-manager .field { margin-bottom: 8px; }
@media (max-width: 560px) {
  .photo-row { flex-direction: column; }
  .photo-thumb { width: 100%; height: auto; aspect-ratio: 16/9; }
}

/* ---------- pricing ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.plan-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 26px; display: flex; flex-direction: column; position: relative; }
.plan-card.popular { border-color: var(--brand); box-shadow: var(--shadow), 0 0 0 3px rgba(71, 255, 71, .18); }
.plan-card.ineligible { opacity: .72; background: var(--surface-2, #f8faf9); }
.plan-card.ineligible .plan-price { color: var(--muted); }
.plan-card.contact-only { border-color: var(--green-200); background: linear-gradient(180deg, var(--green-50) 0%, #fff 42%); }
.plan-card .form-note { margin-bottom: 0; }
.plan-card .flag { position: absolute; top: -12px; left: 24px; background: var(--orange-500); color: #fff; font-size: .7rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.plan-card .flag-custom { left: auto; right: 24px; background: var(--green-800); }
.plan-price { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.02em; margin: 8px 0 2px; }
.plan-price small { font-size: .82rem; font-weight: 500; color: var(--muted); }
.plan-features { list-style: none; padding: 0; margin: 18px 0 22px; display: flex; flex-direction: column; gap: 10px; font-size: .88rem; }
.plan-features li { display: flex; gap: 9px; align-items: flex-start; }
.plan-features .tick { color: var(--green-700); font-weight: 700; }

/* ---------- receipt ---------- */
.receipt { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; }
.receipt-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 2px solid var(--green-700); padding-bottom: 18px; margin-bottom: 22px; }
.receipt h2 { margin: 0; color: var(--green-800); }
.receipt .stamp { border: 2px solid var(--green-700); color: var(--green-700); border-radius: 8px; padding: 4px 12px; font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; transform: rotate(-4deg); }
.receipt-total { font-size: 1.5rem; font-weight: 700; }

/* ---------- admin console + analytics ---------- */
.admin-split { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.admin-split.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.admin-toolbar .input, .admin-toolbar .select { width: auto; min-width: 150px; }

.chart-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 22px; }
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.chart-head h2, .chart-head h3 { margin: 0; font-size: 1.02rem; }
.chart-head p { margin: 2px 0 0; font-size: .8rem; color: var(--muted); }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .76rem; color: var(--muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.chart-legend .brand { background: var(--brand); }
.chart-legend .deep { background: var(--green-700); }

.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 190px; padding: 8px 2px 0; border-bottom: 1px solid var(--border); }
.bar-chart .bar-group { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.bar-chart .bars { flex: 1; display: flex; align-items: flex-end; gap: 3px; }
.bar-chart .bar { flex: 1; min-height: 3px; border-radius: 5px 5px 0 0; background: var(--brand); transition: height .3s ease; }
.bar-chart .bar.deep { background: var(--green-700); }
.bar-chart .bar-label { text-align: center; font-size: .68rem; color: var(--muted); white-space: nowrap; }

.donut-wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.donut { width: 152px; height: 152px; border-radius: 50%; position: relative; flex: none; }
.donut::after { content: ""; position: absolute; inset: 26px; background: #fff; border-radius: 50%; }
.donut-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; z-index: 1; }
.donut-center strong { display: block; font-size: 1.3rem; line-height: 1.1; }
.donut-center span { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.donut-legend { display: flex; flex-direction: column; gap: 8px; min-width: 160px; }
.donut-legend .row { display: flex; align-items: center; gap: 8px; font-size: .82rem; }
.donut-legend i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.donut-legend b { margin-left: auto; }

.bar-list { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(90px, 1.6fr) auto; gap: 10px; align-items: center; font-size: .84rem; }
.bar-row .bar-track { height: 9px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bar-row .bar-fill { height: 100%; border-radius: 999px; background: var(--brand); }
.bar-row .bar-fill.deep { background: var(--green-700); }
.bar-row .bar-fill.orange { background: var(--orange-500); }
.bar-row .bar-num { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.chart-stat { display: flex; gap: 26px; flex-wrap: wrap; }
.chart-stat div strong { display: block; font-size: 1.15rem; }
.chart-stat div span { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.check-tile { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid var(--border-strong); border-radius: 9px; background: #fff; font-size: .86rem; font-weight: 500; cursor: pointer; }
.check-tile:has(input:checked) { border-color: var(--green-700); background: var(--green-50); }
.check-tile input { flex: none; }

.branding-preview { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface-2); }
.branding-preview img { max-height: 46px; width: auto; }
.branding-preview .logo-fallback { width: 46px; height: 46px; border-radius: 12px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; font-size: 1.15rem; }

.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.quick-card { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; color: var(--ink); font-size: .86rem; font-weight: 600; }
.quick-card:hover { border-color: var(--brand); background: var(--green-50); color: var(--ink); }
.quick-card .glyph { width: 34px; height: 34px; border-radius: 9px; background: var(--green-50); color: var(--green-800); display: grid; place-items: center; flex: none; }

/* ---------- insurance covers ---------- */
.insurance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.insurance-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.insurance-card-head { display: flex; align-items: flex-start; gap: 12px; }
.insurance-card-head h2 { margin: 0 0 3px; font-size: 1.02rem; }
.insurance-icon {
  width: 42px; height: 42px; flex: none; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--green-50); color: var(--green-700);
}
.insurance-card p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.6; }
.insurance-highlights { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.insurance-highlights li { display: flex; align-items: flex-start; gap: 7px; color: var(--ink-2); font-size: .82rem; }
.insurance-highlights .ico { flex: none; margin-top: 2px; color: var(--green-700); }
.insurance-summary {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  border-top: 1px solid var(--border); padding-top: 12px;
}
.insurance-summary > div { display: flex; flex-direction: column; gap: 2px; }
.insurance-summary strong { font-size: .98rem; color: var(--ink); }
.insurance-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: auto; padding-top: 6px;
}
.insurance-steps { margin: 0; padding-left: 18px; color: var(--muted); font-size: .86rem; line-height: 1.7; }
.insurance-steps li + li { margin-top: 4px; }

@media (max-width: 1100px) {
  .insurance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .insurance-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .site-header .container { gap: 16px; }
  .site-nav { gap: 8px; }
  .site-nav a { gap: 4px; font-size: .79rem; padding-inline: 1px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero .container { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .hero-card { justify-self: stretch; max-width: none; }
  .admin-split, .admin-split.even { grid-template-columns: minmax(0, 1fr); }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Just above the hamburger breakpoint the centred nav needs a little more room. */
@media (min-width: 981px) and (max-width: 1040px) {
  .site-nav { gap: 5px; }
  .site-nav a { gap: 3px; font-size: .76rem; }
}

/* Tablets and phones: menu buttons + slide-in navigation */
@media (max-width: 980px) {
  .site-header .container { height: 64px; gap: 12px; }
  .site-header .brand-logo { height: 50px; }
  .site-nav { display: none; position: static; left: auto; transform: none; white-space: normal; }
  .site-nav.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px 20px 18px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg); max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .site-nav.open a { padding: 11px 2px; border-bottom: 1px solid var(--border); font-size: .9rem; }
  .site-nav.open a.active { border-bottom-color: var(--orange-500); }
  .site-nav-auth { display: flex; gap: 10px; padding-top: 14px; }
  .site-nav-auth .btn { flex: 1; }
  .site-nav-auth a { border-bottom: 0; padding: 10px 14px; }
  .site-header.nav-open .site-actions { display: none; }
  /* Tablet: keep Sign In / Create Account pinned to the far right. */
  .site-actions { margin-left: 0; order: 3; }
  .nav-toggle {
    display: inline-flex; margin-left: auto; order: 2; width: 42px; height: 42px; flex: none;
    align-items: center; justify-content: center; color: var(--ink);
    border: 1px solid var(--border); border-radius: 10px; background: #fff;
  }
  .nav-toggle:hover { border-color: var(--border-strong); background: var(--surface-2); }

  .portal-shell { grid-template-columns: minmax(0, 1fr); }
  .portal-sidebar { position: static; height: auto; min-width: 0; max-width: 100%; background: transparent; }
  .sidebar-brand, .sidebar-role { display: none; }
  .sidebar-nav {
    position: fixed; top: 64px; bottom: 0; left: 0; width: min(320px, 84vw);
    z-index: 32; padding: 10px 12px 22px; gap: 0; overflow-y: auto;
    background: var(--green-950); box-shadow: var(--shadow-lg);
    transform: translateX(-102%); visibility: hidden;
    transition: transform .22s ease, visibility .22s ease;
  }
  .portal-shell.nav-open .sidebar-nav { transform: translateX(0); visibility: visible; }
  .sidebar-nav .group { display: block; }
  .sidebar-nav a { white-space: normal; padding: 10px 12px; }
  .sidebar-nav .count { display: inline-flex; }
  .sidebar-nav .sidebar-foot { display: block; margin-top: auto; padding: 16px 4px 0; }
  .portal-scrim {
    position: fixed; inset: 64px 0 0; z-index: 31; display: none;
    border: 0; padding: 0; background: rgba(6, 23, 9, .48); cursor: pointer;
  }
  .portal-shell.nav-open .portal-scrim { display: block; }
  .portal-nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 10px;
    background: #fff; color: var(--ink); cursor: pointer;
  }
  .portal-nav-toggle:hover { background: var(--surface-2); }
  .topbar { gap: 10px; padding: 0 16px; }
  .portal-content { padding: 18px; }

  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-shell { grid-template-columns: minmax(0, 1fr); }
  .auth-side { display: none; }
  .chart-head { flex-wrap: wrap; }
}

/* Phones */
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .stat-grid { grid-template-columns: minmax(0, 1fr); }
  .quick-grid, .check-grid { grid-template-columns: minmax(0, 1fr); }
  .role-options { grid-template-columns: minmax(0, 1fr); }
  .plan-grid { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .reciept, .receipt { padding: 18px; }
  .receipt-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .dl { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .dl dt { margin-top: 9px; }
  .dl dd { margin-bottom: 2px; }
  .hero .container { padding-top: 40px; padding-bottom: 40px; }
  .hero h1 { font-size: 1.9rem; }
  .hero-lead { font-size: 1rem; }
  .hero-card { border-radius: 18px; }
  .hero-card-head { padding: 18px 16px 12px; }
  .hero-card-list { padding: 4px 16px 0; }
  .hero-card-foot { padding: 11px 16px; }
  .mini-media { width: 60px; height: 54px; }
  .mini-rating { display: none; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-trust { gap: 18px; }
  .section { padding: 44px 0; }
  .section-sm { padding: 30px 0; }

  /* Public header: keep the primary CTA, everything else in the menu. */
  .site-header .container { height: 60px; padding: 0 16px; gap: 8px; }
  .site-actions .btn-outline { display: none; }
  .site-actions .btn { padding: 6px 10px; font-size: .72rem; }
  .brand { font-size: 1.05rem; gap: 8px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
  .brand-logo { height: 38px; max-width: 140px; }
  .site-header .brand-logo { height: 46px; }
  .site-nav.open { max-height: calc(100vh - 60px); padding: 6px 16px 16px; }
  .nav-toggle { width: 40px; height: 40px; }

  /* Portal top bar + drawer */
  .topbar { height: 60px; padding: 0 12px; gap: 8px; }
  .topbar .spacer { display: none; }
  .topbar h1 { flex: 1 1 auto; min-width: 0; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .notif-btn { width: 34px; height: 34px; }
  .portal-nav-toggle { width: 34px; height: 34px; }
  .avatar { width: 32px; height: 32px; font-size: .76rem; }
  .sidebar-nav { top: 60px; }
  .portal-scrim { inset: 60px 0 0; }
  .portal-content { padding: 14px; }

  .page-head { gap: 12px; margin-bottom: 18px; }
  .page-head h1 { font-size: 1.35rem; }
  .page-head .btn-group { width: 100%; }
  .page-head .btn-group .btn { flex: 1 1 auto; }
  .stat { padding: 14px 16px; }
  .stat .value { font-size: 1.4rem; }
  .card-head, .card-body, .card-pad { padding-left: 16px; padding-right: 16px; }
  .card-head { padding-top: 14px; padding-bottom: 14px; }
  .search-bar { width: 100%; }
  .search-bar .input, .search-bar .select { width: 100%; min-width: 0; }
  .search-bar .btn { flex: 1 1 auto; }
  table.data { font-size: .82rem; }
  table.data th, table.data td { padding: 10px; }
  .table-wrap { -webkit-overflow-scrolling: touch; }
  .tabs { margin-bottom: 16px; }
  .form-actions { justify-content: stretch; }
  .form-actions .btn { flex: 1 1 140px; }
  .flex.gap-8 { flex-wrap: wrap; }
  .flex.gap-24 { flex-wrap: wrap; gap: 12px 18px; }
  .btn { max-width: 100%; white-space: normal; }
  .auth-form-side { padding: 30px 18px; }
  .auth-card h1 { font-size: 1.45rem; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .footer-bottom { margin-top: 26px; }

  /* Charts stay readable by scrolling rather than squashing. */
  .bar-chart { gap: 6px; height: 170px; overflow-x: auto; }
  .bar-chart .bar-group { min-width: 26px; }
  .bar-row { grid-template-columns: minmax(84px, 1fr) minmax(60px, 1fr) auto; font-size: .8rem; }
  .donut { width: 132px; height: 132px; }
  .donut::after { inset: 23px; }
  .donut-wrap { gap: 16px; }
  .branding-preview { flex-wrap: wrap; }
}

@media print {
  .site-header, .site-footer, .portal-sidebar, .topbar, .btn, .no-print { display: none !important; }
  .portal-shell { display: block; }
  .portal-content { padding: 0; }
  body { background: #fff; }
  .receipt, .card { border: 0; box-shadow: none; }
  a { color: inherit; text-decoration: none; }
}

/* ---------- public home landing page ---------- */
.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;
}

.land-page {
  background: #fff;
  font-family: "Poppins", var(--font);
  color: #173a21;
}

/* Small utility classes used by the landing page sections */
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-800 { background-color: #1f2937; }
.text-white { color: #fff; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
@media (min-width: 768px) {
  .md\:py-12 { padding-top: 3rem; padding-bottom: 3rem; }
}

/* Hero */
.land-hero {
  position: relative;
  overflow: visible;
  background: #eef6f4;
}
.land-hero-media { position: absolute; inset: 0; z-index: 0; }
.land-hero-media img {
  position: absolute;
  top: 0;
  right: 0;
  width: 56%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.land-hero-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #eef6f4 0%, rgba(238, 246, 244, .98) 34%, rgba(238, 246, 244, .86) 47%, rgba(238, 246, 244, .34) 64%, rgba(238, 246, 244, 0) 82%);
}
.land-hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 36px;
  padding-bottom: 28px;
}
.land-hero-copy { max-width: 640px; }
.land-hero-title {
  margin: 0 0 10px;
  color: #143d1a;
  font-size: clamp(1.75rem, 3.35vw, 2.45rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.02em;
}
.land-hero-title em,
.land-accent { font-style: normal; color: #e97320; }
.land-hero-lead {
  max-width: 600px;
  margin: 0 0 22px;
  color: #1b3b24;
  font-size: 1rem;
  line-height: 1.6;
}
.land-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  padding: 6px 12px;
  border: 1px solid rgba(47, 143, 62, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
  color: #1f6b2c;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.land-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: #2f4a37;
  font-size: .8rem;
  font-weight: 500;
}
.land-hero-trust li { display: inline-flex; align-items: center; gap: 6px; }
.land-hero-trust .ico { color: #2f8f3e; }

/* Search */
.land-search {
  display: flex;
  width: 100%;
  align-items: center;
  border: 1px solid #e8ece8;
  border-radius: 999px;
  background: #fff;
  padding: 7px;
  box-shadow: 0 12px 30px rgba(16, 40, 22, .14);
}
.land-search-field {
  position: relative;
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
}
.land-search-ico { display: inline-flex; flex: none; color: #1f2937; }
.land-search input,
.land-search select {
  width: 100%;
  min-width: 0;
  padding: 14px 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #1f2937;
  font: inherit;
  font-size: .95rem;
  appearance: none;
}
.land-search input::placeholder { color: #4b5563; opacity: 1; }
.land-search select { padding-right: 22px; cursor: pointer; }
.land-search-caret {
  position: absolute;
  right: 14px;
  display: inline-flex;
  color: #1f2937;
  pointer-events: none;
}
.land-search-sep { width: 1px; height: 26px; flex: none; background: #e5e7eb; }
.land-search-field--query { position: relative; }
.land-search-suggest {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  z-index: 40;
  width: min(440px, calc(100vw - 48px));
  max-height: 360px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(16, 40, 22, .2);
  font-family: "Poppins", var(--font);
}
.land-search-suggest[hidden] { display: none; }
.land-suggest-item,
.land-suggest-all {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 9px;
  padding: 10px 12px;
  color: #173a21;
  text-decoration: none;
}
.land-suggest-item:hover,
.land-suggest-item[aria-selected="true"],
.land-suggest-all:hover,
.land-suggest-all:focus-visible {
  background: #f0f9f1;
  color: #173a21;
}
.land-suggest-item:focus-visible,
.land-suggest-all:focus-visible { outline: 2px solid #2f8f3e; outline-offset: -2px; }
.land-suggest-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; line-height: 1.35; }
.land-suggest-copy strong {
  overflow: hidden;
  color: #1f2937;
  font-size: .84rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.land-suggest-meta {
  overflow: hidden;
  margin-top: 2px;
  color: #6b7280;
  font-size: .72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.land-suggest-price { flex: none; color: #1a7a34; font-size: .78rem; font-weight: 600; }
.land-suggest-all {
  justify-content: center;
  margin-top: 4px;
  border-top: 1px solid #f3f4f6;
  border-radius: 0 0 9px 9px;
  color: #1a7a34;
  font-size: .78rem;
  font-weight: 600;
}
.land-suggest-empty { padding: 14px 12px; color: #6b7280; font-size: .8rem; }
.land-search-btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border: 0;
  border-radius: 999px;
  background: #e97320;
  color: #fff;
  font: inherit;
  font-size: .98rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s ease;
}
.land-search-btn:hover { background: #cf6519; }
.land-search-btn:focus-visible { outline: 3px solid rgba(20, 61, 26, .35); outline-offset: 3px; }

/* Section headings */
.land-section { padding: 22px 0; background: #fff; }
.land-rule-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 auto 8px;
}
.land-rule-head h2 {
  margin: 0;
  color: #1a5e2a;
  font-size: clamp(1.25rem, 2.1vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -.01em;
  text-align: center;
}
.land-rule {
  display: block;
  height: 2px;
  flex: 0 1 190px;
  border-radius: 2px;
  background: #f2b183;
}

/* Property life cycle */
.land-cycle { padding-top: 10px; padding-bottom: 20px; }
.land-cycle-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.land-cycle-card {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-direction: column;
  padding: 14px 8px;
  border: 1px solid #e9ece9;
  border-radius: 9px;
  background: #fff;
  text-align: center;
  box-shadow: 0 2px 8px rgba(16, 40, 22, .05);
}
.land-cycle-icon { display: inline-flex; }
.land-cycle-icon--green { color: #2f8f3e; }
.land-cycle-icon--orange { color: #e97320; }
.land-cycle-card h3 {
  margin: 0;
  color: #26332a;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.35;
}

/* Testimonials */
.land-testimonials { background: linear-gradient(180deg, #f7faf7 0%, #eef4ef 100%); }
.land-testimonials-head { margin: 0 auto 30px; text-align: center; }
.land-testimonials-head .land-portals-eyebrow { margin-bottom: 12px; }
.land-testimonials-head h2 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(1.25rem, 2.1vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -.01em;
}
.land-testimonials-head p { margin: 6px 0 0; color: #4b5563; font-size: .88rem; }
.land-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.land-quote {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 22px;
  overflow: hidden;
  border: 1px solid #e7ece8;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(16, 40, 22, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.land-quote::before {
  content: "\201C";
  position: absolute;
  top: 2px;
  right: 16px;
  color: #e8f1e9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.4rem;
  line-height: 1;
  pointer-events: none;
}
.land-quote:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(16, 40, 22, .11);
}
.land-quote-stars { position: relative; z-index: 1; }
.land-quote-avatar {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: #e7f4e9;
  object-fit: cover;
}
.land-quote-avatar--initials { display: grid; place-items: center; color: #287f32; font-size: .85rem; font-weight: 700; }
.land-quote blockquote { margin: 0; color: #374151; font-size: .84rem; line-height: 1.65; }
.land-quote figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f3f4f6;
}
.land-quote-person { display: flex; min-width: 0; flex-direction: column; line-height: 1.35; }
.land-quote-person strong { color: #1f2937; font-size: .82rem; font-weight: 600; }
.land-quote-person span { color: #6b7280; font-size: .72rem; }
.land-quote-stars { display: flex; gap: 2px; }
.land-quote-stars .is-on .ico { fill: #f59e0b; color: #f59e0b; }
.land-quote-stars .is-off .ico { color: #e5e7eb; }

/* Closing CTA */
.land-cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(47, 143, 62, .55) 0%, rgba(28, 59, 39, 0) 55%),
    radial-gradient(circle at 88% 100%, rgba(233, 115, 32, .22) 0%, rgba(20, 37, 27, 0) 50%),
    linear-gradient(160deg, #1c3b27 0%, #14251b 100%);
  color: #fff;
}
.land-cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .5;
  pointer-events: none;
}
.land-cta-band-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
}
.land-cta-band-icon {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #f5b06a;
  backdrop-filter: blur(4px);
}
.land-cta-band-icon .ico { width: 34px; height: 34px; }
.land-cta-band h2 {
  margin: 0 0 14px;
  padding: 0 8px;
  color: #fff;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -.02em;
}
.land-cta-band-lead {
  max-width: 30rem;
  margin: 0 auto 28px;
  padding: 0 8px;
  color: #c9d6cc;
  font-size: .9rem;
  line-height: 1.6;
}
.land-cta-roles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
}
.land-cta-role {
  display: flex;
  min-width: 0;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
  padding: 10px 14px;
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.land-cta-role:nth-child(2) { background: rgba(255, 255, 255, .1); }
.land-cta-role:hover {
  background: #2f8f3e;
  border-color: #2f8f3e;
  color: #fff;
  transform: translateY(-2px);
}
.land-cta-role:focus-visible {
  outline: 3px solid rgba(233, 115, 32, .7);
  outline-offset: 3px;
}
.land-cta-signin { margin: 20px 0 0; color: #9ca3af; font-size: .75rem; }
.land-cta-signin a { color: #f0a25a; font-weight: 600; text-decoration: underline; }
.land-cta-signin a:hover { color: #f7bd85; }

@media (max-width: 1024px) {
  .land-cycle-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .land-cta-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .land-hero-media img { width: 100%; }
  .land-hero-wash {
    background: linear-gradient(90deg, #eef6f4 0%, rgba(238, 246, 244, .96) 45%, rgba(238, 246, 244, .74) 100%);
  }
  .land-hero-inner { padding-top: 28px; }
  .land-search { flex-wrap: wrap; border-radius: 18px; padding: 10px; }
  .land-search-field { flex: 1 1 100%; padding: 2px 10px; }
  .land-search-sep { display: none; }
  .land-search-btn { width: 100%; border-radius: 12px; }
  .land-rule { flex-basis: 60px; }
  .land-rule-head { gap: 12px; }
  .land-quotes { grid-template-columns: minmax(0, 1fr); }
  .land-quote { max-width: 560px; width: 100%; margin: 0 auto; }
}

@media (max-width: 560px) {
  .land-hero-title { font-size: 1.55rem; }
  .land-hero-lead { font-size: .9rem; }
  .land-cycle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .land-cta-role { white-space: normal; font-size: .78rem; padding: 10px 8px; }
}

/* Featured properties */
.land-featured { background: #fff; }
.land-unavailable { border-top: 1px solid #eef0ee; }
.land-portal-banner { background: #fff; padding: 34px 0 38px; }
.land-portals { text-align: center; }
.land-portals-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-700);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.land-portals h2 {
  margin: 14px 0 8px;
  color: #06160b;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.02em;
}
.land-portals-lead {
  margin: 0 auto;
  max-width: 680px;
  color: #4f5a52;
  font-size: .95rem;
}
.land-portals-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
  text-align: left;
}
.land-portal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px;
  overflow: hidden;
  border: 1px solid #e8ece9;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
  box-shadow: 0 6px 18px rgba(16, 40, 22, .05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.land-portal-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #2f8f3e, #8bc34a);
  opacity: 0;
  transition: opacity .2s ease;
}
.land-portal-card:hover {
  transform: translateY(-3px);
  border-color: #cfe3d3;
  box-shadow: 0 16px 32px rgba(16, 40, 22, .12);
}
.land-portal-card:hover::before { opacity: 1; }
.land-portal-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e7f4e9, #f4faf5);
  color: #1f6b2c;
  box-shadow: inset 0 0 0 1px rgba(47, 143, 62, .12);
}
.land-portal-card h3 { margin: 2px 0 0; color: #06160b; font-size: 1.02rem; font-weight: 700; }
.land-portal-card p { margin: 0; flex: 1; color: #5b6b60; font-size: .85rem; line-height: 1.6; }
.land-portal-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  color: var(--green-700);
  font-size: .84rem;
  font-weight: 600;
}
.land-portal-link .ico { transition: transform .18s ease; }
.land-portal-link:hover { color: var(--green-800); }
.land-portal-link:hover .ico { transform: translateX(2px); }
@media (max-width: 1100px) {
  .land-portals-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .land-portals-grid { grid-template-columns: minmax(0, 1fr); }
  .land-portal-banner { padding: 26px 0 30px; }
}
.land-featured-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 18px; }
.land-featured-head h2 { margin: 0; color: #173a21; font-size: clamp(1.25rem, 2.1vw, 1.6rem); font-weight: 700; }
.land-featured-head p { margin: 4px 0 0; color: #66756b; font-size: .86rem; }
.land-view-all { display: inline-flex; align-items: center; gap: 5px; color: #1a7a34; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.land-view-all:hover { color: #14682a; }
.land-listing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

/* Featured properties carousel */
.land-featured-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: #2f8f3e;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.land-carousel { position: relative; }
.land-carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 2px 22px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.land-carousel-track::-webkit-scrollbar { display: none; }
.land-carousel-track:focus-visible { outline: 3px solid rgba(47, 143, 62, .35); outline-offset: 4px; border-radius: 18px; }
.land-carousel-slide {
  display: flex;
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 0;
  scroll-snap-align: start;
}
.land-carousel-slide .land-listing { width: 100%; }
.land-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.land-carousel-btn {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8e3;
  border-radius: 999px;
  background: #fff;
  color: #1f6b2c;
  box-shadow: 0 4px 12px rgba(16, 40, 22, .08);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.land-carousel-btn:hover:not(:disabled) { background: #f4faf5; border-color: #2f8f3e; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(16, 40, 22, .12); }
.land-carousel-btn:disabled { opacity: .4; cursor: default; }
.land-carousel-status {
  min-width: 92px;
  padding: 7px 14px;
  border: 1px solid #eef1ee;
  border-radius: 999px;
  background: #f8faf8;
  color: #3f4d43;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-align: center;
}
.land-listing {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid #e6ebe7;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(16, 40, 22, .06);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.land-listing:hover {
  transform: translateY(-3px);
  border-color: #d7e6da;
  box-shadow: 0 18px 38px rgba(16, 40, 22, .13);
}
.land-listing-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: linear-gradient(140deg, #e7f4e9, #eef2ee);
}
.land-listing-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 22, 11, .68) 0%, rgba(6, 22, 11, .16) 40%, rgba(6, 22, 11, 0) 65%);
  pointer-events: none;
}
.land-listing-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.land-listing:hover .land-listing-media img { transform: scale(1.05); }
.land-listing-fallback {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background:
    radial-gradient(circle at 22% 18%, rgba(47, 143, 62, .16), transparent 46%),
    linear-gradient(140deg, #eaf5ec, #f4f7f4);
  color: #2f8f3e;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.land-listing-fallback .ico { opacity: .5; }
.land-listing-tags {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.land-listing-price {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .96);
  padding: 7px 12px;
  color: #0f3d1b;
  box-shadow: 0 6px 16px rgba(6, 22, 11, .18);
  backdrop-filter: blur(6px);
}
.land-listing-price strong { font-size: 1rem; font-weight: 800; letter-spacing: -.01em; }
.land-listing-price small { color: #5c6b60; font-size: .68rem; font-weight: 600; }
.land-listing-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  padding: 5px 10px;
  color: #1f6b2c;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(6, 22, 11, .12);
  backdrop-filter: blur(6px);
}
.land-listing-badge--commercial { background: rgba(233, 115, 32, .96); color: #fff; }
.land-listing-premium {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe9a8, #f7c948);
  padding: 5px 10px;
  color: #5a3d00;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(6, 22, 11, .16);
}
.land-listing-body { display: flex; flex: 1; flex-direction: column; padding: 16px 16px 15px; }
.land-listing-loc {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 6px;
  overflow: hidden;
  color: #7a877e;
  font-size: .74rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.land-listing-loc .ico { flex: none; color: #2f8f3e; }
.land-listing-loc span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.land-listing-body h3 {
  display: -webkit-box;
  min-height: 2.6em;
  margin: 0 0 12px;
  overflow: hidden;
  color: #122b19;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.land-listing-body h3 a { color: inherit; }
.land-listing-body h3 a:hover { color: #1a7a34; }
.land-listing-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  border-top: 1px solid #f0f3f0;
  padding-top: 12px;
}
.land-listing-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  background: #f5f8f5;
  padding: 4px 8px;
  color: #4d5a51;
  font-size: .7rem;
  font-weight: 600;
}
.land-listing-chip .ico { color: #6b7a6f; }
.land-listing-chip--rating .ico { color: #f59e0b; fill: #f59e0b; }
.land-listing-actions { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.land-listing-btn {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  padding: 0 14px;
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.land-listing-btn--primary { flex: 1; background: #1f6b2c; color: #fff; box-shadow: 0 4px 10px rgba(31, 107, 44, .2); }
.land-listing-btn--primary:hover { background: #185724; color: #fff; transform: translateY(-1px); }
.land-listing-btn--outline { border: 1px solid #dbe4dd; background: #fff; color: #1f6b2c; }
.land-listing-btn--outline:hover { border-color: #2f8f3e; background: #f4faf5; color: #185724; }
.land-listing-share {
  display: inline-flex;
  width: 38px;
  min-width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #6b7a6f;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.land-listing-share:hover { border-color: #c9d6cc; background: #f8faf8; color: #1f6b2c; }

/* Unavailable listings (occupied / reserved / booked) */
.land-listing--unavailable {
  background: #fbfcfb;
  border-color: #e7ece8;
  box-shadow: 0 4px 14px rgba(16, 40, 22, .05);
}
.land-listing--unavailable:hover {
  transform: translateY(-2px);
  border-color: #dde6df;
  box-shadow: 0 12px 26px rgba(16, 40, 22, .1);
}
.land-listing--unavailable .land-listing-media::after {
  background: linear-gradient(to top, rgba(6, 22, 11, .5) 0%, rgba(6, 22, 11, .1) 45%, rgba(6, 22, 11, 0) 70%);
}
.land-listing--unavailable .land-listing-media img {
  filter: grayscale(.3) saturate(.85) brightness(.98);
}
.land-listing--unavailable:hover .land-listing-media img { transform: none; }
.land-listing--unavailable .land-listing-price {
  background: rgba(255, 255, 255, .9);
  color: #46564b;
  box-shadow: 0 4px 12px rgba(6, 22, 11, .14);
}
.land-listing--unavailable .land-listing-price small { color: #6b7a6f; }
.land-listing--unavailable .land-listing-body h3 { color: #33453a; }
.land-listing--unavailable .land-listing-chip { background: #f3f6f3; color: #5a675e; }
.land-listing-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, .94);
  color: #4b5563;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(6, 22, 11, .12);
  backdrop-filter: blur(6px);
}
.land-listing-state--reserved { background: rgba(254, 243, 199, .97); color: #92400e; }
.land-listing-state--booked { background: rgba(219, 234, 254, .97); color: #1d4ed8; }
.land-listing-state--occupied { background: rgba(226, 232, 240, .97); color: #334155; }
.land-listing-state--other { background: rgba(243, 244, 246, .97); color: #4b5563; }
.land-listing-actions--muted { margin-top: 14px; }
.land-listing-unavailable {
  display: inline-flex;
  flex: 1;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px dashed #d6ded8;
  border-radius: 10px;
  background: #f4f7f4;
  color: #7a877e;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.land-listing-unavailable .ico { color: #94a398; }
.land-empty { padding: 36px 20px; border: 1px dashed #d1d5db; border-radius: 12px; text-align: center; color: #6b7a6f; }
.land-empty .glyph { display: inline-flex; margin-bottom: 8px; color: #2f8f3e; }
.land-empty p { margin: 0; font-size: .9rem; }

@media (max-width: 1024px) {
  .land-listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .land-carousel-slide { flex-basis: calc((100% - 20px) / 2); }
}

@media (max-width: 720px) {
  .land-featured-head { flex-direction: column; align-items: flex-start; }
  .land-listing-grid { grid-template-columns: minmax(0, 1fr); }
  .land-carousel-slide { flex-basis: 100%; }
  .land-carousel-controls { justify-content: space-between; }
  .land-listing-body { padding: 15px 15px 14px; }
  .land-listing-actions { flex-wrap: wrap; }
  .land-listing-btn--primary { flex: 1 1 100%; }
  .land-listing-btn--outline { flex: 1; }
  .land-listing-unavailable { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .land-search-btn,
  .land-cta-role,
  .land-listing,
  .land-listing-media img { transition: none; }
  .land-listing:hover { transform: none; }
  .land-listing:hover .land-listing-media img { transform: none; }
}

/* -- Tenant / manager messages ------------------------------------------- */
.message-list { display: flex; flex-direction: column; gap: 12px; }
.message { max-width: 82%; align-self: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface-3); }
.message-mine { align-self: flex-end; background: var(--primary-soft, #e8f0fe); }
.message-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.message-body { font-size: .92rem; line-height: 1.5; overflow-wrap: anywhere; }
@media (max-width: 640px) { .message { max-width: 100%; } }

/* -- Public About / Features --------------------------------------------- */
.page-hero {
  position: relative;
  padding: 64px 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, .55);
}
.page-hero > .container { position: relative; z-index: 1; text-align: center; }
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { max-width: 42rem; margin: 0 auto; color: #e5e7eb; font-size: 1.05rem; }

.page-hero--feature { padding: 0; min-height: 224px; display: flex; align-items: center; }
.page-hero--feature::before { background: rgba(17, 24, 39, .8); }
.page-hero--feature > .container { width: 100%; padding-top: 64px; padding-bottom: 64px; text-align: left; }
.page-hero--feature p { margin: 16px 0 0; color: #f0fdf4; max-width: 42rem; }

.about-story { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.about-story-media, .about-story-copy { width: 100%; }
.about-story-media img { width: 100%; height: 16rem; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-story-copy h2 { margin-bottom: 16px; }
.about-story-copy > p { color: var(--muted); font-size: .95rem; }
.story-points { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.story-points li { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: .95rem; }
.story-points .ico { flex: none; margin-top: 3px; color: var(--green-700); }

.about-band { background: var(--surface-2); }
.about-split { display: grid; gap: 32px; }
.about-split h2 { margin-bottom: 16px; font-size: 1.5rem; }
.mission-card { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.mission-card p { margin: 0; color: var(--muted); }
.value-stack { display: flex; flex-direction: column; gap: 16px; }
.value-card { display: flex; align-items: flex-start; gap: 16px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.value-icon { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: var(--green-100); color: var(--green-700); }
.value-card h3 { margin: 0; font-size: .95rem; font-weight: 600; }
.value-card p { margin: 4px 0 0; color: var(--muted); font-size: .86rem; }

.journey-wrap { max-width: 42rem; margin: 0 auto; }
.journey-list { position: relative; display: flex; flex-direction: column; gap: 24px; }
.journey-list::before { content: ""; position: absolute; left: 16px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.journey-item { position: relative; padding-left: 48px; }
.journey-item::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 8px;
  width: 12px;
  height: 12px;
  border: 4px solid var(--green-100);
  border-radius: 50%;
  background: var(--green-600);
  transform: translateX(-50%);
  box-sizing: content-box;
}
.journey-card { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.journey-year { color: var(--green-700); font-size: .82rem; font-weight: 600; }
.journey-card h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.journey-card p { margin: 4px 0 0; color: var(--muted); font-size: .86rem; }

.feature-grid { display: grid; gap: 24px; }
.feature-card { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); transition: box-shadow .15s ease; }
.feature-card:hover { box-shadow: var(--shadow); }
.feature-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: var(--radius); background: var(--green-100); color: var(--green-700); }
.feature-card h3 { margin-bottom: 12px; font-size: 1.05rem; font-weight: 600; }
.feature-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .88rem; }
.feature-list li { display: flex; align-items: flex-start; gap: 8px; }
.feature-list .ico { flex: none; margin-top: 3px; color: var(--green-700); }

.features-cta-band { padding: 64px 0; background: var(--green-50); }
.features-cta { padding: 48px; border-radius: 20px; background: var(--green-800); }
.features-cta-inner { display: flex; flex-direction: column; gap: 28px; }
.features-cta h2 { margin-bottom: 12px; color: #fff; font-size: 1.65rem; }
.features-cta p { margin: 0; color: var(--green-100); font-size: 1.05rem; }
.features-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-green { background: var(--green-700); color: #fff; }
.btn-green:hover { background: var(--green-800); color: #fff; }

@media (min-width: 768px) {
  .about-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 981px) {
  .about-story { flex-direction: row; align-items: center; }
  .about-story-media, .about-story-copy { flex: 1; }
  .about-story-media img { height: 20rem; }
  .features-cta-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .features-cta-actions { flex: none; }
}

@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .page-hero { padding: 48px 0; }
  .page-hero--feature { padding: 0; }
  .page-hero--feature > .container { padding-top: 48px; padding-bottom: 48px; }
  .features-cta-band { padding: 44px 0; }
  .features-cta { padding: 32px 22px; border-radius: var(--radius-lg); }
  .features-cta-actions { flex-direction: column; }
  .features-cta-actions .btn { width: 100%; }
}


/* -- Public pricing ------------------------------------------------------- */
.pr-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 140px;
  padding: 36px 0;
  overflow: hidden;
  background: #111827;
  text-align: center;
}
.pr-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .35;
}
.pr-hero-inner { position: relative; z-index: 1; }
.pr-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(71, 255, 71, .16);
  color: #b9ffb9;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.pr-hero h1 {
  margin: 0;
  color: #fff;
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.pr-hero p {
  margin: 8px auto 0;
  max-width: 46rem;
  color: #d1d5db;
  font-size: 1.05rem;
}

.pr-body { padding: 48px 0 72px; background: #f9fafb; }

/* A compact summary of the unit ladder above the cards. */
.pr-tier-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 980px;
  margin: 0 auto 32px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #e5e7eb;
}
.pr-tier {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: #fff;
}
.pr-tier-range { color: #6b7280; font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.pr-tier strong { color: #111827; font-size: 1.05rem; font-weight: 700; }
.pr-tier strong small { margin-left: 2px; color: #6b7280; font-size: .72rem; font-weight: 500; }
.pr-tier.is-custom { background: #f0fdf4; }
.pr-tier.is-custom strong { color: #287f32; }

.pr-toggle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}
.pr-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
}
.pr-toggle-note { margin: 0; color: #6b7280; font-size: .8rem; }
.pr-toggle-btn {
  padding: 8px 24px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #374151;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.pr-toggle-btn:hover { color: #111827; background: #f3f4f6; }
.pr-toggle-btn.is-active,
.pr-toggle-btn.is-active:hover { background: #287f32; color: #fff; }

.pr-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}
.pr-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
  transition: box-shadow .2s ease, transform .2s ease;
}
.pr-card:hover { box-shadow: 0 10px 24px rgba(15, 23, 42, .10); }
.pr-card.is-popular { border: 2px solid #287f32; box-shadow: 0 10px 24px rgba(15, 23, 42, .10); }
.pr-card.is-popular:hover { transform: translateY(-2px); }
.pr-card.is-custom { border-color: #c6e5cb; background: linear-gradient(180deg, #f4faf5 0%, #fff 45%); }
.pr-card.is-custom .pr-plan-name { color: #123d1a; }
.pr-range {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #e7f4e9;
  color: #287f32;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.pr-card.is-custom .pr-range { background: #d8f0dd; color: #145c27; }

.pr-flag {
  position: absolute;
  top: 0;
  z-index: 2;
  padding: 4px 12px;
  background: #287f32;
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.5;
}
.pr-flag--popular { right: 0; border-bottom-left-radius: 8px; }
.pr-flag--save { left: 0; border-bottom-right-radius: 8px; }

.pr-card-body { flex: 1; padding: 28px 24px 0; }
.pr-plan-name { margin: 0; color: #111827; font-size: 1.1rem; font-weight: 500; }
.pr-plan-desc { margin: 8px 0 0; color: #6b7280; font-size: .875rem; }
.pr-price-row { display: flex; align-items: baseline; gap: 4px; margin-top: 24px; }
.pr-price { color: #111827; font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.pr-period { color: #6b7280; font-size: 1.05rem; font-weight: 500; }
.pr-billed { margin: 8px 0 0; color: #6b7280; font-size: .875rem; }

.pr-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: #374151;
  font-size: .875rem;
}
.pr-features li { display: flex; align-items: flex-start; gap: 10px; }
.pr-check { flex: none; margin-top: 2px; color: #287f32; }
.pr-card:not(.is-expanded) .pr-extra { display: none; }

.pr-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #287f32;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
}
.pr-more:hover { color: #1f5a22; }
.pr-more-icon { transition: transform .2s ease; }
.pr-card.is-expanded .pr-more-icon { transform: rotate(180deg); }

.pr-card-cta { padding: 24px; }
.pr-cta {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border-radius: 6px;
  background: #287f32;
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  text-align: center;
  transition: background-color .15s ease;
}
.pr-cta:hover { background: #1f6628; color: #fff; }
.pr-cta--custom { background: #123d1a; }
.pr-cta--custom:hover { background: #0d2f14; color: #fff; }

.pr-empty { padding: 32px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; text-align: center; }
.pr-empty h2 { margin: 0 0 8px; }
.pr-empty p { margin: 0; color: #6b7280; }

.pr-faq-wrap { max-width: 760px; margin: 64px auto 0; }
.pr-faq-wrap > h2 { margin: 0 0 30px; color: #111827; font-size: 1.6rem; text-align: center; }
.pr-faq {
  margin-bottom: 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}
.pr-faq:last-child { margin-bottom: 0; }
.pr-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  color: #111827;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.pr-faq summary::-webkit-details-marker { display: none; }
.pr-faq summary::marker { content: ""; }
.pr-faq-icon { flex: none; color: #6b7280; transition: transform .2s ease; }
.pr-faq[open] .pr-faq-icon { transform: rotate(180deg); }
.pr-faq p { margin: 0; padding: 0 16px 16px; color: #4b5563; font-size: .875rem; line-height: 1.65; }

@media (min-width: 640px) {
  .pr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .pr-tier-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .pr-tier-strip { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 1180px) {
  .pr-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .pr-card-body { padding-left: 20px; padding-right: 20px; }
  .pr-card-cta { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 640px) {
  .pr-hero { min-height: 120px; padding: 30px 0; }
  .pr-hero h1 { font-size: 1.9rem; }
  .pr-hero p { font-size: .95rem; }
  .pr-body { padding: 32px 0 56px; }
  .pr-toggle-wrap { margin-bottom: 30px; }
  .pr-toggle-btn { padding: 8px 16px; font-size: .82rem; }
  .pr-price { font-size: 2rem; }
  .pr-faq-wrap { margin-top: 48px; }
  .pr-faq-wrap > h2 { font-size: 1.4rem; margin-bottom: 22px; }
}

/* Brand pre-loader ------------------------------------------------------- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #fff;
  animation: page-loader-fallback .4s ease 3s forwards;
}
.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
  animation: none;
}
.page-loader-logo { width: 132px; height: 132px; object-fit: contain; }
.page-loader-bar {
  width: 132px;
  height: 3px;
  border-radius: 999px;
  background: #e3efe4;
  overflow: hidden;
}
.page-loader-bar span {
  display: block;
  height: 100%;
  width: 45%;
  border-radius: inherit;
  background: var(--green-700);
  animation: page-loader-slide 1.1s ease-in-out infinite;
}
@keyframes page-loader-fallback {
  to { opacity: 0; visibility: hidden; }
}
@keyframes page-loader-slide {
  from { transform: translateX(-120%); }
  to { transform: translateX(320%); }
}
@media (prefers-reduced-motion: reduce) {
  .page-loader-bar span { animation: none; width: 100%; }
}
