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

:root {
  --p:       #6C47FF;
  --p-dark:  #5535E8;
  --p-light: #EDE8FF;
  --p-glow:  rgba(108,71,255,.15);
  --green:   #22C55E;
  --amber:   #F59E0B;
  --red:     #EF4444;
  --ink:     #0D0D1A;
  --ink2:    #4A4A6A;
  --ink3:    #9090B0;
  --line:    #E4E4F0;
  --bg:      #F8F8FD;
  --surface: #FFFFFF;
  --r:       14px;
  --r-lg:    22px;
  --r-pill:  9999px;
  --sh1: 0 1px 4px rgba(0,0,0,.06);
  --sh2: 0 4px 18px rgba(0,0,0,.09);
  --sh3: 0 14px 48px rgba(0,0,0,.13);
  --f: 'Inter', system-ui, sans-serif;
  --ease: 180ms cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }
body { font-family: var(--f); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img  { display: block; max-width: 100%; }
a    { color: var(--p); text-decoration: none; }
a:hover { text-decoration: underline; }
em   { font-style: normal; color: var(--red); }

/* ── Layout ─────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--p); background: var(--p-light);
  padding: 4px 12px; border-radius: var(--r-pill);
  margin-bottom: 14px;
}
.section-title { font-size: clamp(24px,4vw,38px); font-weight: 800; line-height: 1.15; margin-bottom: 10px; }
.section-sub   { color: var(--ink2); font-size: 16px; margin-bottom: 40px; }
.grad { background: linear-gradient(135deg,var(--p),#A855F7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f); font-weight: 600; cursor: pointer;
  border: 2px solid transparent; border-radius: var(--r-pill);
  transition: all var(--ease); text-decoration: none !important; white-space: nowrap;
}
.btn-sm  { padding: 8px 18px;  font-size: 13px; }
.btn-lg  { padding: 14px 30px; font-size: 16px; }
.btn:not(.btn-sm):not(.btn-lg) { padding: 10px 22px; font-size: 14px; }

.btn-primary { background: var(--p); color: #fff; border-color: var(--p); }
.btn-primary:hover { background: var(--p-dark); border-color: var(--p-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(108,71,255,.4); }

.btn-outline { background: transparent; color: var(--p); border-color: var(--p); }
.btn-outline:hover { background: var(--p-light); }

.btn-ghost { background: transparent; color: var(--ink2); border-color: var(--line); }
.btn-ghost:hover { background: var(--line); color: var(--ink); }

.btn:disabled { opacity: .5; pointer-events: none; }
.hidden { display: none !important; }

/* ── Nav ────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(248,248,253,.88); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; color: var(--ink); text-decoration: none !important; }
.logo-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--p); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900; flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--ink2); }
.nav-links a:hover { color: var(--p); text-decoration: none; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: var(--ease); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer { display: none; flex-direction: column; gap: 4px; padding: 12px 24px 16px; border-top: 1px solid var(--line); }
.nav-drawer a { padding: 10px 0; font-size: 15px; font-weight: 500; color: var(--ink2); }
.nav-drawer.open { display: flex; }

/* ── Hero ───────────────────────────────────────────── */
.hero { position: relative; padding: 100px 0 80px; text-align: center; overflow: hidden; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 50% -5%, rgba(108,71,255,.13) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 75% 55%, rgba(168,85,247,.07) 0%, transparent 60%);
}
.hero-body { position: relative; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--p);
  background: var(--p-light); border: 1px solid rgba(108,71,255,.2);
  border-radius: var(--r-pill); padding: 6px 16px; margin-bottom: 24px;
}
.hero h1 { font-size: clamp(40px,7.5vw,72px); font-weight: 900; line-height: 1.08; letter-spacing: -.025em; margin-bottom: 20px; }
.hero-sub { font-size: clamp(15px,2vw,18px); color: var(--ink2); max-width: 540px; margin: 0 auto 36px; line-height: 1.65; }
.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-metrics {
  display: inline-flex; align-items: center; gap: 36px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px 40px; box-shadow: var(--sh1);
}
.metric { display: flex; flex-direction: column; align-items: center; }
.metric b { font-size: 22px; font-weight: 800; color: var(--p); }
.metric span { font-size: 12px; color: var(--ink3); margin-top: 3px; }
.metric-sep { width: 1px; height: 36px; background: var(--line); }

/* ── How it works ───────────────────────────────────── */
.hiw { padding: 88px 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 48px; }
.step-card {
  position: relative; text-align: left;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 36px 28px; transition: all var(--ease);
}
.step-card:hover { border-color: var(--p); transform: translateY(-4px); box-shadow: var(--sh2); }
.step-n { position: absolute; top: 18px; right: 20px; font-size: 52px; font-weight: 900; color: var(--line); line-height: 1; pointer-events: none; }
.step-emoji { font-size: 36px; margin-bottom: 16px; }
.step-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.step-card p  { font-size: 14px; color: var(--ink2); line-height: 1.7; }

/* ── Form section ───────────────────────────────────── */
.form-section { padding: 88px 0; }
.wizard-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh2); padding: 40px; margin-top: 40px;
}

/* Progress */
.wizard-progress { margin-bottom: 40px; }
.wp-track { height: 4px; background: var(--line); border-radius: var(--r-pill); margin-bottom: 18px; overflow: hidden; }
.wp-fill  { height: 100%; background: var(--p); border-radius: var(--r-pill); width: 33.3%; transition: width 400ms cubic-bezier(.4,0,.2,1); }
.wp-steps { display: flex; justify-content: space-between; }
.wp-step  { display: flex; align-items: center; gap: 8px; }
.wp-dot   {
  width: 28px; height: 28px; border-radius: 50%; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  background: var(--line); color: var(--ink3); transition: all var(--ease);
}
.wp-label { font-size: 13px; font-weight: 500; color: var(--ink3); transition: color var(--ease); }
.wp-step.active .wp-dot   { background: var(--p); color: #fff; box-shadow: 0 0 0 4px var(--p-light); }
.wp-step.active .wp-label { color: var(--p); font-weight: 600; }
.wp-step.done .wp-dot     { background: var(--green); color: #fff; }
.wp-step.done .wp-label   { color: var(--ink2); }

/* Panels */
.panel { display: block; }
.panel.hidden { display: none; }
.panel-title { font-size: 18px; font-weight: 700; margin-bottom: 24px; }
.panel-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Form grid */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.span2 { grid-column: 1 / -1; }
.fg { display: flex; flex-direction: column; gap: 6px; }
.fg label { font-size: 13px; font-weight: 600; color: var(--ink); }
.ferr { font-size: 12px; font-weight: 500; color: var(--red); min-height: 16px; }
.row-between { display: flex; justify-content: space-between; align-items: flex-start; }
.cc { font-size: 11px; color: var(--ink3); flex-shrink: 0; padding-top: 2px; }

input[type=text], input[type=number], input[type=email], input[type=tel], input[type=date],
select, textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: var(--r);
  font-family: var(--f); font-size: 14px; color: var(--ink); background: var(--bg);
  transition: border-color var(--ease), box-shadow var(--ease); outline: none;
  appearance: none; -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--p); box-shadow: 0 0 0 3px var(--p-glow);
}
input.err, select.err, textarea.err {
  border-color: var(--red); box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239090B0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 38px; cursor: pointer;
}
textarea { resize: vertical; min-height: 130px; }

.prefix-wrap { position: relative; }
.prefix-wrap > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 600; color: var(--ink3); pointer-events: none; }
.prefix-wrap input { padding-left: 26px; }

/* Amenities */
.amenities-block { margin-bottom: 28px; }
.block-label { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1.5px solid var(--line); border-radius: var(--r-pill); cursor: pointer; font-size: 13px; font-weight: 500; color: var(--ink2); transition: all var(--ease); user-select: none; }
.chip input { display: none; }
.chip:hover { border-color: var(--p); color: var(--p); background: var(--p-light); }
.chip:has(input:checked) { background: var(--p); border-color: var(--p); color: #fff; }

/* Drop zone */
.dropzone {
  border: 2px dashed var(--line); border-radius: var(--r-lg);
  cursor: pointer; transition: all var(--ease); margin-bottom: 16px;
}
.dropzone:hover, .dropzone.over { border-color: var(--p); background: var(--p-light); }
.dz-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 32px; text-align: center; pointer-events: none; }
.dz-icon  { font-size: 48px; margin-bottom: 14px; }
.dz-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.dz-sub   { font-size: 13px; color: var(--ink3); margin-bottom: 20px; }
.dropzone button { pointer-events: all; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(130px,1fr)); gap: 12px; margin-top: 4px; }
.p-thumb { position: relative; aspect-ratio: 4/3; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.p-thumb img { width: 100%; height: 100%; object-fit: cover; }
.p-thumb .rm { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; border: none; cursor: pointer; font-size: 11px; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity var(--ease); }
.p-thumb:hover .rm { opacity: 1; }
.p-thumb .cover { position: absolute; bottom: 6px; left: 6px; background: var(--p); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: var(--r-pill); }

/* AI Toggle */
.ai-toggle-row { margin: 24px 0; padding: 18px 20px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); }
.toggle-label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.toggle-label input { display: none; }
.toggle-track { position: relative; width: 44px; height: 24px; background: var(--line); border-radius: var(--r-pill); flex-shrink: 0; margin-top: 2px; transition: background var(--ease); }
.toggle-thumb { position: absolute; width: 18px; height: 18px; background: #fff; border-radius: 50%; top: 3px; left: 3px; transition: transform var(--ease); box-shadow: var(--sh1); }
.toggle-label input:checked ~ .toggle-track { background: var(--p); }
.toggle-label input:checked ~ .toggle-track .toggle-thumb { transform: translateX(20px); }
.toggle-text span { font-size: 14px; font-weight: 600; }
.toggle-text small { display: block; font-size: 12px; color: var(--ink3); margin-top: 3px; }
.badge-rec { display: inline-block; background: var(--green); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: var(--r-pill); margin-left: 6px; vertical-align: middle; }

#submitSpinner { animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Listings ────────────────────────────────────────── */
.listings-section { padding: 88px 0; background: var(--surface); border-top: 1px solid var(--line); }
.listings-hd { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; flex-wrap: wrap; gap: 16px; }
.filter-row { display: flex; gap: 8px; }
.fbtn { padding: 7px 18px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: transparent; font-family: var(--f); font-size: 13px; font-weight: 500; color: var(--ink2); cursor: pointer; transition: all var(--ease); }
.fbtn:hover { border-color: var(--p); color: var(--p); }
.fbtn.active { background: var(--p); border-color: var(--p); color: #fff; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 24px; }
.empty { grid-column: 1/-1; text-align: center; padding: 80px 20px; color: var(--ink3); }
.empty-emoji { font-size: 56px; margin-bottom: 16px; }
.empty p { font-size: 15px; }

.lcard { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: all var(--ease); }
.lcard:hover { transform: translateY(-4px); box-shadow: var(--sh3); border-color: var(--p); }
.lcard-img { height: 195px; background: linear-gradient(135deg,#ddd6ff,#c4b5fd); position: relative; overflow: hidden; }
.lcard-img img { width: 100%; height: 100%; object-fit: cover; }
.lcard-img .no-img { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 52px; }
.lcard-status { position: absolute; top: 12px; left: 12px; padding: 3px 10px; border-radius: var(--r-pill); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.s-active  { background: var(--green); color: #fff; }
.s-pending { background: var(--amber); color: #fff; }
.lcard-btns { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
.lcard-btn { width: 30px; height: 30px; border-radius: 8px; border: none; background: rgba(255,255,255,.92); backdrop-filter: blur(4px); cursor: pointer; font-size: 13px; display: flex; align-items: center; justify-content: center; box-shadow: var(--sh1); transition: all var(--ease); }
.lcard-btn:hover { background: #fff; transform: scale(1.08); }
.lcard-body { padding: 18px 20px; }
.lcard-price { font-size: 22px; font-weight: 800; color: var(--p); margin-bottom: 4px; }
.lcard-price small { font-size: 13px; font-weight: 500; color: var(--ink3); }
.lcard-title { font-size: 15px; font-weight: 600; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcard-addr  { font-size: 13px; color: var(--ink3); margin-bottom: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcard-meta  { display: flex; gap: 14px; font-size: 12px; font-weight: 500; color: var(--ink2); padding-top: 14px; border-top: 1px solid var(--line); }

/* ── Footer ─────────────────────────────────────────── */
.footer { padding: 28px 0; border-top: 1px solid var(--line); background: var(--bg); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer-inner p { font-size: 13px; color: var(--ink3); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--ink3); }
.footer-links a:hover { color: var(--p); }

/* ── Toast ──────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 26px; right: 26px; z-index: 999;
  display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: var(--r);
  font-size: 14px; font-weight: 500; box-shadow: var(--sh3);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: all 300ms cubic-bezier(.4,0,.2,1);
}
.toast.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links  { display: none; }
  .hamburger  { display: flex; }
  .hero       { padding: 60px 0 48px; }
  .hero-metrics { flex-direction: column; gap: 16px; padding: 24px 28px; width: 100%; }
  .metric-sep { width: 80%; height: 1px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 320px; justify-content: center; }
  .steps      { grid-template-columns: 1fr; }
  .wizard-card { padding: 24px 18px; }
  .grid2      { grid-template-columns: 1fr; }
  .span2      { grid-column: 1; }
  .wp-label   { display: none; }
  .panel-footer { flex-direction: column-reverse; gap: 12px; }
  .panel-footer > * { width: 100%; justify-content: center; }
  .listings-hd { flex-direction: column; align-items: flex-start; }
  .cards-grid  { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .chip { font-size: 12px; padding: 6px 11px; }
  .photo-grid { grid-template-columns: repeat(3,1fr); }
  .hero-metrics { width: calc(100% + 48px); margin-left: -24px; border-radius: 0; border-left: none; border-right: none; }
}


/* ═══════════════════════════════════════════════════════
   HOMEPAGE
═══════════════════════════════════════════════════════ */
.hp-body { min-height: 100vh; background: var(--bg); display: flex; flex-direction: column; }

.hp-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 70% 50% at 20% 20%, rgba(108,71,255,.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(168,85,247,.05) 0%, transparent 60%),
    var(--bg);
}

.hp-header { display: flex; justify-content: center; padding: 32px 24px 0; }

.hp-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 40px;
  text-align: center;
}

.hp-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--p); background: var(--p-light); border: 1px solid rgba(108,71,255,.2);
  padding: 5px 16px; border-radius: var(--r-pill); margin-bottom: 20px;
}

.hp-title { font-size: clamp(36px,6vw,64px); font-weight: 900; line-height: 1.1; letter-spacing: -.025em; margin-bottom: 14px; }
.hp-sub { font-size: clamp(15px,2vw,18px); color: var(--ink2); max-width: 480px; line-height: 1.6; margin-bottom: 48px; }

.hp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; width: 100%; max-width: 800px; margin-bottom: 48px; }

.hp-card {
  position: relative; display: flex; flex-direction: column;
  padding: 36px 32px; border-radius: var(--r-lg); border: 2px solid var(--line);
  background: var(--surface); text-decoration: none !important;
  transition: all 260ms cubic-bezier(.4,0,.2,1); overflow: hidden; text-align: left;
}
.hp-card:hover { transform: translateY(-6px); box-shadow: var(--sh3); }

.hp-card-glow { position: absolute; inset: 0; opacity: 0; transition: opacity 300ms; pointer-events: none; border-radius: inherit; }
.hp-card-tenant .hp-card-glow { background: radial-gradient(ellipse 80% 60% at 30% 30%, rgba(108,71,255,.12) 0%, transparent 70%); }
.hp-card-landlord .hp-card-glow { background: radial-gradient(ellipse 80% 60% at 70% 70%, rgba(15,15,26,.07) 0%, transparent 70%); }
.hp-card:hover .hp-card-glow { opacity: 1; }
.hp-card-tenant:hover { border-color: var(--p); }
.hp-card-landlord:hover { border-color: var(--ink2); }

.hp-card-icon { font-size: 44px; margin-bottom: 18px; }
.hp-card h2 { font-size: 22px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.hp-card p { font-size: 14px; color: var(--ink2); line-height: 1.65; margin-bottom: 20px; }

.hp-card-perks { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 7px; }
.hp-card-perks li { font-size: 13px; font-weight: 500; color: var(--ink2); }

.hp-card-cta { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; margin-top: auto; color: var(--ink); transition: gap 200ms; }
.hp-card-tenant .hp-card-cta { color: var(--p); }
.hp-card:hover .hp-card-cta { gap: 12px; }
.hp-card-cta .arrow { font-size: 18px; transition: transform 200ms; }
.hp-card:hover .hp-card-cta .arrow { transform: translateX(4px); }

.hp-stats {
  display: inline-flex; align-items: center; gap: 28px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 18px 32px; box-shadow: var(--sh1);
}
.hp-stat { display: flex; flex-direction: column; align-items: center; }
.hp-stat b { font-size: 18px; font-weight: 800; color: var(--p); }
.hp-stat span { font-size: 11px; color: var(--ink3); margin-top: 2px; }
.hp-stat-sep { width: 1px; height: 32px; background: var(--line); }

.hp-footer-bar { text-align: center; padding: 20px; font-size: 13px; color: var(--ink3); }
.hp-footer-bar a { color: var(--ink3); margin: 0 4px; }
.hp-footer-bar a:hover { color: var(--p); }

.nav-home-link { font-size: 13px !important; color: var(--ink3) !important; }

@media (max-width: 640px) {
  .hp-cards { grid-template-columns: 1fr; max-width: 420px; }
  .hp-stats { flex-direction: column; gap: 14px; padding: 20px 24px; width: 100%; max-width: 320px; }
  .hp-stat-sep { width: 60%; height: 1px; }
}


/* ═══════════════════════════════════════════════════════
   TENANT PAGE
═══════════════════════════════════════════════════════ */
.nav-left-group { display: flex; align-items: center; gap: 16px; }
.nav-back-btn { font-size: 13px; font-weight: 500; color: var(--ink3); text-decoration: none; white-space: nowrap; }
.nav-back-btn:hover { color: var(--p); text-decoration: none; }
.t-nav-right { display: flex; align-items: center; gap: 12px; }

.t-saved-btn { display: flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: transparent; font-family: var(--f); font-size: 13px; font-weight: 600; color: var(--ink2); cursor: pointer; transition: all var(--ease); }
.t-saved-btn:hover { border-color: var(--red); color: var(--red); }
.t-saved-count { background: var(--p); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: var(--r-pill); }

.t-hero { padding: 64px 0 48px; text-align: center; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(108,71,255,.1) 0%, transparent 65%); }
.t-hero-inner { position: relative; }
.t-hero h1 { font-size: clamp(32px,6vw,60px); font-weight: 900; line-height: 1.1; letter-spacing: -.025em; margin-bottom: 12px; }
.t-hero p  { font-size: 16px; color: var(--ink2); margin-bottom: 28px; }

.t-search-wrap { position: relative; max-width: 560px; margin: 0 auto; }
.t-search-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-size: 16px; pointer-events: none; }
.t-search-input { width: 100%; padding: 14px 48px 14px 50px; border: 2px solid var(--line); border-radius: var(--r-pill); font-family: var(--f); font-size: 15px; color: var(--ink); background: var(--surface); box-shadow: var(--sh2); outline: none; transition: border-color var(--ease), box-shadow var(--ease); }
.t-search-input:focus { border-color: var(--p); box-shadow: 0 0 0 4px var(--p-glow), var(--sh2); }
.t-search-clear { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 14px; color: var(--ink3); cursor: pointer; padding: 4px; }
.t-search-clear:hover { color: var(--ink); }

.t-filter-bar { position: sticky; top: 64px; z-index: 90; background: rgba(248,248,253,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding: 12px 0; }
.t-filter-inner { display: flex; align-items: center; gap: 16px; }
.t-chips-scroll { display: flex; align-items: center; gap: 8px; overflow-x: auto; flex: 1; scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 2px; }
.t-chips-scroll::-webkit-scrollbar { display: none; }
.t-chip { display: inline-flex; align-items: center; gap: 5px; padding: 7px 16px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: transparent; font-family: var(--f); font-size: 13px; font-weight: 500; color: var(--ink2); cursor: pointer; white-space: nowrap; transition: all var(--ease); flex-shrink: 0; }
.t-chip:hover { border-color: var(--p); color: var(--p); }
.t-chip.active { background: var(--p); border-color: var(--p); color: #fff; }
.t-chip-sep { width: 1px; height: 24px; background: var(--line); flex-shrink: 0; }
.t-filter-sort { flex-shrink: 0; }
.t-sort-select { padding: 8px 32px 8px 14px; border: 1.5px solid var(--line); border-radius: var(--r-pill); font-family: var(--f); font-size: 13px; font-weight: 500; color: var(--ink2); background: transparent; cursor: pointer; outline: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239090B0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.t-sort-select:focus { border-color: var(--p); }

.t-results-bar { display: flex; align-items: center; justify-content: space-between; padding: 20px 0 4px; font-size: 14px; color: var(--ink3); font-weight: 500; }
.t-clear-btn { background: none; border: none; font-family: var(--f); font-size: 13px; font-weight: 600; color: var(--p); cursor: pointer; padding: 4px 8px; }
.t-clear-btn:hover { text-decoration: underline; }

.t-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; padding-bottom: 80px; min-height: 300px; }

.prop-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; cursor: pointer; transition: all 240ms cubic-bezier(.4,0,.2,1); }
.prop-card:hover { transform: translateY(-5px); box-shadow: var(--sh3); border-color: rgba(108,71,255,.3); }
.prop-card-img { position: relative; height: 210px; background: linear-gradient(135deg,#ddd6ff,#c4b5fd); overflow: hidden; }
.prop-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 400ms ease; }
.prop-card:hover .prop-card-img img { transform: scale(1.05); }
.prop-no-img { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 56px; }

.prop-badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: var(--r-pill); font-size: 11px; font-weight: 700; }
.badge-hot        { background: linear-gradient(135deg,#FF6B35,#FF3B30); color: #fff; }
.badge-new-l      { background: var(--green); color: #fff; }
.badge-featured   { background: linear-gradient(135deg,#F59E0B,#D97706); color: #fff; }
.badge-price-drop { background: linear-gradient(135deg,#3B82F6,#2563EB); color: #fff; }

.prop-save-btn { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92); backdrop-filter: blur(4px); border: none; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; box-shadow: var(--sh1); transition: all var(--ease); z-index: 1; }
.prop-save-btn:hover { transform: scale(1.1); }
.prop-save-btn.saved { background: #fff8f8; }
.prop-live-badge { position: absolute; bottom: 10px; right: 10px; background: var(--green); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: var(--r-pill); text-transform: uppercase; letter-spacing: .05em; }

.prop-card-body { padding: 16px 18px; }
.prop-card-price { font-size: 20px; font-weight: 800; color: var(--p); margin-bottom: 4px; }
.prop-card-price span { font-size: 13px; font-weight: 500; color: var(--ink3); }
.prop-card-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prop-card-loc   { font-size: 12px; color: var(--ink3); margin-bottom: 12px; }
.prop-card-stats { display: flex; gap: 12px; font-size: 12px; font-weight: 500; color: var(--ink2); padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.prop-card-foot  { display: flex; align-items: center; justify-content: space-between; }
.prop-card-social { font-size: 12px; color: var(--ink3); }

.t-empty { grid-column: 1/-1; text-align: center; padding: 80px 20px; color: var(--ink3); }
.t-empty-icon { font-size: 52px; margin-bottom: 16px; }
.t-empty h3 { font-size: 18px; font-weight: 700; color: var(--ink2); margin-bottom: 8px; }
.t-empty p { font-size: 14px; }
.t-inline-btn { background: none; border: none; color: var(--p); cursor: pointer; font-size: 14px; font-weight: 600; text-decoration: underline; }

.t-modal-overlay { position: fixed; inset: 0; background: rgba(13,13,26,.6); backdrop-filter: blur(4px); z-index: 500; display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px; overflow-y: auto; }
.t-modal-box { position: relative; background: var(--surface); border-radius: var(--r-lg); width: 100%; max-width: 900px; box-shadow: var(--sh3); overflow: hidden; animation: modalIn 260ms cubic-bezier(.4,0,.2,1); margin: auto; }

@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

.t-modal-close { position: absolute; top: 14px; right: 14px; z-index: 10; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.9); backdrop-filter: blur(4px); border: none; cursor: pointer; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: var(--sh1); color: var(--ink); transition: all var(--ease); }
.t-modal-close:hover { background: #fff; transform: scale(1.08); }

.t-gallery { position: relative; height: 360px; background: linear-gradient(135deg,#ddd6ff,#c4b5fd); overflow: hidden; }
.t-gallery img { width: 100%; height: 100%; object-fit: cover; transition: opacity 200ms; }
.gallery-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.9); border: none; cursor: pointer; font-size: 22px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: var(--sh2); transition: all var(--ease); z-index: 2; }
.gallery-btn:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }
.gallery-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.g-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: all var(--ease); }
.g-dot.active { background: #fff; transform: scale(1.25); }

.t-modal-body { display: grid; grid-template-columns: 1fr 280px; }
.t-modal-main { padding: 28px 28px 32px; border-right: 1px solid var(--line); }
.t-modal-sidebar { padding: 28px 24px; }
.t-modal-price-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.t-modal-price { font-size: 26px; font-weight: 900; color: var(--p); }
.t-modal-save-btn { padding: 8px 18px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: transparent; font-family: var(--f); font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink2); transition: all var(--ease); }
.t-modal-save-btn:hover { border-color: var(--red); color: var(--red); }
.t-modal-save-btn.saved { border-color: var(--red); color: var(--red); background: #fff0f0; }
.t-modal-title { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.t-modal-address { font-size: 13px; color: var(--ink3); margin-bottom: 16px; }
.t-modal-stats { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; font-weight: 500; color: var(--ink2); margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.t-modal-section-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink3); margin-bottom: 10px; margin-top: 20px; }
.t-modal-amenities { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.t-modal-chip { padding: 5px 12px; border-radius: var(--r-pill); background: var(--p-light); color: var(--p); font-size: 12px; font-weight: 600; border: 1px solid rgba(108,71,255,.15); }
.t-modal-desc { font-size: 14px; color: var(--ink2); line-height: 1.7; }
.t-ll-row { display: flex; align-items: flex-start; gap: 12px; margin-top: 12px; }
.t-ll-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--p); color: #fff; font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.t-ll-info { display: flex; flex-direction: column; gap: 3px; }
.t-ll-info strong { font-size: 14px; font-weight: 700; }
.t-ll-info span { font-size: 12px; color: var(--ink3); }

.t-apply-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; position: sticky; top: 20px; }
.t-apply-price { font-size: 22px; font-weight: 800; color: var(--p); margin-bottom: 4px; }
.t-apply-avail { font-size: 12px; color: var(--ink3); margin-bottom: 16px; }
.t-apply-social { font-size: 12px; color: var(--ink3); text-align: center; margin-top: 12px; }

.contact-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.contact-row span { color: var(--ink3); font-weight: 500; }
.contact-row a { font-weight: 600; color: var(--p); }

@media (max-width: 900px) {
  .t-grid { grid-template-columns: repeat(2,1fr); }
  .t-modal-body { grid-template-columns: 1fr; }
  .t-modal-main { border-right: none; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .t-grid { grid-template-columns: 1fr; }
  .t-hero { padding: 40px 0 32px; }
  .t-gallery { height: 240px; }
  .nav-back-btn { display: none; }
}


/* ═══════════════════════════════════════════════════════
   AUTH PAGE
═══════════════════════════════════════════════════════ */
.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 70% 50% at 20% 20%, rgba(108,71,255,.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(168,85,247,.05) 0%, transparent 60%),
    var(--bg);
}

.auth-wrap {
  width: 100%; max-width: 440px;
  padding: 24px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}

.auth-logo-row { display: flex; justify-content: center; }

.auth-card {
  width: 100%;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh2);
  padding: 40px 36px;
}

.auth-step { display: flex; flex-direction: column; align-items: center; text-align: center; }

.auth-icon { font-size: 48px; margin-bottom: 16px; }
.auth-title { font-size: 22px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.auth-sub { font-size: 14px; color: var(--ink2); line-height: 1.65; margin-bottom: 28px; }
.auth-sub strong { color: var(--ink); }

/* Google Sign-In button */
.google-btn-wrap { display: flex; justify-content: center; }

.auth-success-icon {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--green); color: #fff;
  font-size: 30px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  animation: popIn .4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes popIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.auth-footer { font-size: 12px; color: var(--ink3); text-align: center; }
.auth-footer a { color: var(--ink3); text-decoration: underline; }

/* Google profile avatar in nav */
.nav-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}

/* ── User pill shown in nav on all pages ─────────────── */
.nav-user { display: flex; align-items: center; gap: 10px; }
.nav-user-email {
  font-size: 13px; font-weight: 500; color: var(--ink2);
  max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-logout-btn {
  padding: 6px 14px; border: 1.5px solid var(--line); border-radius: var(--r-pill);
  background: transparent; font-family: var(--f); font-size: 12px; font-weight: 600;
  color: var(--ink2); cursor: pointer; transition: all var(--ease);
}
.nav-logout-btn:hover { border-color: var(--red); color: var(--red); }

/* ── Homepage header auth area ───────────────────────── */
.hp-header {
  justify-content: space-between !important;
  align-items: center;
}
.hp-auth-area { display: flex; align-items: center; }

@media (max-width: 440px) {
  .auth-card { padding: 32px 20px; }
}


/* ═══════════════════════════════════════════════════════
   EDIT MODAL
═══════════════════════════════════════════════════════ */
.em-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.em-overlay.open { display: flex; }

.em-box {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh3);
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: modalIn 220ms cubic-bezier(.4,0,.2,1);
}

.em-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
  flex-shrink: 0;
}
.em-title { font-size: 18px; font-weight: 800; color: var(--ink); }

.em-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink2);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--ease);
  flex-shrink: 0;
}
.em-close:hover { background: var(--line); color: var(--ink); }

/* Tabs */
.em-tabs {
  display: flex;
  border-bottom: 2px solid var(--line);
  padding: 0 24px;
  flex-shrink: 0;
  margin-top: 16px;
}
.em-tab {
  padding: 12px 20px;
  font-size: 14px; font-weight: 600;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  background: none;
  cursor: pointer;
  color: var(--ink3);
  font-family: var(--f);
  transition: all var(--ease);
}
.em-tab:hover { color: var(--ink2); }
.em-tab.active { border-bottom-color: var(--p); color: var(--p); }

/* Scrollable body */
.em-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.em-panel { display: block; }
.em-panel.hidden { display: none; }

/* Footer */
.em-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}

/* Cover section */
.em-cover-section { margin-top: 24px; }
.em-cover-preview {
  width: 180px; height: 120px;
  border-radius: var(--r);
  border: 1.5px solid var(--line);
  overflow: hidden;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.em-cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.em-cover-placeholder { font-size: 13px; color: var(--ink3); text-align: center; padding: 12px; }

/* ═══════════════════════════════════════════════════════
   SOCIAL TAB
═══════════════════════════════════════════════════════ */
.social-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.social-platforms { width: 280px; flex-shrink: 0; }
.social-right { flex: 1; min-width: 0; }

/* Platform rows */
.platform-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--r);
  border: 1.5px solid var(--line);
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color var(--ease);
}
.platform-row:hover { border-color: var(--p); }
.platform-row--disabled { opacity: .6; cursor: default; }
.platform-row--disabled:hover { border-color: var(--line); }

.pl-check { width: 16px; height: 16px; accent-color: var(--p); cursor: pointer; flex-shrink: 0; }
.pl-check-placeholder { width: 16px; height: 16px; flex-shrink: 0; }

.pl-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.pl-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.pl-info strong { font-size: 13px; font-weight: 700; color: var(--ink); }
.pl-note { font-size: 12px; color: var(--ink3); }

/* Caption */
.social-caption-block { margin-bottom: 20px; }
.social-caption-block textarea {
  width: 100%; resize: vertical; min-height: 200px;
  font-family: var(--f); font-size: 13px;
}

/* Media thumbnails */
.social-media-block { }
.social-media-thumbs { display: flex; flex-wrap: wrap; gap: 10px; }

.sm-thumb {
  position: relative;
  width: 70px; height: 70px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
  flex-shrink: 0;
}
.sm-thumb img,
.sm-thumb video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.sm-thumb-label {
  position: absolute; bottom: 4px; left: 4px;
  background: var(--p); color: #fff;
  font-size: 9px; font-weight: 700;
  padding: 1px 6px; border-radius: var(--r-pill);
}
.sm-thumb-rm {
  position: absolute; top: 4px; right: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(0,0,0,.6); color: #fff;
  border: none; cursor: pointer;
  font-size: 10px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity var(--ease);
}
.sm-thumb:hover .sm-thumb-rm { opacity: 1; }

/* ═══════════════════════════════════════════════════════
   CONNECT MODAL
═══════════════════════════════════════════════════════ */
.ct-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ct-overlay.open { display: flex; }

.ct-box {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh3);
  width: 100%;
  max-width: 480px;
  padding: 28px;
  animation: modalIn 220ms cubic-bezier(.4,0,.2,1);
}
.ct-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.ct-title { font-size: 16px; font-weight: 800; color: var(--ink); }
.ct-instructions { font-size: 14px; color: var(--ink2); line-height: 1.65; margin-bottom: 20px; }
.ct-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  margin-top: 4px;
}

/* ── Responsive edit modal ─────────────────────────── */
@media (max-width: 640px) {
  .social-layout { flex-direction: column; }
  .social-platforms { width: 100%; }
  .em-body { padding: 16px; }
  .em-tabs { padding: 0 16px; }
  .em-header { padding: 16px 16px 0; }
  .em-footer { padding: 12px 16px; }
}


/* ── Apply Modal ─────────────────────────────────────────── */
.apply-box {
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh3);
  width: 100%; max-width: 680px; max-height: 90vh;
  display: flex; flex-direction: column; overflow: hidden; position: relative;
}
.apply-head {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 28px 32px 20px; border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.apply-head-icon { font-size: 36px; flex-shrink: 0; margin-top: 2px; }
.apply-head-title { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.apply-head-sub { font-size: 13px; color: var(--ink3); }
.apply-steps {
  display: flex; align-items: center; padding: 16px 32px;
  border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.apply-step { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.apply-step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--line); color: var(--ink3); font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; transition: all var(--ease);
}
.apply-step.active .apply-step-dot { background: var(--p); color: #fff; box-shadow: 0 0 0 4px var(--p-light); }
.apply-step.done   .apply-step-dot { background: var(--green); color: #fff; }
.apply-step-label { font-size: 11px; font-weight: 600; color: var(--ink3); letter-spacing: .04em; white-space: nowrap; }
.apply-step.active .apply-step-label { color: var(--p); }
.apply-step.done   .apply-step-label { color: var(--ink2); }
.apply-step-line { flex: 1; height: 2px; background: var(--line); margin: 0 6px 18px; }
.apply-body { flex: 1; overflow-y: auto; padding: 28px 32px; }
.apply-panel-title { font-size: 17px; font-weight: 700; margin-bottom: 20px; }
.apply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
/* Documents */
.apply-docs-sub { font-size: 13px; color: var(--ink2); margin-bottom: 20px; line-height: 1.6; }
.apply-doc-list { display: flex; flex-direction: column; gap: 14px; }
.apply-doc-item { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.apply-doc-label {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; background: var(--bg); border-bottom: 1px solid var(--line);
  flex-wrap: wrap; gap: 8px;
}
.apply-doc-req {
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--p-light); color: var(--p); padding: 2px 8px; border-radius: var(--r-pill); flex-shrink: 0;
}
.apply-doc-name { font-size: 13px; font-weight: 600; }
.apply-doc-hint { font-size: 11px; color: var(--ink3); margin-left: auto; }
.apply-dropzone { padding: 14px 16px; cursor: pointer; transition: background var(--ease); }
.apply-dropzone:hover, .apply-dropzone.over { background: var(--p-light); }
.apply-dz-inner { display: flex; align-items: center; gap: 12px; color: var(--ink3); font-size: 13px; }
.apply-dz-icon { font-size: 22px; flex-shrink: 0; }
.apply-dz-link { color: var(--p); font-weight: 600; text-decoration: underline; }
.apply-dz-done { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink2); }
.apply-dz-ok { color: var(--green); font-weight: 700; font-size: 16px; flex-shrink: 0; }
.apply-dz-rm {
  margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: 12px; padding: 3px 10px; cursor: pointer; color: var(--ink3); font-family: var(--f);
}
.apply-dz-rm:hover { border-color: var(--red); color: var(--red); }
/* Radio + reference */
.apply-radio-group { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.apply-radio { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; color: var(--ink2); }
.apply-radio input { cursor: pointer; accent-color: var(--p); }
.apply-ref-row { display: flex; gap: 12px; }
/* Review */
.apply-ai-note {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--p-light); border: 1px solid rgba(108,71,255,.2);
  border-radius: var(--r); padding: 16px; margin-top: 20px;
  font-size: 13px; color: var(--ink2); line-height: 1.6;
}
.apply-ai-note > span { font-size: 22px; flex-shrink: 0; }
.apply-review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.apply-review-item { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; }
.apply-review-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink3); margin-bottom: 4px; }
.apply-review-value { font-size: 14px; font-weight: 600; color: var(--ink); }
/* Processing */
.apply-processing { text-align: center; padding: 12px 0 24px; }
.apply-proc-icon { font-size: 52px; margin-bottom: 16px; animation: procPulse 1.2s ease-in-out infinite; }
@keyframes procPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.1)} }
.apply-processing h3 { font-size: 18px; font-weight: 700; margin-bottom: 24px; }
.apply-proc-steps { text-align: left; max-width: 360px; margin: 0 auto 20px; display: flex; flex-direction: column; gap: 10px; }
.proc-step-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink2); }
.proc-dot {
  width: 20px; height: 20px; border-radius: 50%; background: var(--line); color: var(--ink3);
  display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex-shrink: 0; transition: all var(--ease);
}
.proc-step-item.done .proc-dot { background: var(--green); color: #fff; }
.proc-step-item.done { color: var(--ink); font-weight: 500; }
.apply-proc-bar { width: 300px; margin: 0 auto; height: 6px; background: var(--line); border-radius: var(--r-pill); overflow: hidden; }
.apply-proc-fill { height: 100%; background: var(--p); border-radius: var(--r-pill); width: 0; transition: width 600ms ease; }
/* Result */
.apply-result { display: flex; flex-direction: column; align-items: center; gap: 20px; padding-top: 8px; }
.apply-result-score-wrap { position: relative; width: 140px; height: 140px; }
.apply-score-ring { width: 140px; height: 140px; }
.apply-score-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.apply-score-num { font-size: 32px; font-weight: 900; color: var(--ink); line-height: 1; }
.apply-score-label { font-size: 11px; font-weight: 600; color: var(--ink3); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.apply-result-verdict { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; }
.verdict-icon { font-size: 26px; }
.apply-result-checks { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.apply-check-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
}
.check-icon {
  width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.check-icon.ok   { background: rgba(34,197,94,.15);  color: var(--green); }
.check-icon.warn { background: rgba(245,158,11,.15); color: var(--amber); }
.check-info { display: flex; flex-direction: column; gap: 2px; }
.check-label  { font-size: 13px; font-weight: 600; color: var(--ink); }
.check-detail { font-size: 12px; color: var(--ink3); }
.apply-result-msg { font-size: 13px; color: var(--ink2); line-height: 1.65; max-width: 380px; text-align: center; }
/* Footer */
.apply-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px; border-top: 1px solid var(--line); flex-shrink: 0;
}
.apply-step-count { font-size: 13px; font-weight: 500; color: var(--ink3); }
/* Responsive */
@media (max-width: 640px) {
  .apply-grid, .apply-review-grid { grid-template-columns: 1fr; }
  .apply-steps { padding: 12px 16px; }
  .apply-step-label { display: none; }
  .apply-body { padding: 20px 16px; }
  .apply-footer, .apply-head { padding: 16px; }
  .apply-ref-row { flex-direction: column; }
  .apply-doc-hint { display: none; }
}

/* ── Dashboard Tabs ──────────────────────────────────────── */
.dash-tabs {
  display: flex; gap: 0; border-bottom: 2px solid var(--line);
  margin-bottom: 32px;
}
.dash-tab {
  padding: 12px 24px; font-size: 14px; font-weight: 600;
  border: none; background: none; cursor: pointer; font-family: var(--f);
  color: var(--ink3); border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: all var(--ease); display: flex; align-items: center; gap: 8px;
}
.dash-tab:hover { color: var(--p); }
.dash-tab.active { color: var(--p); border-bottom-color: var(--p); }
.dash-tab-badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill);
  background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.dash-pane { }

/* ── Application Cards ───────────────────────────────────── */
.app-filter-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; gap: 16px; flex-wrap: wrap;
}
.app-prop-filter {
  padding: 7px 14px; border: 1.5px solid var(--line); border-radius: var(--r-pill);
  font-family: var(--f); font-size: 13px; color: var(--ink2); background: var(--bg);
  cursor: pointer; outline: none;
}
.app-prop-filter:focus { border-color: var(--p); }

.app-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  margin-bottom: 16px; overflow: hidden; transition: box-shadow var(--ease);
}
.app-card:hover { box-shadow: var(--sh2); }

.app-card-head {
  display: flex; align-items: flex-start; gap: 16px; padding: 20px 24px;
}
.app-card-score {
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 17px; font-weight: 900; flex-shrink: 0;
  border: 3px solid;
}
.score-green { color: var(--green); border-color: var(--green); background: rgba(34,197,94,.1); }
.score-amber { color: var(--amber); border-color: var(--amber); background: rgba(245,158,11,.1); }
.score-red   { color: var(--red);   border-color: var(--red);   background: rgba(239,68,68,.1); }

.app-card-info { flex: 1; min-width: 0; }
.app-card-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.app-card-email { font-size: 13px; color: var(--ink3); margin: 2px 0; }
.app-card-property { font-size: 12px; color: var(--ink2); font-weight: 500; }

.app-card-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.app-status-badge {
  padding: 4px 12px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700;
  letter-spacing: .04em; white-space: nowrap;
}
.status-pending  { background: rgba(245,158,11,.15); color: var(--amber); }
.status-approved { background: rgba(34,197,94,.15);  color: var(--green); }
.status-rejected { background: rgba(239,68,68,.12);  color: var(--red); }
.app-card-date { font-size: 12px; color: var(--ink3); }

.app-expand-btn {
  display: block; width: 100%; padding: 10px 24px; text-align: left;
  background: var(--bg); border: none; border-top: 1px solid var(--line);
  font-family: var(--f); font-size: 12px; font-weight: 600; color: var(--ink3);
  cursor: pointer; transition: all var(--ease);
}
.app-expand-btn:hover { color: var(--p); background: var(--p-light); }

.app-card-detail { padding: 20px 24px; border-top: 1px solid var(--line); background: var(--bg); }
.app-detail-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px; margin-bottom: 16px;
}
.app-detail-item { }
.app-detail-label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink3); margin-bottom: 3px; }
.app-detail-val { font-size: 14px; font-weight: 600; color: var(--ink); }

.app-docs-row { margin-bottom: 14px; }
.app-doc-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.app-doc-pill {
  padding: 3px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600;
}
.app-doc-pill.ok      { background: rgba(34,197,94,.15); color: var(--green); }
.app-doc-pill.missing { background: rgba(239,68,68,.12); color: var(--red); }

.app-req-check { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.req-pill {
  padding: 3px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600;
}
.req-pill.ok   { background: rgba(34,197,94,.12); color: var(--green); }
.req-pill.warn { background: rgba(245,158,11,.12); color: var(--amber); }

.app-actions { display: flex; gap: 10px; padding-top: 4px; }

/* ── AI Settings ─────────────────────────────────────────── */
.ai-settings-wrap { max-width: 680px; }
.ai-prop-selector {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line);
}
.ai-prop-label { font-size: 13px; font-weight: 600; color: var(--ink2); white-space: nowrap; }
.ai-prop-select {
  flex: 1; min-width: 220px; padding: 9px 14px;
  border: 1.5px solid var(--line); border-radius: var(--r);
  font-family: var(--f); font-size: 14px; color: var(--ink); background: var(--bg);
  outline: none; cursor: pointer;
}
.ai-prop-select:focus { border-color: var(--p); box-shadow: 0 0 0 3px var(--p-glow); }

.ai-section {
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.ai-section:last-of-type { border-bottom: none; }
.ai-section-title {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink3); margin-bottom: 18px;
}
.ai-setting-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  margin-bottom: 16px;
}
.ai-setting-row:last-child { margin-bottom: 0; }
.ai-setting-row--stacked { flex-direction: column; gap: 8px; }
.ai-setting-info { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.ai-setting-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.ai-setting-desc { font-size: 13px; color: var(--ink3); line-height: 1.5; }
.ai-sublabel { font-size: 13px; font-weight: 600; color: var(--ink2); }

.ai-select {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: var(--r);
  font-family: var(--f); font-size: 14px; color: var(--ink); background: var(--bg);
  outline: none; cursor: pointer;
}
.ai-select:focus { border-color: var(--p); box-shadow: 0 0 0 3px var(--p-glow); }

.ai-threshold-row { margin-top: 16px; padding: 16px; background: var(--bg); border-radius: var(--r); border: 1px solid var(--line); }
.ai-threshold-wrap { display: flex; align-items: center; gap: 14px; margin: 10px 0; }
.ai-slider { flex: 1; accent-color: var(--p); height: 4px; cursor: pointer; }
.ai-threshold-val { font-size: 24px; font-weight: 900; color: var(--p); min-width: 42px; text-align: right; }
.ai-threshold-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink3); }

.ai-doc-checks { display: flex; flex-direction: column; gap: 12px; }
.ai-check-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer;
}
.ai-check-row input { width: 16px; height: 16px; accent-color: var(--p); cursor: pointer; }

.ai-note-area {
  width: 100%; min-height: 80px; resize: vertical;
  padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--r);
  font-family: var(--f); font-size: 14px; color: var(--ink); background: var(--bg); outline: none;
}
.ai-note-area:focus { border-color: var(--p); box-shadow: 0 0 0 3px var(--p-glow); }

.ai-save-row { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.ai-saved-msg { font-size: 14px; font-weight: 600; color: var(--green); }

/* ── AI Pricing Recommendation Panel ────────────────────── */
.ai-price-panel {
  margin-top: 28px;
  background: linear-gradient(135deg, rgba(108,71,255,.04), rgba(168,85,247,.04));
  border: 1.5px solid rgba(108,71,255,.18);
  border-radius: var(--r);
  padding: 18px 20px 16px;
}

.ai-price-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 6px;
}

.ai-price-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: var(--ink);
}

.ai-price-icon { font-size: 16px; }

.ai-price-badge {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--p); background: var(--p-light);
  padding: 2px 8px; border-radius: var(--r-pill);
}

.ai-price-hint {
  font-size: 13px; color: var(--ink3); margin-bottom: 0;
}

.ai-price-body { margin-top: 14px; }

/* Loading */
.ai-price-loading {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 0; font-size: 14px; color: var(--ink2);
}

@keyframes ai-spin { to { transform: rotate(360deg); } }
.ai-spin {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid var(--line);
  border-top-color: var(--p);
  border-radius: 50%;
  animation: ai-spin .7s linear infinite;
  flex-shrink: 0;
}

/* Error */
.ai-price-error {
  padding: 12px 14px;
  background: rgba(239,68,68,.06);
  border: 1px solid rgba(239,68,68,.2);
  border-radius: var(--r);
  font-size: 13px; color: var(--red);
}

/* Result */
.ai-price-result { display: flex; flex-direction: column; gap: 14px; }

.ai-price-rec-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  padding: 14px 16px;
}

.ai-price-main {
  display: flex; flex-direction: column; gap: 2px;
}

.ai-price-label-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}

.ai-price-label {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--p);
}

.ai-live-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
  color: #065f46; background: #d1fae5;
  padding: 2px 8px; border-radius: var(--r-pill);
  white-space: nowrap;
}

.ai-est-badge {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
  color: var(--ink2); background: var(--bg);
  border: 1px solid var(--line);
  padding: 2px 8px; border-radius: var(--r-pill);
  white-space: nowrap;
}

.ai-avm-row {
  margin-top: 4px; font-size: 12px; color: var(--ink2);
}

.ai-price-num {
  font-size: 26px; font-weight: 800; color: var(--ink); line-height: 1.1;
}
.ai-price-num small { font-size: 14px; font-weight: 500; color: var(--ink2); margin-left: 2px; }

.ai-price-range {
  font-size: 12px; color: var(--ink3);
}

.ai-price-apply-btn { white-space: nowrap; flex-shrink: 0; }

.ai-price-summary {
  font-size: 13px; color: var(--ink2); line-height: 1.6;
  padding: 0 2px;
}

/* Toggle button */
.ai-price-toggle-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  font-family: var(--f); font-size: 13px; font-weight: 600;
  color: var(--p); padding: 0;
}
.ai-price-toggle-btn:hover { text-decoration: underline; }
.ai-price-toggle-arrow { font-size: 11px; }

/* Analysis section */
.ai-price-analysis { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }

.ai-price-section-title {
  font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink2);
}

/* Tables */
.ai-table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); }

.ai-price-table {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
}
.ai-price-table th {
  background: var(--bg); text-align: left;
  padding: 9px 12px; font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink2); border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.ai-price-table td {
  padding: 9px 12px; vertical-align: top;
  border-bottom: 1px solid var(--line); color: var(--ink);
}
.ai-price-table tr:last-child td { border-bottom: none; }

.ai-stat-note { color: var(--ink3); font-size: 12px; }

/* Optimal row highlight */
.ai-rr-optimal td { background: rgba(108,71,255,.04); }
.ai-rr-optimal td:first-child { font-weight: 700; }

.ai-rr-best {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: var(--p);
  padding: 1px 7px; border-radius: var(--r-pill);
  vertical-align: middle; margin-left: 6px;
}

.ai-price-disclaimer {
  font-size: 11px; color: var(--ink3);
  padding: 8px 12px;
  background: var(--bg);
  border-radius: var(--r);
  border: 1px solid var(--line);
}

/* ── Promote / Boost ─────────────────────────────────────── */
.marketplace-section {
  margin-top: 16px; padding: 14px 16px;
  border: 1.5px solid var(--line); border-radius: var(--r);
  background: var(--bg);
}
.marketplace-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.promote-section {
  margin-top: 16px; padding: 16px 18px;
  border: 1.5px solid var(--line); border-radius: var(--r);
  background: var(--bg);
}
.promote-header {
  display: flex; align-items: center; gap: 12px;
  cursor: default; user-select: none;
}
.promote-header-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.promote-icon        { font-size: 22px; line-height: 1; flex-shrink: 0; }
.promote-header-text { display: flex; flex-direction: column; gap: 2px; }
.promote-title       { font-size: 14px; font-weight: 700; color: var(--ink); }
.promote-subtitle    { font-size: 12px; color: var(--ink3); }

.promote-body {
  margin-top: 18px; padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 16px;
}

.promote-row {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end;
}
.promote-field       { display: flex; flex-direction: column; gap: 6px; }
.promote-field-lbl   { font-size: 12px; font-weight: 600; color: var(--ink2); }
.promote-money       { display: flex; align-items: center; gap: 6px; }
.promote-dollar      { font-size: 14px; font-weight: 600; color: var(--ink2); }
.promote-money-input {
  width: 80px; padding: 8px 10px; border: 1.5px solid var(--line);
  border-radius: var(--r); font-size: 14px; font-weight: 600; color: var(--ink);
  outline: none; text-align: center;
  transition: border-color var(--ease);
}
.promote-money-input:focus { border-color: var(--p); }
.promote-per-day     { font-size: 12px; color: var(--ink3); }
.promote-select {
  padding: 8px 12px; border: 1.5px solid var(--line);
  border-radius: var(--r); font-size: 13px; color: var(--ink);
  outline: none; cursor: pointer;
  transition: border-color var(--ease);
}
.promote-select:focus { border-color: var(--p); }
.promote-total {
  font-size: 20px; font-weight: 800; color: var(--p);
  letter-spacing: -.5px; padding-bottom: 2px;
}

.promote-payment-block { display: flex; flex-direction: column; gap: 8px; }
.promote-card-el {
  padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--r);
  background: var(--surface);
  transition: border-color var(--ease);
}
.promote-card-el:focus-within { border-color: var(--p); }
.promote-card-err  { font-size: 12px; color: var(--red); margin: 0; }

.promote-setup-warn {
  font-size: 12px; color: var(--amber); background: #fffbeb;
  border: 1px solid #fde68a; border-radius: var(--r); padding: 10px 14px;
}
.promote-setup-warn code { font-size: 11px; background: #fef3c7; padding: 1px 4px; border-radius: 4px; }
.promote-confirm-btn { align-self: flex-start; }

/* Boost result */
.promote-status        { display: flex; flex-direction: column; gap: 10px; }
.boost-result-header   { display: flex; align-items: center; gap: 8px; }
.boost-result-title    { font-size: 13px; font-weight: 700; color: var(--ink); }
.boost-result-list     { display: flex; flex-direction: column; gap: 6px; }
.boost-result-row      { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.boost-plat-icon       { font-size: 16px; line-height: 1; flex-shrink: 0; margin-top: 1px; }
.boost-plat-info       { display: flex; flex-direction: column; gap: 2px; }
.boost-plat-name       { font-size: 12px; font-weight: 700; color: var(--ink); }
.boost-plat-detail     { font-size: 11px; color: var(--ink2); }

/* ── Tenants Tab ─────────────────────────────────────────── */
.tenants-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  margin-bottom: 24px;
}
.tenants-summary-txt { font-size: 13px; color: var(--ink2); }
.tenants-group-ctrl  { display: flex; align-items: center; gap: 8px; }
.group-ctrl-label    { font-size: 12px; font-weight: 600; color: var(--ink2); white-space: nowrap; }
.group-ctrl-select {
  font-size: 12px; font-weight: 600; color: var(--p);
  border: 1.5px solid var(--p-light); background: var(--p-light);
  border-radius: var(--r-pill); padding: 5px 12px 5px 10px;
  cursor: pointer; outline: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236C47FF' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  padding-right: 28px;
  transition: background-color var(--ease), border-color var(--ease);
}
.group-ctrl-select:hover { border-color: var(--p); background-color: #e4d9ff; }

.tenants-section { margin-bottom: 32px; }
.tenants-section-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 10px; margin-bottom: 12px;
  border-bottom: 2px solid var(--line);
}
.tenants-section-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.tenants-section-count {
  font-size: 12px; font-weight: 600; color: var(--ink3);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 2px 10px;
}

.tenants-grid { display: flex; flex-direction: column; gap: 10px; }

.tenant-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px 18px;
  box-shadow: var(--sh1);
  transition: box-shadow var(--ease), border-color var(--ease);
}
.tenant-card:hover { box-shadow: var(--sh2); border-color: #d0c8ff; }

.tenant-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--p), #9b72ff);
  color: #fff; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; letter-spacing: .5px;
}

.tenant-body        { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.tenant-name-row    { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tenant-name        { font-size: 15px; font-weight: 700; color: var(--ink); }
.tenant-active-pill {
  font-size: 11px; font-weight: 600; padding: 2px 9px;
  border-radius: var(--r-pill); flex-shrink: 0;
}
.tenant-active-pill.active   { background: #dcfce7; color: #15803d; }
.tenant-active-pill.upcoming { background: #eff6ff; color: #1d4ed8; }

.tenant-contact      { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tenant-contact-link { font-size: 12px; color: var(--ink2); text-decoration: none; }
.tenant-contact-link:hover { color: var(--p); text-decoration: underline; }
a.tenant-contact-link { color: var(--p); }
.tenant-contact-sep  { color: var(--ink3); font-size: 12px; }

.tenant-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tenant-chip {
  font-size: 11px; color: var(--ink2); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 3px 10px; white-space: nowrap;
}
.rent-chip { font-weight: 600; color: var(--p); border-color: var(--p-light); background: var(--p-light); }

.tenant-meta-right {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 6px; flex-shrink: 0;
}
.tenant-since { font-size: 11px; color: var(--ink3); white-space: nowrap; }

/* ── AI Tenant Screening ─────────────────────────────────── */
.app-ai-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* Default (pre-analysis) state */
.app-ai-default { display: flex; flex-direction: column; gap: 8px; }
.app-ai-top-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.app-ai-label   { font-size: 13px; font-weight: 600; color: var(--ink); }
.app-ai-hint    { font-size: 12px; color: var(--ink3); margin: 0; }
.app-ai-loading { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink2); }

/* Result verdict row */
.app-ai-result       { display: flex; flex-direction: column; gap: 10px; }
.app-ai-verdict-row  { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--r); }
.verdict-green  { background: #f0fdf4; border: 1px solid #bbf7d0; }
.verdict-amber  { background: #fffbeb; border: 1px solid #fde68a; }
.verdict-red    { background: #fef2f2; border: 1px solid #fecaca; }
.verdict-big-icon { font-size: 22px; line-height: 1; }
.verdict-text   { display: flex; flex-direction: column; }
.verdict-label  { font-size: 15px; font-weight: 700; color: var(--ink); }
.verdict-conf   { font-size: 12px; color: var(--ink3); }
.verdict-green .verdict-label { color: #15803d; }
.verdict-amber .verdict-label { color: #92400e; }
.verdict-red   .verdict-label { color: #b91c1c; }

.app-ai-summary { font-size: 13px; color: var(--ink2); line-height: 1.55; }

/* Show/hide reasoning toggle */
.app-ai-toggle {
  background: none; border: none; cursor: pointer; padding: 0;
  font-size: 12px; color: var(--p); font-weight: 600;
  display: flex; align-items: center; gap: 4px;
  width: fit-content;
}
.app-ai-toggle:hover { text-decoration: underline; }
.toggle-arrow { font-size: 11px; }

/* Reasoning panel */
.app-ai-reasoning { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.app-factor-list  { display: flex; flex-direction: column; gap: 6px; }
.app-factor-row   { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--bg); }
.factor-status-icon { font-size: 12px; font-weight: 700; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.factor-pass { background: #dcfce7; color: #15803d; }
.factor-warn { background: #fef9c3; color: #92400e; }
.factor-fail { background: #fee2e2; color: #b91c1c; }
.factor-body   { display: flex; flex-direction: column; gap: 2px; }
.factor-cat    { font-size: 12px; font-weight: 600; color: var(--ink); }
.factor-detail { font-size: 12px; color: var(--ink2); line-height: 1.45; }

/* Document fraud section */
.app-fraud-section { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; background: var(--bg); border-radius: var(--r); border: 1px solid var(--line); }
.app-fraud-title   { font-size: 13px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.app-fraud-list    { display: flex; flex-direction: column; gap: 6px; }
.app-fraud-doc     { display: flex; align-items: flex-start; gap: 8px; padding: 6px 10px; border-radius: 8px; }
.fraud-clear   { background: #f0fdf4; }
.fraud-warn    { background: #fffbeb; }
.fraud-unknown { background: #f8f8fd; }
.fraud-doc-icon { font-size: 16px; line-height: 1; flex-shrink: 0; margin-top: 1px; }
.fraud-doc-body { display: flex; flex-direction: column; gap: 2px; }
.fraud-doc-name { font-size: 12px; font-weight: 600; color: var(--ink); }
.fraud-doc-note { font-size: 11px; color: var(--ink2); }
.fraud-clear .fraud-doc-name { color: #15803d; }
.fraud-warn  .fraud-doc-name { color: #92400e; }
.app-fraud-unavail    { font-size: 12px; color: var(--ink3); }
.app-fraud-disclaimer { font-size: 11px; color: var(--ink3); font-style: italic; border-top: 1px solid var(--line); padding-top: 8px; margin: 0; }

/* Fraud pill badges (shown in the pre-analysis default state) */
.fraud-pill      { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: var(--r-pill); display: inline-flex; align-items: center; gap: 4px; }
.fraud-pill.ok   { background: #dcfce7; color: #15803d; }
.fraud-pill.warn { background: #fef9c3; color: #92400e; }

/* responsive */
@media (max-width: 640px) {
  .ai-price-rec-row { flex-direction: column; align-items: flex-start; }
  .ai-price-apply-btn { width: 100%; justify-content: center; }
  .app-card-head { gap: 12px; }
  .app-card-score { width: 44px; height: 44px; font-size: 15px; }
  .dash-tab { padding: 10px 14px; font-size: 13px; }
  .app-filter-bar { flex-direction: column; align-items: flex-start; }
  .tenant-card { flex-wrap: wrap; }
  .tenant-meta-right { width: 100%; flex-direction: row; align-items: center; justify-content: flex-start; }
  .tenants-toolbar { flex-direction: column; align-items: flex-start; }
}

/* ── New Group Modal ────────────────────────────────────────────────────────── */
.ng-modal-box { background: var(--surface); border-radius: var(--r-lg); width: 420px; max-width: 94vw; box-shadow: var(--sh3); overflow: hidden; }
.ng-modal-head { display: flex; align-items: center; gap: 12px; padding: 20px 24px 16px; border-bottom: 1px solid var(--line); }
.ng-name-input { width: 100%; border: 1.5px solid var(--line); border-radius: var(--r); padding: 10px 14px; font-size: 15px; font-family: var(--f); color: var(--ink); background: var(--bg); outline: none; transition: border-color var(--ease); box-sizing: border-box; }
.ng-name-input:focus { border-color: var(--p); }

/* ── Listings toolbar ───────────────────────────────────────────────────────── */
.listings-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.listings-toolbar .filter-row { margin-bottom: 0; }

/* ── Folder cards ───────────────────────────────────────────────────────────── */
.folder-card { grid-column: 1 / -1; border: 1.5px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); transition: box-shadow var(--ease); }
.folder-card:hover { box-shadow: var(--sh2); }
.folder-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; cursor: pointer; user-select: none; gap: 12px; background: var(--bg); border-bottom: 1px solid transparent; transition: background var(--ease), border-color var(--ease); }
.folder-head:hover { background: #f0eeff; }
.folder-card:has(.folder-body:not(.hidden)) .folder-head { border-bottom-color: var(--line); }
.folder-head-left { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.folder-head-right { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.folder-chevron { font-size: 11px; color: var(--ink3); transition: transform var(--ease); display: inline-block; }
.folder-chevron.open { transform: rotate(90deg); }
.folder-icon { font-size: 20px; flex-shrink: 0; }
.folder-name { font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.folder-name-input { font-size: 15px; font-weight: 700; border: 1.5px solid var(--p); border-radius: 8px; padding: 2px 8px; font-family: var(--f); color: var(--ink); background: var(--surface); outline: none; max-width: 260px; }
.folder-count { font-size: 12px; color: var(--ink3); font-weight: 500; flex-shrink: 0; white-space: nowrap; }
.folder-btn { width: 28px; height: 28px; border: none; background: transparent; border-radius: 8px; cursor: pointer; font-size: 13px; display: flex; align-items: center; justify-content: center; transition: background var(--ease); }
.folder-btn:hover { background: var(--line); }
.folder-body { padding: 20px; }
.folder-body.hidden { display: none; }
.folder-inner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.folder-empty-msg { color: var(--ink3); font-size: 13px; text-align: center; padding: 24px 0; margin: 0; }

/* ── Move-to-group dropdown ─────────────────────────────────────────────────── */
.move-dd { position: absolute; z-index: 9999; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh3); min-width: 200px; overflow: hidden; }
.move-dd-opt { display: block; width: 100%; padding: 9px 14px; border: none; background: none; text-align: left; font-size: 13px; font-family: var(--f); color: var(--ink); cursor: pointer; transition: background var(--ease); white-space: nowrap; }
.move-dd-opt:hover { background: var(--bg); }
.move-dd-opt.current { color: var(--p); font-weight: 600; }

/* ── Availability Modal (Landlord) ─────────────────────────────────────────── */
.avail-modal-box { background: var(--surface); border-radius: var(--r-lg); width: 580px; max-width: 96vw; max-height: 88vh; overflow-y: auto; box-shadow: var(--sh3); }
.avail-modal-head { display: flex; align-items: center; gap: 14px; padding: 22px 24px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.avail-modal-icon { font-size: 26px; flex-shrink: 0; }
.avail-modal-title { font-size: 17px; font-weight: 800; }
.avail-modal-sub { font-size: 13px; color: var(--ink2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avail-modal-body { padding: 20px 24px 28px; display: flex; flex-direction: column; gap: 22px; }
.avail-add-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.avail-add-label { font-size: 13px; font-weight: 600; color: var(--ink2); flex-shrink: 0; }
.avail-date-input { border: 1px solid var(--line); border-radius: var(--r); padding: 7px 10px; font-size: 14px; font-family: var(--f); background: var(--bg); color: var(--ink); }
.avail-slot-header { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.avail-slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.avail-slot-btn { padding: 6px 4px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); font-size: 11px; font-weight: 500; cursor: pointer; transition: all var(--ease); font-family: var(--f); color: var(--ink2); }
.avail-slot-btn:hover:not(.active) { border-color: var(--p); color: var(--p); }
.avail-slot-btn.active { background: var(--p); color: #fff; border-color: var(--p); }
.avail-group-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--ink2); cursor: pointer; padding: 8px 12px; background: var(--p-light); border-radius: var(--r); border: 1px solid #d4c8ff; }
.avail-group-row input[type="checkbox"] { accent-color: var(--p); width: 15px; height: 15px; cursor: pointer; flex-shrink: 0; }
.avail-slot-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.avail-saved-section { border-top: 1px solid var(--line); padding-top: 18px; }
.avail-saved-title { font-size: 11px; font-weight: 700; color: var(--ink3); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 10px; }
.avail-saved-list { display: flex; flex-direction: column; gap: 10px; }
.avail-empty { color: var(--ink3); font-size: 13px; text-align: center; padding: 14px 0; margin: 0; }
.avail-date-item { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.avail-date-item-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.avail-date-label { font-size: 13px; font-weight: 600; }
.avail-remove-btn { border: none; background: none; cursor: pointer; color: var(--ink3); font-size: 12px; padding: 3px 6px; border-radius: 6px; transition: all var(--ease); }
.avail-remove-btn:hover { background: var(--red); color: #fff; }
.avail-slot-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.avail-slot-pill { font-size: 11px; padding: 3px 9px; background: var(--p-light); color: var(--p); border-radius: var(--r-pill); font-weight: 500; }
.avail-slot-pill.booked { background: var(--line); color: var(--ink3); }

/* ── Tour Scheduling (Tenant apply result) ──────────────────────────────────── */
.tour-schedule-wrap { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; background: var(--bg); }
.tour-schedule-header { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.tour-schedule-icon { font-size: 18px; }
.tour-schedule-sub { font-size: 13px; color: var(--ink2); margin: 0 0 14px; }
.tour-dates-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tour-date-btn { padding: 7px 13px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font-size: 13px; font-weight: 500; cursor: pointer; transition: all var(--ease); font-family: var(--f); color: var(--ink2); }
.tour-date-btn:hover:not(.active) { border-color: var(--p); color: var(--p); }
.tour-date-btn.active { background: var(--p); color: #fff; border-color: var(--p); }
.tour-slots-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tour-slot-btn { padding: 6px 11px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font-size: 12px; font-weight: 500; cursor: pointer; transition: all var(--ease); font-family: var(--f); color: var(--ink2); }
.tour-slot-btn:hover:not(.active) { border-color: var(--green); color: var(--green); }
.tour-slot-btn.active { background: var(--green); color: #fff; border-color: var(--green); }
.tour-confirm-btn { margin-bottom: 12px; }
.tour-confirmed { font-size: 14px; font-weight: 600; color: var(--green); margin-bottom: 12px; }
.tour-cal-btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.tour-cal-hint { font-size: 12px; color: var(--ink3); margin: 8px 0 0; }

/* ── Rental Type Toggle ─────────────────────────────────────────────────────── */
.rtype-toggle {
  display: inline-flex; border: 1.5px solid var(--line);
  border-radius: var(--r-pill); overflow: hidden; width: fit-content;
}
.rtype-btn {
  padding: 9px 22px; font-size: 13px; font-weight: 600; font-family: var(--f);
  cursor: pointer; border: none; background: var(--bg); color: var(--ink2);
  transition: all var(--ease); white-space: nowrap;
}
.rtype-btn.active { background: var(--p); color: #fff; }
.rtype-btn:not(.active):hover { background: var(--line); color: var(--ink); }

/* ── Short-term extra fields block ─────────────────────────────────────────── */
.shortterm-extra {
  padding: 16px 18px;
  background: #faf9ff; border: 1.5px solid var(--p-light);
  border-radius: var(--r);
}
.st-extra-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px;
}
@media (max-width: 480px) { .st-extra-grid { grid-template-columns: 1fr; } }

.stcal-open-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; background: var(--p-light); border-radius: var(--r);
  border: 1px solid #d4c8ff;
}
.stcal-open-label { font-size: 13px; font-weight: 700; color: var(--p); }
.stcal-open-sub   { font-size: 12px; color: var(--ink2); margin-top: 2px; }

/* ── Short-term listing card badge ─────────────────────────────────────────── */
.lcard-st-badge {
  position: absolute; bottom: 8px; left: 8px;
  font-size: 10px; font-weight: 700; padding: 2px 8px;
  background: var(--p); color: #fff; border-radius: var(--r-pill);
  letter-spacing: .05em; text-transform: uppercase; z-index: 1;
}

/* ── Short-Term Calendar Modal ──────────────────────────────────────────────── */
.stcal-box {
  background: var(--surface); border-radius: var(--r-lg);
  width: 500px; max-width: 96vw; max-height: 90vh;
  overflow-y: auto; box-shadow: var(--sh3);
}
.stcal-head {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 24px 16px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--surface); z-index: 1;
}
.stcal-title { font-size: 17px; font-weight: 800; }
.stcal-sub   { font-size: 13px; color: var(--ink2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stcal-body  { padding: 18px 20px 24px; display: flex; flex-direction: column; gap: 16px; }

.stcal-legend      { display: flex; gap: 16px; flex-wrap: wrap; }
.stcal-legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink2); font-weight: 500; }
.stcal-dot         { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.stcal-dot--available { background: #22C55E; }
.stcal-dot--booked    { background: #F97316; }
.stcal-dot--unavail   { background: var(--line); }

.stcal-mode-row  { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stcal-mode-label { font-size: 12px; font-weight: 600; color: var(--ink2); white-space: nowrap; }
.stcal-mode-btns { display: inline-flex; border: 1.5px solid var(--line); border-radius: var(--r-pill); overflow: hidden; }
.stcal-mode-btn  {
  padding: 6px 14px; font-size: 12px; font-weight: 600; font-family: var(--f);
  cursor: pointer; border: none; background: var(--bg); color: var(--ink2);
  transition: all var(--ease); white-space: nowrap;
}
.stcal-mode-btn.active { background: var(--p); color: #fff; }
.stcal-mode-btn:not(.active):hover { background: var(--line); }

.stcal-nav       { display: flex; align-items: center; justify-content: center; gap: 16px; }
.stcal-nav-btn   {
  width: 32px; height: 32px; border: 1.5px solid var(--line); border-radius: 50%;
  background: var(--bg); cursor: pointer; font-size: 18px; display: flex;
  align-items: center; justify-content: center; color: var(--ink2);
  transition: all var(--ease); font-family: var(--f); line-height: 1;
}
.stcal-nav-btn:hover { border-color: var(--p); color: var(--p); }
.stcal-month-label   { font-size: 16px; font-weight: 700; min-width: 160px; text-align: center; }

.stcal-grid     { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.stcal-daynames > div {
  text-align: center; font-size: 11px; font-weight: 700; color: var(--ink3);
  text-transform: uppercase; letter-spacing: .05em; padding: 4px 0;
}
.stcal-day {
  aspect-ratio: 1; border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all var(--ease); border: 1.5px solid transparent; user-select: none;
}
.stcal-day.empty       { cursor: default; pointer-events: none; }
.stcal-day.unavailable { background: var(--bg); color: var(--ink3); }
.stcal-day.unavailable:hover { border-color: var(--p-light); color: var(--ink); background: #f0eeff; }
.stcal-day.available   { background: #dcfce7; color: #15803d; border-color: #bbf7d0; font-weight: 700; }
.stcal-day.available:hover   { background: #bbf7d0; }
.stcal-day.booked      { background: #ffedd5; color: #9a3412; border-color: #fed7aa; font-weight: 700; }
.stcal-day.booked:hover      { background: #fed7aa; }
.stcal-day.past        { opacity: .3; pointer-events: none; }
.stcal-day.today       { outline: 2px solid var(--p); outline-offset: 1px; font-weight: 800; }

.stcal-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 6px; border-top: 1px solid var(--line); }
.stcal-actions-left { display: flex; gap: 6px; }

/* ── Short-term pricing result display ─────────────────────────────────────── */
.st-rates-row {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.st-rate-card {
  flex: 1; min-width: 80px; padding: 12px 14px;
  background: var(--bg); border: 1.5px solid var(--line);
  border-radius: var(--r); display: flex; flex-direction: column; gap: 2px;
}
.st-rate-card.main { background: var(--p-light); border-color: var(--p); }
.st-rate-lbl  { font-size: 10px; font-weight: 700; color: var(--ink3); text-transform: uppercase; letter-spacing: .06em; }
.st-rate-card.main .st-rate-lbl { color: var(--p); }
.st-rate-val  { font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.st-rate-card.main .st-rate-val { color: var(--p); }
.st-rate-unit { font-size: 11px; color: var(--ink3); font-weight: 500; }

/* ── Short-term Booking Modal (tenant) ──────────────────────────────────────── */
.stbook-box {
  background: var(--surface); border-radius: 20px;
  width: min(520px, 96vw); max-height: 92vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  display: flex; flex-direction: column;
}
.stbook-head {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 22px 24px 16px; border-bottom: 1px solid var(--line);
}
.stbook-head-icon { font-size: 26px; line-height: 1; }
.stbook-head-title { font-size: 17px; font-weight: 800; color: var(--ink); }
.stbook-head-sub { font-size: 13px; color: var(--ink2); margin-top: 3px; }
.stbook-body { padding: 18px 24px 10px; }
.stbook-legend {
  display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px;
  font-size: 12px; color: var(--ink2); align-items: center;
}
.stbook-leg-dot {
  display: inline-block; width: 10px; height: 10px;
  border-radius: 50%; margin-right: 3px; vertical-align: middle;
}
.stbook-leg-dot.avail-dot   { background: #22c55e; }
.stbook-leg-dot.booked-dot  { background: #f59e0b; }
.stbook-leg-dot.unavail-dot { background: var(--line); }
.stbook-leg-dot.sel-dot     { background: var(--p); }
.stbook-summary {
  margin-top: 16px; padding: 14px 16px; background: var(--bg);
  border-radius: 10px; border: 1px solid var(--line); font-size: 14px;
  min-height: 52px; display: flex; flex-direction: column; justify-content: center;
}
.stbook-hint { color: var(--ink2); font-size: 13px; }
.stbook-sum-row {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; color: var(--ink);
}
.stbook-sum-dates { font-size: 15px; }
.stbook-sum-nights { color: var(--ink2); font-size: 13px; }
.stbook-sum-calc { color: var(--ink2); font-size: 13px; margin-top: 5px; }
.stbook-sum-calc strong { color: var(--p); font-size: 17px; }
.stbook-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px; border-top: 1px solid var(--line); gap: 8px;
}

/* Calendar range-selection states */
.stcal-day.stbook-checkin,
.stcal-day.stbook-checkout {
  background: var(--p) !important; color: #fff !important;
  font-weight: 700 !important; border-radius: var(--r) !important;
}
.stcal-day.stbook-inrange {
  background: var(--p-light) !important; color: var(--p) !important;
  font-weight: 600 !important; border-radius: 0 !important;
}

/* Apply modal short-term booking banner */
.ap-stbook-banner {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--p-light); border: 1.5px solid var(--p);
  border-radius: 10px; padding: 12px 16px; margin-bottom: 18px;
}
.ap-stbook-banner-icon { font-size: 22px; line-height: 1; flex-shrink: 0; }
.ap-stbook-banner-title { font-size: 14px; font-weight: 700; color: var(--p); }
.ap-stbook-banner-detail { font-size: 13px; color: var(--ink2); margin-top: 3px; }

/* ── Listing type picker ─────────────────────────────────────────────────────── */
.ltype-picker {
  padding: 44px 32px 48px;
  text-align: center;
}
.ltype-q {
  font-size: 21px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 30px;
  line-height: 1.3;
}
.ltype-cards {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.ltype-card {
  flex: 1;
  min-width: 200px;
  max-width: 270px;
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 32px 24px 28px;
  cursor: pointer;
  transition: border-color .18s, transform .15s, box-shadow .18s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  font-family: var(--f);
}
.ltype-card:hover {
  border-color: var(--p);
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(108,71,255,.14);
}
.ltype-icon  { font-size: 44px; line-height: 1; margin-bottom: 2px; }
.ltype-title { font-size: 17px; font-weight: 800; color: var(--ink); }
.ltype-desc  { font-size: 13px; color: var(--ink2); line-height: 1.55; margin-top: 2px; }

/* ── Rent period dropdown ────────────────────────────────────────────────────── */
.rent-amount-row { display: flex; align-items: stretch; gap: 8px; }
.rent-period-select {
  border: 1.5px solid var(--line); border-radius: var(--r);
  padding: 0 10px; font-size: 13px; font-weight: 500;
  font-family: var(--f); color: var(--ink2); background: var(--bg);
  cursor: pointer; outline: none; transition: border-color var(--ease);
  white-space: nowrap; flex-shrink: 0;
}
.rent-period-select:focus { border-color: var(--p); color: var(--ink); }
