/* =========================================================================
   Dahome design system
   Theme: light only (brand orange mixed with white, per brand brief).
   Shape rule: buttons, chips and nav are full pill. Panels and cards 24px.
   Inputs 14px. Small media 16px.
   Accent rule: #FD8234 is a fill colour. Text that must read in orange uses
   --brand-ink (#B4500F) for WCAG AA contrast on white.
   ========================================================================= */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f4f4f2;
  --surface: #ffffff;
  --surface-2: #fafaf9;
  --ink: #17171a;
  --ink-2: #3f3f46;
  --muted: #63636b;
  --line: #e3e3df;
  --line-strong: #cfcfca;
  --brand: #fd8234;
  --brand-hover: #f2711f;
  --brand-ink: #b4500f;
  --brand-soft: #fff1e7;
  --brand-tint: #ffe2cf;
  --dark: #1b1b1f;
  --dark-2: #26262b;
  --ok: #157f3b;
  --ok-soft: #e6f5ec;
  --warn: #9a5b00;
  --warn-soft: #fff4dc;
  --err: #b42318;
  --err-soft: #fdecea;
  --info: #1d4ed8;
  --info-soft: #e8efff;

  --r-pill: 999px;
  --r-panel: 24px;
  --r-media: 16px;
  --r-input: 14px;

  --shadow-sm: 0 1px 2px rgb(40 30 20 / 0.06), 0 1px 1px rgb(40 30 20 / 0.04);
  --shadow-md: 0 10px 30px -12px rgb(60 40 20 / 0.18), 0 2px 6px rgb(60 40 20 / 0.05);
  --shadow-lg: 0 30px 60px -24px rgb(60 35 15 / 0.28);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);

  /* z-index scale */
  --z-nav: 50;
  --z-menu: 60;
  --z-toast: 80;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -0.025em; font-weight: 600; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-pill);
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.accent { color: var(--brand); }
.accent-ink { color: var(--brand-ink); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--r-pill); border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 16px; white-space: nowrap; cursor: pointer;
  transition: transform 0.35s var(--ease), background-color 0.25s, box-shadow 0.35s var(--ease), border-color 0.25s;
}
.btn .ph { font-size: 18px; transition: transform 0.35s var(--ease); }
.btn:hover { background: var(--brand-hover); box-shadow: 0 10px 24px -10px rgb(253 130 52 / 0.65); }
.btn:hover .ph-arrow-right, .btn:hover .ph-arrow-up-right { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }
.btn[disabled], .btn.is-loading { opacity: 0.6; pointer-events: none; }
.btn--dark { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn--dark:hover { background: #2c2c31; box-shadow: var(--shadow-md); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface); box-shadow: none; border-color: var(--ink); }
.btn--light { --btn-bg: rgb(255 255 255 / 0.14); --btn-fg: #fff; border-color: rgb(255 255 255 / 0.4); backdrop-filter: blur(8px); }
.btn--light:hover { background: rgb(255 255 255 / 0.24); box-shadow: none; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn--xs { min-height: 34px; padding: 0 12px; font-size: 14px; gap: 6px; }
.btn--danger { --btn-bg: var(--err-soft); --btn-fg: var(--err); }
.btn--danger:hover { background: #fbd9d5; box-shadow: none; }
.btn--block { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; transition: background 0.2s, transform 0.3s var(--ease);
}
.icon-btn:hover { background: var(--brand-soft); }
.icon-btn:active { transform: scale(0.95); }
.icon-btn .ph { font-size: 20px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand-ink); }
.link-arrow .ph { transition: transform 0.35s var(--ease); }
.link-arrow:hover .ph { transform: translateX(4px); }

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px; border-radius: var(--r-pill);
  background: var(--ink); color: #fff; font-weight: 500; font-size: 15px;
}
.chip__icon { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--ink); }
.chip--light { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px;
  border-radius: var(--r-pill); font-size: 13px; font-weight: 600; line-height: 1.5;
  background: #efefec; color: var(--ink-2); white-space: nowrap;
}
.badge--brand { background: var(--brand-soft); color: var(--brand-ink); }
.badge--ok { background: var(--ok-soft); color: var(--ok); }
.badge--warn { background: var(--warn-soft); color: var(--warn); }
.badge--err { background: var(--err-soft); color: var(--err); }
.badge--info { background: var(--info-soft); color: var(--info); }

/* ---------- Navigation ---------- */
.nav-sentinel { position: absolute; top: 0; height: 1px; width: 1px; }
.site-header { position: sticky; top: 12px; z-index: var(--z-nav); padding-inline: var(--gutter); margin-top: 12px; }
.nav {
  max-width: var(--container); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 68px; padding: 0 10px 0 22px;
  background: rgb(255 255 255 / 0.88); backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgb(255 255 255 / 0.7); border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), background 0.4s;
}
.site-header.is-scrolled .nav { box-shadow: var(--shadow-md); background: rgb(255 255 255 / 0.96); }
.nav__logo img { height: 38px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: 8px 14px; border-radius: var(--r-pill); font-weight: 500; font-size: 16px; color: var(--ink-2);
  transition: background 0.2s, color 0.2s;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { background: var(--bg); color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__login { padding: 8px 14px; font-weight: 500; color: var(--ink-2); border-radius: var(--r-pill); }
.nav__login:hover { background: var(--bg); color: var(--ink); }
.nav__toggle { display: none; }

.mobile-menu {
  position: fixed; inset: 92px var(--gutter) auto; z-index: var(--z-menu);
  background: var(--surface); border-radius: var(--r-panel); box-shadow: var(--shadow-lg);
  padding: 12px; display: grid; gap: 4px;
  opacity: 0; transform: translateY(-8px) scale(0.98); pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.mobile-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a { padding: 14px 16px; border-radius: 14px; font-weight: 500; font-size: 18px; }
.mobile-menu a:hover { background: var(--bg); }
.mobile-menu .btn { margin-top: 8px; }

.nav__links a, .nav__login, .nav__actions .btn { white-space: nowrap; }
@media (max-width: 1240px) { .nav__links a { padding: 8px 10px; font-size: 15px; } .nav { gap: 12px; } }
@media (max-width: 1120px) {
  .nav__links, .nav__login, .nav__actions .btn { display: none; }
  .nav__toggle { display: inline-grid; }
  .nav { height: 62px; padding: 0 8px 0 18px; }
  .nav__logo img { height: 32px; }
}

/* ---------- Hero ---------- */
.hero { padding: 16px var(--gutter) 0; margin-top: -84px; }
.hero__panel {
  position: relative; overflow: hidden; isolation: isolate;
  max-width: 1400px; margin-inline: auto;
  min-height: min(860px, 100dvh); border-radius: 32px;
  display: grid; align-items: end;
  padding: 140px clamp(22px, 5vw, 64px) clamp(28px, 5vw, 64px);
  color: #fff; background: var(--dark);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 2.4s var(--ease); }
.is-loaded .hero__media img { transform: scale(1); }
.hero__panel::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(15 12 10 / 0.78) 0%, rgb(15 12 10 / 0.45) 50%, rgb(15 12 10 / 0.05) 100%),
    linear-gradient(0deg, rgb(15 12 10 / 0.55) 0%, transparent 45%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 40px; align-items: end; }
.hero h1 { font-size: clamp(40px, 6.2vw, 80px); font-weight: 600; letter-spacing: -0.035em; max-width: 13ch; }
.hero__sub { margin-top: 22px; font-size: clamp(17px, 1.5vw, 20px); color: rgb(255 255 255 / 0.86); max-width: 44ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__card {
  justify-self: end; width: 100%; max-width: 340px;
  background: rgb(255 255 255 / 0.12); border: 1px solid rgb(255 255 255 / 0.25);
  backdrop-filter: blur(16px) saturate(140%); border-radius: var(--r-panel); padding: 22px;
}
.hero__card h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.hero__card ol { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: s; }
.hero__card li { display: flex; gap: 12px; align-items: center; font-size: 15px; color: rgb(255 255 255 / 0.9); }
.hero__card li .ph { font-size: 18px; color: var(--brand); }
@media (prefers-reduced-transparency: reduce) { .hero__card { background: rgb(27 27 31 / 0.92); backdrop-filter: none; } }
@media (max-width: 860px) {
  .hero { margin-top: -78px; padding-top: 10px; }
  .hero__panel { border-radius: 24px; padding-top: 120px; min-height: 92dvh; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__card { justify-self: start; max-width: none; }
  .hero__panel::after { background: linear-gradient(0deg, rgb(15 12 10 / 0.85) 0%, rgb(15 12 10 / 0.35) 100%); }
}

/* Page hero for inner pages */
.page-hero { padding: 72px 0 40px; }
.page-hero h1 { font-size: clamp(38px, 5vw, 64px); max-width: 16ch; }
.page-hero p { margin-top: 18px; font-size: 19px; color: var(--ink-2); max-width: 56ch; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--tight { padding: clamp(48px, 7vw, 80px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(32px, 4.4vw, 56px); }
.section-head p { margin-top: 18px; font-size: 19px; color: var(--ink-2); max-width: 60ch; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center p { margin-inline: auto; }
.eyebrow { display: inline-block; margin-bottom: 18px; }

/* Assurance strip (marquee, one per page) */
.marquee { overflow: hidden; padding: 28px 0; border-bottom: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.marquee__item { display: inline-flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.marquee__item .ph { font-size: 22px; color: var(--brand-ink); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; gap: 20px 40px; }
  .marquee__track [aria-hidden="true"] { display: none; }
}

/* Audience split */
.audience { display: grid; grid-template-columns: 1fr 0.85fr 1fr; gap: 20px; }
.audience__card {
  position: relative; overflow: hidden; border-radius: var(--r-panel); background: var(--surface);
  padding: clamp(26px, 3.4vw, 44px); display: flex; flex-direction: column; gap: 18px; min-height: 420px;
}
.audience__card--brand { background: var(--brand); }
.audience__card h3 { font-size: clamp(26px, 2.6vw, 36px); max-width: 16ch; }
.audience__card p { color: var(--ink-2); max-width: 44ch; }
.audience__card--brand p { color: #2a1406; }
.audience__list { display: grid; gap: 10px; margin-top: auto; }
.audience__list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.audience__list .ph { font-size: 20px; margin-top: 3px; flex: none; }
.audience__card--photo { padding: 0; min-height: 420px; }
.audience__card--photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
@media (max-width: 860px) { .audience { grid-template-columns: 1fr; } .audience__card { min-height: 0; } .audience__card--photo { min-height: 300px; } }

/* Journey: sticky stacked panels */
.journey { display: grid; gap: 0; }
.journey__step {
  position: sticky; top: calc(96px + var(--i, 0) * 18px);
  margin-bottom: 28px;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  min-height: 480px; padding: clamp(24px, 3.6vw, 48px);
  border-radius: 32px; background: var(--surface); box-shadow: var(--shadow-md);
  transform-origin: 50% 0;
}
.journey__step:nth-child(2) { background: var(--brand); }
.journey__step:nth-child(3) { background: var(--dark); color: #fff; }
.journey__step:nth-child(4) { background: var(--brand-tint); }
.journey__step:nth-child(5) { background: var(--surface); }
.journey__step h3 { font-size: clamp(28px, 3.4vw, 44px); margin: 22px 0 16px; max-width: 14ch; }
.journey__step p { font-size: 18px; color: var(--ink-2); max-width: 46ch; }
.journey__step:nth-child(2) p { color: #2a1406; }
.journey__step:nth-child(3) p { color: rgb(255 255 255 / 0.78); }
.journey__step ul { margin-top: 22px; display: grid; gap: 10px; }
.journey__step li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.journey__step li .ph { font-size: 18px; }
.journey__step:nth-child(3) .chip { background: var(--surface); color: var(--ink); }
.journey__media { height: 100%; min-height: 320px; border-radius: 20px; overflow: hidden; }
.journey__media img { width: 100%; height: 100%; object-fit: cover; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .journey__step { animation: stack-shrink linear both; animation-timeline: view(); animation-range: exit-crossing 0% exit-crossing 60%; }
  }
}
@keyframes stack-shrink { to { transform: scale(0.94); filter: brightness(0.94); } }
@media (max-width: 860px) {
  .journey__step { grid-template-columns: 1fr; position: relative; top: 0; min-height: 0; animation: none !important; }
  .journey__media { min-height: 220px; order: -1; }
}

/* Services bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(220px, auto); gap: 18px; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--r-panel); background: var(--surface);
  padding: 28px; display: flex; flex-direction: column; gap: 12px; isolation: isolate;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tile h3 { font-size: 26px; }
.tile p { color: var(--ink-2); max-width: 40ch; }
.tile .link-arrow { margin-top: auto; }
.tile__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-size: 26px; }
.tile--photo { color: #fff; justify-content: flex-end; min-height: 460px; }
.tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.tile--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(15 12 10 / 0.82), rgb(15 12 10 / 0.05) 65%); }
.tile--photo:hover img { transform: scale(1.04); }
.tile--photo p { color: rgb(255 255 255 / 0.85); }
.tile--photo .link-arrow { color: #fff; margin-top: 8px; }
.tile--brand { background: var(--brand); }
.tile--brand p { color: #2a1406; }
.tile--brand .tile__icon { background: rgb(255 255 255 / 0.55); color: var(--ink); }
.tile--brand .link-arrow { color: var(--ink); }
.tile--dark { background: var(--dark); color: #fff; }
.tile--dark p { color: rgb(255 255 255 / 0.75); }
.tile--dark .tile__icon { background: rgb(255 255 255 / 0.1); color: var(--brand); }
.tile--dark .link-arrow { color: var(--brand); }
.span-4 { grid-column: span 4; } .span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .row-2 { grid-row: span 2; }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr 1fr; } .span-4, .span-3 { grid-column: span 2; } .span-2 { grid-column: span 1; } .row-2 { grid-row: auto; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .span-4, .span-3, .span-2 { grid-column: auto; } .tile--photo { min-height: 360px; } }

/* Portal feature split */
.portal-split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.portal-split__media { position: relative; border-radius: 32px; overflow: hidden; aspect-ratio: 4 / 5; }
.portal-split__media img { width: 100%; height: 100%; object-fit: cover; }
.portal-split__note {
  position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; gap: 14px; align-items: center;
  background: rgb(255 255 255 / 0.94); border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow-md);
}
.portal-split__note .tile__icon { width: 44px; height: 44px; font-size: 22px; flex: none; }
.portal-split__note strong { display: block; font-size: 16px; }
.portal-split__note span { font-size: 14px; color: var(--muted); }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-top: 36px; }
.feature-list .ph { font-size: 26px; color: var(--brand-ink); }
.feature-list h3 { font-size: 19px; margin: 10px 0 6px; letter-spacing: -0.01em; }
.feature-list p { font-size: 16px; color: var(--muted); }
@media (max-width: 860px) { .portal-split { grid-template-columns: 1fr; } .portal-split__media { aspect-ratio: 4 / 3; } }
@media (max-width: 520px) { .feature-list { grid-template-columns: 1fr; } }

/* Listing cards */
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .listing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .listing-grid { grid-template-columns: 1fr; } }
.lcard { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-panel); overflow: hidden; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.lcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.lcard__media { position: relative; aspect-ratio: 4 / 3; background: #e9e9e5; overflow: hidden; }
.lcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.lcard:hover .lcard__media img { transform: scale(1.04); }
.lcard__media .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 42px; color: #b9b9b3; }
.lcard__body { padding: 18px 20px 22px; display: grid; gap: 6px; }
.lcard__price { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.lcard__price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.lcard__title { font-size: 17px; font-weight: 600; line-height: 1.35; }
.lcard__loc { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 15px; }
.lcard__specs { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.lcard__specs span { display: inline-flex; align-items: center; gap: 6px; }
.lcard__tag { position: absolute; top: 14px; left: 14px; }

/* Skeleton */
.skeleton { position: relative; overflow: hidden; background: #e9e9e5; border-radius: 10px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.6), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .skeleton::after { animation: none; } }
.sk-card { background: var(--surface); border-radius: var(--r-panel); overflow: hidden; }
.sk-card .skeleton:first-child { aspect-ratio: 4 / 3; border-radius: 0; }
.sk-card__body { padding: 18px 20px 22px; display: grid; gap: 10px; }
.sk-line { height: 14px; }
.sk-line--lg { height: 22px; width: 50%; }
.sk-line--sm { width: 70%; }

/* Empty state */
.empty {
  display: grid; justify-items: center; text-align: center; gap: 10px;
  padding: 48px 24px; background: var(--surface); border-radius: var(--r-panel); border: 1px dashed var(--line-strong);
}
.empty .ph { font-size: 40px; color: var(--brand-ink); }
.empty h3 { font-size: 20px; letter-spacing: -0.01em; }
.empty p { color: var(--muted); max-width: 44ch; }

/* Agents CTA band */
.agent-band { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 32px; overflow: hidden; background: var(--dark); color: #fff; }
.agent-band__body { padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; gap: 18px; }
.agent-band h2 { font-size: clamp(30px, 3.6vw, 46px); max-width: 16ch; }
.agent-band p { color: rgb(255 255 255 / 0.78); max-width: 46ch; }
.agent-band ul { display: grid; gap: 10px; margin: 6px 0 10px; }
.agent-band li { display: flex; gap: 10px; align-items: center; }
.agent-band li .ph { color: var(--brand); font-size: 20px; }
.agent-band__media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
@media (max-width: 860px) { .agent-band { grid-template-columns: 1fr; } .agent-band__media { order: -1; } }

/* FAQ */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq__list { display: grid; gap: 12px; }
.faq details { background: var(--surface); border-radius: 20px; padding: 0 24px; transition: box-shadow 0.3s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ph { font-size: 20px; flex: none; transition: transform 0.4s var(--ease); }
.faq details[open] summary .ph { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 64ch; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* Quote / contact */
.quote { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 0; background: var(--surface); border-radius: 32px; overflow: hidden; }
.quote__aside { background: var(--brand); padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 18px; }
.quote__aside h2 { font-size: clamp(30px, 3.6vw, 46px); }
.quote__aside p { color: #2a1406; }
.quote__contacts { margin-top: auto; display: grid; gap: 12px; }
.quote__contacts a { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; }
.quote__contacts .ph { width: 40px; height: 40px; display: inline-grid; place-items: center; background: rgb(255 255 255 / 0.55); border-radius: 50%; font-size: 20px; }
.quote__form { padding: clamp(28px, 4vw, 56px); }
@media (max-width: 860px) { .quote { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .form-row, .form-row--3 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label, .field .label { font-weight: 600; font-size: 15px; color: var(--ink); }
.field .hint { font-size: 14px; color: var(--muted); }
.field .error { font-size: 14px; color: var(--err); font-weight: 500; }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-input);
  font-size: 16px; color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder, .textarea::placeholder { color: #75757d; }
.input:hover, .select:hover, .textarea:hover { border-color: #a9a9a3; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand-ink); box-shadow: 0 0 0 4px rgb(253 130 52 / 0.22); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--err); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 44px; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand-ink); flex: none; }
.check-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.check-pill { position: relative; }
.check-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.check-pill span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--surface); font-weight: 500; font-size: 15px; transition: all 0.2s; }
.check-pill input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.check-pill input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font-size: 15px; font-weight: 500; }
.alert .ph { font-size: 20px; flex: none; margin-top: 1px; }
.alert--ok { background: var(--ok-soft); color: var(--ok); }
.alert--err { background: var(--err-soft); color: var(--err); }
.alert--info { background: var(--info-soft); color: var(--info); }
.alert--warn { background: var(--warn-soft); color: var(--warn); }

.pw-meter { height: 6px; border-radius: 999px; background: #e9e9e5; overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; background: var(--err); transition: width 0.3s var(--ease), background 0.3s; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 40px; padding: 0 var(--gutter) 16px; }
.footer { max-width: 1400px; margin-inline: auto; background: var(--dark); color: rgb(255 255 255 / 0.78); border-radius: 32px; padding: clamp(36px, 5vw, 64px); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand img { height: 46px; width: auto; }
.footer__brand p { margin-top: 18px; max-width: 34ch; font-size: 15px; }
.footer h3 { font-size: 15px; color: #fff; letter-spacing: 0; margin-bottom: 14px; }
.footer ul { display: grid; gap: 10px; font-size: 15px; }
.footer a:hover { color: var(--brand); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 0.12); font-size: 14px; }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- Services page ---------- */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; background: var(--surface); border-radius: var(--r-pill); box-shadow: var(--shadow-sm); }
.tabs [role="tab"] { border: 0; background: transparent; padding: 10px 20px; border-radius: var(--r-pill); font-weight: 600; cursor: pointer; color: var(--ink-2); display: inline-flex; gap: 8px; align-items: center; transition: background 0.3s var(--ease), color 0.2s; }
.tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: #fff; }
.tabs [role="tab"]:hover:not([aria-selected="true"]) { background: var(--bg); }
.tabs-scroll { overflow-x: auto; scrollbar-width: none; padding: 4px 2px 10px; }
.tabs-scroll::-webkit-scrollbar { display: none; }
.tabs-scroll .tabs { flex-wrap: nowrap; }
.svc-panel { margin-top: 36px; animation: fade-up 0.6s var(--ease); }
.svc-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; background: var(--surface); border-radius: 32px; padding: clamp(22px, 3vw, 40px); }
.svc-intro img { border-radius: 20px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.svc-intro h2 { font-size: clamp(30px, 3.6vw, 46px); max-width: 16ch; }
.svc-intro p { margin-top: 16px; font-size: 18px; color: var(--ink-2); }
.svc-intro .badge { margin-bottom: 18px; }
.svc-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 18px; counter-reset: step; }
.svc-step { background: var(--surface); border-radius: var(--r-panel); padding: 26px; display: grid; gap: 10px; align-content: start; }
.svc-step .ph { font-size: 28px; color: var(--brand-ink); }
.svc-step h3 { font-size: 21px; letter-spacing: -0.01em; }
.svc-step p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 860px) { .svc-intro { grid-template-columns: 1fr; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Properties search ---------- */
.search-bar { display: grid; grid-template-columns: auto 1.6fr 1fr 1fr 1fr auto; gap: 10px; align-items: center; background: var(--surface); padding: 10px; border-radius: 28px; box-shadow: var(--shadow-sm); }
.search-bar .input, .search-bar .select { min-height: 48px; border-color: transparent; background-color: var(--bg); }
.seg { display: inline-flex; background: var(--bg); border-radius: var(--r-pill); padding: 4px; }
.seg button { border: 0; background: transparent; padding: 10px 18px; border-radius: var(--r-pill); font-weight: 600; cursor: pointer; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0 28px; }
.filter-row .select { width: auto; min-height: 42px; padding-block: 8px; border-radius: var(--r-pill); font-size: 15px; }
.results-meta { margin-left: auto; color: var(--muted); font-size: 15px; }
@media (max-width: 1080px) { .search-bar { grid-template-columns: 1fr 1fr; border-radius: 24px; } .search-bar .seg, .search-bar .btn { grid-column: span 1; } .search-bar #q { grid-column: 1 / -1; } }
@media (max-width: 520px) { .search-bar { grid-template-columns: 1fr; } .search-bar #q { grid-column: auto; } .results-meta { margin-left: 0; width: 100%; } }
.pager { display: flex; justify-content: center; gap: 10px; margin-top: 36px; }

/* ---------- Property detail ---------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: clamp(320px, 52vw, 560px); border-radius: 28px; overflow: hidden; }
.gallery button { padding: 0; border: 0; cursor: zoom-in; background: #e9e9e5; overflow: hidden; }
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.gallery button:hover img { transform: scale(1.03); }
.gallery button:first-child { grid-row: span 2; }
.gallery--single { grid-template-columns: 1fr; }
.gallery--single button:first-child { grid-row: auto; }
.gallery__more { position: relative; }
.gallery__more span { position: absolute; right: 12px; bottom: 12px; background: rgb(255 255 255 / 0.94); padding: 6px 12px; border-radius: var(--r-pill); font-weight: 600; font-size: 14px; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 300px; } .gallery button:not(:first-child) { display: none; } }
.detail { display: grid; grid-template-columns: 1fr 380px; gap: clamp(28px, 4vw, 56px); margin-top: 36px; align-items: start; }
.detail h1 { font-size: clamp(30px, 3.6vw, 44px); }
.detail__price { font-size: clamp(28px, 3vw, 36px); font-weight: 700; margin-top: 14px; letter-spacing: -0.02em; }
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 28px 0; }
.spec { background: var(--surface); border-radius: 18px; padding: 16px; display: grid; gap: 4px; }
.spec .ph { font-size: 22px; color: var(--brand-ink); }
.spec strong { font-size: 18px; }
.spec span { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .spec-grid { grid-template-columns: 1fr 1fr; } }
.detail__desc { white-space: pre-line; color: var(--ink-2); font-size: 17px; }
.detail__aside { position: sticky; top: 100px; display: grid; gap: 16px; }
.panel { background: var(--surface); border-radius: var(--r-panel); padding: 24px; }
.panel h2, .panel h3 { font-size: 20px; letter-spacing: -0.01em; margin-bottom: 14px; }
.agent-mini { display: flex; gap: 14px; align-items: center; }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; font-size: 20px; flex: none; overflow: hidden; }
.avatar--lg { width: 96px; height: 96px; font-size: 34px; }
.agent-mini strong { display: block; font-size: 17px; }
.agent-mini span { font-size: 14px; color: var(--muted); }
.feature-chips { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 960px) { .detail { grid-template-columns: 1fr; } .detail__aside { position: static; } }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 92vh; }
dialog.lightbox::backdrop { background: rgb(10 10 12 / 0.86); }
dialog.lightbox img { max-width: 96vw; max-height: 84vh; border-radius: 16px; object-fit: contain; }
.lightbox__bar { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }

/* ---------- Auth pages ---------- */
.auth { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }
.auth__media { position: relative; margin: 16px 0 16px 16px; border-radius: 32px; overflow: hidden; background: var(--dark); color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 36px; isolation: isolate; }
.auth__media img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.auth__media::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(15 12 10 / 0.82), rgb(15 12 10 / 0.15)); }
.auth__media .logo { height: 44px; width: auto; }
.auth__media h2 { font-size: clamp(28px, 3vw, 40px); max-width: 16ch; }
.auth__media p { margin-top: 12px; color: rgb(255 255 255 / 0.82); max-width: 42ch; }
.auth__main { display: grid; place-items: center; padding: 40px var(--gutter); }
.auth__box { width: 100%; max-width: 460px; }
.auth__box h1 { font-size: clamp(30px, 3vw, 40px); }
.auth__box > p { margin: 10px 0 28px; color: var(--ink-2); }
.auth__alt { margin-top: 22px; text-align: center; color: var(--ink-2); font-size: 15px; }
.auth__alt a { color: var(--brand-ink); font-weight: 600; }
.auth__top { display: none; margin-bottom: 28px; }
.auth__top img { height: 36px; width: auto; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth__media { display: none; } .auth__top { display: block; } }

/* ---------- Portal (app) ---------- */
.app { display: grid; grid-template-columns: 264px 1fr; min-height: 100dvh; }
.app__side { position: sticky; top: 0; height: 100dvh; padding: 18px; display: flex; flex-direction: column; gap: 18px; }
.app__side-inner { flex: 1; background: var(--surface); border-radius: var(--r-panel); padding: 20px 14px; display: flex; flex-direction: column; gap: 6px; }
.app__logo { padding: 4px 10px 18px; }
.app__logo img { height: 34px; width: auto; }
.app__nav { display: grid; gap: 4px; }
.app__nav button, .app__nav a { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 0; background: transparent; border-radius: 12px; font-weight: 500; cursor: pointer; text-align: left; color: var(--ink-2); transition: background 0.2s, color 0.2s; }
.app__nav .ph { font-size: 20px; }
.app__nav button:hover, .app__nav a:hover { background: var(--bg); color: var(--ink); }
.app__nav button[aria-current="page"] { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.app__user { margin-top: auto; border-top: 1px solid var(--line); padding: 14px 10px 0; display: grid; gap: 10px; font-size: 14px; }
.app__user strong { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app__main { padding: 28px clamp(16px, 3vw, 40px) 60px 18px; min-width: 0; }
.app__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.app__head h1 { font-size: clamp(26px, 2.6vw, 34px); }
.app__head p { color: var(--muted); margin-top: 4px; }
.app__mobilebar { display: none; }
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .app__side { position: fixed; inset: 0 auto 0 0; width: 290px; z-index: var(--z-menu); transform: translateX(-105%); transition: transform 0.4s var(--ease); }
  .app__side.is-open { transform: none; }
  .app__side-inner { box-shadow: var(--shadow-lg); }
  .app__mobilebar { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; position: sticky; top: 0; z-index: var(--z-nav); background: rgb(244 244 242 / 0.92); backdrop-filter: blur(10px); }
  .app__mobilebar img { height: 30px; width: auto; }
  .app__main { padding: 8px 16px 60px; }
}
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--surface); border-radius: 20px; padding: 18px 20px; display: grid; gap: 4px; }
.stat span { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.stat strong { font-size: 28px; letter-spacing: -0.02em; }
.stat--brand { background: var(--brand); }
.stat--brand span { color: #2a1406; }
@media (max-width: 1100px) { .stat-grid { grid-template-columns: 1fr 1fr; } }

.card { background: var(--surface); border-radius: var(--r-panel); padding: 22px; }
.card + .card { margin-top: 16px; }
.card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card__head h2 { font-size: 20px; letter-spacing: -0.01em; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 1000px) { .grid-2 { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; margin: 0 -6px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; padding: 10px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 10px; vertical-align: middle; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; }
.table .thumb { width: 64px; height: 48px; border-radius: 10px; object-fit: cover; background: #e9e9e5; }
.table td.num { font-variant-numeric: tabular-nums; }

.kv { display: grid; grid-template-columns: 160px 1fr; gap: 10px 16px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 8px; } }

.prop-switch { display: flex; gap: 10px; align-items: center; }
.prop-switch .select { min-width: 260px; }

.timeline { display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 24px 1fr; gap: 16px; padding-bottom: 24px; position: relative; }
.tl-item::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); border: 6px solid var(--surface); box-shadow: 0 0 0 2px var(--brand); margin-top: 2px; }
.tl-item h3 { font-size: 17px; letter-spacing: -0.01em; }
.tl-item time { font-size: 14px; color: var(--muted); }
.tl-item p { margin-top: 6px; color: var(--ink-2); white-space: pre-line; }

.ticket { border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: grid; gap: 14px; }
.ticket + .ticket { margin-top: 12px; }
.ticket__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: flex-start; }
.ticket__head h3 { font-size: 18px; letter-spacing: -0.01em; }
.ticket__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ticket__col { background: var(--surface-2); border-radius: 16px; padding: 14px; display: grid; gap: 8px; align-content: start; }
.ticket__col h4 { font-size: 14px; color: var(--muted); font-weight: 600; letter-spacing: 0; display: flex; align-items: center; gap: 6px; }
.ticket__col p { font-size: 15px; white-space: pre-line; }
@media (max-width: 700px) { .ticket__cols { grid-template-columns: 1fr; } }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.media-grid button { position: relative; padding: 0; border: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: #e9e9e5; cursor: pointer; }
.media-grid img, .media-grid video { width: 100%; height: 100%; object-fit: cover; }
.media-grid .ph { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 28px; background: rgb(0 0 0 / 0.25); }

.upload-zone { border: 1.5px dashed var(--line-strong); border-radius: 16px; padding: 18px; text-align: center; color: var(--muted); font-size: 15px; cursor: pointer; transition: border-color 0.2s, background 0.2s; display: grid; gap: 6px; justify-items: center; }
.upload-zone:hover, .upload-zone.is-drag { border-color: var(--brand-ink); background: var(--brand-soft); }
.upload-zone .ph { font-size: 28px; color: var(--brand-ink); }
.upload-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 10px; }
.upload-item { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #e9e9e5; }
.upload-item img, .upload-item video { width: 100%; height: 100%; object-fit: cover; }
.upload-item button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgb(255 255 255 / 0.94); cursor: pointer; display: grid; place-items: center; }
.upload-item .cover { position: absolute; left: 4px; bottom: 4px; }

dialog.modal { border: 0; padding: 0; border-radius: 28px; width: min(720px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); background: var(--bg); box-shadow: var(--shadow-lg); }
dialog.modal[open] { animation: fade-up 0.35s var(--ease); }
dialog.modal::backdrop { background: rgb(20 18 16 / 0.5); backdrop-filter: blur(2px); }
.modal__head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 24px; background: var(--bg); border-bottom: 1px solid var(--line); }
.modal__head h2 { font-size: 22px; letter-spacing: -0.01em; }
.modal__body { padding: 22px 24px 26px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

.toast-wrap { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: var(--z-toast); display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); }
.toast { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 16px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-weight: 500; animation: fade-up 0.35s var(--ease); }
.toast .ph { font-size: 20px; color: var(--brand); }
.toast--err .ph { color: #ff8a80; }

.loading-screen { min-height: 60vh; display: grid; place-items: center; color: var(--muted); }

/* ---------- Legal / prose ---------- */
.prose { max-width: 760px; background: var(--surface); border-radius: 28px; padding: clamp(24px, 4vw, 52px); }
.prose h2 { font-size: 24px; margin: 32px 0 10px; letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--ink-2); margin-bottom: 12px; }
.prose ul { list-style: disc; padding-left: 22px; }

/* ---------- Motion: reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .hero-in { opacity: 0; transform: translateY(24px); }
  .js.is-loaded .hero-in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 110ms + 150ms); }
}

.d1 { --d: 1; } .d2 { --d: 2; } .d3 { --d: 3; } .d4 { --d: 4; } .d5 { --d: 5; }
.i1 { --i: 1; } .i2 { --i: 2; } .i3 { --i: 3; } .i4 { --i: 4; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.flex { display: flex; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .wrap { flex-wrap: wrap; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.text-sm { font-size: 14px; } .fw-600 { font-weight: 600; }
.center { text-align: center; }

/* ---------- Additions ---------- */
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 8px; }
.h2-like { font-size: clamp(32px, 4.4vw, 56px); }
.listings-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 36px; }
.media-full { width: 100%; max-height: 75vh; object-fit: contain; border-radius: var(--r-media); background: #111; }
.app__main { outline: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.select--sm { min-height: 38px; width: auto; padding: 6px 38px 6px 12px; font-size: 14px; border-radius: var(--r-pill); }
.mb-16 { margin-bottom: 16px; }
button.stat { border: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; transition: transform 0.3s var(--ease), box-shadow 0.3s; }
button.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.upload-item .cover-btn { top: auto; right: auto; left: 4px; bottom: 4px; }
span.thumb { display: inline-block; }
button.link-arrow { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; font-weight: 600; }
.listing-grid > .empty { grid-column: 1 / -1; }
/* Home: nav pill sits inset inside the hero panel */
body:has(.hero) .site-header { margin-top: 26px; padding-inline: calc(var(--gutter) + 14px); }
body:has(.hero) .hero { margin-top: -94px; padding-top: 12px; }
@media (max-width: 1120px) { body:has(.hero) .hero { margin-top: -88px; } }
@media (max-width: 860px) { body:has(.hero) .site-header { padding-inline: calc(var(--gutter) + 10px); } }
#auth-alert:not(:empty) { margin-bottom: 18px; }
.table .thumb { max-width: none; min-width: 64px; }

/* Auth: role-specific photo crossfade and copy */
.auth__media img.bg { opacity: 0; transition: opacity 0.7s var(--ease), transform 1.2s var(--ease); transform: scale(1.03); }
.auth__media img.bg.is-active { opacity: 1; transform: none; }
.auth__copy:not([hidden]) { animation: fade-up 0.6s var(--ease); }
@media (prefers-reduced-motion: reduce) { .auth__media img.bg { transition: none; transform: none; } .auth__copy:not([hidden]) { animation: none; } }
.lcard__title--lg { font-size: 19px; letter-spacing: -0.01em; }
.lcard__price--sm { font-size: 18px; }
.search-bar--projects { grid-template-columns: 1.6fr 1fr 1fr 1fr auto; }
@media (max-width: 1080px) { .search-bar--projects { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .search-bar--projects { grid-template-columns: 1fr; } }
.panel--brand { background: var(--brand); }
.panel--brand p { color: #2a1406; }
.auth__media { position: sticky; top: 16px; align-self: start; height: calc(100dvh - 32px); }
/* Only pin the detail sidebar when the screen is tall enough to show all of it */
@media (max-height: 959px) { .detail__aside { position: static; } }
@media (max-width: 1240px) { .nav__login { font-size: 15px; padding: 8px 10px; } }

/* ---------- Floating WhatsApp bubble (public pages) ---------- */
.wa-bubble {
  position: fixed; z-index: 55; /* above nav (50), below mobile menu (60) and toasts (80) */
  right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 0;
  height: 60px; padding: 0; border-radius: var(--r-pill);
  background: #25d366; color: #fff; text-decoration: none;
  box-shadow: 0 12px 28px -8px rgb(18 140 70 / 0.55), 0 2px 6px rgb(0 0 0 / 0.08);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.2s;
}
.wa-bubble__icon { width: 60px; height: 60px; display: grid; place-items: center; flex: none; }
.wa-bubble__icon .ph { font-size: 32px; }
.wa-bubble__label {
  max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 600; font-size: 16px; opacity: 0;
  transition: max-width 0.45s var(--ease), opacity 0.3s, padding 0.45s var(--ease);
}
.wa-bubble:hover, .wa-bubble:focus-visible { background: #1ebe5b; box-shadow: 0 16px 34px -8px rgb(18 140 70 / 0.65), 0 2px 6px rgb(0 0 0 / 0.1); }
.wa-bubble:hover .wa-bubble__label, .wa-bubble:focus-visible .wa-bubble__label, .wa-bubble.is-peek .wa-bubble__label { max-width: 160px; opacity: 1; padding-left: 22px; }
.wa-bubble:active { transform: scale(0.96); }
.wa-bubble::before {
  content: ""; position: absolute; right: 0; bottom: 0; width: 60px; height: 60px; border-radius: 50%;
  border: 2px solid #25d366; opacity: 0; pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .wa-bubble { animation: wa-in 0.7s var(--ease) 0.8s backwards; }
  .wa-bubble::before { animation: wa-ring 1.8s var(--ease) 1.6s 2; }
}
@keyframes wa-in { from { opacity: 0; transform: translateY(16px) scale(0.85); } to { opacity: 1; transform: none; } }
@keyframes wa-ring { 0% { opacity: 0.7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6); } }
@media (max-width: 640px) {
  .wa-bubble { height: 56px; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
  .wa-bubble__icon, .wa-bubble::before { width: 56px; height: 56px; }
  .wa-bubble__icon .ph { font-size: 30px; }
}
/* Keep the footer's last row clear of the bubble */
body:has(.wa-bubble) .site-footer { padding-bottom: 92px; }
