/* Habimeo public demo — shared stylesheet (dashboard shell + marketing landing).
   Plain CSS, no build step. Tokens copied from src/styles.scss (teal brand, never #2563EB).
   Fonts/brand art are referenced same-origin from /assets/... (src/app's own public/assets),
   not copied here — see demo-tooling/server.js and the CSP's font-src/img-src 'self'. */

/* Brand typeface, self-hosted — same files and weights as src/styles.scss. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter/Inter-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter/Inter-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter/Inter-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter/Inter-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/inter/Inter-ExtraBold.woff2') format('woff2');
}

:root {
  --primary-50: #f0fdfa;
  --primary-100: #ccfbf1;
  --primary-200: #99f6e4;
  --primary-300: #5eead4;
  --primary-400: #2dd4bf;
  --primary-500: #0f766e;
  --primary-600: #0d9488;
  --primary-700: #0f766e;
  --primary-800: #115e59;
  --primary-900: #134e4a;
  --primary-950: #042f2e;

  --accent-400: #fbbf24;
  --accent-500: #f59e0b;
  --accent-600: #d97706;

  --success-100: #d1fae5;
  --success-500: #10b981;
  --success-700: #047857;
  --success-800: #065f46;

  --danger-100: #fee2e2;
  --danger-500: #ef4444;
  --danger-600: #dc2626;
  --danger-700: #b91c1c;

  --warn-100: #fef3c7;
  --warn-700: #b45309;

  /* Warm neutrals — copied from src/styles.scss's --ink / --neutral-* / --paper-* scale
     (the dashboard-signed-in override), not the cool slate Tailwind defaults this file used
     to carry. This is the "beige" the owner meant: paper everywhere, not off-white. */
  --ink-900: #0b1a19;
  --ink-700: #4b5b58;
  --ink-500: #64748b;
  --ink-300: #d6ccb8;
  --ink-200: #e9e2d4;
  --ink-100: #f3eee4;
  --paper: #fbf8f2;
  --paper-shade: #f3eee4;
  --paper-line: #e9e2d4;
  --surface: #ffffff;
  --font: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  --sidebar-w: 260px;
  --topbar-h: 64px;
  --cta-h: 52px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  color-scheme: light;
  background: var(--paper);
  font-family: var(--font);
}
body {
  font-family: var(--font);
  color: var(--ink-900);
  /* Transparent so the topo-lines pattern below shows through; the paper colour lives on <html>,
     same split as src/styles.scss. */
  background: transparent;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Same topographic map-lines art as the real homepage hero, faintly, behind every page —
   fixed on large screens so it reads as paper, omitted on phones (see src/styles.scss). */
@media (min-width: 900px) {
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url('/assets/brand/topo-lines.svg') center / cover no-repeat;
    opacity: 0.55;
    pointer-events: none;
    z-index: -1;
  }
}
h1, h2 { font-weight: 800; letter-spacing: -0.03em; }
img { max-width: 100%; display: block; }
a { color: var(--primary-700); }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.2; }
p { line-height: 1.55; }
button { font-family: inherit; cursor: pointer; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4em;
  padding: 0.6rem 1.1rem; border-radius: var(--radius-md); border: 1px solid transparent;
  font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: box-shadow .2s ease, transform .2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-800) 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-900) 100%);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.4);
}
.btn-secondary { background: #fff; color: var(--primary-500); border: 2px solid var(--primary-300); }
.btn-secondary:hover { background: var(--primary-50); border-color: var(--primary-500); color: var(--primary-800); }
.btn-ghost { background: transparent; color: var(--ink-700); }
.btn-ghost:hover { background: var(--ink-100); }
.btn-danger { background: var(--danger-600); color: #fff; }
.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.8rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Cards / tiles ---------- */
.card {
  background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-md);
  padding: 1.25rem; border: 1px solid var(--ink-100);
}
.card + .card { margin-top: 1rem; }
.card h3 { font-size: 1rem; color: var(--ink-700); }
.card-head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.card-head-row h3 { margin: 0; }
.card-head-link { font-size: .82rem; font-weight: 700; color: var(--primary-700); text-decoration: none; }

/* ---------- Overview: Interacciones toggle + grid ---------- */
.period-toggle { display: flex; gap: .3rem; background: var(--paper-shade); border-radius: 999px; padding: .2rem; }
.period-btn {
  border: none; background: transparent; padding: .3rem .8rem; border-radius: 999px; font-size: .78rem;
  font-weight: 700; color: var(--ink-700); cursor: pointer;
}
.period-btn.active { background: var(--primary-700); color: #fff; }
.interactions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; }
.interaction-tile .label { font-size: .75rem; color: var(--ink-500); font-weight: 600; }
.interaction-tile .value { font-size: 1.3rem; font-weight: 700; color: var(--primary-800); margin-top: .2rem; }
.interaction-tile .delta { font-size: .75rem; color: var(--success-700); margin-top: .1rem; }

/* ---------- Overview: quick actions ---------- */
.quick-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ---------- Overview: Estado del equipo / Anuncios recientes list rows ---------- */
.list-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.list-row { display: flex; align-items: center; gap: .7rem; }
.list-row-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto; display: inline-flex; align-items: center;
  justify-content: center; background: var(--ink-100); color: var(--ink-700); font-weight: 700; font-size: .85rem;
}
.list-row-thumb {
  width: 44px; height: 34px; border-radius: 8px; flex: 0 0 auto; display: inline-flex; align-items: center;
  justify-content: center; background: var(--ink-100); color: var(--ink-500); font-size: .65rem; text-align: center;
}
.list-row-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.list-row-title { font-size: .88rem; font-weight: 700; color: var(--ink-900); }
.list-row-sub { font-size: .76rem; color: var(--ink-500); }
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin: 0 0 1.5rem;
}
.stat-tile {
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  border: 1px solid var(--ink-100); padding: 1rem 1.1rem;
}
.stat-tile .label { font-size: 0.78rem; color: var(--ink-500); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.stat-tile .value { font-size: 1.6rem; font-weight: 700; color: var(--primary-800); margin-top: .25rem; }
.stat-tile .delta { font-size: 0.78rem; color: var(--success-700); margin-top: .15rem; }

/* ---------- Referrals screen: link row (real partner-dashboard's referral-link-row) ---------- */
.referral-link-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.referral-input {
  flex: 1 1 260px; min-width: 0; padding: .55rem .7rem; border-radius: 8px; border: 1px solid var(--paper-line);
  background: var(--ink-50, #f8fafc); font-family: JetBrains Mono, monospace; font-size: .85rem; color: var(--ink-700);
}

/* ---------- Badges ---------- */
.badge {
  display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600;
}
.badge-success { background: var(--success-100); color: var(--success-800); }
.badge-warn { background: var(--warn-100); color: var(--warn-700); }
.badge-danger { background: var(--danger-100); color: var(--danger-700); }
.badge-neutral { background: var(--ink-100); color: var(--ink-700); }
.listing-type-sale, .listing-type-short-stay { background: var(--success-100); color: var(--success-800); }
.listing-type-rent { background: #dbeafe; color: #1d4ed8; }
.listing-type-commercial { background: #ede9fe; color: #6d28d9; }

/* ---------- Properties "Portfolio Intelligence" sub-header (real properties.component.html) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.hidden { display: none; }
.properties-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.properties-hero .hero-kicker { margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-500); }
.properties-hero h2 { margin: .15rem 0; font-size: 1.3rem; font-weight: 800; }
.properties-hero .hero-subtitle { margin: 0; font-size: .82rem; color: var(--ink-500); }
.properties-hero .schema-chip { display: inline-block; background: var(--primary-50, #ecfdf5); color: var(--primary-700); border-radius: 999px; padding: .05rem .5rem; font-size: .72rem; font-weight: 700; margin-left: .3rem; }
.properties-hero .hero-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.metrics-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.metric-card { background: var(--surface); border: 1px solid var(--ink-100); border-radius: var(--radius-lg); padding: .9rem 1rem; }
.metric-card .metric-label { margin: 0; font-size: .75rem; color: var(--ink-500); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.metric-card .metric-value { margin: .2rem 0 0; font-size: 1.3rem; font-weight: 800; color: var(--ink-900); }
.csv-import-grid { margin-bottom: 1rem; }
.csv-import-card { background: var(--surface); border: 1px solid var(--ink-100); border-radius: var(--radius-lg); padding: 1rem; }
.csv-import-card .csv-title { margin: 0; font-weight: 700; }
.csv-import-card .csv-copy { margin: .3rem 0 .7rem; font-size: .8rem; color: var(--ink-500); }
.csv-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.portfolio-tabs { display: flex; gap: .4rem; margin-bottom: .8rem; border-bottom: 1px solid var(--paper-line); }
.portfolio-tab {
  background: none; border: none; border-bottom: 2px solid transparent; padding: .5rem .3rem; margin-right: 1rem;
  font-size: .88rem; font-weight: 700; color: var(--ink-500); cursor: pointer;
}
.portfolio-tab.active { color: var(--primary-700); border-bottom-color: var(--primary-700); }
.portfolio-tab .tab-count { display: inline-block; background: var(--ink-100); border-radius: 999px; padding: .05rem .45rem; font-size: .72rem; margin-left: .3rem; }
.filters-panel { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filter-label { margin: 0 0 .3rem; font-size: .75rem; font-weight: 700; color: var(--ink-500); text-transform: uppercase; letter-spacing: .02em; }
.chip-row { display: flex; gap: .35rem; flex-wrap: wrap; }
.filter-chip {
  background: var(--surface); border: 1px solid var(--paper-line); border-radius: 999px; padding: .25rem .75rem;
  font-size: .78rem; font-weight: 600; color: var(--ink-700); cursor: pointer;
}
.filter-chip.active { background: var(--primary-700); border-color: var(--primary-700); color: #fff; }

/* ---------- Properties: select-all row + pagination footer (real properties.component.html) ---------- */
.select-all-row { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--ink-700); margin-bottom: .75rem; cursor: pointer; }
.pagination-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.pagination-range { font-size: .82rem; color: var(--ink-500); }
.pagination-controls { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.page-num {
  min-width: 2rem; height: 2rem; padding: 0 .4rem; border-radius: 8px; border: 1px solid var(--paper-line);
  background: #fff; color: var(--ink-700); font-size: .82rem; font-weight: 700; cursor: pointer;
}
.page-num.active { background: var(--primary-700); border-color: var(--primary-700); color: #fff; }

/* ---------- Listing cards (real properties/short-stays/developments/commercial list) ---------- */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.listing-card {
  position: relative; border: 1px solid var(--ink-100); border-radius: 12px; background: var(--surface);
  overflow: hidden; display: grid; grid-template-columns: 116px 1fr;
}
.listing-card.row-flash { outline: 2px solid var(--primary-500); }
.listing-card .cover-wrap { background: var(--primary-50, #f0fdfa); min-height: 116px; }
.listing-card .cover-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-card .card-body { padding: .6rem .7rem; display: grid; gap: .25rem; }
.listing-card .badge-row { display: flex; gap: .35rem; flex-wrap: wrap; }
.listing-card h3 { margin: 0; font-size: .92rem; line-height: 1.2; }
.listing-card .location { margin: 0; color: var(--primary-800); font-size: .74rem; }
.listing-card .price-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: .5rem;
  border-top: 1px dashed var(--paper-line); padding-top: .3rem; margin-top: .15rem;
}
.listing-card .price { margin: 0; font-size: .95rem; font-weight: 800; }
.listing-card .specs { margin: 0; color: var(--primary-800); font-size: .68rem; font-weight: 600; }
/* Not scoped to .listing-card: space-card/project-row/tour-card-row/unit-card reuse the same
   btn-edit/btn-assign/btn-view/btn-delete action-button look. */
.card-actions { display: flex; gap: .35rem; margin-top: .2rem; flex-wrap: wrap; }
.card-actions a, .card-actions button {
  border-radius: 8px; display: inline-flex; align-items: center; gap: .3rem; height: 1.9rem; padding: 0 .55rem;
  font-size: .72rem; font-weight: 700; text-decoration: none; border: 1px solid var(--paper-line);
  background: #fff; color: var(--ink-700); cursor: pointer;
}
.btn-view { background: var(--primary-700); color: #fff; border-color: var(--primary-700); }
.btn-delete { color: var(--danger-700, #b91c1c); border-color: #fecaca; }

/* ---------- Domain request (mirrors domain-request-page/domain-request-card) ---------- */
.page-header { display: flex; gap: .75rem; margin-bottom: 1.25rem; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.page-header h1, .page-header h2 { font-size: 1.3rem; margin: .15rem 0; }
.page-header .eyebrow { margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-500); }
.mt-1 { margin-top: 1rem; }
.active-domain-box {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--primary-50); border-radius: var(--radius-lg); padding: .85rem 1rem;
}
.active-domain-box strong { font-size: 1.05rem; color: var(--primary-800); }
.steps { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.steps .step { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--ink-500); }
.steps .step span {
  display: inline-flex; align-items: center; justify-content: center; width: 1.4rem; height: 1.4rem;
  border-radius: 999px; background: var(--ink-100); color: var(--ink-700); font-size: .72rem; font-weight: 700;
}
.steps .step.done { color: var(--success-800); }
.steps .step.done span { background: var(--success-100); color: var(--success-800); }

/* ---------- Forms ---------- */
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink-700); margin-bottom: .3rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.55rem 0.7rem; border: 1px solid var(--ink-300); border-radius: var(--radius-md);
  font-family: inherit; font-size: 0.92rem; background: #fff; color: var(--ink-900);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary-500); box-shadow: 0 0 0 3px var(--primary-100);
}
.field .error { color: var(--danger-600); font-size: 0.78rem; margin-top: .25rem; }
.field-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.field-row > .field { flex: 1 1 200px; }

/* ---------- Tables (stack to cards under 640px) ---------- */
.table-wrap { overflow-x: auto; }
table.demo-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
table.demo-table th { text-align: left; color: var(--ink-500); font-weight: 600; font-size: 0.76rem;
  text-transform: uppercase; letter-spacing: .03em; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--ink-200); }
table.demo-table td { padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--ink-100); vertical-align: middle; }
table.demo-table tr:last-child td { border-bottom: none; }

@media (max-width: 639px) {
  table.demo-table thead { display: none; }
  table.demo-table, table.demo-table tbody, table.demo-table tr, table.demo-table td { display: block; width: 100%; }
  table.demo-table tr { border: 1px solid var(--ink-200); border-radius: var(--radius-lg); margin-bottom: 0.75rem; padding: 0.5rem 0.75rem; }
  table.demo-table td { border-bottom: none; padding: 0.3rem 0; display: flex; justify-content: space-between; gap: .75rem; }
  table.demo-table td::before { content: attr(data-label); font-weight: 600; color: var(--ink-500); font-size: 0.75rem; }
}

/* ---------- App frame (the whole demo is a contained app window inside #demo-app;
   it never covers the landing hero/marketing sections, which live outside it) ---------- */
#demo-app { padding: 2rem 1rem 3rem; }
.app-frame {
  max-width: 1280px; margin: 0 auto; position: relative; overflow: hidden;
  border: 1px solid var(--ink-200); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  background: #fff; height: min(860px, calc(100vh - var(--cta-h) - 48px));
}
.app-frame > .dash-shell, .app-frame > .browser-frame { height: 100%; }
@media (max-width: 899px) {
  .app-frame { height: calc(100vh - var(--cta-h) - 32px); border-radius: var(--radius-lg); }
}

/* ---------- Dashboard shell (contained inside .app-frame, not the viewport).
   Mirrors src/app/shared/components/dashboard-sidebar: paper-shade shell, WHITE sidebar
   panel with a teal brand-soft block, not a dark filled sidebar. ---------- */
.dash-shell { display: flex; height: 100%; background: var(--paper-shade); }
.dash-sidebar {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w); background: #fff; color: var(--ink-900);
  border-right: 1px solid var(--paper-line);
  overflow-y: auto; transition: transform .25s ease;
  padding: 10px;
}
.dash-sidebar .brand {
  display: flex; align-items: center; gap: .5rem; margin-bottom: 8px; padding: .7rem .8rem;
  font-weight: 800; font-size: 1rem; letter-spacing: -0.01em; color: var(--ink-900);
  background: #e3f5f2; border: 1px solid #c4e6df; border-radius: 12px;
}
.dash-sidebar .brand img { height: 24px; }
/* Real dashboard-sidebar.component.html's brand-block: kicker row (+ status dot), brand <h2>,
   tagline subtitle — replaces the plain one-line .brand box when the config supplies it. */
.dash-sidebar .brand-block {
  margin-bottom: 8px; padding: .7rem .8rem;
  background: #e3f5f2; border: 1px solid #c4e6df; border-radius: 12px;
}
.dash-sidebar .brand-top-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.dash-sidebar .brand-kicker {
  margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--primary-700, #0f766e);
}
.dash-sidebar .api-status-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.dash-sidebar .api-status-dot--green { background: #16a34a; }
.dash-sidebar .brand-indicators { display: flex; align-items: center; gap: .5rem; }
.dash-sidebar .notification-bell { position: relative; display: inline-flex; color: var(--ink-700); }
.dash-sidebar .notification-bell .badge-count {
  position: absolute; top: -5px; right: -6px; min-width: 14px; height: 14px; padding: 0 3px;
  border-radius: 999px; background: #dc2626; color: #fff; font-size: 9px; font-weight: 700;
  line-height: 14px; text-align: center;
}
.dash-sidebar .brand-block h2 { margin: .15rem 0 0; font-size: 1rem; font-weight: 800; letter-spacing: -0.01em; color: var(--ink-900); }
.dash-sidebar .brand-subtitle { margin: .2rem 0 0; font-size: .78rem; color: var(--ink-700); line-height: 1.3; }
.dash-nav { list-style: none; margin: 0; padding: 0; }
.dash-nav li + li { margin-top: 2px; }
.dash-nav a {
  display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: 10px;
  border: 1px solid transparent;
  color: var(--ink-900); text-decoration: none; font-size: 0.88rem; font-weight: 600;
  transition: all .18s ease;
}
.dash-nav a:hover { background: #f6f2ea; border-color: var(--paper-line); }
.dash-nav a.active { background: #f0f7f6; border-color: #cbe8e3; }
.dash-nav a.active .icon { background: #dff2ef; color: var(--primary-700); }
.dash-nav .icon {
  width: 1.7rem; height: 1.7rem; flex: 0 0 auto; display: inline-flex; align-items: center;
  justify-content: center; border-radius: 8px; background: var(--ink-100); color: var(--primary-700);
}
.dash-nav .menu-item-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.dash-nav .menu-label { font-size: 0.88rem; font-weight: 600; }
.dash-nav .menu-hint { font-size: 0.72rem; font-weight: 400; color: var(--ink-500, #6b7280); }

/* Real workspace-header: constant kicker + h1 (+ actions on agency) above the routed content,
   not re-rendered per screen — see buildShell()'s workspaceHeaderHtml. */
.workspace-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; padding: 1.1rem 1.5rem 0;
}
.workspace-header .header-kicker {
  margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-500, #6b7280);
}
.workspace-header h1 { margin: .15rem 0 0; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.01em; }
.workspace-header .header-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.workspace-header .header-actions a {
  display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border-radius: 10px;
  font-size: .85rem; font-weight: 700; text-decoration: none; border: 1px solid transparent;
}
.workspace-header .secondary-action { background: #fff; border-color: var(--paper-line); color: var(--ink-900); }
.workspace-header .primary-action { background: var(--primary-700, #0f766e); color: #fff; }

/* ---------- Tenant chrome around the dashboard: real header.component.html's platform-strip
   + confident-header, and footer.component.html — constant on every dashboard screen, built
   once in buildShell(), not per-screen. ---------- */
.platform-strip {
  display: flex; align-items: center; justify-content: center; gap: .5rem; flex-wrap: wrap;
  padding: .4rem 1rem; background: var(--paper-shade); border-bottom: 1px solid var(--paper-line);
  font-size: .8rem; color: var(--ink-700); text-align: center;
}
.platform-strip__out { font-weight: 700; color: var(--primary-700); text-decoration: none; }
.tenant-header { background: #fff; border-bottom: 1px solid var(--paper-line); }
.tenant-header-inner {
  display: flex; align-items: center; gap: 1rem; padding: .7rem 1.25rem; flex-wrap: wrap;
}
.th-logo { display: flex; align-items: center; gap: .5rem; flex: 0 0 auto; }
.th-logo-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border-radius: 8px; background: var(--primary-50, #ecfdf5); color: var(--primary-700);
}
.th-logo-text { display: flex; align-items: center; gap: .4rem; }
.th-brand-name { font-weight: 800; font-size: 1.05rem; color: var(--ink-900); }
.th-nav { display: flex; align-items: center; gap: .25rem; margin: 0 auto; flex-wrap: wrap; }
.th-nav-link {
  display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .7rem; border-radius: 8px;
  color: var(--ink-700); text-decoration: none; font-size: .85rem; font-weight: 600; cursor: pointer;
}
.th-nav-link:hover { background: var(--paper-shade); }
.th-right { display: flex; align-items: center; gap: .9rem; flex: 0 0 auto; }
.th-bell { position: relative; display: inline-flex; color: var(--ink-700); }
.th-bell .badge-count {
  position: absolute; top: -6px; right: -7px; min-width: 15px; height: 15px; padding: 0 3px;
  border-radius: 999px; background: #dc2626; color: #fff; font-size: 10px; font-weight: 700;
  line-height: 15px; text-align: center;
}
.th-user { display: flex; align-items: center; gap: .5rem; }
.th-avatar {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--primary-700); color: #fff; font-weight: 700; font-size: .85rem;
}
.th-user-info { display: flex; flex-direction: column; line-height: 1.15; }
.th-user-name { font-size: .82rem; font-weight: 700; color: var(--ink-900); }
.th-user-role { font-size: .68rem; font-weight: 700; letter-spacing: .03em; color: var(--ink-500); }

.tenant-footer { background: var(--paper-shade); }
.tenant-footer-landscape { display: block; width: 100%; height: auto; }
.tenant-footer-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  background: var(--primary-800); color: #e9f6f4; padding: .7rem 1.25rem; font-size: .82rem;
}
.tenant-footer-slogan { font-style: italic; opacity: .9; }
.tenant-footer-copy .app-version { opacity: .7; margin-left: .35rem; }

@media (max-width: 899px) {
  .th-nav { display: none; }
  .tenant-header-inner { justify-content: space-between; }
}

.dash-main { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.dash-topbar {
  height: var(--topbar-h); flex: 0 0 auto; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--paper-line);
  display: flex; align-items: center; gap: 1rem; padding: 0 1.25rem; z-index: 20;
}
.dash-topbar .menu-toggle { display: none; background: none; border: none; font-size: 1.3rem; color: var(--ink-700); }
.dash-topbar .title { font-weight: 700; font-size: 1.05rem; }
.dash-topbar .spacer { flex: 1; }
.dash-content { padding: 1.5rem; flex: 1 1 auto; overflow-y: auto; min-height: 0; }
.dash-content h1 { font-size: 1.4rem; }

.sidebar-backdrop { display: none; }

@media (max-width: 899px) {
  .dash-sidebar {
    position: absolute; top: 0; left: 0; bottom: 0; z-index: 40; width: min(260px, 80%);
    transform: translateX(-100%); box-shadow: var(--shadow-xl);
  }
  .dash-sidebar.open { transform: translateX(0); }
  .dash-topbar .menu-toggle { display: inline-block; }
  .sidebar-backdrop.open {
    display: block; position: absolute; inset: 0; background: rgba(0,0,0,.4); z-index: 30;
  }
}

/* ---------- Toast / modal ---------- */
.toast-stack { position: fixed; bottom: calc(var(--cta-h) + 1rem); right: 1rem; z-index: 200; display: flex; flex-direction: column; gap: .5rem; }
.toast { background: var(--ink-900); color: #fff; padding: 0.7rem 1rem; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); font-size: 0.88rem; max-width: 320px; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(17,24,39,.55); z-index: 300; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal-card { background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); max-width: 420px; width: 100%; padding: 1.5rem; }
.modal-card h3 { margin-top: 0; }
.modal-actions { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1.25rem; flex-wrap: wrap; }

/* ---------- Fake browser frame (public-site screens) ---------- */
.browser-frame { border: 1px solid var(--ink-200); border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-md); }
.browser-bar { display: flex; align-items: center; gap: .5rem; background: var(--ink-100); padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--ink-200); }
.browser-dots { display: flex; gap: .3rem; }
.browser-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-300); display: inline-block; }
.browser-url { flex: 1; background: #fff; border: 1px solid var(--ink-200); border-radius: 999px; padding: .3rem .8rem; font-size: 0.8rem; color: var(--ink-500); }
.browser-frame { display: flex; flex-direction: column; }
.browser-body { flex: 1 1 auto; overflow-y: auto; min-height: 0; }

/* ---------- Sticky CTA bar ----------
   Lives as the FIRST element of <body> (inserted there in JS), in normal document flow —
   NOT position:fixed on desktop, so it can never cover the hero: the hero is simply pushed
   down below it. position:sticky then keeps it pinned to the viewport top as the page scrolls.
   On phones it switches to a true fixed bottom bar (classic sticky footer), with body
   padding-bottom so page content never hides behind it. */
.cta-bar {
  position: sticky; top: 0; left: 0; right: 0; height: var(--cta-h); z-index: 500; background: var(--primary-900);
  display: flex; align-items: center; gap: .75rem; padding: 0 1rem; color: #fff;
}
.cta-bar .msg { flex: 1; font-size: 0.85rem; font-weight: 600; }
.cta-bar .btn-primary { background: var(--accent-500); }
.cta-bar .btn-primary:hover { background: var(--accent-600); }
@media (max-width: 639px) {
  .cta-bar { position: fixed; top: auto; bottom: 0; gap: .5rem; padding: 0 .75rem; }
  .cta-bar .msg { display: none; }
  .cta-bar .btn { flex: 1; justify-content: center; text-align: center; white-space: nowrap; font-size: .85rem; padding-left: .5rem; padding-right: .5rem; }
  body.has-cta-bar { padding-bottom: var(--cta-h); }
}

/* ---------- Tour ---------- */
.tour-bubble {
  /* z-index above .tour-step-menu (1000): the bubble's Next/Back/Skip buttons must stay
     clickable even when the step menu's list (bottom-left, up to 50vh tall) visually overlaps
     it on narrow viewports — ponytail: found via Playwright click-intercept during verification. */
  position: fixed; z-index: 1001; max-width: 320px; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl); border: 1px solid var(--ink-200); padding: 1rem 1.1rem;
}
.tour-bubble.centered { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); }
/* Positioned next to its target via CSSOM (el.style.top/left), which CSP's style-src does NOT
   restrict (CSP3 exempts CSSOM property assignment — proven with a securitypolicyviolation
   listener against the real demo CSP: zero violations for el.style.*, setProperty, cssText,
   or a style="" attribute in injected HTML). The arrow direction is toggled via a data-arrow
   attribute (plain attribute, unaffected by style-src) + a --arrow-pos custom property. */
.tour-bubble::after {
  content: ''; position: absolute; width: 14px; height: 14px; background: #fff;
  border: 1px solid var(--ink-200); transform: rotate(45deg); display: none;
}
.tour-bubble[data-arrow="bottom"]::after { display: block; bottom: -8px; left: var(--arrow-pos, 20px); border-top: none; border-left: none; }
.tour-bubble[data-arrow="top"]::after { display: block; top: -8px; left: var(--arrow-pos, 20px); border-bottom: none; border-right: none; }
.tour-bubble[data-arrow="right"]::after { display: block; right: -8px; top: var(--arrow-pos, 20px); border-bottom: none; border-left: none; }
.tour-bubble[data-arrow="left"]::after { display: block; left: -8px; top: var(--arrow-pos, 20px); border-top: none; border-right: none; }
.tour-bubble .progress { font-size: 0.72rem; color: var(--ink-500); margin-bottom: .4rem; }
/* Step menu toggle: collapsed by default (bug: the step menu used to always render open,
   covering the sidebar). It's a button inside the bubble that opens the menu as a dropdown. */
.tour-step-toggle {
  display: inline-flex; align-items: center; gap: .3rem; background: none; border: none;
  padding: 0; margin-bottom: .4rem; font-size: 0.72rem; color: var(--ink-500); font-family: inherit;
}
.tour-step-toggle:hover, .tour-step-toggle:focus-visible { color: var(--primary-700); }
.tour-bubble .progress-bar { height: 4px; background: var(--ink-200); border-radius: 999px; overflow: hidden; margin-bottom: .6rem; }
.tour-bubble .progress-bar > i { display: block; height: 100%; background: var(--primary-500); }
.tour-bubble h4 { font-size: 0.95rem; margin-bottom: .35rem; }
.tour-bubble p { font-size: 0.85rem; color: var(--ink-700); margin: 0 0 .75rem; }
.tour-bubble .tour-actions { display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
/* Busy state: the step's action (e.g. visibly typing + saving a form) hasn't resolved yet —
   Next/Back/the step menu toggle are disabled so a visitor can't race ahead of it. */
.tour-bubble.busy [data-act="next"]::after { content: ' …'; }
.tour-bubble.busy [data-act="next"], .tour-bubble.busy [data-act="prev"], .tour-bubble.busy [data-act="toggle-menu"] {
  opacity: .6; cursor: wait;
}
.tour-bubble .tour-nudge { margin-top: .6rem; padding-top: .6rem; border-top: 1px dashed var(--ink-200); font-size: 0.8rem; }
.tour-step-menu { position: fixed; z-index: 1000; bottom: calc(var(--cta-h) + 1rem); left: 1rem; background: #fff; border: 1px solid var(--ink-200);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg); max-height: 50vh; overflow-y: auto; min-width: 220px; }
.tour-step-menu ul { list-style: none; margin: 0; padding: .4rem; }
.tour-step-menu li button { width: 100%; text-align: left; background: none; border: none; padding: .4rem .6rem; border-radius: var(--radius-sm); font-size: 0.82rem; }
.tour-step-menu li button:hover { background: var(--ink-100); }
.tour-step-menu li button.current { background: var(--primary-50); color: var(--primary-700); font-weight: 600; }
.tour-resume-btn { position: fixed; z-index: 900; bottom: calc(var(--cta-h) + 1rem); right: 1rem; }
.tour-highlight { outline: 3px solid var(--accent-500); outline-offset: 2px; border-radius: var(--radius-sm); }
.tour-end-panel { max-width: 480px; }
.tour-end-panel .plans { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1rem 0; }
.tour-end-panel .plan { flex: 1 1 140px; border: 1px solid var(--ink-200); border-radius: var(--radius-md); padding: .75rem; text-align: center; }
.tour-end-panel .plan .price { font-weight: 700; font-size: 1.1rem; color: var(--primary-700); }

/* ---------- Marketing landing (styled to read like a page of habimeo.com: same header,
   paper + topo-lines background, brand-voice hero type — see src/app/features/home). ---------- */
.landing-header {
  padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between;
  background: #fff; border-bottom: 1px solid var(--ink-200); position: relative; z-index: 1;
}
.landing-brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink-900); }
.landing-brand img { height: 30px; width: 30px; border-radius: 8px; }
.landing-brand-name { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; }
.landing-header nav a { color: var(--primary-700); font-weight: 600; text-decoration: none; }
.hero { position: relative; padding: 3rem 1.5rem 2.5rem; text-align: center; max-width: 780px; margin: 0 auto; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; color: var(--ink-900); }
.hero p { font-size: 1.05rem; color: var(--ink-700); }
.hero .hero-ctas { display: flex; gap: .75rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
#demo-app { min-height: 100vh; }
.feature-section { max-width: 860px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.feature-section h2 { color: var(--primary-800); font-size: 1.3rem; }
.faq { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.faq details { border-bottom: 1px solid var(--ink-200); padding: .9rem 0; }
.faq summary { font-weight: 600; cursor: pointer; }
.final-cta { background: var(--primary-900); color: #fff; text-align: center; padding: 3rem 1.5rem; }
.final-cta h2 { color: #fff; }
.final-cta .btn-primary { background: var(--accent-500); }
.final-cta .btn-primary:hover { background: var(--accent-600); }
footer.landing-footer { text-align: center; padding: 2rem 1.5rem; color: var(--ink-500); font-size: 0.82rem; }

@media (max-width: 420px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Small utilities (kept generic, reused instead of inline style="") ---------- */
.mb-1 { margin-bottom: 1rem; }
.plan-price-current { font-size: 1.3rem; font-weight: 700; color: var(--primary-700); }
.plan-card { flex: 1 1 160px; }
.muted-sm { font-size: 0.8rem; color: var(--ink-500); }
.empty-state { text-align: center; padding: 1.5rem 1rem; color: var(--ink-500); font-size: .88rem; }

/* ---------- Commercial spaces (real agency-commercial-spaces.component.html) ---------- */
.space-list { display: flex; flex-direction: column; gap: .7rem; }
.space-card {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border: 1px solid var(--ink-100); border-radius: var(--radius-lg); padding: .9rem 1rem;
}
.space-header { display: flex; align-items: center; gap: .6rem; }
.space-header h4 { margin: 0; font-size: .95rem; }

/* ---------- Tours (real tours.component.html tour-card) ---------- */
.tour-cards { display: flex; flex-direction: column; gap: .7rem; }
.tour-card-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.tour-time { font-weight: 700; font-size: .9rem; }
.tour-details { font-size: .82rem; color: var(--ink-500); margin-top: .1rem; }
.tour-right { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.tour-right .card-actions { margin: 0; }

/* ---------- Developments (real agency-developments.component.html) ---------- */
.project-rows { display: flex; flex-direction: column; gap: .7rem; }
.project-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border: 1px solid var(--ink-100); border-radius: var(--radius-lg); padding: .9rem 1rem;
}
.project-header { display: flex; align-items: center; gap: .6rem; }
.project-header h4 { margin: 0; font-size: .95rem; }
.project-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.project-actions button, .project-actions a { font: inherit; }
.unit-cards { display: flex; flex-direction: column; gap: .6rem; }
.unit-card {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border: 1px solid var(--ink-100); border-radius: var(--radius-lg); padding: .7rem .9rem;
}
.unit-header { display: flex; align-items: center; gap: .5rem; }
.unit-header h4 { margin: 0; font-size: .9rem; }

/* ---------- Agents (real agents.component.html activation-progress cards) ---------- */
.agent-cards { display: flex; flex-direction: column; gap: .8rem; }
.agent-top { display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem; }
.agent-info { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.progress-row { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.progress-track { flex: 1 1 auto; height: 6px; border-radius: 999px; background: var(--ink-100); overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary-700); border-radius: 999px; }
.progress-fill.progress-33 { width: 33%; }
.progress-fill.progress-66 { width: 66%; }
.progress-fill.progress-100 { width: 100%; }

/* ---------- Icon action buttons (real guide-excursions table's row-actions) ---------- */
.icon-actions { display: flex; gap: .3rem; align-items: center; }
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 1.8rem; height: 1.8rem;
  border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--ink-700);
  cursor: pointer; text-decoration: none;
}
.btn-icon:hover { background: var(--ink-100); }

/* ---------- Agency demo screens: utility classes instead of inline style="" (CSP style-src-attr
   has no 'unsafe-inline', so an inline style attribute embedded in generated HTML is blocked —
   only CSSOM property assignment, e.g. el.style.top in tour.js, is exempt). ---------- */
.thumb-inline { float: left; margin-right: .5rem; border-radius: 4px; object-fit: cover; }
.photo-grid { display: flex; flex-wrap: wrap; gap: .4rem; }
.photo-pick { padding: 0; border: 2px solid transparent; border-radius: 6px; background: none; }
.photo-pick.selected { border-color: var(--primary-600); }
.photo-thumb { display: block; border-radius: 4px; object-fit: cover; }
.asset-photo { border-radius: 8px; object-fit: cover; max-width: 100%; }
.cal-day { margin: .1rem; display: inline-block; min-width: 2.2rem; text-align: center; }
/* Brief highlight on a just-added row (tour step 3 / manual add), so Save visibly lands
   somewhere instead of just silently reordering the list. */
tr.row-flash td { background: var(--primary-50); }
tr.row-flash { animation: row-flash-fade 2.2s ease-out forwards; }
@keyframes row-flash-fade {
  0%, 60% { box-shadow: inset 3px 0 0 var(--primary-500); }
  100% { box-shadow: inset 3px 0 0 transparent; }
}
@media (prefers-reduced-motion: reduce) {
  tr.row-flash { animation: none; box-shadow: inset 3px 0 0 var(--primary-500); }
}
.site-section-tight { padding-top: 1.5rem; }
.site-h2-spaced { margin-top: 2rem; }
.site-h1-tight { margin-top: 1rem; }
.site-photo { border-radius: 8px; object-fit: cover; width: 100%; height: 140px; }
.site-gallery-photo { border-radius: 8px; object-fit: cover; width: 100%; height: 160px; }

/* ---------- Public site chrome (header/hero/grid/footer) — the fake public website the
   tour's "View my site" opens, styled to read like a real branded agency site, not plain
   text-on-white. Lives inside .browser-body (see buildShell's isSite branch in core.js). ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem;
  padding: 1rem 1.5rem; border-bottom: 1px solid var(--ink-200); background: #fff;
}
.site-brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.05rem; text-decoration: none; color: var(--ink-900); }
.site-brand-mark { width: 30px; height: 30px; border-radius: 8px; display: inline-block; flex: 0 0 auto; }
.site-nav { display: flex; gap: 1.25rem; }
.site-nav a { font-size: 0.88rem; font-weight: 600; color: var(--ink-700); text-decoration: none; }
.site-nav a:hover { color: var(--primary-700); }

.site-hero { position: relative; min-height: 220px; display: flex; align-items: flex-end; overflow: hidden; background: var(--primary-900); }
.site-hero-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.site-hero-noimg { background: linear-gradient(135deg, var(--primary-800), var(--primary-600)); }
.site-hero-overlay { position: relative; z-index: 1; padding: 2rem 1.5rem; color: #fff; width: 100%; }
.site-hero-overlay h1 { color: #fff; }
.site-hero-overlay p { color: var(--primary-100); }
.site-hero-search { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; max-width: 480px; }
.site-hero-search input {
  flex: 1 1 220px; padding: 0.6rem 0.8rem; border-radius: var(--radius-md); border: 1px solid transparent;
  font-family: inherit; font-size: 0.92rem;
}

.site-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin: 0 0 1.5rem; }
.site-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.site-card-media { position: relative; }
.site-card-media .site-photo { height: 160px; border-radius: 0; }
.site-op-badge { position: absolute; top: .6rem; left: .6rem; background: #fff; color: var(--primary-800); box-shadow: var(--shadow-sm); }
.site-card-body { padding: 1rem 1.1rem; }
.site-card-price { font-size: 1.05rem; font-weight: 700; color: var(--primary-800); margin: 0 0 .15rem; }
.site-card-facts { color: var(--ink-500); font-size: 0.82rem; margin: .2rem 0; }
.site-card-location { color: var(--ink-500); font-size: 0.82rem; margin: 0 0 .6rem; }

.site-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.site-key-facts { display: flex; gap: 1.25rem; flex-wrap: wrap; color: var(--ink-700); font-size: 0.9rem; margin: .5rem 0 1rem; }

.site-map-placeholder { text-align: center; margin: 1rem 0; }
.site-map-art { font-size: 2.2rem; line-height: 1; margin-bottom: .4rem; }

.site-footer { padding: 2rem 1.5rem; text-align: center; border-top: 1px solid var(--ink-200); color: var(--ink-500); }
.site-footer-slogan { font-weight: 600; color: var(--ink-700); margin-bottom: .25rem; }

@media (max-width: 420px) {
  .site-grid { grid-template-columns: 1fr; }
}
.color-swatch { width: 28px; height: 28px; border-radius: 50%; border: 3px solid transparent; margin-right: .4rem; display: inline-block; }
.color-swatch.selected { border-color: var(--ink-900); }
.swatch-c0 { background: #0f766e; } .swatch-c1 { background: #1d4ed8; } .swatch-c2 { background: #be123c; }
.swatch-c3 { background: #a16207; } .swatch-c4 { background: #4d7c0f; } .swatch-c5 { background: #7c3aed; }
.brand-c0 { color: #0f766e; } .brand-c1 { color: #1d4ed8; } .brand-c2 { color: #be123c; }
.brand-c3 { color: #a16207; } .brand-c4 { color: #4d7c0f; } .brand-c5 { color: #7c3aed; }
