/* ============================================
   PIPS IMMOBILIER — Luxury White Theme
   ============================================ */

/* ---- Tokens ---- */
:root {
  /* Colors */
  --bg: #FFFFFF;
  --bg-soft: #FAF8F4;
  --bg-muted: #F2EFE9;
  --bg-dark: #0E0E10;

  --fg: #0E0E10;
  --fg-muted: #6B6A6E;
  --fg-subtle: #A3A19F;
  --fg-inverse: #FFFFFF;

  --accent: #B8956A;
  --accent-dark: #8E6F4A;
  --accent-soft: #F0E6D6;

  --border: rgba(14, 14, 16, 0.08);
  --border-strong: rgba(14, 14, 16, 0.16);
  --border-soft: rgba(14, 14, 16, 0.04);

  --success: #2F7A4D;
  --warning: #C97A2B;
  --danger: #B23A3A;

  /* Type */
  --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Space (4-base) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-6: 24px;
  --s-8: 32px;
  --s-12: 48px;
  --s-16: 64px;
  --s-24: 96px;
  --s-32: 128px;

  /* Radii */
  --r-1: 4px;
  --r-2: 8px;
  --r-3: 12px;
  --r-4: 16px;
  --r-6: 24px;
  --r-full: 9999px;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(14, 14, 16, 0.04);
  --shadow-md: 0 4px 12px rgba(14, 14, 16, 0.06), 0 1px 2px rgba(14, 14, 16, 0.04);
  --shadow-lg: 0 24px 48px -12px rgba(14, 14, 16, 0.12), 0 4px 12px rgba(14, 14, 16, 0.04);
  --shadow-xl: 0 40px 80px -20px rgba(14, 14, 16, 0.18);

  /* Layout */
  --max-w: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss03', 'ss01';
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--accent); color: white; }

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---- Type ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--accent);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--fg);
}
h1 { font-size: clamp(40px, 6vw, 80px); }
h2 { font-size: clamp(32px, 4.5vw, 56px); letter-spacing: -0.025em; }
h3 { font-size: clamp(22px, 2.5vw, 28px); }
h4 { font-size: 18px; letter-spacing: -0.01em; }

.italic-accent { font-style: italic; color: var(--accent-dark); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--r-full);
  transition: all 0.4s var(--ease-out-expo);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--fg);
  color: var(--fg-inverse);
}
.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn--accent {
  background: var(--accent);
  color: white;
}
.btn--accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(184, 149, 106, 0.32);
}
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  background: var(--fg);
  color: var(--fg-inverse);
}
.btn--sm { padding: 10px 18px; font-size: 13px; }
.btn--lg { padding: 18px 36px; font-size: 15px; }
.btn--icon { padding: 12px; aspect-ratio: 1; }

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--s-3) 0;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.4s var(--ease-out-expo);
}
.nav.is-scrolled {
  padding: var(--s-2) 0;
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-8);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-shrink: 0;
}
.nav__logo-circle {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #FAF8F4;
  background-image: url('../assets/logo.png');
  background-repeat: no-repeat;
  background-position: 50% 32%;
  background-size: 132% auto;
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(14,14,16,0.08), inset 0 0 0 3px rgba(255,255,255,0.6);
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
  flex-shrink: 0;
}
.nav__brand:hover .nav__logo-circle {
  transform: scale(1.06) rotate(-4deg);
  box-shadow: 0 8px 24px rgba(184,149,106,0.22), inset 0 0 0 3px rgba(255,255,255,0.7);
}
.nav__brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.01em;
}
.nav__brand-text span:first-child { font-weight: 500; color: var(--fg); }
.nav__brand-text span:last-child {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-top: 5px;
  font-weight: 500;
}
.nav.is-scrolled .nav__logo-circle { width: 44px; height: 44px; }
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s-8);
  list-style: none;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  position: relative;
  transition: color 0.3s var(--ease-out-expo);
}
.nav__links a:hover { color: var(--fg); }
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease-out-expo);
}
.nav__links a:hover::after { width: 100%; }
.nav__cta { display: flex; gap: var(--s-3); align-items: center; }
.nav__phone {
  font-size: 13px;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.nav__phone strong { color: var(--fg); font-weight: 500; }
.nav__menu-toggle { display: none; }

/* ---- HERO — full-bleed cinematic ---- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  overflow: hidden;
  color: white;
  background: #0A0A0C;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 var(--s-16);
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform-origin: 55% 55%;
  animation: heroKenBurns 24s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroKenBurns {
  0%   { transform: scale(1.04) translate(0%, 0%); }
  100% { transform: scale(1.14) translate(-1.5%, -1.2%); }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(10,10,12,0.55) 0%, rgba(10,10,12,0.10) 22%, rgba(10,10,12,0.00) 45%, rgba(10,10,12,0.40) 70%, rgba(10,10,12,0.85) 100%),
    linear-gradient(90deg, rgba(10,10,12,0.45) 0%, rgba(10,10,12,0.00) 55%);
  pointer-events: none;
}
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero__badge {
  position: absolute;
  top: 104px;
  right: var(--gutter);
  z-index: 6;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  color: var(--fg);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}
.hero__badge::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-out infinite;
}

.hero__content {
  position: relative;
  z-index: 5;
  margin-top: auto;
  padding-bottom: var(--s-24);
  max-width: 1080px;
}
.hero__title {
  color: white;
  font-size: clamp(56px, 9vw, 132px);
  margin: var(--s-6) 0 0;
  line-height: 0.96;
  letter-spacing: -0.04em;
}
.hero__title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  margin-right: 0.16em;
}
.hero__title .word__inner {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
}
.hero__title em.italic-accent,
.hero__title .italic-accent {
  color: #E8C9A0;
  font-style: italic;
  font-weight: 300;
}

/* ---- SEARCH SECTION — rising sheet over hero ---- */
.search-section {
  position: relative;
  z-index: 10;
  padding: var(--s-12) 0 var(--s-16);
  margin-top: -80px;
  background: var(--bg);
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -24px 60px rgba(0,0,0,0.18);
}
.search-section__head {
  text-align: center;
  margin-bottom: var(--s-8);
}
.search-section__head .eyebrow { justify-content: center; }
.search-section__head .eyebrow::before { display: none; }
.search-section__head h2 {
  margin-top: var(--s-3);
  font-size: clamp(28px, 3.5vw, 44px);
}

.search-panel--floating {
  background: white !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 32px 64px -20px rgba(0,0,0,0.18), 0 8px 16px rgba(0,0,0,0.06) !important;
  max-width: 1080px;
  margin: 0 auto;
}

.hero__scroll-cue {
  position: absolute;
  bottom: var(--s-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 28px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 14px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.3s var(--ease-out-expo);
  opacity: 0;
  animation: cueIn 1s var(--ease-out-expo) 2s forwards;
}
.hero__scroll-cue:hover { border-color: rgba(255,255,255,0.8); }
.hero__scroll-cue span {
  width: 3px; height: 8px;
  background: rgba(255,255,255,0.8);
  border-radius: var(--r-full);
  animation: cueScroll 1.8s var(--ease-out-expo) infinite;
}
@keyframes cueIn { to { opacity: 1; } }
@keyframes cueScroll {
  0%   { transform: translateY(-8px); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}

/* ---- Senior animations ---- */
.anim-up {
  animation: animUp 1s var(--ease-out-expo) calc(var(--i, 0) * 0.08s + 0.2s) forwards;
}
@keyframes animUp {
  to { opacity: 1; transform: translateY(0); }
}

.anim-word {
  animation: animWord 1.1s var(--ease-out-expo) calc(var(--i, 0) * 0.08s + 0.3s) forwards;
}
@keyframes animWord {
  to { transform: translateY(0); opacity: 1; }
}

.anim-float-in {
  opacity: 0;
  transform: translateX(40px) scale(0.9);
  animation: floatIn 1.2s var(--ease-out-expo) var(--d, 0s) forwards;
}
@keyframes floatIn {
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.anim-inset-in {
  opacity: 0;
  transform: translate(60px, 60px) rotate(8deg) scale(0.85);
  animation: insetIn 1.4s var(--ease-out-expo) var(--d, 0s) forwards;
}
@keyframes insetIn {
  to { opacity: 1; transform: translate(0,0) rotate(-2deg) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg { animation: none; }
  .anim-up, .anim-word, .anim-float-in, .anim-inset-in, .hero__scroll-cue {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .hero__title .word__inner { opacity: 1; transform: none; }
}

/* Search panel */
.search-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-4);
  padding: var(--s-6);
  box-shadow: var(--shadow-lg);
}

/* Horizontal glass variant for full-bleed hero */
.search-panel--horizontal {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--r-4);
  padding: var(--s-3) var(--s-3) var(--s-3) var(--s-6);
  box-shadow: 0 24px 64px -16px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,0,0,0.04);
}
.search-panel--horizontal .search-panel__tabs {
  margin-bottom: var(--s-4);
  padding-bottom: 0;
  border-bottom: 0;
  padding-left: 0;
}

.search-panel__tabs {
  display: flex;
  gap: var(--s-2);
  margin-bottom: var(--s-6);
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--s-3);
}
.search-tab {
  padding: var(--s-2) var(--s-4);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  border-radius: var(--r-full);
  transition: all 0.3s var(--ease-out-expo);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.search-tab.is-active {
  background: var(--bg-soft);
  color: var(--fg);
  border-color: var(--border);
}
.search-panel--horizontal .search-tab.is-active {
  background: var(--fg);
  color: white;
  border-color: var(--fg);
}
.search-tab:hover:not(.is-active) { color: var(--fg); }

.search-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}
.search-grid > .full { grid-column: 1 / -1; }

.search-grid--horizontal {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr auto;
  gap: 0;
  align-items: end;
}
.search-grid--horizontal .field {
  padding: 0 var(--s-4);
  border-right: 1px solid var(--border);
}
.search-grid--horizontal .field:first-child { padding-left: 0; }
.search-grid--horizontal .field:last-of-type { border-right: 0; }
.search-grid--horizontal .field label {
  font-size: 10px;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}
.search-grid--horizontal .field input,
.search-grid--horizontal .field select {
  background: transparent;
  border: 0;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
}
.search-grid--horizontal .field input:focus,
.search-grid--horizontal .field select:focus {
  background: transparent;
  box-shadow: none;
  outline: none;
}
.search-grid--horizontal .field select {
  background-position: right 0 center;
  padding-right: 20px;
}
.search-grid--horizontal .search-panel__btn {
  margin-left: var(--s-3);
  padding: 18px 28px;
  width: auto;
  margin-top: 0;
  height: 60px;
  border-radius: var(--r-3);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-2);
  font-size: 14px;
  color: var(--fg);
  transition: all 0.3s var(--ease-out-expo);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 4px rgba(184,149,106,0.10);
}
.field textarea { resize: vertical; min-height: 100px; }
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%236B6A6E' stroke-width='1.5' d='M1 1l5 5 5-5'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

.search-panel__btn { width: 100%; margin-top: var(--s-4); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47,122,77,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(47,122,77,0); }
}

/* Stats section (extracted from hero) */
.stats-section {
  padding: var(--s-12) 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-8);
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat__num em {
  font-size: 0.6em;
  color: var(--accent);
  font-style: normal;
}
.stat__label {
  font-size: 12px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 4px;
}

/* ---- Sections ---- */
section { padding: var(--s-24) 0; }
.section__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: var(--s-12);
  gap: var(--s-8);
  flex-wrap: wrap;
}
.section__head-content { max-width: 720px; }
.section__head h2 { margin-top: var(--s-4); }
.section__head p {
  font-size: 17px;
  color: var(--fg-muted);
  margin-top: var(--s-4);
  max-width: 560px;
}

/* ---- Listings — master grade ---- */
.listings-section { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%); }

.listings-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s-12);
  gap: var(--s-6);
  flex-wrap: wrap;
  padding: var(--s-3);
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 88px;
  z-index: 20;
}
.listings-controls {
  display: flex;
  gap: var(--s-1);
  flex-wrap: wrap;
}
.chip {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  background: transparent;
  color: var(--fg-muted);
  transition: all 0.4s var(--ease-out-expo);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}
.chip:hover { color: var(--fg); background: var(--bg-soft); }
.chip.is-active {
  background: var(--fg);
  color: var(--fg-inverse);
  border-color: var(--fg);
}
.chip__count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-muted);
  border-radius: var(--r-full);
  color: var(--fg-muted);
  transition: all 0.3s var(--ease-out-expo);
}
.chip.is-active .chip__count { background: rgba(255,255,255,0.18); color: white; }
.chip--fav.is-active { background: var(--accent); border-color: var(--accent); }

.listings-sort {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding-right: var(--s-4);
}
.listings-sort__label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.listings-sort select {
  padding: 8px 28px 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-2);
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%236B6A6E' stroke-width='1.5' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
}
.listings-sort select:hover { border-color: var(--border-strong); }
.listings-sort select:focus { outline: none; border-color: var(--accent); }

.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
  perspective: 1200px;
}

.card {
  --rx: 0deg;
  --ry: 0deg;
  --tx: 0;
  --ty: 0;
  background: white;
  border-radius: var(--r-4);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  cursor: pointer;
  position: relative;
  transform: rotateY(var(--rx)) rotateX(var(--ry)) translate3d(0,0,0);
  transition: transform 0.7s var(--ease-out-expo), box-shadow 0.7s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo);
  transform-style: preserve-3d;
  will-change: transform;
}
.card.is-tilting { transition: transform 0.08s linear, box-shadow 0.5s var(--ease-out-expo); }
.card:hover {
  box-shadow: 0 32px 64px -16px rgba(14,14,16,0.18), 0 8px 16px rgba(14,14,16,0.06);
  border-color: var(--border);
}

/* Stagger entrance */
.card.reveal-card {
  opacity: 0;
  transform: translateY(40px) rotateX(8deg);
}
.card.reveal-card.is-visible {
  animation: cardIn 1s var(--ease-out-expo) calc(var(--i, 0) * 0.08s) forwards;
}
@keyframes cardIn {
  to { opacity: 1; transform: translateY(0) rotateX(0); }
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-muted);
  transform: translateZ(0);
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out-expo), filter 0.6s var(--ease-out-expo);
  transform-origin: center center;
}
.card:hover .card__media img { transform: scale(1.08); }

/* Editorial number badge */
.card__num {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  z-index: 3;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  color: white;
  letter-spacing: 0.1em;
  background: rgba(14,14,16,0.55);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,0.15);
}

.card__tag {
  position: absolute;
  top: var(--s-3);
  left: 60px;
  z-index: 3;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r-full);
  color: var(--accent-dark);
  border: 1px solid rgba(184,149,106,0.18);
}

.card__fav {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  z-index: 4;
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: all 0.3s var(--ease-out-expo);
  color: var(--fg);
  cursor: pointer;
}
.card__fav:hover { background: white; transform: scale(1.1); }
.card__fav svg { transition: all 0.4s var(--ease-out-expo); }
.card__fav.is-active {
  background: var(--accent);
  color: white;
}
.card__fav.is-active svg {
  fill: white;
  stroke: white;
  animation: favBurst 0.6s var(--ease-out-expo);
}
@keyframes favBurst {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.45); }
  60%  { transform: scale(0.85); }
  100% { transform: scale(1); }
}

/* CTA reveal at bottom of media on hover */
.card__cta {
  position: absolute;
  left: var(--s-3);
  right: var(--s-3);
  bottom: var(--s-3);
  z-index: 3;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  padding: 10px 16px;
  border-radius: var(--r-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}
.card__cta svg { transition: transform 0.4s var(--ease-out-expo); }
.card:hover .card__cta { opacity: 1; transform: translateY(0); }
.card:hover .card__cta svg { transform: translateX(4px); }

/* Image gradient overlay (legibility for CTA) */
.card__media::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.25));
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-expo);
  pointer-events: none;
}
.card:hover .card__media::after { opacity: 1; }

.card__body {
  padding: var(--s-6);
  position: relative;
}
.card__loc {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--fg-muted);
  margin-bottom: var(--s-2);
}
.card__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: var(--s-4);
  line-height: 1.2;
  transition: color 0.3s var(--ease-out-expo);
}
.card:hover .card__title { color: var(--accent-dark); }

.card__price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--s-4);
  gap: var(--s-2);
}
.card__price {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1;
}
.card__price em {
  font-style: normal;
  color: var(--fg-muted);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 4px;
}
.card__pricepm {
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.card__meta {
  display: flex;
  gap: var(--s-2);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--fg-muted);
}
.card__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--bg-soft);
  border-radius: var(--r-2);
  flex: 1;
  justify-content: center;
  transition: all 0.3s var(--ease-out-expo);
}
.card:hover .card__meta-item { background: var(--bg-muted); }
.card__meta-item strong { color: var(--fg); font-weight: 600; }
.card__meta-item svg { color: var(--accent-dark); }

/* CTA divider line */
.listings-cta {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  margin-top: var(--s-16);
}
.listings-cta__line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Quickview modal */
.quickview {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding: var(--s-6);
}
.quickview.is-open { pointer-events: auto; }
.quickview__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14,14,16,0.6);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-expo);
}
.quickview.is-open .quickview__backdrop { opacity: 1; }
.quickview__panel {
  position: relative;
  background: white;
  border-radius: var(--r-4);
  max-width: 960px;
  width: 100%;
  max-height: 92vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  box-shadow: 0 48px 96px rgba(0,0,0,0.4);
  opacity: 0;
  transform: scale(0.96) translateY(20px);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
.quickview.is-open .quickview__panel { opacity: 1; transform: scale(1) translateY(0); }
.quickview__close {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  z-index: 5;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease-out-expo);
}
.quickview__close:hover { transform: rotate(90deg) scale(1.05); }
.quickview__media {
  position: relative;
  background: var(--bg-muted);
  overflow: hidden;
}
.quickview__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}
.quickview__tag {
  position: absolute;
  top: var(--s-4);
  left: var(--s-4);
  background: rgba(255,255,255,0.95);
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.quickview__body { padding: var(--s-12); display: flex; flex-direction: column; }
.quickview__loc {
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}
.quickview__title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: var(--s-3) 0 var(--s-6);
}
.quickview__price {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-6);
}
.quickview__price em {
  font-style: normal;
  color: var(--fg-muted);
  font-size: 14px;
  margin-left: 6px;
}
.quickview__meta {
  display: flex;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
  padding: var(--s-4);
  background: var(--bg-soft);
  border-radius: var(--r-3);
}
.quickview__meta div {
  flex: 1;
  text-align: center;
}
.quickview__meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
}
.quickview__meta span {
  font-size: 11px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.quickview__desc {
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: var(--s-8);
  flex: 1;
}
.quickview__actions {
  display: flex;
  gap: var(--s-3);
}
.quickview__actions .btn { flex: 1; }

/* ---- Services ---- */
.services {
  background: var(--bg-soft);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-1);
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-4);
  overflow: hidden;
}
.service {
  background: white;
  padding: var(--s-8);
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}
.service:hover { background: var(--bg-soft); }
.service__icon {
  width: 56px; height: 56px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: var(--r-3);
  display: grid; place-items: center;
  margin-bottom: var(--s-6);
  transition: all 0.4s var(--ease-out-expo);
}
.service:hover .service__icon { background: var(--accent); color: white; transform: rotate(-4deg) scale(1.05); }
.service h3 { margin-bottom: var(--s-3); }
.service p { color: var(--fg-muted); font-size: 15px; }
.service__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--s-6);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-dark);
}
.service__link:hover { color: var(--fg); }

/* ---- Booking ---- */
.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s-12);
  align-items: start;
}
.booking__visual {
  position: sticky;
  top: 100px;
  border-radius: var(--r-4);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}
.booking__visual img { width: 100%; height: 100%; object-fit: cover; }

.form-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-4);
  padding: var(--s-8);
}
.form-card__title {
  margin-bottom: var(--s-2);
}
.form-card__sub {
  color: var(--fg-muted);
  margin-bottom: var(--s-8);
  font-size: 15px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
}
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }
.form-row.full { grid-template-columns: 1fr; }
.form-row .field { margin-bottom: 0; }

/* Time slots */
.time-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-2);
  margin-top: 6px;
}
.slot {
  padding: 10px;
  font-size: 13px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-2);
  text-align: center;
  transition: all 0.3s var(--ease-out-expo);
  cursor: pointer;
}
.slot:hover { border-color: var(--border-strong); }
.slot.is-active { background: var(--fg); color: white; border-color: var(--fg); }

.consent {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  margin-top: var(--s-4);
  font-size: 13px;
  color: var(--fg-muted);
}
.consent input { margin-top: 4px; accent-color: var(--accent); }

/* ---- Propose Property ---- */
.propose {
  background: var(--bg-dark);
  color: white;
}
.propose .eyebrow { color: var(--accent); }
.propose h2 { color: white; }
.propose .section__head p { color: rgba(255,255,255,0.65); }

.propose-card {
  background: white;
  color: var(--fg);
  border-radius: var(--r-6);
  padding: var(--s-12);
  box-shadow: var(--shadow-xl);
}

/* Photo upload */
.photo-uploader {
  border: 2px dashed var(--border-strong);
  border-radius: var(--r-3);
  padding: var(--s-8);
  text-align: center;
  background: var(--bg-soft);
  transition: all 0.3s var(--ease-out-expo);
  cursor: pointer;
  position: relative;
}
.photo-uploader:hover,
.photo-uploader.is-dragging {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.photo-uploader input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.photo-uploader__icon {
  width: 56px; height: 56px;
  background: white;
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto var(--s-4);
  color: var(--accent-dark);
  box-shadow: var(--shadow-sm);
}
.photo-uploader strong { font-weight: 500; display: block; margin-bottom: 4px; }
.photo-uploader span { font-size: 13px; color: var(--fg-muted); }
.photo-uploader em {
  font-style: normal;
  color: var(--accent-dark);
  font-weight: 500;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-2);
  margin-top: var(--s-4);
}
.photo-thumb {
  aspect-ratio: 1;
  border-radius: var(--r-2);
  overflow: hidden;
  position: relative;
  background: var(--bg-muted);
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb__remove {
  position: absolute;
  top: 4px; right: 4px;
  width: 24px; height: 24px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px;
  transition: all 0.2s var(--ease-out-expo);
}
.photo-thumb__remove:hover { background: var(--danger); color: white; }

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: 6px;
}
.check {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
}
.check input { display: none; }
.check.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-dark);
}

/* Toast */
.toast {
  position: fixed;
  bottom: var(--s-6);
  right: var(--s-6);
  background: var(--fg);
  color: white;
  padding: var(--s-4) var(--s-6);
  border-radius: var(--r-3);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.5s var(--ease-out-expo);
  max-width: 400px;
}
.toast.is-show { transform: translateY(0); opacity: 1; }
.toast__icon {
  width: 32px; height: 32px;
  background: var(--success);
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
}

/* ---- About ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-16);
  align-items: center;
}
.about__visual { position: relative; }
.about__visual img {
  border-radius: var(--r-4);
  box-shadow: var(--shadow-xl);
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.about__quote {
  position: absolute;
  bottom: -32px;
  right: -32px;
  background: white;
  padding: var(--s-6);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-lg);
  max-width: 300px;
  border: 1px solid var(--border);
}
.about__quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: var(--s-3);
  color: var(--fg);
}
.about__quote cite {
  font-style: normal;
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about__features {
  list-style: none;
  margin-top: var(--s-8);
  display: grid;
  gap: var(--s-4);
}
.about__features li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: 15px;
  color: var(--fg-muted);
}
.about__features svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 4px;
}

/* ---- Testimonials — 3D Framer-style ---- */
.testimonials {
  background: radial-gradient(ellipse at top, #1A1A1F 0%, #0A0A0C 60%);
  color: white;
  position: relative;
  overflow: hidden;
  padding-bottom: var(--s-32);
}
.testimonials__bg-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 60vh;
  background: radial-gradient(ellipse, rgba(184,149,106,0.18) 0%, transparent 60%);
  pointer-events: none;
  filter: blur(80px);
  z-index: 0;
}
.testimonials__head {
  text-align: center;
  margin-bottom: var(--s-16);
  position: relative;
  z-index: 2;
}
.testimonials__head .eyebrow { justify-content: center; }
.testimonials__head .eyebrow::before { display: none; }
.testimonials__head h2 {
  color: white;
  margin: var(--s-4) auto var(--s-8);
  max-width: 720px;
}
.testimonials__rating {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-full);
  backdrop-filter: blur(12px);
}
.rating-stars { display: inline-flex; gap: 2px; color: var(--accent); }
.rating-stars svg { width: 16px; height: 16px; }
.rating-text { font-size: 13px; color: rgba(255,255,255,0.7); }
.rating-text strong { color: white; font-weight: 600; }
.rating-text span { color: rgba(255,255,255,0.55); }

/* 3D stage */
.testimonials-3d {
  position: relative;
  z-index: 2;
  perspective: 1600px;
  perspective-origin: 50% 30%;
}
.testimonials-3d__stage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: var(--s-6);
  transform-style: preserve-3d;
  transform: rotateX(var(--scrollX, 0deg)) rotateY(calc(var(--mx, 0) * 4deg));
  transition: transform 0.4s var(--ease-out-expo);
}

.t-card {
  --hoverZ: 0;
  --hoverRY: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--r-4);
  padding: var(--s-8);
  position: relative;
  transform-style: preserve-3d;
  transform:
    translate3d(0, var(--offy, 0), var(--depth, 0))
    rotateY(calc(var(--rot, 0deg) + var(--hoverRY) * 1deg))
    translateZ(calc(var(--hoverZ) * 1px));
  transition: transform 0.7s var(--ease-out-expo), box-shadow 0.7s var(--ease-out-expo), background 0.5s var(--ease-out-expo), border-color 0.5s var(--ease-out-expo);
  cursor: default;
  will-change: transform;
  animation: tFloat 8s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.5s);
}
@keyframes tFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -8px; }
}
.t-card--featured {
  background: rgba(255,255,255,0.07);
  border-color: rgba(184,149,106,0.30);
  box-shadow: 0 24px 64px -16px rgba(0,0,0,0.5);
}
.t-card:hover {
  --hoverZ: 100;
  --hoverRY: 0;
  background: rgba(255,255,255,0.10);
  border-color: rgba(184,149,106,0.45);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(184,149,106,0.30);
  z-index: 10;
}

.t-card__quote {
  position: absolute;
  top: -8px;
  right: var(--s-6);
  font-family: var(--font-display);
  font-size: 96px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.32;
  transform: translateZ(20px);
  pointer-events: none;
}
.t-card__stars {
  color: var(--accent);
  letter-spacing: 3px;
  font-size: 14px;
  margin-bottom: var(--s-4);
  transform: translateZ(15px);
}
.t-card__text {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255,255,255,0.92);
  margin-bottom: var(--s-6);
  position: relative;
  z-index: 2;
  transform: translateZ(20px);
}
.t-card--featured .t-card__text { font-size: 19px; }

.t-card__author {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid rgba(255,255,255,0.10);
  transform: translateZ(15px);
}
.t-card__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.t-card__name { font-weight: 500; font-size: 14px; color: white; }
.t-card__role { font-size: 12px; color: rgba(255,255,255,0.55); }

/* ---- Footer ---- */
.footer {
  background: var(--bg-dark);
  color: white;
  padding: var(--s-16) 0 var(--s-6);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--s-12);
  padding-bottom: var(--s-12);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand h3 {
  color: white;
  font-size: 32px;
  margin-bottom: var(--s-4);
}
.footer__logo {
  width: 140px;
  height: auto;
  margin-bottom: var(--s-6);
  background: white;
  border-radius: var(--r-3);
  padding: var(--s-3);
  display: block;
}
.footer__brand p { color: rgba(255,255,255,0.6); margin-bottom: var(--s-6); max-width: 320px; }
.footer__newsletter {
  display: flex;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-full);
  padding: 4px;
  max-width: 360px;
}
.footer__newsletter input {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 12px 18px;
  color: white;
  font-size: 14px;
}
.footer__newsletter input::placeholder { color: rgba(255,255,255,0.4); }
.footer__newsletter button {
  background: var(--accent);
  color: white;
  padding: 10px 22px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s var(--ease-out-expo);
}
.footer__newsletter button:hover { background: var(--accent-dark); }
.footer__col h4 {
  color: white;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
  color: var(--accent);
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: var(--s-3); }
.footer__col a {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  transition: color 0.3s;
}
.footer__col a:hover { color: white; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s-6);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: var(--s-4);
}
.footer__legal { display: flex; gap: var(--s-6); }
.footer__legal a { color: rgba(255,255,255,0.5); }
.footer__legal a:hover { color: white; }

/* ---- Reveal animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---- Modal ---- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--s-6);
  background: rgba(14,14,16,0.5);
  backdrop-filter: blur(8px);
}
.modal.is-open { display: flex; }
.modal__panel {
  background: white;
  border-radius: var(--r-4);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: var(--shadow-xl);
}
.modal__close {
  position: absolute;
  top: var(--s-4); right: var(--s-4);
  width: 36px; height: 36px;
  background: white;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
}

/* ============================================
   ADMIN PANEL
   ============================================ */
.admin-body { background: var(--bg-soft); min-height: 100vh; }

/* Login */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-6);
}
.login-card {
  background: white;
  padding: var(--s-12);
  border-radius: var(--r-4);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  max-width: 420px;
  width: 100%;
}
.login-card__brand {
  text-align: center;
  margin-bottom: var(--s-8);
}
.login-card__logo {
  width: 160px;
  height: auto;
  margin: 0 auto var(--s-4);
  display: block;
}
.login-card__brand p {
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

/* Admin layout */
.admin {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--fg);
  color: white;
  padding: var(--s-8);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-12);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar__logo {
  width: 130px;
  height: auto;
  background: white;
  border-radius: var(--r-3);
  padding: var(--s-3);
  display: block;
}
.sidebar__nav { display: flex; flex-direction: column; gap: var(--s-1); }
.sidebar__nav button {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 12px var(--s-4);
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  border-radius: var(--r-2);
  transition: all 0.3s var(--ease-out-expo);
  text-align: left;
  width: 100%;
}
.sidebar__nav button:hover { background: rgba(255,255,255,0.06); color: white; }
.sidebar__nav button.is-active {
  background: var(--accent);
  color: white;
}
.sidebar__nav .badge {
  margin-left: auto;
  background: rgba(255,255,255,0.12);
  padding: 2px 8px;
  border-radius: var(--r-full);
  font-size: 11px;
}
.sidebar__nav button.is-active .badge { background: rgba(255,255,255,0.2); }
.sidebar__footer {
  position: absolute;
  bottom: var(--s-8);
  left: var(--s-8);
  right: var(--s-8);
}
.sidebar__footer button {
  width: 100%;
  padding: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-2);
  transition: all 0.3s;
}
.sidebar__footer button:hover { color: white; border-color: rgba(255,255,255,0.3); }

.main {
  padding: var(--s-8) var(--s-12);
  max-width: 100%;
  overflow: hidden;
}
.main__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s-8);
  flex-wrap: wrap;
  gap: var(--s-4);
}
.main__head h1 {
  font-size: 32px;
  letter-spacing: -0.02em;
}
.main__head-actions { display: flex; gap: var(--s-3); }

/* KPI cards */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  margin-bottom: var(--s-8);
}
.kpi {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  padding: var(--s-6);
  position: relative;
}
.kpi__label {
  font-size: 12px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--s-2);
}
.kpi__value {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.kpi__delta {
  font-size: 12px;
  color: var(--success);
  margin-top: var(--s-2);
  display: flex;
  align-items: center;
  gap: 4px;
}
.kpi__icon {
  position: absolute;
  top: var(--s-6);
  right: var(--s-6);
  width: 40px; height: 40px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: var(--r-2);
  display: grid; place-items: center;
}

/* Filter bar */
.filter-bar {
  display: flex;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
  background: white;
  padding: var(--s-3);
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  align-items: center;
  flex-wrap: wrap;
}
.filter-bar input {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  background: var(--bg-soft);
  border: 0;
  border-radius: var(--r-2);
  font-size: 14px;
}
.filter-bar input:focus { outline: 2px solid var(--accent); }
.filter-bar select {
  padding: 10px 14px;
  background: var(--bg-soft);
  border: 0;
  border-radius: var(--r-2);
  font-size: 14px;
}

/* Entry list */
.entry {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  margin-bottom: var(--s-3);
  overflow: hidden;
  transition: all 0.3s var(--ease-out-expo);
}
.entry:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.entry__head {
  padding: var(--s-4) var(--s-6);
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr auto;
  gap: var(--s-4);
  align-items: center;
  cursor: pointer;
}
.entry__id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--fg-muted);
  background: var(--bg-soft);
  padding: 4px 8px;
  border-radius: var(--r-1);
}
.entry__main strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
  font-weight: 500;
}
.entry__main span { font-size: 13px; color: var(--fg-muted); }
.entry__col { font-size: 13px; color: var(--fg-muted); }
.entry__col strong { display: block; color: var(--fg); font-weight: 500; font-size: 14px; }
.entry__status {
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.status-new { background: rgba(184,149,106,0.12); color: var(--accent-dark); }
.status-seen { background: rgba(107,106,110,0.12); color: var(--fg-muted); }
.status-contacted { background: rgba(47,122,77,0.12); color: var(--success); }
.status-archived { background: rgba(178,58,58,0.08); color: var(--danger); }

.entry__body {
  display: none;
  padding: 0 var(--s-6) var(--s-6);
  border-top: 1px solid var(--border);
}
.entry.is-open .entry__body { display: block; }
.entry__details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-6);
}
.detail__label {
  font-size: 11px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.detail__value { font-size: 14px; color: var(--fg); font-weight: 500; }
.entry__photos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-2);
  margin-top: var(--s-6);
}
.entry__photos img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-2);
  cursor: pointer;
  transition: transform 0.3s;
}
.entry__photos img:hover { transform: scale(1.05); }

.entry__actions {
  display: flex;
  gap: var(--s-2);
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.empty-state {
  text-align: center;
  padding: var(--s-24) var(--s-6);
  background: white;
  border-radius: var(--r-4);
  border: 1px dashed var(--border-strong);
}
.empty-state__icon {
  width: 64px; height: 64px;
  background: var(--bg-soft);
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto var(--s-4);
  color: var(--fg-muted);
}
.empty-state h3 { margin-bottom: var(--s-2); font-size: 22px; }
.empty-state p { color: var(--fg-muted); }

/* ============================================
   Admin entry sections (CRM-grade)
   ============================================ */
.entry__body { padding: 0 var(--s-6) var(--s-6); }
.entry-section {
  padding: var(--s-6) 0;
  border-top: 1px solid var(--border);
}
.entry-section:first-child { border-top: 0; padding-top: var(--s-6); }
.entry-section--inline { padding: var(--s-3) 0; }
.entry-section__title {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: var(--s-4);
}
.entry-section__title span:first-child {
  font-size: 14px;
  letter-spacing: normal;
  text-transform: none;
}
.entry-section__title em {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  font-weight: 400;
  color: var(--fg-subtle);
  margin-left: auto;
}
.entry-section__grid {
  display: grid;
  gap: var(--s-3);
}
.entry-section__grid.two   { grid-template-columns: repeat(2, 1fr); }
.entry-section__grid.three { grid-template-columns: repeat(3, 1fr); }
.entry-section__grid.four  { grid-template-columns: repeat(4, 1fr); }

.info-card {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-2);
  padding: var(--s-3) var(--s-4);
  transition: all 0.3s var(--ease-out-expo);
}
.info-card:hover { border-color: var(--border); background: white; }
.info-card--accent {
  background: var(--accent-soft);
  border-color: rgba(184,149,106,0.18);
}
.info-card--accent:hover { background: var(--accent-soft); border-color: rgba(184,149,106,0.32); }
.info-card--link a {
  color: var(--accent-dark);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.info-card--link a:hover { color: var(--fg); text-decoration: underline; }
.info-card__label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 4px;
  font-weight: 500;
}
.info-card__value {
  font-size: 14px;
  color: var(--fg);
  font-weight: 500;
  word-break: break-word;
}
.info-card__value em {
  font-style: normal;
  color: var(--fg-muted);
  font-size: 11px;
  font-weight: 400;
  margin-left: 2px;
}
.info-card__value.mono { font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.info-card__value .muted { color: var(--fg-subtle); font-weight: 400; font-style: italic; }

.ref-pill {
  display: inline-block;
  background: var(--bg-dark);
  color: white;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.time-pill {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
}
.feature-pill {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 5px 12px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(184,149,106,0.2);
}
.features-row { margin-top: var(--s-4); }
.features-pills { display: flex; flex-wrap: wrap; gap: 6px; }

.risk-pill {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--r-full);
  text-transform: uppercase;
}
.risk-low    { background: rgba(47,122,77,0.12); color: var(--success); }
.risk-medium { background: rgba(201,122,43,0.14); color: var(--warning); }
.risk-high   { background: rgba(178,58,58,0.14); color: var(--danger); }

.quote-block {
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  padding: var(--s-4) var(--s-6);
  font-family: var(--font-display);
  font-size: 16px;
  font-style: italic;
  color: var(--fg);
  border-radius: 0 var(--r-2) var(--r-2) 0;
  line-height: 1.6;
}

/* Notes */
.notes-list { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-3); }
.note {
  background: #FFFEF7;
  border: 1px solid #E8DCB4;
  border-radius: var(--r-2);
  padding: var(--s-3) var(--s-4);
}
.note__head {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: 6px;
  font-size: 11px;
}
.note__author { font-weight: 600; color: var(--fg); }
.note__date { color: var(--fg-muted); }
.note__delete {
  margin-left: auto;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: transparent;
  color: var(--fg-subtle);
  font-size: 14px;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}
.note__delete:hover { background: var(--danger); color: white; }
.note__body { font-size: 14px; color: var(--fg); line-height: 1.5; }
.note-empty {
  font-size: 13px;
  color: var(--fg-subtle);
  font-style: italic;
  padding: var(--s-3);
  text-align: center;
  background: var(--bg-soft);
  border-radius: var(--r-2);
  border: 1px dashed var(--border);
  margin-bottom: var(--s-3);
}
.note-form {
  display: flex;
  gap: var(--s-2);
  align-items: flex-end;
}
.note-input {
  flex: 1;
  padding: 10px 14px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-2);
  font-size: 13px;
  font-family: var(--font-body);
  resize: vertical;
  min-height: 44px;
}
.note-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(184,149,106,0.10); }

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: var(--s-3); padding-left: var(--s-2); }
.timeline__item {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  position: relative;
  padding-left: var(--s-4);
}
.timeline__item::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 16px;
  bottom: -16px;
  width: 1px;
  background: var(--border);
}
.timeline__item:last-child::before { display: none; }
.timeline__dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 0 1px var(--border-strong);
}
.timeline__dot.status-new       { background: var(--accent); }
.timeline__dot.status-seen      { background: var(--fg-muted); }
.timeline__dot.status-contacted { background: var(--success); }
.timeline__dot.status-archived  { background: var(--danger); }
.timeline__content { font-size: 13px; }
.timeline__content strong { display: block; color: var(--fg); font-weight: 500; }
.timeline__content span { color: var(--fg-muted); font-size: 12px; }

/* Meta rows */
.meta-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--s-3);
  background: var(--bg-soft);
  border-radius: var(--r-2);
  border: 1px solid var(--border-soft);
}
.meta-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 500;
}
.meta-value { font-size: 13px; color: var(--fg); font-weight: 500; word-break: break-all; }
.meta-value.mono { font-family: 'JetBrains Mono', monospace; font-size: 11px; }

/* Consent badge */
.consent-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 500;
}
.consent-badge--ok { background: rgba(47,122,77,0.10); color: var(--success); }
.consent-badge--ko { background: rgba(178,58,58,0.10); color: var(--danger); }

/* Action divider */
.action-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 var(--s-1);
}

/* Mobile drawer toggle */
.admin-mobile-bar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--fg);
  color: white;
  padding: var(--s-3) var(--s-4);
  align-items: center;
  justify-content: space-between;
}
.admin-mobile-bar__brand {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-size: 16px;
}
.admin-mobile-bar__brand img {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: white;
  padding: 2px;
}
.admin-mobile-bar__menu {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r-2);
  background: rgba(255,255,255,0.1);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--s-6);
  background: rgba(0,0,0,0.92);
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--r-3);
}
.lightbox__close {
  position: absolute;
  top: var(--s-6); right: var(--s-6);
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: grid; place-items: center;
  color: white;
}

/* ============================================
   Cinematic 4K banner
   ============================================ */
.cinematic {
  position: relative;
  height: 88vh;
  min-height: 640px;
  max-height: 880px;
  overflow: hidden;
  padding: 0;
  background: #0A0A0C;
  color: white;
  display: flex;
  align-items: flex-end;
}
.cinematic__slides {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.cinematic__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s var(--ease-out-expo);
}
.cinematic__slide.is-active {
  opacity: 1;
  animation: kenBurns 8.5s ease-out forwards;
}
@keyframes kenBurns {
  0%   { transform: scale(1.08) translate(0, 0); }
  100% { transform: scale(1.18) translate(-1.2%, -1.2%); }
}
.cinematic__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(10,10,12,0.30) 0%, rgba(10,10,12,0.10) 35%, rgba(10,10,12,0.78) 100%),
    linear-gradient(90deg, rgba(10,10,12,0.55) 0%, rgba(10,10,12,0.20) 60%, transparent 100%);
}
.cinematic__grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.10;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.cinematic__content {
  position: relative;
  z-index: 5;
  width: 100%;
  padding-bottom: var(--s-12);
  padding-top: var(--s-12);
}
.cinematic__title {
  color: white;
  font-size: clamp(40px, 5.5vw, 76px);
  margin: var(--s-4) 0 var(--s-6);
  max-width: 920px;
  line-height: 1.04;
}
.cinematic__title em.italic-accent { color: #E8C9A0; font-style: italic; }
.cinematic__lede {
  color: rgba(255,255,255,0.78);
  font-size: 17px;
  max-width: 540px;
  margin-bottom: var(--s-12);
  line-height: 1.6;
}

.cinematic__meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-6);
  align-items: center;
  padding-top: var(--s-6);
  border-top: 1px solid rgba(255,255,255,0.18);
  max-width: 880px;
  margin-bottom: var(--s-6);
}
.cinematic__counter {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
}
.cinematic__counter-divider {
  color: rgba(255,255,255,0.35);
  font-size: 18px;
  margin: 0 4px;
}
.cinematic__counter span:last-child { color: rgba(255,255,255,0.55); font-size: 18px; }
.cinematic__progress {
  height: 1px;
  background: rgba(255,255,255,0.18);
  position: relative;
  overflow: hidden;
}
.cinematic__progress-bar {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent), #E8C9A0);
  transform-origin: left;
  transform: scaleX(0);
}
.cinematic__progress-bar.is-running {
  animation: cineProgress 6s linear forwards;
}
@keyframes cineProgress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.cinematic__caption {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  text-align: right;
}

.cinematic__dots {
  display: flex;
  gap: var(--s-2);
}
.cine-dot {
  width: 32px;
  height: 3px;
  background: rgba(255,255,255,0.25);
  border-radius: var(--r-full);
  transition: all 0.3s var(--ease-out-expo);
  cursor: pointer;
}
.cine-dot:hover { background: rgba(255,255,255,0.45); }
.cine-dot.is-active { background: var(--accent); width: 56px; }

.eyebrow--light {
  color: #E8C9A0;
}
.eyebrow--light::before { background: #E8C9A0; }

/* Booking visual card overlay */
.booking__visual { position: relative; }
.booking__visual-card {
  position: absolute;
  bottom: var(--s-6);
  left: var(--s-6);
  right: var(--s-6);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-radius: var(--r-3);
  padding: var(--s-4) var(--s-6);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  box-shadow: 0 24px 48px rgba(0,0,0,0.18);
}
.booking__visual-stat {
  font-size: 13px;
  color: var(--fg-muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.booking__visual-stat span {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.02em;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .hero__title { font-size: clamp(44px, 9vw, 88px); }
  .search-section { margin-top: -60px; border-radius: 24px 24px 0 0; }
  .search-grid--horizontal { grid-template-columns: 1fr 1fr; }
  .search-grid--horizontal .field { padding: var(--s-3) 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .search-grid--horizontal .field:nth-child(odd) { padding-right: var(--s-3); border-right: 1px solid var(--border); }
  .search-grid--horizontal .field:last-of-type { border-bottom: 0; }
  .search-grid--horizontal .search-panel__btn { grid-column: 1 / -1; margin-left: 0; margin-top: var(--s-3); width: 100%; }
  .search-panel--horizontal { padding: var(--s-4); }
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
  .listings-toolbar { flex-direction: column; align-items: stretch; padding: var(--s-3) var(--s-4); border-radius: var(--r-3); position: static; }
  .listings-controls { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .chip { flex-shrink: 0; }
  .listings-sort { padding-right: 0; justify-content: flex-end; }
  .quickview__panel { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
  .quickview__media img { min-height: 240px; max-height: 320px; }
  .quickview__body { padding: var(--s-8); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .booking-grid { grid-template-columns: 1fr; }
  .booking__visual { aspect-ratio: 16/9; position: static; }
  .about-grid { grid-template-columns: 1fr; gap: var(--s-12); }
  .footer__top { grid-template-columns: repeat(2, 1fr); }
  .stats-strip { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
  .testimonials-3d { perspective: none; }
  .testimonials-3d__stage {
    grid-template-columns: repeat(2, 1fr);
    transform: none !important;
  }
  .t-card {
    transform: none !important;
    animation: none !important;
  }
  .t-card:hover { transform: translateZ(0) !important; }
  .admin-mobile-bar { display: flex; }
  .admin { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    height: 100dvh;
    width: 280px;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.4s var(--ease-out-expo);
    box-shadow: 32px 0 64px rgba(0,0,0,0.18);
  }
  body.drawer-open { overflow: hidden; }
  body.drawer-open .sidebar { transform: translateX(0); }
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out-expo);
  }
  body.drawer-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
  .main { padding: var(--s-6); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  /* Admin entry sections collapse */
  .entry-section__grid.four  { grid-template-columns: repeat(2, 1fr); }
  .entry-section__grid.three { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .cinematic { height: 78vh; min-height: 560px; }
  .cinematic__meta { grid-template-columns: 1fr; gap: var(--s-3); text-align: left; }
  .cinematic__caption { text-align: left; }
}

/* ============================================
   Touch device — no hover (always-show CTAs)
   ============================================ */
@media (hover: none) and (pointer: coarse) {
  .card__cta { opacity: 1; transform: translateY(0); }
  .card__media::after { opacity: 0.45; }
  .card:hover { transform: none; }
  .nav__brand:hover .nav__logo-circle { transform: none; }
  /* clean: dead selector removed */
  .listings-toolbar { position: static !important; }
}

/* ============================================
   Anti-zoom iOS — inputs at 16px minimum
   ============================================ */
@media (max-width: 720px) {
  input, select, textarea { font-size: 16px !important; }
}

@media (max-width: 720px) {
  /* Mobile nav — show all buttons like desktop, on 2 rows */
  .nav { padding: 8px 0 0; background: rgba(255,255,255,0.92); }
  .nav.is-scrolled { background: rgba(255,255,255,0.96); padding: 6px 0 0; }
  .nav__brand-text { display: none; }
  .nav__logo-circle { width: 40px; height: 40px; }
  .container { padding-inline: 12px; }

  .nav__inner {
    flex-wrap: wrap;
    row-gap: 6px;
    gap: 8px;
    align-items: center;
  }
  .nav__brand { order: 1; }
  .nav__cta { order: 2; gap: 6px; margin-left: auto; }

  /* Phone — compact icon button */
  .nav__phone {
    display: inline-flex;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    align-items: center;
    justify-content: center;
    color: var(--accent-dark);
  }
  .nav__phone strong { display: none; }
  .nav__phone svg { width: 16px; height: 16px; }

  /* Espace Agent compact pill */
  .nav__agent {
    display: inline-flex;
    padding: 0 14px;
    height: 40px;
    font-size: 12px;
    min-height: 0;
    border-radius: var(--r-full);
  }

  /* Nav links — horizontal scroll pills on row 2 */
  .nav__links {
    display: flex;
    order: 10;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 6px 0;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-top: 1px solid var(--border-soft);
    margin-top: 4px;
    /* fade edges to hint scroll */
    mask-image: linear-gradient(90deg, transparent, black 12px, black calc(100% - 12px), transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 12px, black calc(100% - 12px), transparent);
  }
  .nav__links::-webkit-scrollbar { display: none; }
  .nav__links li { flex-shrink: 0; }
  .nav__links a {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    padding: 8px 14px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    color: var(--fg);
    transition: all 0.3s var(--ease-out-expo);
    min-height: 36px;
  }
  .nav__links a::after { display: none; }
  .nav__links a:hover,
  .nav__links a:active {
    background: var(--fg);
    color: white;
    border-color: var(--fg);
  }
  .testimonials-3d__stage { grid-template-columns: 1fr; gap: var(--s-3); }
  .t-card { padding: var(--s-6); }
  .t-card__quote { font-size: 64px; right: var(--s-4); }
  .t-card__text { font-size: 16px; }

  /* Hero spacing */
  .hero__content { padding-bottom: var(--s-8); }
  /* clean: dead selectors removed */
  .search-panel--horizontal { padding: var(--s-4); border-radius: var(--r-3); }
  .search-panel__tabs { flex-wrap: wrap; gap: 4px; margin-bottom: var(--s-3); }
  .search-tab { padding: 8px 12px; font-size: 12px; }
  .search-grid--horizontal .field label { font-size: 9px; margin-bottom: 2px; }
  .search-grid--horizontal .field input,
  .search-grid--horizontal .field select { padding: 12px 0; min-height: 44px; }
  .search-grid--horizontal .search-panel__btn { height: 52px; padding: 14px 20px; font-size: 14px; }

  /* Stats simpler */
  .stats-section { padding: var(--s-8) 0; }
  .stats-strip { gap: var(--s-3); padding: 0; }
  .stat__num { font-size: 26px; }
  .stat__label { font-size: 10px; letter-spacing: 0.08em; }

  /* Section heads */
  .section__head { margin-bottom: var(--s-8); gap: var(--s-4); }
  .section__head h2 { font-size: 32px; }
  .section__head p { font-size: 15px; }

  /* Listings toolbar */
  .listings-toolbar { padding: var(--s-3); border-radius: var(--r-3); margin-bottom: var(--s-8); }
  .listings-controls { gap: 4px; padding-bottom: 4px; }
  .chip { padding: 10px 14px; font-size: 12px; min-height: 40px; }
  .chip__count { min-width: 20px; height: 18px; font-size: 10px; padding: 0 5px; }
  .listings-sort { padding-right: 0; width: 100%; justify-content: space-between; }
  .listings-sort__label { font-size: 10px; }
  .listings-sort select { flex: 1; max-width: 60%; min-height: 40px; }

  /* Cards */
  .card__title { font-size: 19px; margin-bottom: var(--s-3); }
  .card__price { font-size: 20px; }
  .card__pricepm { font-size: 10px; }
  .card__body { padding: var(--s-4); }
  .card__meta { gap: 4px; padding-top: var(--s-3); }
  .card__meta-item { padding: 6px 8px; font-size: 12px; flex-direction: column; gap: 2px; text-align: center; }
  .card__meta-item svg { display: none; }
  .card__num { font-size: 11px; padding: 3px 8px; }
  .card__tag { left: 50px; font-size: 9px; padding: 4px 8px; }
  .card__fav { width: 36px; height: 36px; }
  .card__cta { padding: 10px 14px; font-size: 12px; }

  /* Listings CTA */
  .listings-cta { gap: var(--s-3); margin-top: var(--s-12); }
  .listings-cta .btn { padding: 14px 20px; font-size: 13px; }

  /* Cinematic banner */
  .cinematic { height: auto; min-height: 0; padding: var(--s-12) 0; aspect-ratio: 4/5; max-height: 720px; }
  .cinematic__content { padding-bottom: var(--s-8); padding-top: var(--s-8); }
  .cinematic__title { font-size: 32px; margin-bottom: var(--s-4); }
  .cinematic__lede { font-size: 14px; margin-bottom: var(--s-8); }
  .cinematic__meta { gap: var(--s-2); padding-top: var(--s-4); margin-bottom: var(--s-4); }
  .cinematic__caption { font-size: 11px; letter-spacing: 0.04em; }
  .cinematic__counter { font-size: 22px; }

  /* Services */
  .services-grid { gap: 1px; }
  .service { padding: var(--s-6); }
  .service__icon { width: 48px; height: 48px; margin-bottom: var(--s-4); }
  .service h3 { font-size: 20px; margin-bottom: var(--s-2); }
  .service p { font-size: 14px; }
  .service__link { margin-top: var(--s-4); font-size: 12px; }

  /* Booking */
  .booking__visual { aspect-ratio: 16/10; }
  .form-card { padding: var(--s-6); border-radius: var(--r-3); }
  .form-card__title { font-size: 22px; }
  .form-card__sub { font-size: 13px; margin-bottom: var(--s-6); }
  .field input, .field select, .field textarea {
    padding: 14px;
    min-height: 48px;
    border-radius: var(--r-2);
  }
  .field textarea { min-height: 100px; }
  .field label { font-size: 10px; letter-spacing: 0.1em; }

  /* Time slots — 2x2 instead of 4 cols */
  .time-slots { grid-template-columns: 1fr 1fr; gap: var(--s-2); }
  .slot { padding: 14px; font-size: 14px; min-height: 48px; }

  /* Consent */
  .consent { font-size: 12px; line-height: 1.5; }
  .consent input { width: 18px; height: 18px; flex-shrink: 0; }

  /* Propose form */
  .propose-card { padding: var(--s-6); border-radius: var(--r-3); }
  .propose .section__head h2 { font-size: 28px; }
  .propose-card h4 { font-size: 18px !important; margin: var(--s-8) 0 var(--s-3) !important; }
  .checkbox-group { gap: 6px; }
  .check { padding: 10px 14px; font-size: 13px; min-height: 40px; }
  .photo-uploader { padding: var(--s-6); }
  .photo-uploader__icon { width: 48px; height: 48px; margin-bottom: var(--s-3); }
  .photo-uploader strong { font-size: 14px; }
  .photo-uploader span { font-size: 12px; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }

  /* About */
  .about__features li { font-size: 14px; }
  .about__quote { padding: var(--s-4); margin-top: var(--s-3); }
  .about__quote p { font-size: 16px; }

  /* Testimonials head centered */
  .testimonials__head { margin-bottom: var(--s-8); }
  .testimonials__head h2 { font-size: 28px; }
  .testimonials__rating { padding: 6px var(--s-3); font-size: 12px; flex-wrap: wrap; gap: var(--s-2); }
  .rating-stars svg { width: 14px; height: 14px; }
  .rating-text { font-size: 12px; }

  /* Footer compact */
  .footer { padding: var(--s-12) 0 var(--s-4); }
  .footer__top { gap: var(--s-6); padding-bottom: var(--s-6); }
  .footer__logo { width: 110px; padding: var(--s-2); margin-bottom: var(--s-4); }
  .footer__brand p { font-size: 14px; max-width: 100%; }
  .footer__newsletter { max-width: 100%; padding: 3px; }
  .footer__newsletter input { padding: 12px 14px; font-size: 14px; }
  .footer__newsletter button { padding: 8px 16px; font-size: 12px; }
  .footer__col h4 { font-size: 11px; letter-spacing: 0.14em; margin-bottom: var(--s-3); }
  .footer__col a { font-size: 13px; }
  .footer__bottom { font-size: 12px; gap: var(--s-2); padding-top: var(--s-4); }
  .footer__legal { gap: var(--s-3); flex-wrap: wrap; }

  /* Quickview tighter */
  .quickview { padding: var(--s-3); }
  .quickview__panel { border-radius: var(--r-3); }
  .quickview__close { top: var(--s-3); right: var(--s-3); width: 36px; height: 36px; }
  .quickview__body { padding: var(--s-6); }

  /* Toast */
  .toast { left: var(--s-3); right: var(--s-3); bottom: var(--s-3); max-width: none; padding: var(--s-3) var(--s-4); }

  /* Hero badge mobile-friendly */
  .hero__badge { font-size: 11px; padding: 8px 12px; right: var(--s-4); top: 80px; }
  section { padding: var(--s-16) 0; }
  .stats-section { padding: var(--s-8) 0; }
  .hero { padding-bottom: var(--s-16); }
  .hero__content { padding-bottom: var(--s-16); }
  .hero__title { font-size: clamp(40px, 11vw, 64px); }
  .hero__badge { top: 116px; right: 12px; font-size: 11px; padding: 7px 12px; }
  .search-section { margin-top: -32px; padding: var(--s-8) 0 var(--s-12); border-radius: 20px 20px 0 0; }
  .search-section__head { margin-bottom: var(--s-6); }
  .search-section__head h2 { font-size: 24px; }
  .search-grid--horizontal { grid-template-columns: 1fr; }
  .search-grid--horizontal .field { padding: var(--s-2) 0; border-right: 0 !important; border-bottom: 1px solid var(--border); }
  .cinematic { height: 70vh; min-height: 480px; }
  .cinematic__title { font-size: 36px; }
  .booking__visual-card { grid-template-columns: 1fr; gap: var(--s-2); padding: var(--s-3) var(--s-4); }
  .booking__visual-stat span { font-size: 18px; }

  /* ===== Admin mobile-first ===== */
  .main { padding: var(--s-4); }
  .main__head { flex-direction: column; align-items: flex-start; gap: var(--s-3); }
  .main__head h1 { font-size: 24px; }
  .main__head-actions { width: 100%; flex-wrap: wrap; }
  .main__head-actions .btn { flex: 1; min-width: 120px; }

  .kpis { grid-template-columns: 1fr 1fr; gap: var(--s-2); }
  .kpi { padding: var(--s-4); }
  .kpi__value { font-size: 26px; }
  .kpi__icon { display: none; }

  .filter-bar { flex-direction: column; align-items: stretch; padding: var(--s-2); }
  .filter-bar input, .filter-bar select { min-width: 0; width: 100%; min-height: 44px; }

  /* Entry head — stack vertically on mobile */
  .entry__head {
    grid-template-columns: 1fr;
    gap: var(--s-2);
    padding: var(--s-4);
    position: relative;
  }
  .entry__id {
    position: absolute;
    top: var(--s-3);
    right: var(--s-3);
    font-size: 10px;
  }
  .entry__main { padding-right: 80px; }
  .entry__main strong { font-size: 16px; }
  .entry__col { font-size: 12px; }
  .entry__col strong { font-size: 13px; }
  .entry__status {
    align-self: flex-start;
    font-size: 10px;
    padding: 4px 10px;
  }

  .entry__body { padding: 0 var(--s-4) var(--s-4); }
  .entry-section { padding: var(--s-4) 0; }
  .entry-section__title { font-size: 10px; flex-wrap: wrap; }
  .entry-section__grid.two,
  .entry-section__grid.three,
  .entry-section__grid.four { grid-template-columns: 1fr; gap: var(--s-2); }

  .info-card { padding: var(--s-3); }
  .info-card__value { font-size: 13px; }

  .quote-block { font-size: 14px; padding: var(--s-3) var(--s-4); }
  .features-pills .feature-pill { font-size: 11px; padding: 4px 10px; }

  /* Notes form stacks */
  .note-form { flex-direction: column; align-items: stretch; }
  .note-form .btn { width: 100%; min-height: 44px; }
  .note-input { min-height: 60px; font-size: 14px; }

  /* Photos grid 3 cols on mobile */
  .entry__photos { grid-template-columns: repeat(3, 1fr); gap: 4px; }

  /* Action buttons full row, wrap nicely */
  .entry__actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-1);
    margin-top: var(--s-4);
  }
  .entry__actions .btn,
  .entry__actions a {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    font-size: 13px;
  }
  .entry__actions [data-action="delete"] { margin-left: 0 !important; margin-top: var(--s-2); }
  .action-divider { display: none; }

  /* Sidebar (mobile drawer) */
  .sidebar { padding: var(--s-6); width: min(85vw, 320px); }
  .sidebar__brand { margin-bottom: var(--s-6); padding-bottom: var(--s-4); }
  .sidebar__logo { width: 110px; }
  .sidebar__nav button { padding: 14px var(--s-3); font-size: 15px; min-height: 48px; }
  .sidebar__footer { position: relative; bottom: auto; left: auto; right: auto; margin-top: var(--s-6); }

  /* Login screen */
  .login-card { padding: var(--s-8); }
  .login-card__logo { width: 130px; }

  /* Lightbox */
  .lightbox { padding: var(--s-3); }
  .lightbox__close { top: var(--s-3); right: var(--s-3); }

  /* Meta block grid */
  .entry-section__grid.four .meta-row { padding: var(--s-3); }
  .meta-value { font-size: 12px; }

  /* Timeline */
  .timeline__content strong { font-size: 12px; }
  .timeline__content span { font-size: 11px; }
  .listings-grid { grid-template-columns: 1fr; perspective: none; }
  .card { transform: none !important; }
  .card.is-tilting { transform: none !important; }
  .quickview__title { font-size: 24px; }
  .quickview__price { font-size: 28px; }
  .quickview__actions { flex-direction: column; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row, .form-row.three { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__top { grid-template-columns: 1fr; gap: var(--s-8); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .search-grid { grid-template-columns: 1fr; }
  .propose-card { padding: var(--s-6); }
  .entry__head { grid-template-columns: 1fr; gap: var(--s-2); }
  .entry__details { grid-template-columns: 1fr 1fr; }
  .entry__photos { grid-template-columns: repeat(3, 1fr); }
  .about__quote { position: static; max-width: 100%; margin-top: var(--s-4); }
}
