/* ==========================================================================
   Papangue Immobilier Prestige — design system
   Inspiration : TOTEME (monochrome, typographie fine, images plein cadre)
   ========================================================================== */

:root {
  --ink: #0b0b0b;
  --ink-2: #3a3a3a;
  --mute: #8a8a8a;
  --line: #e4e2de;
  --line-2: #cfcdc8;
  --paper: #ffffff;
  --stone: #f4f2ee;
  --stone-2: #ebe8e2;
  --gold: #b8952e;
  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fs-xs: 12px;
  --fs-s: 13.5px;
  --fs-m: 15.5px;
  --fs-l: 18.5px;
  --gutter: 20px;
  --header-h: 64px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  font-size: var(--fs-m);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, h5 { font-weight: 300; margin: 0; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 500; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 680px; margin-left: auto; margin-right: auto; }
.mid { max-width: 1040px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.mute { color: var(--mute); }
.small { font-size: var(--fs-s); }
.xs { font-size: var(--fs-xs); }
.upper { text-transform: uppercase; letter-spacing: .14em; }
.hide { display: none !important; }

/* Links with Toteme-like underline */
.link { position: relative; display: inline-block; }
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.link:hover::after, .link.is-active::after { transform: scaleX(1); transform-origin: left; }
.ul { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.arrow-link { font-size: var(--fs-s); display: inline-flex; align-items: center; gap: 10px; }
.arrow-link::after { content: "→"; transition: transform .4s var(--ease); }
.arrow-link:hover::after { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 28px; border: 1px solid var(--ink);
  font-size: var(--fs-s); letter-spacing: .02em; background: var(--ink); color: #fff;
  transition: background .3s, color .3s, border-color .3s;
}
.btn:hover { background: #fff; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ==========================================================================
   Header
   ========================================================================== */
.announce {
  height: 32px; display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-xs); letter-spacing: .02em; background: var(--ink); color: #fff;
}
.announce a { opacity: .85; }
.header {
  position: sticky; top: 0; z-index: 60; height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter); background: rgba(255,255,255,.98); color: var(--ink);
  border-bottom: 1px solid transparent; transition: background .4s, color .4s, border-color .4s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
body.has-hero .header { position: fixed; left: 0; right: 0; top: 0; background: transparent; color: #fff; }
body.has-hero .header.is-solid, body.has-hero .header:hover, body.menu-open .header, body.search-open .header {
  background: #fff; color: var(--ink); border-bottom-color: var(--line);
}
.header__nav { display: flex; gap: 26px; font-size: var(--fs-s); align-items: center; }
.header__nav--right { justify-content: flex-end; }
.header__logo { display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1; }
.wordmark { font-size: 22px; font-weight: 400; letter-spacing: .42em; margin-right: -.42em; }
.wordmark-sub { font-size: 8.5px; letter-spacing: .5em; margin-right: -.5em; text-transform: uppercase; opacity: .8; }
.header .burger { display: none; }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; }
.icon-btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.2; }
.fav-count { font-size: 10px; min-width: 14px; }
.lang { position: relative; }
.lang__menu {
  position: absolute; right: -12px; top: calc(100% + 14px); background: #fff; color: var(--ink);
  border: 1px solid var(--line); padding: 10px 16px; display: none; min-width: 120px;
}
.lang.is-open .lang__menu { display: block; }
.lang__menu a { display: block; padding: 4px 0; font-size: var(--fs-s); }

/* Drawer menu */
.drawer {
  position: fixed; z-index: 80; inset: 0 auto 0 0; width: min(440px, 100%); background: #fff;
  transform: translateX(-100%); transition: transform .6s var(--ease); display: flex; flex-direction: column;
  padding: 22px var(--gutter) 28px; overflow-y: auto;
}
body.menu-open .drawer { transform: none; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-s); margin-bottom: 48px; }
.drawer__nav a { display: block; font-size: 26px; line-height: 1.5; letter-spacing: -.01em; }
.drawer__nav a:hover { color: var(--mute); }
.drawer__nav .sub { padding-left: 18px; }
.drawer__nav .sub a { font-size: 18px; line-height: 1.9; color: var(--ink-2); }
.drawer__foot { margin-top: auto; padding-top: 40px; display: grid; gap: 22px; font-size: var(--fs-s); }
.drawer__foot .row { display: flex; gap: 22px; flex-wrap: wrap; }
.scrim {
  position: fixed; inset: 0; z-index: 70; background: rgba(10,10,10,.28); opacity: 0; pointer-events: none;
  transition: opacity .5s var(--ease);
}
body.search-open .header { z-index: 76; }
body.search-open .search-panel { z-index: 75; }
body.menu-open .scrim, body.search-open .scrim, body.modal-open .scrim, body.filters-open .scrim { opacity: 1; pointer-events: auto; }

/* Search panel */
.search-panel {
  position: fixed; z-index: 65; left: 0; right: 0; top: var(--header-h); background: #fff;
  border-bottom: 1px solid var(--line); padding: 36px var(--gutter) 40px;
  transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .35s, transform .45s var(--ease);
}
body.search-open .search-panel { transform: none; opacity: 1; pointer-events: auto; }
.search-form { max-width: 1180px; margin: 0 auto; }
.search-row { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 0 28px; align-items: end; }
.more-criteria { margin-top: 26px; display: none; }
.more-criteria.is-open { display: block; }
.toggle-more { font-size: var(--fs-s); margin-top: 20px; display: inline-flex; gap: 8px; }

/* ==========================================================================
   Forms
   ========================================================================== */
.field { position: relative; display: block; }
.field label, .label { display: block; font-size: var(--fs-xs); color: var(--mute); margin-bottom: 4px; letter-spacing: .02em; }
.input, .select, .textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line-2); background: transparent; border-radius: 0;
  font: inherit; font-size: var(--fs-m); color: var(--ink); padding: 10px 0; outline: 0; appearance: none;
  transition: border-color .3s;
}
.input:focus, .select:focus, .textarea:focus { border-bottom-color: var(--ink); }
.input::placeholder, .textarea::placeholder { color: #a5a29c; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%230b0b0b' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center; padding-right: 18px; cursor: pointer;
}
.textarea { min-height: 120px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-s); color: var(--ink-2); cursor: pointer; }
.check input { appearance: none; width: 13px; height: 13px; border: 1px solid var(--ink); margin: 3px 0 0; flex: none; border-radius: 0; cursor: pointer; }
.check input:checked { background: var(--ink); box-shadow: inset 0 0 0 2px #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; }
.chip span {
  display: inline-flex; min-width: 40px; height: 34px; padding: 0 14px; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); font-size: var(--fs-s); cursor: pointer; transition: all .25s;
}
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip span:hover { border-color: var(--ink); }
.form-status { font-size: var(--fs-s); margin-top: 14px; min-height: 1em; }
.form-status.ok { color: var(--ink); }
.form-status.err { color: #a2382b; }
.file-input { font-size: var(--fs-s); padding: 10px 0; border-bottom: 1px solid var(--line-2); width: 100%; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; height: 100vh; min-height: 560px; overflow: hidden; color: #fff; background: #111; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 7s linear; }
.hero__slide.is-active img { transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 62%, rgba(0,0,0,.38) 100%); pointer-events: none; }
.hero__caption { position: absolute; z-index: 2; left: 0; right: 0; bottom: 64px; text-align: center; }
.hero__caption h1 { font-size: 17px; letter-spacing: .01em; margin-bottom: 4px; }
.hero__caption p { font-size: var(--fs-s); margin: 0 0 18px; opacity: .9; }
.hero__dots { position: absolute; z-index: 2; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.hero__dots button { width: 22px; height: 1px; background: rgba(255,255,255,.45); }
.hero__dots button.is-active { background: #fff; }
.hero--page { height: 78vh; min-height: 460px; }
.hero--short { height: 62vh; min-height: 400px; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__title { position: absolute; z-index: 2; left: 0; right: 0; bottom: 56px; text-align: center; }
.hero__title h1 { font-size: clamp(30px, 4vw, 52px); letter-spacing: -.01em; }
.hero__title p { font-size: var(--fs-s); margin-top: 8px; }

/* Quick search bar under hero */
.quick-search { border-bottom: 1px solid var(--line); }
.quick-search form { display: grid; grid-template-columns: 140px 1fr 1fr 1fr auto auto; gap: 0 28px; align-items: end; padding: 22px var(--gutter) 26px; }

/* ==========================================================================
   Sections / editorial blocks
   ========================================================================== */
.section { padding: 110px 0; }
.section--tight { padding: 70px 0; }
.section--stone { background: var(--stone); }
.section-head { text-align: center; margin-bottom: 52px; padding: 0 var(--gutter); }
.section-head h2 { font-size: 17px; letter-spacing: .01em; }
.section-head p { font-size: var(--fs-s); color: var(--mute); margin: 6px auto 0; max-width: 520px; }
.eyebrow { font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin-bottom: 18px; display: block; }
.display { font-size: clamp(26px, 3.1vw, 42px); line-height: 1.18; letter-spacing: -.015em; }
.lead { font-size: var(--fs-l); line-height: 1.6; color: var(--ink-2); }

/* Split full-bleed (TOTEME-like diptych) */
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split--3 { grid-template-columns: repeat(3, 1fr); }
.tile { position: relative; display: block; overflow: hidden; color: #fff; aspect-ratio: 4 / 5; background: var(--stone-2); }
.split--3 .tile { aspect-ratio: 3 / 4.2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.tile:hover img { transform: scale(1.035); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.42)); }
.tile__cap { position: absolute; z-index: 2; left: 0; right: 0; bottom: 34px; text-align: center; }
.tile__cap strong { display: block; font-weight: 300; font-size: 17px; }
.tile__cap span { font-size: var(--fs-s); opacity: .9; }

/* Single centred feature (TOTEME product spotlight) */
.spotlight { display: flex; flex-direction: column; align-items: center; padding: 110px var(--gutter); }
.spotlight a.img { width: min(440px, 80vw); aspect-ratio: 4/5; overflow: hidden; display: block; background: var(--stone); }
.spotlight img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.spotlight a.img:hover img { transform: scale(1.03); }
.spotlight .cap { text-align: center; margin-top: 22px; }
.spotlight .cap strong { display: block; font-weight: 300; font-size: var(--fs-m); }
.spotlight .cap span { font-size: var(--fs-s); color: var(--mute); }

/* Text + image */
.media-text { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 86vh; }
.media-text__img { position: relative; overflow: hidden; background: var(--stone); }
.media-text__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-text__body { display: flex; flex-direction: column; justify-content: center; padding: 80px clamp(24px, 7vw, 120px); }
.media-text__body .display { margin-bottom: 26px; }
.media-text__body p { color: var(--ink-2); }
.media-text--rev .media-text__img { order: 2; }

/* Rich text */
.prose { font-size: 16.5px; line-height: 1.75; color: var(--ink-2); }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--ink); margin: 2em 0 .7em; line-height: 1.3; }
.prose h1 { font-size: 30px; }
.prose h2 { font-size: 22px; }
.prose h3 { font-size: 18px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul { list-style: none; margin: 0 0 1.2em; }
.prose ul li { padding-left: 18px; position: relative; }
.prose ul li::before { content: "—"; position: absolute; left: 0; color: var(--mute); }
.prose img { margin: 2em 0; }
.prose strong { color: var(--ink); }
.prose table { border-collapse: collapse; width: 100%; font-size: var(--fs-s); }
.prose td, .prose th { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; }

/* Numbered list */
.numbered { counter-reset: n; border-top: 1px solid var(--line); }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 60px 1fr; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 16.5px; }
.numbered li::before { content: counter(n, decimal-leading-zero); font-size: var(--fs-s); color: var(--mute); padding-top: 3px; }

/* ==========================================================================
   Property cards & grids
   ========================================================================== */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 46px 6px; padding: 0 6px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card { position: relative; display: block; }
.card__body { display: block; }
.card__media { display: block; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone); }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .7s var(--ease), transform 1.4s var(--ease); }
.card__media img.alt { opacity: 0; }
.card:hover .card__media img.alt { opacity: 1; }
.card:hover .card__media img { transform: scale(1.02); }
.card__tag { position: absolute; z-index: 2; left: 12px; top: 12px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; background: #fff; color: var(--ink); padding: 4px 8px; }
.card__fav { position: absolute; z-index: 3; right: 10px; top: 10px; width: 32px; height: 32px; display: grid; place-items: center; }
.card__fav svg { width: 17px; height: 17px; stroke: #fff; fill: none; stroke-width: 1.2; filter: drop-shadow(0 0 2px rgba(0,0,0,.35)); transition: fill .3s; }
.card__fav.is-on svg { fill: #fff; }
.card__body { text-align: center; padding: 16px 12px 0; }
.card__title { font-size: var(--fs-s); }
.card__meta { font-size: var(--fs-s); color: var(--mute); margin-top: 1px; }
.card__price { font-size: var(--fs-s); margin-top: 6px; }

/* Horizontal rail */
.rail-old { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 18px) / 4); gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 6px 10px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-nav { display: flex; justify-content: center; gap: 22px; margin-top: 34px; font-size: var(--fs-s); }

/* Listing toolbar */
.toolbar {
  position: sticky; top: var(--header-h); z-index: 40; background: rgba(255,255,255,.97);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px var(--gutter); font-size: var(--fs-s); border-bottom: 1px solid var(--line); margin-bottom: 26px;
}
.toolbar__group { display: flex; gap: 24px; align-items: center; }
.toolbar select { border: 0; background: transparent; font: inherit; font-size: var(--fs-s); cursor: pointer; padding-right: 14px; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M.5.5l3.5 3.5L7.5.5' stroke='%230b0b0b' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right center; }
.seg button { color: var(--mute); }
.seg button.is-active { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 var(--gutter); margin: -10px 0 24px; }
.active-filters button { font-size: var(--fs-xs); border: 1px solid var(--line-2); padding: 4px 10px; }
.active-filters button::after { content: " ×"; }
.empty { text-align: center; padding: 90px var(--gutter); color: var(--mute); font-size: var(--fs-s); }
.pager { display: flex; justify-content: center; gap: 18px; padding: 60px 0 20px; font-size: var(--fs-s); }
.pager button { color: var(--mute); min-width: 16px; }
.pager button.is-active { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.listing-map { height: 76vh; margin: 0 6px; background: var(--stone); }

/* Filters drawer */
.filters {
  position: fixed; z-index: 85; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: #fff;
  transform: translateX(100%); transition: transform .55s var(--ease); display: flex; flex-direction: column;
}
body.filters-open .filters { transform: none; }
.filters__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px; font-size: var(--fs-s); border-bottom: 1px solid var(--line); }
.filters__body { flex: 1; overflow-y: auto; padding: 10px 26px 30px; }
.filters__group { padding: 22px 0; border-bottom: 1px solid var(--line); }
.filters__group > .label { margin-bottom: 14px; color: var(--ink); font-size: var(--fs-s); }
.filters__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.filters__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px 26px; border-top: 1px solid var(--line); }

/* Map markers */
.price-pin { background: #fff; color: var(--ink); font: 400 11px var(--font); padding: 4px 8px; white-space: nowrap; box-shadow: 0 1px 6px rgba(0,0,0,.18); transform: translate(-50%, -100%); display: inline-block; }
.price-pin.is-dark { background: var(--ink); color: #fff; }
.leaflet-container { font-family: var(--font) !important; }
.leaflet-popup-content-wrapper { border-radius: 0 !important; box-shadow: 0 2px 16px rgba(0,0,0,.12) !important; }
.leaflet-popup-content { margin: 0 !important; width: 220px !important; }
.map-pop img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.map-pop div { padding: 10px 12px; font-size: 13px; text-align: center; }

/* ==========================================================================
   Property page (product-page layout)
   ========================================================================== */
.pdp { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(360px, 1fr); align-items: start; }
.pdp__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.pdp__gallery button { display: block; position: relative; overflow: hidden; background: var(--stone); aspect-ratio: 4 / 5; cursor: zoom-in; }
.pdp__gallery button.wide { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.pdp__gallery img { width: 100%; height: 100%; object-fit: cover; }
.pdp__more { grid-column: 1 / -1; padding: 22px 0; text-align: center; font-size: var(--fs-s); }
.pdp__panel { position: sticky; top: var(--header-h); max-height: calc(100vh - var(--header-h)); overflow-y: auto; padding: 44px clamp(24px, 3.4vw, 64px) 40px; scrollbar-width: thin; }
.crumbs { font-size: var(--fs-xs); color: var(--mute); margin-bottom: 26px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a:hover { color: var(--ink); }
.pdp__kicker { font-size: var(--fs-s); color: var(--mute); }
.pdp__title { font-size: 26px; line-height: 1.3; margin: 8px 0 14px; letter-spacing: -.01em; }
.pdp__price { font-size: 19px; }
.pdp__ref { font-size: var(--fs-xs); color: var(--mute); margin-top: 4px; }
.specs { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0; margin: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.specs div { padding: 14px 22px 14px 0; font-size: var(--fs-s); }
.specs div span { display: block; color: var(--mute); font-size: var(--fs-xs); }
.pdp__ctas { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.pdp__ctas .btn--ghost { width: 46px; padding: 0; }
.pdp__ctas .btn--ghost svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.2; }
.pdp__ctas .btn--ghost.is-on svg { fill: currentColor; }
.pdp__secondary { display: flex; gap: 22px; margin-top: 16px; font-size: var(--fs-s); flex-wrap: wrap; }

.acc { border-top: 1px solid var(--line); margin-top: 34px; }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 17px 0; font-size: var(--fs-s); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 15px; transition: transform .35s var(--ease); }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc .acc__body { padding: 0 0 22px; font-size: 14.5px; color: var(--ink-2); }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #f0eeea; }
.kv div span:first-child { color: var(--mute); }
.tags-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tags-list li { border: 1px solid var(--line); padding: 5px 10px; font-size: var(--fs-s); }
.desc p { margin-bottom: .9em; }
.desc.is-clamped { max-height: 260px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }

.agent { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: center; margin-top: 34px; }
.agent img, .agent .ph { width: 72px; aspect-ratio: 3/4; object-fit: cover; background: var(--stone); }
.agent p { margin: 0; font-size: var(--fs-s); }
.agent .name { font-size: var(--fs-m); }

.pdp-section { padding: 100px var(--gutter) 0; }
.pdp-map { height: 460px; background: var(--stone); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 6px; }
.video-grid video, .video-grid iframe { width: 100%; aspect-ratio: 16/9; background: #000; border: 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: #fff; display: none; }
.lightbox.is-open { display: block; }
.lightbox__img { position: absolute; inset: 64px 70px; display: flex; align-items: center; justify-content: center; }
.lightbox__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox__bar { position: absolute; left: 0; right: 0; top: 0; height: 64px; display: flex; justify-content: space-between; align-items: center; padding: 0 var(--gutter); font-size: var(--fs-s); }
.lightbox__prev, .lightbox__next { position: absolute; top: 64px; bottom: 0; width: 50%; cursor: w-resize; }
.lightbox__prev { left: 0; }
.lightbox__next { right: 0; cursor: e-resize; }
.lightbox__thumbs { position: absolute; left: 0; right: 0; bottom: 14px; display: none; }

/* Modal */
.modal { position: fixed; z-index: 90; inset: 0; display: none; align-items: center; justify-content: center; padding: 20px; pointer-events: none; }
.modal.is-open { display: flex; }
.modal__box { pointer-events: auto; background: #fff; width: min(620px, 100%); max-height: 90vh; overflow-y: auto; padding: 40px clamp(22px, 4vw, 48px); position: relative; }
.modal__close { position: absolute; right: 20px; top: 18px; font-size: var(--fs-s); }
.modal h3 { font-size: 20px; margin-bottom: 8px; }

/* ==========================================================================
   Team, articles, misc
   ========================================================================== */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 46px 6px; padding: 0 6px; }
.member__img { aspect-ratio: 3/4; overflow: hidden; background: var(--stone); display: grid; place-items: center; }
.member__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .8s var(--ease); }
.member:hover .member__img img { filter: none; }
.member__img .initials { font-size: 30px; color: var(--mute); letter-spacing: .1em; }
.member__body { text-align: center; padding-top: 14px; font-size: var(--fs-s); }
.member__body .role { color: var(--mute); }
.member__body .contact { margin-top: 8px; display: grid; gap: 1px; }

.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 6px; padding: 0 6px; }
.article-card__img { aspect-ratio: 4/3; overflow: hidden; background: var(--stone); }
.article-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.article-card:hover img { transform: scale(1.03); }
.article-card__body { padding: 18px 10px 0; text-align: center; }
.article-card__body time { font-size: var(--fs-xs); color: var(--mute); }
.article-card__body h3 { font-size: var(--fs-m); margin: 6px auto 0; max-width: 420px; line-height: 1.45; }
.article-head { padding: calc(var(--header-h) + 60px) var(--gutter) 50px; text-align: center; }
.article-head h1 { font-size: clamp(26px, 3.2vw, 42px); line-height: 1.2; max-width: 940px; margin: 14px auto 18px; letter-spacing: -.015em; }
.article-head h2 { font-size: var(--fs-l); color: var(--ink-2); max-width: 720px; margin: 0 auto; line-height: 1.55; }
.article-cover { max-width: 1240px; margin: 0 auto 70px; padding: 0 var(--gutter); }
.article-cover img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 26px; }
.tag-row span { font-size: var(--fs-xs); border: 1px solid var(--line); padding: 4px 9px; color: var(--ink-2); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 0; min-height: calc(100vh - var(--header-h)); }
.contact-grid__info { background: var(--stone); padding: 90px clamp(24px, 6vw, 100px); display: flex; flex-direction: column; justify-content: space-between; gap: 60px; }
.contact-grid__form { padding: 90px clamp(24px, 6vw, 100px); }
.info-list { display: grid; gap: 22px; font-size: var(--fs-m); }
.info-list span { display: block; font-size: var(--fs-xs); color: var(--mute); margin-bottom: 2px; }
.page-head { padding: 80px var(--gutter) 60px; text-align: center; }
.page-head h1 { font-size: clamp(28px, 3.4vw, 46px); letter-spacing: -.015em; }
.page-head p { color: var(--mute); font-size: var(--fs-m); max-width: 620px; margin: 14px auto 0; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div { padding: 38px 20px; text-align: center; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats strong { display: block; font-weight: 300; font-size: 34px; letter-spacing: -.02em; }
.stats span { font-size: var(--fs-s); color: var(--mute); }

.newsletter { text-align: center; padding: 110px var(--gutter); }
.newsletter h2 { font-size: 17px; }
.newsletter p { font-size: var(--fs-s); color: var(--mute); margin-top: 6px; }
.newsletter form { max-width: 460px; margin: 30px auto 0; }
.inline-field { display: flex; border-bottom: 1px solid var(--ink); }
.inline-field input { flex: 1; border: 0; padding: 12px 0; font: inherit; outline: 0; background: transparent; }
.inline-field button { font-size: var(--fs-s); padding: 0 0 0 16px; }
.newsletter .check { justify-content: center; margin-top: 16px; text-align: left; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { border-top: 1px solid var(--line); padding: 70px var(--gutter) 26px; font-size: var(--fs-s); }
.footer__top { display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); gap: 40px; }
.footer__brand img { width: 74px; }
.footer__brand p { margin-top: 18px; color: var(--mute); max-width: 260px; }
.footer h4 { font-size: var(--fs-s); color: var(--mute); margin-bottom: 14px; }
.footer li { margin-bottom: 4px; }
.footer__alert { margin-top: 70px; padding-top: 40px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.footer__alert h3 { font-size: var(--fs-m); }
.footer__alert p { color: var(--mute); margin-top: 4px; }
.alert-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 24px; align-items: end; }
.footer__bottom { margin-top: 70px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--mute); }
.footer__bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__bottom a:hover { color: var(--ink); }

/* Cookie banner */
.cookie {
  position: fixed; z-index: 95; left: 20px; bottom: 20px; width: min(360px, calc(100% - 40px));
  background: var(--ink); color: #fff; padding: 22px; font-size: var(--fs-s); display: none;
}
.cookie.is-open { display: block; }
.cookie p { opacity: .85; line-height: 1.6; }
.cookie .btn { height: 38px; width: 100%; margin-top: 8px; }
.cookie .opts { display: none; margin: 10px 0 6px; gap: 8px; }
.cookie .opts.is-open { display: grid; }
.cookie .check { color: #fff; }
.cookie .check input { border-color: #fff; }
.cookie .check input:checked { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .grid, .team { grid-template-columns: repeat(3, 1fr); }
  .rail { grid-auto-columns: calc((100% - 12px) / 3); }
  .footer__top { grid-template-columns: repeat(3, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
  .quick-search form { grid-template-columns: 1fr 1fr 1fr; gap: 18px 24px; }
}
@media (max-width: 900px) {
  :root { --gutter: 16px; --header-h: 56px; }
  .header__nav .hide-m { display: none; }
  .header .burger { display: inline-flex; }
  .wordmark { font-size: 17px; }
  .wordmark-sub { font-size: 7px; }
  .split, .split--3, .media-text, .contact-grid, .pdp { grid-template-columns: 1fr; }
  .split--3 .tile, .split .tile { aspect-ratio: 4 / 4.6; }
  .media-text { min-height: 0; }
  .media-text__img { aspect-ratio: 4/3.4; }
  .media-text--rev .media-text__img { order: 0; }
  .media-text__body { padding: 56px var(--gutter); }
  .grid, .team { grid-template-columns: repeat(2, 1fr); gap: 34px 4px; padding: 0 4px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .articles { grid-template-columns: 1fr; gap: 46px; }
  .rail { grid-auto-columns: 72%; }
  .section { padding: 80px 0; }
  .search-row { grid-template-columns: 1fr 1fr; gap: 18px; }
  .search-row .btn { grid-column: 1 / -1; }
  .quick-search form { grid-template-columns: 1fr 1fr; }
  .quick-search .btn { grid-column: 1 / -1; }
  .pdp__gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 2px; scrollbar-width: none; }
  .pdp__gallery::-webkit-scrollbar { display: none; }
  .pdp__gallery button, .pdp__gallery button.wide { flex: 0 0 88%; aspect-ratio: 4/4.4; scroll-snap-align: start; }
  .pdp__more { display: none; }
  .pdp__panel { position: static; max-height: none; padding: 30px var(--gutter); }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .kv { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__alert { grid-template-columns: 1fr; }
  .alert-form { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .toolbar { flex-wrap: wrap; gap: 10px; }
  .toolbar__group { gap: 16px; }
  .contact-grid__info, .contact-grid__form { padding: 56px var(--gutter); }
  .hero__caption { bottom: 52px; }
  .lightbox__img { inset: 64px 0 20px; }
  .numbered li { grid-template-columns: 44px 1fr; }
}
@media (max-width: 520px) {
  .footer__top { grid-template-columns: 1fr; }
  .alert-form { grid-template-columns: 1fr; }
  .header__nav { gap: 16px; }
  .filters__row { grid-template-columns: 1fr; }
}

.leaflet-tile-pane { filter: grayscale(1); }
