/* realestate-v2.html only (2026-11-25): elements taken from the site we built for Luis Adames
   (luis-adames.thewalk.homes): the Austin film, the walked listings, the 360 room sample.
   Look stays PeopleDots v2 (industry.css tokens). Text on video = documentary lower third, no cards. */

.re-eyebrow {
  font: 500 0.75rem/1.2 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* 1. The city film ------------------------------------------------------- */
.re-city { background: var(--light); padding-block: var(--section) 0; }
.re-city-bleed {
  position: relative;
  height: clamp(26rem, 62vw, 46rem);
  overflow: hidden;
  background: #111;
}
.re-city-bleed video, .re-city-bleed img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.re-city-bleed::after { /* faint dark gradient under the type */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,0) 70%),
    linear-gradient(to right, rgba(0,0,0,.55) 0%, rgba(0,0,0,.2) 45%, rgba(0,0,0,0) 70%);
}
.re-city-cap {
  position: absolute; z-index: 1;
  left: var(--gutter); right: var(--gutter); bottom: clamp(1.5rem, 5vw, 3.5rem);
  max-width: 40rem;
  color: #f4f2ed;
  text-shadow: 0 1px 12px rgba(0,0,0,.35);
}
.re-city-cap .re-eyebrow { display: block; padding-bottom: .75rem; margin-bottom: .9rem; border-bottom: 1px solid rgba(244,242,237,.45); width: max-content; max-width: 100%; }
.re-city-cap h2 {
  font: 800 clamp(2.2rem, 5.6vw, 4.6rem)/0.98 var(--font);
  font-stretch: 112%;
  letter-spacing: -0.02em;
  margin: 0 0 .9rem;
  text-wrap: balance;
}
.re-city-cap p { font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.5; margin: 0 0 1.4rem; max-width: 34rem; }
.re-play {
  display: inline-flex; align-items: center; gap: .7rem;
  font: 600 .95rem/1 var(--font);
  color: #111; background: #f4f2ed;
  border: 0; border-radius: 999px;
  padding: .85rem 1.3rem .85rem 1rem;
  cursor: pointer;
  transition: transform .2s var(--ease-out), background-color .2s;
  text-shadow: none;
}
.re-play svg { width: .9rem; height: .9rem; }
@media (hover: hover) { .re-play:hover { background: #fff; } }
.re-play:active { transform: scale(.97); }
.re-play:focus-visible, .re-card:focus-visible, .re-room-actions button:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.re-city-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.75rem, 1.6vw, 1.25rem);
  padding: clamp(.75rem, 1.6vw, 1.25rem) var(--gutter) 0;
}
.re-city-row figure { margin: 0; }
.re-city-row .re-media { aspect-ratio: 4 / 5; }
.re-city-row figcaption { padding-top: .8rem; color: var(--on-light-soft); }
.re-city-row figcaption strong { display: block; color: var(--on-light); font: 700 1.15rem/1.25 var(--font); margin-top: .3rem; }

.re-media { position: relative; overflow: hidden; border-radius: 10px; background: #ddd; }
.re-media video, .re-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* film dialog */
.re-film { border: 0; padding: 0; background: transparent; width: min(92vw, 70rem); max-width: none; }
.re-film::backdrop { background: rgba(0,0,0,.86); }
.re-film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; }
.re-film-close {
  display: block; margin: 0 0 .6rem auto;
  font: 600 .9rem/1 var(--font); color: #f4f2ed; background: none; border: 0; padding: .6rem 0; cursor: pointer;
}

/* 2. Walked listings ----------------------------------------------------- */
.re-walks { background: var(--light-well); padding-block: var(--section); }
.re-walks .section-title, .re-room .section-title { text-align: center; }
.re-walks .section-sub { text-align: center; max-width: 38rem; margin-inline: auto; }
.re-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.re-card { display: block; color: inherit; text-decoration: none; }
.re-stack { position: relative; padding: 0 10px 12px 0; }
.re-stack::before, .re-stack::after { /* paper layers behind the photo, as on Luis's site */
  content: ""; position: absolute; border-radius: 10px; background: #e8e8ed;
  inset: 12px 0 0 10px; z-index: 0;
  transition: transform .5s var(--ease-out);
}
.re-stack::after { inset: 6px 5px 6px 5px; background: #d9d9de; }
.re-stack .re-media { aspect-ratio: 4 / 5; z-index: 1; }
@media (hover: hover) and (pointer: fine) {
  .re-card:hover .re-stack::before { transform: translate(4px, 4px) rotate(1.2deg); }
  .re-card:hover .re-stack::after { transform: translate(2px, 2px) rotate(.6deg); }
}
.re-tag {
  position: absolute; z-index: 2; top: .9rem; left: .9rem;
  font: 500 .7rem/1 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase;
  color: #f4f2ed; background: rgba(17,17,17,.72); padding: .45rem .6rem; border-radius: 4px;
}
.re-card h3 { font: 700 1.35rem/1.2 var(--font); margin: 1.2rem 0 .25rem; }
.re-place { color: var(--on-light-soft); margin: 0; }
.re-nums { display: flex; gap: 2rem; margin: 1.1rem 0 .9rem; padding-top: 1rem; border-top: 1px solid var(--rule-light); }
.re-nums b { display: block; font: 800 clamp(2.4rem, 4.2vw, 3.4rem)/1 var(--font); font-stretch: 112%; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.re-nums span { color: var(--on-light-soft); font-size: .9rem; }
.re-go { color: var(--red-text-light); font-weight: 600; }
.re-walks .fine { text-align: center; margin-top: clamp(2rem, 4vw, 3rem); }
.re-walks .fine a { color: var(--red-text-light); }

/* 3. The 360 room -------------------------------------------------------- */
.re-room { background: var(--light); padding-block: var(--section); }
.re-room-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.re-room-copy .section-title { text-align: left; }
.re-room-copy p { color: var(--on-light-soft); line-height: 1.55; }
.re-room-view { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #ddd; }
.re-room-view > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.re-room-sphere { position: absolute; inset: 0; }
.re-room-sphere[hidden] { display: none; }
.re-room-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.re-room-actions button {
  font: 600 .9rem/1 var(--font); cursor: pointer;
  padding: .8rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--rule-light); background: var(--light-well); color: var(--on-light);
}
.re-room-actions button.is-main { background: var(--red); color: #fff; border-color: var(--red); }
.re-room-actions button[hidden] { display: none; }
.re-room-status { font-size: .85rem; color: var(--on-light-soft); min-height: 1.3em; margin-top: .6rem; }
.re-room-note { font-size: .8rem; color: var(--on-light-soft); margin-top: .4rem; }

@media (max-width: 820px) {
  .re-cards { grid-template-columns: 1fr; max-width: 26rem; margin-inline: auto; }
  .re-room-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .re-city-row { grid-template-columns: 1fr 1fr; }
  .re-city-row figure:last-child { grid-column: 1 / -1; }
  .re-city-row figure:last-child .re-media { aspect-ratio: 16 / 10; }
}
@media (prefers-reduced-motion: reduce) {
  .re-stack::before, .re-stack::after, .re-play { transition: none; }
}
