/* ============================================================
   CIASA Agent Portal — Premium Design System
   Palette: navy #1a2332 · gold #d4b87a · cream #f8f6f2
   Fonts:   Cormorant Garamond · DM Sans · JetBrains Mono
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── TOKENS ── */
:root {
  --navy:       #1a2332;
  --gold:       #d4b87a;
  --cream:      #f8f6f2;
  --ink:        #1a1a1a;
  --sage:       #6b8f71;
  --terra:      #c17c5a;
  --tag-nice:   #f0ece5;
  --white:      #ffffff;
  --border:     #e8e4df;
  --muted:      #6b6560;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', 'Courier New', monospace;

  --sidebar-w:  252px;
  --r-sm:  8px;
  --r-md: 12px;
  --r-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(26,35,50,.07), 0 1px 2px rgba(26,35,50,.04);
  --shadow-md: 0 4px 16px rgba(26,35,50,.10), 0 2px 6px rgba(26,35,50,.06);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── BASE ── */
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-sans); background: var(--cream); color: var(--ink); line-height: 1.6; }
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--navy); line-height: 1.2; }
h1 { font-size: 2.25rem; font-weight: 700; }
h2 { font-size: 1.625rem; font-weight: 600; }
h3 { font-size: 1.25rem;  font-weight: 600; }
a  { color: var(--navy); text-decoration: none; transition: color .15s; }
a:hover { color: var(--gold); }


/* ═══════════════════════════════════════
   LAYOUT
═══════════════════════════════════════ */
.layout { display: flex; min-height: 100vh; }


/* ═══════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  background: var(--navy);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  overflow-y: auto;
}

.sidebar-brand {
  padding: 28px 24px 22px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.sidebar-brand .wordmark {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .055em;
}
.sidebar-brand .wordmark-sub {
  display: block;
  font-size: .6875rem;
  color: rgba(255,255,255,.36);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-top: 3px;
}

.sidebar-nav {
  flex: 1;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.58);
  transition: background .15s, color .15s;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(212,184,122,.13);
  color: var(--gold);
}
.nav-sep {
  height: 1px;
  background: rgba(255,255,255,.07);
  margin: 6px 4px;
}
.nav-ico {
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  font-style: normal;
  opacity: .9;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(212,184,122,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}
.user-meta { min-width: 0; }
.user-name {
  font-size: .8125rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-role {
  font-size: .6875rem;
  color: rgba(255,255,255,.36);
  text-transform: uppercase;
  letter-spacing: .07em;
}
.btn-signout {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.44);
  font-family: var(--font-sans);
  font-size: .8125rem;
  padding: 7px 14px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-signout:hover {
  background: rgba(193,124,90,.18);
  color: #e09474;
  border-color: rgba(193,124,90,.3);
}


/* ═══════════════════════════════════════
   MAIN CONTENT
═══════════════════════════════════════ */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 44px 52px;
  max-width: 1480px;
}

.page-head { margin-bottom: 36px; }
.page-head h1 { margin-bottom: 6px; }
.page-head .subtitle { font-size: .9375rem; color: var(--muted); }


/* ═══════════════════════════════════════
   CARDS
═══════════════════════════════════════ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}


/* ═══════════════════════════════════════
   LISTING GRID & CARDS
═══════════════════════════════════════ */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.listing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.listing-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.listing-card > a {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
}

/* Image placeholder */
.listing-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.listing-img-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, #2a4060 100%);
}
.listing-img-type {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(255,255,255,.18);
  letter-spacing: .06em;
  text-transform: capitalize;
  user-select: none;
}
.status-pin {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

/* Card body */
.listing-body {
  padding: 16px 20px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.listing-title {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}
.listing-price {
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--navy);
}
.listing-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .8125rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.meta-dot { opacity: .3; }
.listing-location {
  font-size: .8125rem;
  color: var(--muted);
}

/* Card footer */
.listing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 20px;
  margin-top: 12px;
  border-top: 1px solid var(--border);
  background: #fdfcfa;
}
.listing-ref {
  font-family: var(--font-mono);
  font-size: .6875rem;
  color: var(--muted);
}
.view-matches-link {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.view-matches-link:hover { color: var(--gold); }


/* ═══════════════════════════════════════
   BADGES
═══════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.4;
}
.badge-active   { background: var(--sage);  color: #fff; }
.badge-draft    { background: var(--border); color: var(--muted); }
.badge-archived { background: var(--navy);  color: #fff; }
.badge-gold     { background: var(--gold);  color: var(--navy); }
.badge-alert    { background: var(--terra); color: #fff; }
.badge-pending  { background: rgba(212,184,122,.2); color: #7a5a1e; border: 1px solid rgba(212,184,122,.35); }


/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: filter .15s, box-shadow .15s, background .15s, color .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary  { background: var(--gold);  color: var(--navy); }
.btn-primary:hover { filter: brightness(.96); box-shadow: 0 2px 10px rgba(212,184,122,.38); color: var(--navy); }
.btn-secondary { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }
.btn-danger   { background: var(--terra); color: #fff; }
.btn-danger:hover { filter: brightness(.95); }
.btn-ghost    { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover  { color: var(--navy); border-color: var(--navy); }
.btn-sm  { padding: 6px 14px; font-size: .8125rem; }
.btn-full { width: 100%; justify-content: center; }


/* ═══════════════════════════════════════
   TAGS / PILLS
═══════════════════════════════════════ */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .6875rem;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1.4;
}
.tag-deal    { background: var(--navy);    color: var(--gold); }
.tag-nice    { background: var(--tag-nice); color: var(--navy); }
.tag-neutral { background: var(--cream);   color: var(--muted); border: 1px solid var(--border); }
.tag-tier    { background: rgba(212,184,122,.14); color: #7a5a1e; border: 1px solid rgba(212,184,122,.3); text-transform: capitalize; }


/* ═══════════════════════════════════════
   MATCHES TABLE
═══════════════════════════════════════ */
.matches-wrap {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.matches-table {
  width: 100%;
  border-collapse: collapse;
}
.matches-table thead th {
  background: var(--navy);
  color: rgba(255,255,255,.68);
  font-family: var(--font-sans);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 13px 16px;
  text-align: left;
  white-space: nowrap;
}
.matches-table thead th.center { text-align: center; }
.matches-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  font-size: .875rem;
  vertical-align: middle;
}
.matches-table tbody tr:last-child td { border-bottom: none; }
.matches-table tbody tr:hover td     { background: #fdfcfa; }

/* Segment cell */
.match-label {
  font-weight: 600;
  color: var(--navy);
  font-size: .9rem;
  display: block;
  margin-bottom: 5px;
}
.match-summary {
  font-size: .8125rem;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Circular score badge */
.score-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  color: var(--navy);
  margin: 0 auto;
  flex-shrink: 0;
}

/* Star ratings */
.stars { display: inline-flex; gap: 2px; line-height: 1; }
.star      { font-size: 14px; color: var(--border); }
.star.on   { color: var(--gold); }


/* ═══════════════════════════════════════
   FORMS
═══════════════════════════════════════ */
.form-row { margin-bottom: 20px; }

label, .form-label {
  display: block;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: .02em;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: .9375rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,184,122,.15);
}
textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
select { cursor: pointer; }


/* ═══════════════════════════════════════
   DATA TABLE  (admin)
═══════════════════════════════════════ */
.data-wrap {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead th {
  background: var(--navy);
  color: rgba(255,255,255,.68);
  font-family: var(--font-sans);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 13px 16px;
  text-align: left;
  white-space: nowrap;
}
.data-table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  font-size: .875rem;
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td     { background: #fdfcfa; }


/* ═══════════════════════════════════════
   STATS ROW
═══════════════════════════════════════ */
.stats-row {
  display: flex;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.stat-chip {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px 24px;
  flex: 1;
  min-width: 130px;
  box-shadow: var(--shadow-sm);
}
.stat-val {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.1;
}
.stat-lbl {
  font-size: .8125rem;
  color: var(--muted);
  margin-top: 4px;
}


/* ═══════════════════════════════════════
   SECTION HEADER
═══════════════════════════════════════ */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-head h2 { margin: 0; }


/* ═══════════════════════════════════════
   FEEDBACK ROWS
═══════════════════════════════════════ */
.feedback-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.feedback-row:last-child { border-bottom: none; }
.feedback-row .fb-cat {
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
}
.feedback-row .fb-msg {
  font-size: .9rem;
  color: var(--ink);
  margin-top: 3px;
}
.feedback-row .fb-ts {
  font-size: .75rem;
  color: var(--muted);
  margin-top: 3px;
}


/* ═══════════════════════════════════════
   PROPERTY HERO
═══════════════════════════════════════ */
.prop-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #2a4060 100%);
  border-radius: var(--r-lg);
  padding: 40px 44px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.prop-hero::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(212,184,122,.05);
  pointer-events: none;
}
.prop-hero h1    { color: #fff; font-size: 2rem; margin-bottom: 6px; }
.prop-hero .price {
  font-family: var(--font-mono);
  font-size: 1.875rem;
  color: var(--gold);
  margin-bottom: 22px;
}
.prop-hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.prop-hero-meta .item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .9rem;
  color: rgba(255,255,255,.68);
}


/* ═══════════════════════════════════════
   PROPERTY DETAIL GRID
═══════════════════════════════════════ */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}
.detail-item .detail-lbl {
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin-bottom: 4px;
}
.detail-item .detail-val {
  font-size: .9375rem;
  color: var(--ink);
}


/* ═══════════════════════════════════════
   UPGRADE CTA
═══════════════════════════════════════ */
.upgrade-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px;
  background: rgba(212,184,122,.05);
  border: 1px dashed rgba(212,184,122,.55);
  border-radius: var(--r-md);
  margin-top: 20px;
  flex-wrap: wrap;
}
.upgrade-cta p          { font-size: .9rem; color: var(--muted); margin-top: 3px; }
.upgrade-cta strong     { color: var(--navy); font-size: .9375rem; }


/* ═══════════════════════════════════════
   BREADCRUMB
═══════════════════════════════════════ */
.breadcrumb {
  font-size: .875rem;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb .sep { opacity: .35; }


/* ═══════════════════════════════════════
   EMPTY STATE
═══════════════════════════════════════ */
.empty {
  text-align: center;
  padding: 64px 32px;
}
.empty-icon { font-size: 2.75rem; opacity: .16; margin-bottom: 16px; }
.empty h2   { font-size: 1.375rem; margin-bottom: 8px; }
.empty p    { color: var(--muted); font-size: .9375rem; }


/* ═══════════════════════════════════════
   CONFIRM BOX
═══════════════════════════════════════ */
.confirm-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px;
  background: rgba(107,143,113,.08);
  border: 1px solid rgba(107,143,113,.25);
  border-radius: var(--r-md);
  color: #3b6941;
}
.confirm-box .tick { font-size: 1.25rem; line-height: 1.6; }
.confirm-box strong { display: block; font-size: .9375rem; margin-bottom: 3px; }
.confirm-box p { font-size: .875rem; color: #4d7a53; }


/* ═══════════════════════════════════════
   LOGIN
═══════════════════════════════════════ */
.login-wrap {
  min-height: 100vh;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--r-lg);
  padding: 50px 44px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-md);
}
.login-brand { text-align: center; margin-bottom: 38px; }
.login-brand .wordmark {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.625rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .06em;
}
.login-brand .tagline {
  display: block;
  font-size: .6875rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
}
.login-msg {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-size: .875rem;
  line-height: 1.5;
}
.login-msg.success {
  background: rgba(107,143,113,.09);
  color: #3b6941;
  border: 1px solid rgba(107,143,113,.24);
}
.login-msg.info {
  background: rgba(212,184,122,.1);
  color: #7a5a1e;
  border: 1px solid rgba(212,184,122,.25);
}
.login-footer {
  text-align: center;
  margin-top: 28px;
  font-size: .75rem;
  color: var(--muted);
  letter-spacing: .02em;
}


/* ═══════════════════════════════════════
   UTILITIES
═══════════════════════════════════════ */
.mono    { font-family: var(--font-mono); }
.serif   { font-family: var(--font-serif); }
.muted   { color: var(--muted); }
.navy    { color: var(--navy); }
.gold    { color: var(--gold); }
.flex    { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-2  { margin-top: 8px; }
.mt-3  { margin-top: 12px; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mb-2  { margin-bottom: 8px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }
.w-full { width: 100%; }
.text-sm  { font-size: .875rem; }
.text-xs  { font-size: .75rem; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nowrap   { white-space: nowrap; }
.text-center { text-align: center; }


/* ═══════════════════════════════════════
   LISTING IMAGE — PHOTO VARIANT
═══════════════════════════════════════ */
.listing-img-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pitch-count-pin {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(26,35,50,.75);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: .6875rem;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}


/* ═══════════════════════════════════════
   PROPERTY HERO — PHOTO VARIANT
═══════════════════════════════════════ */
.prop-hero-photo {
  width: 100%;
  min-height: 340px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.prop-hero-photo-overlay {
  width: 100%;
  padding: 40px 44px;
  background: linear-gradient(to top, rgba(20,30,46,.88) 0%, rgba(20,30,46,.3) 100%);
}
.prop-hero-photo-overlay h1    { color: #fff; font-size: 2rem; margin-bottom: 6px; }
.prop-hero-photo-overlay .price {
  font-family: var(--font-mono);
  font-size: 1.875rem;
  color: var(--gold);
  margin-bottom: 22px;
}


/* ═══════════════════════════════════════
   SIDEBAR — CREDITS COUNTER
═══════════════════════════════════════ */
.sidebar-credits {
  padding: 10px 16px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.credits-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(212,184,122,.1);
  border: 1px solid rgba(212,184,122,.2);
  border-radius: var(--r-sm);
  color: var(--gold);
  text-decoration: none;
  transition: background .15s;
}
.credits-link:hover { background: rgba(212,184,122,.18); color: var(--gold); }
.credits-icon { font-size: .875rem; opacity: .8; }
.credits-label { font-size: .75rem; color: rgba(255,255,255,.5); flex: 1; }
.credits-val {
  font-family: var(--font-mono);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--gold);
}


/* ═══════════════════════════════════════
   TRIAL BANNER
═══════════════════════════════════════ */
.trial-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(212,184,122,.18) 0%, rgba(212,184,122,.08) 100%);
  border: 1px solid rgba(212,184,122,.4);
  border-radius: var(--r-md);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.trial-icon { font-size: 1.125rem; color: var(--gold); flex-shrink: 0; }
.trial-text {
  flex: 1;
  font-size: .875rem;
  color: var(--ink);
  min-width: 200px;
}
.trial-text strong { color: var(--navy); }


/* ═══════════════════════════════════════
   WIZARD PROGRESS BAR
═══════════════════════════════════════ */
.wizard-progress {
  display: flex;
  align-items: center;
  margin-bottom: 36px;
  overflow-x: auto;
  gap: 0;
  padding-bottom: 4px;
}
.wp-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.wp-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}
.wp-lbl {
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.wp-step.wp-active .wp-dot { background: var(--navy); color: #fff; }
.wp-step.wp-active .wp-lbl { color: var(--navy); }
.wp-step.wp-done  .wp-dot  { background: var(--gold); color: var(--navy); }
.wp-step.wp-done  .wp-lbl  { color: var(--gold); }
.wp-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  min-width: 20px;
  align-self: flex-start;
  margin-top: 13px;
}

.wizard-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  padding-top: 4px;
}
.wizard-step-counter {
  white-space: nowrap;
}


/* ═══════════════════════════════════════
   RADIO CARDS
═══════════════════════════════════════ */
.radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.radio-card {
  cursor: pointer;
  display: flex;
}
.radio-card input[type="radio"] {
  width: auto;
  margin-right: 0;
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.radio-card-inner {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--white);
  transition: border-color .15s, background .15s;
}
.radio-card input:checked + .radio-card-inner {
  border-color: var(--gold);
  background: rgba(212,184,122,.06);
}
.radio-title {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--navy);
  margin-bottom: 3px;
}
.radio-desc {
  display: block;
  font-size: .8125rem;
  color: var(--muted);
}


/* ═══════════════════════════════════════
   CHIP TOGGLES (wizard feature/amenity)
═══════════════════════════════════════ */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip-toggle {
  cursor: pointer;
  display: inline-flex;
}
.chip-toggle input { display: none; }
.chip-toggle span {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--white);
  transition: border-color .15s, background .15s, color .15s;
  user-select: none;
}
.chip-toggle:hover span,
.chip-toggle.active span {
  border-color: var(--gold);
  background: rgba(212,184,122,.1);
  color: var(--navy);
}

/* Chip display (read-only, in listing detail) */
.chip-display {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.chip-display-item {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: .8125rem;
  color: var(--navy);
  background: var(--cream);
}


/* ═══════════════════════════════════════
   FAQ ACCORDION
═══════════════════════════════════════ */
.faq-list {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--white);
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
  transition: background .15s;
}
.faq-q:hover { background: #fdfcfa; }
.faq-chevron {
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--muted);
  transition: transform .2s;
}
.faq-a {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.7;
  transition: max-height .25s ease, padding .25s ease;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-item.open .faq-a { max-height: 320px; padding: 0 24px 20px; }


/* ═══════════════════════════════════════
   CREDITS PAGE
═══════════════════════════════════════ */
.credits-overview {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  margin-bottom: 8px;
}
.credits-balance-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.balance-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 8px;
  opacity: .7;
}
.balance-amount {
  font-size: 3.5rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1;
}
.balance-label {
  font-size: .8125rem;
  color: var(--muted);
  margin-top: 6px;
}

.tier-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tier-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.tier-item-featured {
  border-color: rgba(212,184,122,.5);
  background: rgba(212,184,122,.04);
}
.tier-name {
  font-weight: 600;
  font-size: .9375rem;
  color: var(--navy);
  min-width: 90px;
}
.tier-desc {
  flex: 1;
  font-size: .875rem;
  color: var(--muted);
}
.tier-cost {
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--navy);
  text-align: right;
}


/* ═══════════════════════════════════════
   QUICK ACTIONS
═══════════════════════════════════════ */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.quick-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.quick-action-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(212,184,122,.4);
}
.qa-icon {
  font-size: 1.625rem;
  margin-bottom: 10px;
  color: var(--navy);
  opacity: .6;
}
.qa-label {
  font-weight: 600;
  font-size: .9375rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.qa-desc {
  font-size: .8125rem;
  color: var(--muted);
}


/* ═══════════════════════════════════════
   FORM ERROR BANNER
═══════════════════════════════════════ */
.form-error-banner {
  margin-bottom: 20px;
  padding: 12px 16px;
  background: rgba(193,124,90,.1);
  border: 1px solid rgba(193,124,90,.3);
  border-radius: var(--r-sm);
  color: #7a3520;
  font-size: .875rem;
}


/* ═══════════════════════════════════════
   MISC SPACING
═══════════════════════════════════════ */
.mt-10 { margin-top: 40px; }


/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .main { margin-left: 0; padding: 28px 20px; }
  .listing-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 12px; }
  .prop-hero { padding: 28px 24px; }
  .prop-hero .price { font-size: 1.375rem; }
  .upgrade-cta { flex-direction: column; align-items: flex-start; }
  .radio-group { grid-template-columns: 1fr; }
  .credits-overview { grid-template-columns: 1fr; }
  .wizard-progress .wp-lbl { display: none; }
  .quick-actions { grid-template-columns: 1fr 1fr; }
}
