/**
 * theme.css — RumahKu Design System v2 (minimal, soft, shadow-based)
 */
:root {
  /* Brand */
  --primary: #E08600;
  --primary-dark: #AA4C0A;
  --primary-light: #FFF4E6;
  --accent: #763A12;
  --accent-light: #F5EDE4;
  --gold: #EFBF38;
  --gold-light: #FEF9E7;
  --violet: #763A12;
  --violet-light: #F5EDE4;

  /* Neutrals — referensi panze studio */
  --ink: #1C1917;
  --text: #1C1917;
  --text-secondary: #57534E;
  --muted: #78716C;
  --border: rgba(0, 0, 0, 0.08);
  --border-soft: rgba(0, 0, 0, 0.06);
  --bg: #FAFAFA;
  --bg-alt: #F5F5F4;
  --surface: #FFFFFF;
  --cream: #FFF8F0;
  --danger: #EF4444;
  --danger-light: #FEF2F2;
  --sidebar-bg: #FFFFFF;

  /* Charts & scores */
  --score-cbf: #763A12;
  --score-fin: #E08600;
  --score-graph: #AA4C0A;

  /* Kategori badge */
  --badge-subsidi-bg: #FFF7ED;
  --badge-subsidi-text: #9A3412;
  --badge-subsidi-border: #FDBA74;
  --badge-subsidi-shadow: 0 1px 8px rgba(154, 52, 18, 0.12);
  --badge-komersil-bg: linear-gradient(145deg, #141414 0%, #262626 45%, #3D3D3D 100%);
  --badge-komersil-text: #E8D5A3;
  --badge-komersil-border: rgba(201, 162, 39, 0.55);
  --badge-komersil-shadow: 0 2px 16px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.1);

  /* Shape */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  /* Elevation — no borders, soft shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.08);
  --focus-ring: 0 0 0 3px rgba(224, 134, 0, 0.14);
}

/* ── Bootstrap ── */
.btn-primary {
  --bs-btn-bg: var(--ink);
  --bs-btn-border-color: var(--ink);
  --bs-btn-hover-bg: #292524;
  --bs-btn-hover-border-color: #292524;
  --bs-btn-active-bg: #292524;
  --bs-btn-active-border-color: #292524;
}

/* ── Buttons ── */
.btn-action,
.btn-add,
.btn-filter.active,
.page-btn.active {
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-xs);
}
.btn-action:hover,
.btn-add:hover {
  background: #292524;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-action--accent {
  background: var(--primary);
  color: #fff;
}
.btn-action--accent:hover {
  background: var(--primary-dark);
  color: #fff;
}

.btn-add.btn-action--accent {
  background: var(--primary);
}
.btn-add.btn-action--accent:hover {
  background: var(--primary-dark);
}

.btn-action--outline {
  background: var(--surface);
  border: none;
  color: var(--text-secondary);
  box-shadow: var(--shadow-xs);
}
.btn-action--outline:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.btn-export {
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.1rem;
  font-weight: 600;
  font-size: 0.84rem;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  box-shadow: var(--shadow-xs);
}
.btn-export:hover {
  background: #292524;
}

.btn-edit {
  background: var(--surface);
  border: none;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  box-shadow: var(--shadow-xs);
}
.btn-edit:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* ── Public navbar tabs ── */
.navbar .nav-link {
  font-weight: 500;
  color: var(--text-secondary) !important;
  padding: 0.45rem 0.95rem !important;
  border-radius: 10px;
  transition: all 0.15s;
  font-size: 0.88rem;
  background: transparent;
  box-shadow: none;
}
.navbar .nav-link:hover {
  background: #F5F5F4;
  color: var(--ink) !important;
}
.navbar .nav-link.active {
  background: #F5F5F4;
  color: var(--ink) !important;
  font-weight: 700;
  box-shadow: none;
}
.navbar .nav-link.active i {
  color: var(--primary) !important;
}

/* ── Filter / segment pills ── */
.filter-btn {
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  color: var(--muted);
  white-space: nowrap;
}
.filter-btn.active {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-xs);
}
.filter-btn:hover:not(.active) {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text);
}

/* ── KPI / stat icons ── */
.stat-icon,
.kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.stat-icon--primary,
.kpi-icon--primary { background: #FFF4E6; color: var(--primary); }
.stat-icon--accent,
.kpi-icon--accent { background: #F5EDE4; color: var(--accent); }
.stat-icon--gold,
.kpi-icon--gold { background: #FEF9E7; color: #A16207; }
.stat-icon--dark,
.kpi-icon--dark { background: #F5F5F4; color: var(--primary-dark); }

/* ── Surface card (shared) ── */
.rk-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.4rem;
  border: none;
  box-shadow: var(--shadow-sm);
}

/* ── Insight ── */
.insight-item.primary,
.insight-item.accent,
.insight-item.gold,
.insight-item.green,
.insight-item.red,
.insight-item.purple,
.insight-item.yellow,
.insight-item.orange,
.insight-item.blue {
  background: transparent;
  border: none;
}

/* ── Status badges ── */
.badge-pending { background: #FEF3C7; color: #B45309; border-radius: var(--radius-pill); }
.badge-diproses { background: #DBEAFE; color: #1D4ED8; border-radius: var(--radius-pill); }
.badge-selesai { background: #DCFCE7; color: #15803D; border-radius: var(--radius-pill); }
.badge-dibatalkan { background: #FEE2E2; color: #B91C1C; border-radius: var(--radius-pill); }

/* ── Forms ── */
.form-control,
.form-select {
  border: none;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  box-shadow: none;
}
.form-control:focus,
.form-select:focus {
  background: var(--surface);
  border: none;
  box-shadow: var(--focus-ring);
  outline: none;
}

.form-text {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 0.35rem;
  line-height: 1.4;
}

/* ── Empty state (shared) ── */
.empty-state {
  background: var(--surface);
  border: none;
  border-radius: var(--radius-xl);
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}
.empty-state > i {
  font-size: 2.75rem;
  color: var(--primary-light);
  display: block;
  margin-bottom: 0.85rem;
}
.empty-state h5 {
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}
.empty-state p {
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.5;
}
.empty-state .btn-save-modal,
.empty-state .btn.btn-save-modal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  white-space: nowrap;
  width: auto;
  height: auto;
  min-height: 2.5rem;
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.25rem;
  line-height: 1.2;
}
.empty-state .btn-save-modal i,
.empty-state .btn.btn-save-modal i {
  font-size: 1rem !important;
  display: inline !important;
  margin: 0 !important;
  color: inherit !important;
  line-height: 1;
}

/* ── Page shell (footer menempel bawah) ── */
html { height: 100%; }
body.page-shell {
  min-height: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.page-shell > .site-footer { margin-top: auto; }

/* ── Site footer ── */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  margin-top: 3rem;
  padding: 2.25rem 0 1.25rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 1.75rem;
}
.site-footer__brand {
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.site-footer__brand i { color: var(--primary); margin-right: 4px; }
.site-footer__tagline {
  font-size: 0.84rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  max-width: 280px;
}
.site-footer__heading {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.65rem;
}
.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.site-footer__nav a {
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.15s;
}
.site-footer__nav a:hover { color: var(--gold); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.4);
}
.site-footer__bottom span:last-child { text-align: right; }

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 1rem;
}
.auth-back:hover { color: var(--primary-dark); }

body.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}
body.auth-page .auth-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Shared page header (index + rekomendasi) ── */
.page-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.65rem 0 1.35rem;
}
/* Landing hero — lebih profesional & meyakinkan */
.page-header--landing {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 100% -10%, rgba(224, 134, 0, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at -5% 100%, rgba(118, 58, 18, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #FFFCF8 0%, var(--surface) 55%, var(--bg) 100%);
  border-bottom: none;
  padding: 2.5rem 0 2rem;
}
.page-header--landing::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.025) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0.6;
}
.page-header--landing .container {
  position: relative;
  z-index: 1;
}
.page-header--landing .page-header__intro {
  margin-bottom: 1.35rem;
  max-width: 42rem;
}
.page-header--landing .page-header__kicker {
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid rgba(224, 134, 0, 0.22);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  padding: 0.38rem 0.85rem;
  border-radius: var(--radius-pill);
}
.page-header--landing .page-header__kicker i {
  color: var(--primary);
}
.page-header--landing .page-header__title {
  font-size: clamp(1.75rem, 4.5vw, 2.65rem);
  line-height: 1.15;
  margin-top: 0.15rem;
}
.page-header__title-accent {
  color: var(--primary);
  position: relative;
}
.page-header--landing .page-header__sub {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 36rem;
  margin-top: 0.75rem;
}
.page-header__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  margin-top: 1rem;
}
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.75rem;
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(6px);
}
.trust-chip i {
  font-size: 0.82rem;
  color: var(--primary);
}
.page-header--landing .stat-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.05rem;
  padding: 0;
}
.page-header--landing .stat-bar__item {
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.75rem 0.45rem 0.5rem;
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s, box-shadow 0.2s;
}
.page-header--landing .stat-bar__item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.page-header--landing .stat-bar__icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-light);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-header--landing .stat-bar__icon--loc { background: var(--accent-light); color: var(--accent); }
.page-header--landing .stat-bar__icon--dev { background: var(--bg-alt); color: var(--text-secondary); }
.page-header--landing .stat-bar__icon--sub { background: var(--gold-light); color: #CA8A04; }
.page-header--landing .stat-bar__text {
  flex-direction: row;
  align-items: baseline;
  gap: 0.3rem;
}
.page-header--landing .stat-bar__text strong {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.page-header--landing .stat-bar__text span {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.page-header--landing .search-panel {
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
}
.page-header--landing .search-panel::before {
  content: 'Cari properti';
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.page-header--landing .btn-search {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 4px 14px rgba(224, 134, 0, 0.35);
}
.page-header--landing .btn-search:hover {
  background: linear-gradient(135deg, #F09000 0%, #963F08 100%);
  transform: translateY(-1px);
}
.page-header--compact {
  padding: 1.65rem 0 1.25rem;
}
.page-header__intro {
  margin-bottom: 1rem;
}
.page-header--compact .page-header__intro {
  margin-bottom: 0;
}
.page-header__kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-secondary);
  background: #F5F5F4;
  padding: 0.32rem 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}
.page-header__kicker i {
  font-size: 0.82rem;
  color: var(--primary);
}
.page-header__title {
  margin: 0;
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: -0.035em;
  line-height: 1.2;
  color: var(--ink);
}
.page-header__sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 0.55rem;
  line-height: 1.6;
  max-width: 38rem;
}

/* Stat bar (index header) — tanpa card, inline kiri */
.stat-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 1.75rem 2.25rem;
  margin-bottom: 1.1rem;
  padding: 0;
  background: transparent;
  border: none;
}
.stat-bar__item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  border: none;
  min-width: 0;
}
.stat-bar__icon {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.stat-bar__icon--loc { color: var(--accent); }
.stat-bar__icon--dev { color: var(--text-secondary); }
.stat-bar__icon--sub { color: #CA8A04; }
.stat-bar__text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1.15;
  min-width: 0;
}
.stat-bar__text strong {
  font-weight: 800;
  color: var(--ink);
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}
.stat-bar__text span {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Search / filter panel (index) */
.search-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem;
  box-shadow: var(--shadow-sm);
}
.search-panel__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 0.95fr 0.85fr;
  gap: 0.55rem;
  align-items: center;
}
.search-panel__grid--finance {
  grid-template-columns: 1fr;
  margin-top: 0.55rem;
  align-items: center;
}
.search-panel__actions {
  margin-top: 0.55rem;
}
.search-panel__actions .btn-search {
  flex: 1 1 auto;
}
.search-panel__actions .btn-search-ghost {
  flex: 0 0 auto;
}
.search-panel__grid--finance .filter-price {
  min-width: 0;
}
.search-panel .form-control,
.search-panel .form-select {
  border: 1px solid var(--border);
  background: #FAFAF9;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.86rem;
  padding: 0.55rem 0.85rem;
  height: 42px;
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}
.search-panel .form-control::placeholder {
  color: var(--muted);
}
.search-panel .form-control:hover,
.search-panel .form-select:hover {
  background: var(--surface);
}
.search-panel .form-control:focus,
.search-panel .form-select:focus {
  border-color: rgba(224, 134, 0, 0.45);
  background: var(--surface);
  box-shadow: var(--focus-ring);
  outline: none;
}
.search-panel .filter-price { min-width: 0; }
.search-panel .price-input-wrap.pi-minmax {
  padding: 0;
  background: transparent;
  width: 100%;
}
.search-panel .price-input-wrap.pi-minmax .pi-input-row {
  width: 100%;
  min-width: 0;
}
.search-panel .price-input-wrap.pi-minmax input.pi-number {
  min-width: 0;
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-size: 0.84rem;
  font-weight: 400;
  height: 42px;
  border: 1px solid var(--border);
  background: #FAFAF9;
  border-radius: 10px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.search-panel .price-input-wrap.pi-minmax input.pi-number::placeholder {
  color: var(--muted);
  opacity: 1;
}
.search-panel .price-input-wrap.pi-minmax input.pi-number:focus {
  border-color: rgba(224, 134, 0, 0.45);
  background: var(--surface);
  box-shadow: var(--focus-ring);
}
.search-panel .price-input-wrap.pi-minmax .pi-separator {
  font-size: 0.8rem;
  padding: 0 0.15rem;
  color: var(--muted);
}
.search-panel .price-input-wrap.pi-simple {
  padding: 0;
  background: transparent;
}
.search-panel .price-input-wrap.pi-simple input.pi-number {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.75rem;
  font-size: 0.84rem;
  font-weight: 400;
  height: 42px;
  border: 1px solid var(--border);
  background: #FAFAF9;
  border-radius: 10px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.search-panel .price-input-wrap.pi-simple input.pi-number::placeholder {
  color: var(--muted);
  opacity: 1;
}
.search-panel .price-input-wrap.pi-simple input.pi-number:focus {
  border-color: rgba(224, 134, 0, 0.45);
  background: var(--surface);
  box-shadow: var(--focus-ring);
}
.search-panel__actions {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}
.btn-search {
  background: var(--ink);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 0 1.1rem;
  font-weight: 600;
  font-size: 0.84rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  white-space: nowrap;
}
.btn-search:hover { background: #292524; }
.btn-search-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 10px;
  padding: 0;
  font-size: 0.84rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  height: 42px;
  min-width: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.btn-search-ghost:hover {
  color: var(--ink);
  background: #FAFAF9;
  border-color: var(--border);
}

/* Financial insight (rekomendasi) — compact */
.fin-insight {
  background: #FAFAF9;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.1rem;
}
.fin-insight__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}
.fin-insight__title {
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.fin-insight__title i {
  color: var(--primary);
  font-size: 0.9rem;
}
.fin-insight__badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: #F5F5F4;
  color: var(--text-secondary);
  text-transform: capitalize;
}
.fin-insight__badge--komersil,
.fin-insight__badge--subsidi {
  font-weight: 600;
  letter-spacing: 0.06em;
}
.fin-insight__badge--komersil {
  background: var(--badge-komersil-bg);
  color: var(--badge-komersil-text);
  border: 1px solid var(--badge-komersil-border);
  box-shadow: var(--badge-komersil-shadow);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.fin-insight__badge--subsidi {
  background: var(--badge-subsidi-bg);
  color: var(--badge-subsidi-text);
  border: 1px solid var(--badge-subsidi-border);
  box-shadow: var(--badge-subsidi-shadow);
}
.fin-insight__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.65rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}
.fin-insight__summary .fin-sep {
  color: var(--border);
  user-select: none;
}
.fin-insight__summary strong {
  color: var(--ink);
  font-weight: 700;
}
.fin-insight__note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.45rem;
  line-height: 1.4;
}
.fin-insight--warn {
  border-color: rgba(224, 134, 0, 0.2);
  background: #FFFBF5;
}
.fin-insight--cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.fin-insight__content {
  flex: 1;
  min-width: 0;
}
.fin-insight--cta .fin-insight__note {
  margin-top: 0.25rem;
}
.fin-insight__cta {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 991px) {
  .search-panel__grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }
  .search-panel__grid .filter-search { grid-column: 1 / -1; }
  .search-panel__grid--finance {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .stat-bar {
    gap: 0.85rem 1.5rem;
  }
  .page-header--landing .stat-bar {
    gap: 0.45rem;
  }
  .page-header--landing .stat-bar__text strong {
    font-size: 0.92rem;
  }
}

@media (max-width: 576px) {
  .fin-insight--cta {
    flex-direction: column;
    align-items: stretch;
  }
  .fin-insight__cta {
    width: 100%;
    text-align: center;
    white-space: normal;
  }
}

@media (max-width: 576px) {
  .page-header,
  .page-header--compact {
    padding: 1.5rem 0 1.25rem;
  }
  .page-header--landing {
    padding: 1.35rem 0 1.25rem;
  }
  .page-header__title {
    font-size: 1.45rem;
  }
  .page-header--landing .page-header__kicker {
    font-size: 0.72rem;
    padding: 0.32rem 0.7rem;
  }
  .page-header--landing .page-header__title {
    font-size: clamp(1.5rem, 6.5vw, 1.8rem);
    line-height: 1.18;
  }
  .page-header--landing .page-header__sub {
    font-size: 0.9rem;
    line-height: 1.55;
    margin-top: 0.55rem;
  }
  .page-header__intro {
    margin-bottom: 1rem;
  }
  .page-header__trust {
    gap: 0.4rem;
  }
  .trust-chip {
    font-size: 0.72rem;
    padding: 0.3rem 0.65rem;
  }
  /* Stat pills: grid 2 kolom rata, rapi & seragam */
  .page-header--landing .stat-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
  }
  .page-header--landing .stat-bar__item {
    width: 100%;
    justify-content: flex-start;
    padding: 0.5rem 0.7rem;
    border-radius: var(--radius-md);
  }
  .page-header--landing .stat-bar__icon {
    width: 28px;
    height: 28px;
    font-size: 0.82rem;
  }
  .page-header--landing .stat-bar__text strong {
    font-size: 0.95rem;
  }
  .page-header--landing .stat-bar__text span {
    font-size: 0.62rem;
  }
  /* Search panel lebih ringkas & modern */
  .page-header--landing .search-panel {
    padding: 0.95rem 0.95rem 1rem;
    border-radius: var(--radius-md);
  }
  .search-panel__grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .search-panel__grid--finance {
    margin-top: 0.5rem;
  }
  .search-panel .form-control,
  .search-panel .form-select,
  .search-panel .price-input-wrap.pi-minmax input.pi-number {
    height: 46px;
    font-size: 0.9rem;
  }
  .search-panel__actions {
    margin-top: 0.5rem;
  }
  .search-panel__actions .btn-search {
    height: 48px;
    font-size: 0.9rem;
  }
  .search-panel__actions .btn-search-ghost {
    height: 48px;
    min-width: 48px;
  }
}

/* ── Property card (listing & rekomendasi) ── */
.property-kat-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.property-kat-tag.subsidi,
.kat-tag.subsidi,
.kat-badge.subsidi,
.badge-kat-subsidi {
  background: var(--badge-subsidi-bg) !important;
  color: var(--badge-subsidi-text) !important;
  border: 1px solid var(--badge-subsidi-border) !important;
  box-shadow: var(--badge-subsidi-shadow) !important;
}

.property-kat-tag.komersil,
.kat-tag.komersil,
.kat-badge.komersil,
.badge-kat-komersil {
  background: var(--badge-komersil-bg) !important;
  color: var(--badge-komersil-text) !important;
  border: 1px solid var(--badge-komersil-border) !important;
  box-shadow: var(--badge-komersil-shadow) !important;
  letter-spacing: 0.11em;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.badge-kat-subsidi,
.badge-kat-komersil {
  border-radius: var(--radius-pill);
  padding: 0.28rem 0.55rem;
}

/* Alias untuk tabel / inline tag di katalog */
.kat-tag,
.kat-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.property-promo-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  max-width: calc(100% - 7.5rem);
  background: rgba(28, 25, 23, 0.88);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.7rem;
  font-size: 0.68rem;
  font-weight: 700;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.property-promo-tag i {
  font-size: 0.72rem;
  flex-shrink: 0;
}
.rec-card .property-promo-tag {
  top: auto;
  bottom: 12px;
  left: 12px;
  right: auto;
  max-width: calc(100% - 4.5rem);
}

.property-card__name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.property-card__price {
  font-weight: 800;
  font-size: 1.22rem;
  color: var(--primary);
  letter-spacing: -0.03em;
  margin-bottom: 0.65rem;
}

.property-finance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  padding: 0.5rem 0.7rem;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.3;
}
.property-finance__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.property-finance__item i {
  font-size: 0.82rem;
  opacity: 0.9;
}
.property-finance__sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.35;
  flex-shrink: 0;
}

.property-card__location {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.property-card__location i {
  color: var(--primary);
  font-size: 0.88rem;
  margin-top: 1px;
  flex-shrink: 0;
}

.property-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.75rem;
  margin-bottom: 0.65rem;
}
.property-spec-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  min-width: 0;
}
.property-spec-item i {
  font-size: 0.82rem;
  color: var(--primary);
  opacity: 0.75;
  flex-shrink: 0;
}

.property-card__developer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  padding-top: 0.65rem;
  margin-top: 0.15rem;
  margin-bottom: 0.5rem;
  border-top: 1px solid var(--border-soft);
}
.property-card__developer i {
  color: var(--primary);
  font-size: 0.85rem;
  flex-shrink: 0;
}
.property-card__developer span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-card__actions {
  margin-top: auto;
  padding-top: 0.5rem;
}

.btn-property-detail {
  background: var(--surface);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 0.58rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-property-detail:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(224, 134, 0, 0.28);
}

/* Sales picker — detail properti */
.sales-picker {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.sales-picker__hint {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0.35rem 0 0.75rem;
  line-height: 1.45;
}
.sales-picker__select {
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
}
.sales-picker__status {
  font-size: 0.8rem;
  min-height: 1.25rem;
  margin-bottom: 0.5rem;
  color: #64748b;
}
.sales-picker__status.is-success { color: #059669; }
.sales-picker__status.is-error { color: #dc2626; }
.sales-picker__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.sales-picker__wa.disabled {
  pointer-events: none;
  opacity: 0.55;
}
@media (max-width: 991px) {
  .sales-picker {
    margin-top: 0.75rem;
    padding: 0.85rem;
  }
  .sales-picker__actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}
