/* ─── Home hero v2 (cinematic) ──────────────────────────────────────── */
.home-hero__veil {
  background: linear-gradient(
    to bottom,
    rgba(13, 13, 13, 0.55) 0%,
    rgba(13, 13, 13, 0.15) 35%,
    rgba(13, 13, 13, 0.35) 70%,
    rgba(13, 13, 13, 0.75) 100%
  );
}


/* Soft seam between hero and apartments.
   The fade lives in its own wrapper between the two sections so it isn't
   clipped by `.v2-aptsection`'s `content-visibility: auto` containment.
   The wrapper has zero height; a single `::before` pseudo paints a 2px
   solid mask in the apartments bg color centered exactly on the seam,
   covering any fractional-pixel gap without stacking a second box-shadow
   above it (so we cannot accidentally render a double light line). */
.v2-aptsection {
  /* No margin overlap, no transform, no box-shadow — the seam mask
     in `.home-hero__fade-wrap::before` is the single source of truth. */
}
.home-hero__fade-wrap {
  position: relative;
  height: 0;
  z-index: 5;
  pointer-events: none;
}
.home-hero__fade-wrap::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: hsl(36 16% 97%);
  /* Below the gradient (default z-index 0 inside the wrapper) so the
     fade still reads on top of the mask, not under it. */
  z-index: 0;
}
.home-hero__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;

  /* Mobile-first: short, very low contrast — barely a wash. */
  height: 96px;
  background: linear-gradient(
    to top,
    hsl(36 16% 97%) 0%,
    hsl(36 16% 97% / 0.78) 22%,
    hsl(36 16% 97% / 0.32) 55%,
    hsl(36 16% 97% / 0.08) 80%,
    hsl(36 16% 97% / 0) 100%
  );
}

/* Tablet — medium height, slightly stronger presence. */
@media (min-width: 640px) {
  .home-hero__fade {
    height: 150px;
    background: linear-gradient(
      to top,
      hsl(36 16% 97%) 0%,
      hsl(36 16% 97% / 0.85) 20%,
      hsl(36 16% 97% / 0.45) 50%,
      hsl(36 16% 97% / 0.15) 78%,
      hsl(36 16% 97% / 0) 100%
    );
  }
}

/* Desktop — taller, more confident wash. */
@media (min-width: 1024px) {
  .home-hero__fade {
    height: 220px;
    background: linear-gradient(
      to top,
      hsl(36 16% 97%) 0%,
      hsl(36 16% 97% / 0.92) 18%,
      hsl(36 16% 97% / 0.58) 45%,
      hsl(36 16% 97% / 0.24) 72%,
      hsl(36 16% 97% / 0) 100%
    );
  }
}

/* Wide desktop — give the ramp a little extra room. */
@media (min-width: 1440px) {
  .home-hero__fade { height: 260px; }
}

.home-hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: var(--hero-shell-max);
  margin: 0 auto;
  padding: calc(4rem + env(safe-area-inset-top)) var(--site-gutter) calc(4rem + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: hsl(36 16% 97%);
}

.home-hero__h1.p-display,
.home-hero__h1 {
  /* Inherits p-display: Onest 700 / -0.02em / 1.04 from primitives.css.
     Color is locked to pure white with !important so it can never fall back
     to hsl(var(--ink)) from .p-display, nor to any --foreground token
     inherited from a parent surface. The hero sits over photography —
     a black H1 here would be a critical regression. */
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  margin: 0 0 1.5rem;
  color: #ffffff !important;
  max-width: 18ch;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.25);
}

.home-hero__sub {
  font-family: var(--font-sans);
  font-size: clamp(1.0625rem, 1.25vw, 1.1875rem);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
  max-width: 56ch;
  margin: 0 0 2.75rem;
}

.home-hero__actions {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
}
@media (max-width: 520px) {
  .home-hero__actions { flex-direction: column; justify-content: center; gap: 1.5rem; }
}

/* ── Hero booking bar — apartment · dates · guests → prefilled WhatsApp ── */

@media (max-width: 720px) {
  
  
  
  
  
  .bookbar__field:nth-child(odd) + .bookbar__field { border-left: 1px solid hsl(36 12% 88%); }
  
}


.home-hero__trust { display: flex; align-items: center; gap: 1rem 1.4rem; flex-wrap: wrap; margin-top: 1.5rem; }


/* WhatsApp CTA — now EXTENDS the .p-btn / .p-btn--whatsapp primitive (audit M-2,
   Step 14). The primitive was reshaped (Step 11) to this exact gold-path design,
   so the shared base — pill, green, 1rem 1.9rem padding, the green-glow shadow,
   180ms lift + scale(0.97) press — lives once in primitives.css. Markup:
   class="home-hero__cta p-btn p-btn--whatsapp". Only the hero-specific deltas
   stay here: a WHITE focus ring (the primitive's ink ring would vanish over the
   hero photo) and the optional leading-icon size. */
.home-hero__cta:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.7); outline-offset: 2px; }
.home-hero__cta svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__cta:hover,
  .home-hero__cta:focus-visible { transform: none; }
}

/* ─── Liquid Glass (Apple iOS 26 / WWDC 2025 recipe) ───────────────────
   4 layers: refraction (SVG displacement) → tint → specular → content. */

.lg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.lg {
  position: relative;
  display: inline-flex;
  align-items: center;
  isolation: isolate;
  border-radius: 20px;
  color: hsl(36 16% 97%);
  text-decoration: none;
  font-family: var(--font-sans);
  /* Pointer position (updated via onMouseMove) — drives the specular hot-spot. */
  --lg-mx: 50%;
  --lg-my: 0%;
  /* Tight contact shadow — glass puck resting near the surface, not
     a floating card with a deep cast. Hairline grounding line + one
     short ambient. Anything deeper reads as a button, not as glass. */
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.10),
    0 1px 2px rgba(0, 0, 0, 0.18),
    0 6px 16px -8px rgba(0, 0, 0, 0.32);
  transition:
    transform var(--dur-slower) var(--ease-standard),
    box-shadow var(--dur-slower) var(--ease-standard);
  will-change: transform;
}

/* Layer 1 — refraction. Real glass barely blurs — it bends light. Almost
   no blur, high saturation+contrast keeps the background sharp and crystalline.
   The SVG displacement (#lg-dist) does all the visual heavy lifting. */


/* Layer 2 — tint: conic top-glint + radial body fill + faint diagonal wash.
   The conic-gradient gives the "polished aluminum bezel" sweep across the top. */


/* Layer 3 — specular: bevel + bottom thickness + chromatic edge fringe
   + pointer-tracked highlight that follows the cursor (the real "wow"). */

/* One-shot sheen sweep on appear — sells the "glass just settled" moment. */
.lg__specular::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(115deg,
    transparent 38%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 62%);
  transform: translateX(-120%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: lg-sheen-intro 1400ms var(--ease-standard) 600ms 1 both;
}
@keyframes lg-sheen-intro {
  0%   { transform: translateX(-120%); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}

/* Layer 4 — content. Subtle magnification on hover mimics the lensing
   you'd see looking through a real piece of curved glass. */

.lg:active .lg__content {
  transform: scale(0.99);
  transition-duration: var(--dur-fast);
}

.lg:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14),
    0 2px 4px rgba(0, 0, 0, 0.22),
    0 10px 24px -10px rgba(0, 0, 0, 0.38);
}
.lg:active {
  transform: translateY(0) scale(0.992);
  transition-duration: var(--dur-fast);
}
.lg:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.5),
    0 1px 0 rgba(255, 255, 255, 0.14),
    0 6px 16px -8px rgba(0, 0, 0, 0.32);
}

/* Reduced motion: keep the glass, drop the sheen sweep. */
@media (prefers-reduced-motion: reduce) {
  .lg,
  .lg:hover { transition: none; transform: none; }
  .lg__specular::after { display: none; }
}

/* Firefox / no backdrop-filter fallback */


/* Star: warm gold with a soft glow and a slow, quiet shimmer.
   Same size/weight as the rating number so the baseline stays clean. */

/* Twinkle: burst occupies 50% of the 6s cycle (3s), rest is calm.
   Intensity 1.5× by default — noticeable but not loud. */
@keyframes home-hero-star {
  0%      { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 0 rgba(255, 200, 61, 0)); }
  14.286% { transform: scale(calc(1 + 0.10 * var(--star-intensity, 1.5))) rotate(calc(-6deg * var(--star-intensity, 1.5))); filter: drop-shadow(0 0 calc(4px * var(--star-intensity, 1.5)) rgba(255, 200, 61, calc(0.45 * var(--star-intensity, 1.5)))); }
  28.571% { transform: scale(calc(1 + 0.28 * var(--star-intensity, 1.5))) rotate(calc(10deg * var(--star-intensity, 1.5))); filter: drop-shadow(0 0 calc(14px * var(--star-intensity, 1.5)) rgba(255, 200, 61, calc(1 * var(--star-intensity, 1.5)))); }
  50%     { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 0 rgba(255, 200, 61, 0)); }
  100%    { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 0 rgba(255, 200, 61, 0)); }
}






.home-hero__badge-platform .tabular {
  margin-left: 0.3rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 520px) {
  /* Drop Суточно on phones so the trust line stays single-row inside the pill. */
  
  
  

  /* Lock the whole content row to one line: star · 4.9 | BOOKING AIRBNB */
  .lg.lg--badge .lg__content {
    flex-wrap: nowrap;
    white-space: nowrap;
    padding: 1.05rem 1.1rem;
    gap: 0.55rem;
  }
  
  

  /* Stack the CTA full-width on mobile for a comfortable thumb target. */
  .home-hero__actions > .home-hero__cta {
    width: 100%;
    max-width: 22rem;
    justify-content: center;
  }
}

/* Match the score badge to the WhatsApp CTA so the hero pair reads as one
   deliberate row: same pill radius, same padding rhythm, same inner scale. */
.home-hero__actions .lg.lg--badge { border-radius: var(--radius-full); }
.home-hero__actions .lg.lg--badge .lg__content {
  padding: 1.1rem 2.4rem;
  gap: 0.85rem;
}
.home-hero__actions .lg.lg--badge .home-hero__badge-star,
.home-hero__actions .lg.lg--badge .home-hero__badge-num {
  font-size: var(--fs-md);
}
.home-hero__actions .lg.lg--badge .home-hero__badge-sep { height: 14px; }

/* ── Apartment photo placeholder ─────────────────────────────────────────
   Sits under the <img>; a successful photo covers it. When the photo can't
   load (offline / 404) the card flips data-error and this warm paper plate
   shows through instead of a broken-image glyph. */
.v2-aptcard__ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 0.85rem 0.95rem;
  background:
    radial-gradient(120% 90% at 85% 12%, hsl(36 22% 90%), transparent 60%),
    linear-gradient(152deg, hsl(34 20% 88%) 0%, hsl(30 16% 80%) 100%);
}
.v2-aptcard__ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, hsl(30 10% 30% / 0.04) 0 2px, transparent 2px 11px);
}
.v2-aptcard__ph-label {
  position: relative;
  font-family: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(30 8% 40%);
}
/* Photo present (loaded) → hide the placeholder beneath it. */
.v2-aptcard__photo[data-loaded='true'] .v2-aptcard__ph { opacity: 0; }
/* Photo failed → drop the shimmer skeleton so only the placeholder remains. */
.v2-aptcard__photo[data-error='true'] .v2-aptcard__skeleton { opacity: 0; animation: none; }
/* [RENO-PRELOAD 21.07] серость рено-карточки — с ПЕРВОГО кадра: фильтр жил только на <img>, и до загрузки
   фото плейсхолдер+шиммер стояли тёплыми, как у активных карточек → на медленной сети флэш «цветное→серое»
   (скрин юзера: Абая 10/1). Сам снимок остаётся loading=lazy — прелоад фото = мобайл-дата впустую. */
.v2-aptcard[data-status='renovation'] .v2-aptcard__ph { filter: grayscale(0.9) brightness(0.95); }
.v2-aptcard[data-status='renovation'] .v2-aptcard__skeleton { filter: grayscale(1); }

/* ── Free-today group + the occupied grid that follows ── */


/* ── District / location teaser — full-width balanced banner at the END of the grid ── */
/* The grid uses grid-auto-rows:1fr to equalise card heights; a full-width banner
   would get stretched to a whole card-row (≈540px). Switch the grid that holds the
   banner to content-sized rows so the banner keeps its own (short) height. */
.v2-aptsection__grid:has(.v2-aptsection__bridge-card--row) { grid-auto-rows: auto; }

/* Horizontal layout: text left, CTA right — fills the width instead of floating bottom-left. */


/* ── Reviews "show more" ── */
.rb__more { display: flex; justify-content: center; margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.rb__more:empty { display: none; }

.rb__more-btn:hover { background: hsl(var(--ink) / 0.05); border-color: hsl(var(--ink) / 0.4); transform: translateY(-1px); }



/* —— recovered hero/polish rules (orphaned from 06-06 branch, final versions) —— */
.site-drawer__brand em { font-style: normal; font-weight: 500; }

.home-hero__h1 { text-shadow: 0 2px 30px rgba(0, 0, 0, 0.32); }

.home-hero__sentinel { height: 1px; margin-top: -1px; pointer-events: none; }

.home-hero__trustline {
  margin: 0;
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: var(--fs-md); font-weight: 500;
  color: hsl(var(--paper) / 0.92);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4);
}

/* Stars reflect the real 4.88/5 — filled overlay clipped, dim track beneath */


.home-hero__trustline-num { font-weight: 700; }



.home-hero__trustline-plats::before { content: "·"; margin-right: 0.55rem; opacity: 0.5; }

.home-hero__reassure {
  margin: 0.1rem 0 0;
  text-align: center;
  font-size: var(--fs-sm); font-weight: 500;
  color: hsl(var(--paper) / 0.68);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

/* Subtle scroll cue — gentle bob, invites users into the apartments */


@keyframes heroCueBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* District qualifier: same bold scale, set apart by a quiet middot beat */


/* ── Apartments quiet head ─────────────────────────────────────────────
   The hero→cream fade must dissolve straight into the grid, so the
   apartments section opens with ONE restrained utility line (eyebrow +
   action) — no big title/intro that would break the fade. This gives the
   main product section its own quiet "title moment" and restores the
   page's header rhythm. Ported from the original Direction-A section kit. */


/* ── Section rhythm (banding) ──────────────────────────────────────────
   The page sat almost entirely on one cream (--paper); that flatness made
   the sequence dense hero → open apartments → dense reviews read as a gap
   instead of a beat. The hero→cream fade locks the apartments to --paper,
   so instead of a header we give the REVIEWS zone its own slightly deeper
   warm ground (--paper-soft), framed by hairlines. Result: an A·B·A
   banding — light apartments, a distinct testimonials "room", light FAQ —
   so the apartments' openness reads as a deliberate gallery pause, not a
   missing title. (ID+class beats reviews.css's `.rb` on specificity.) */
.v2-aptsection--editorial .v2-aptsection__inner {
  padding-top: clamp(2.75rem, 5vw, 4.25rem);
}



/* Live availability badge — moved here from the hero; sits opposite the eyebrow. */


#reviews.rb {
  background: hsl(var(--paper-soft));
  border-top: 1px solid hsl(var(--hairline));
  border-bottom: 1px solid hsl(var(--hairline));
}

/* —— recovered missing rules (transcript-intended, pre-indexing) —— */
/* ── Apartments section opener (quiet — hero already named the apartments) ── */


/* ── District teaser as a full-width band below the listings (not a grid peer) ── */


/* ── Free-today group: soft green plate so "available now" reads at a glance ── */


.v2-aptsection__group--free .v2-aptsection__eyebrow-dot[data-state='free'] {
  background: var(--wa); box-shadow: 0 0 0 4px hsl(146 50% 45% / 0.16);
}

.v2-aptsection__eyebrow-note::before { content: "· "; opacity: 0.6; }

/* Stack the CTA full-width on mobile for a comfortable thumb target. */
  .home-hero__actions > .home-hero__cta {
    width: 100%;
    max-width: 22rem;
    justify-content: center;
  }

/* —— recovered: trust line on its own row below the CTA (editorial hero) —— */
.v2-hero[data-layout="editorial"] .home-hero__actions > .t-one { flex-basis: 100%; width: 100%; justify-content: flex-start; margin-top: 0.45rem; }
.v2-hero[data-layout="center"] .home-hero__actions > .t-one { margin-top: 0.35rem; }
