/* Home page-specific styles */

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  color: var(--paper);
  overflow: hidden;
  display: grid;
}
.hero-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85) contrast(1.05);
}
/* Pending-photo placeholder for master bedroom (awaiting upload from Steve) */
/* Hero play button + video lightbox */
.hero-play {
  position: absolute;
  z-index: 6;
  top: 42%; right: 48px;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 26px 12px 12px;
  border: 0; border-radius: 999px;
  background: rgba(20,20,18,0.78);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 14px 44px rgba(0,0,0,0.55), 0 0 0 1px rgba(247,243,235,0.3) inset;
  color: var(--paper); cursor: pointer;
  transition: transform .3s ease, background .25s ease;
}
.hero-play:hover { transform: scale(1.05); background: rgba(20,20,18,0.9); }
.hero-play .play-circle {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--paper, #f7f3eb); color: #14140e;
  display: grid; place-items: center; flex: none;
  box-shadow: 0 0 0 6px rgba(247,243,235,0.18);
}
.hero-play .play-circle svg { margin-left: 3px; }
.hero-play .play-label {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--paper); white-space: nowrap; padding-right: 4px;
}
.video-lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,10,8,0.94);
  backdrop-filter: blur(12px);
  display: none; place-items: center; padding: 40px;
}
.video-lightbox.open { display: grid; }
.vlb-frame {
  width: min(94vw, 1100px);
  max-height: 86vh;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.vlb-close {
  position: absolute; top: 24px; right: 24px;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(247,243,235,0.1);
  border: 1px solid rgba(247,243,235,0.3);
  color: var(--paper); font-family: var(--serif);
  font-size: 24px; cursor: pointer; transition: background .2s;
}
.vlb-close:hover { background: rgba(247,243,235,0.25); }
@media (max-width: 700px) {
  .hero-text { padding-top: 120px; padding-bottom: 130px; }
  .hero-title { font-size: clamp(44px, 13vw, 72px); }
  .hero-eyebrow { flex-wrap: wrap; gap: 6px 12px; margin-bottom: 18px; font-size: 10px; }
  .hero-eyebrow .dot { display: none; }
  .hero-media .corner { display: none; }
  .hero-foot { margin-top: 28px; gap: 20px; }
  .hero-meta { gap: 18px; }
  .hero-scroll { display: none; }
  /* Watch-film button: small circle, bottom-right, clear of the headline */
  .hero-play {
    top: auto; bottom: 24px; right: 20px;
    transform: none;
    padding: 8px 18px 8px 8px;
    gap: 12px;
  }
  .hero-play:hover { transform: scale(1.04); }
  .hero-play .play-circle { width: 46px; height: 46px; box-shadow: 0 0 0 4px rgba(247,243,235,0.18); }
  .hero-play .play-label { font-size: 10px; letter-spacing: 0.16em; }
}

/* Pending-photo placeholder for master bedroom (awaiting upload from Steve) */
.master-pending {
  background: repeating-linear-gradient(
    45deg,
    #2a2d24 0,
    #2a2d24 12px,
    #232620 12px,
    #232620 24px
  );
  display: grid;
  place-items: center;
}
.master-pending .pending-text {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.55;
  text-align: center;
  line-height: 1.8;
}

.hero-media {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #1a1c18;
}
.hero-video {
  position: absolute;
  top: 50%; left: 50%;
  width: max(100vw, 177.78vh);
  height: max(56.25vw, 100vh);
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 30%, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero-media .corner {
  position: absolute;
  z-index: 2;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.7;
  top: 100px; left: 32px;
}
.hero-media .corner.r { left: auto; right: 32px; }
.hero-media .corner.br { top: auto; bottom: 32px; left: auto; right: 32px; opacity: 0.55; }
.hero-photo-label {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 50%);
  display: grid;
  gap: 10px;
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
  color: var(--paper);
  pointer-events: none;
  z-index: 0;
}
.hero-text {
  position: relative;
  z-index: 2;
  align-self: end;
  padding-bottom: 80px;
  padding-top: 180px;
  width: 100%;
}
.hero-eyebrow {
  display: flex;
  gap: 14px;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 28px;
}
.hero-eyebrow .dot { opacity: 0.5; }
.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(56px, 9vw, 144px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--bone);
}
.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 48px;
}
.hero-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-meta > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-meta .num { color: rgba(247,243,235,0.6); }
.hero-meta span:last-child {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0;
}
.hero-scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 32px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.7;
}
.hero-scroll .line {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, currentColor, transparent);
  animation: scroll-line 2.4s ease-in-out infinite;
}
@keyframes scroll-line {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* Intro */
.intro-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
}
.intro-side .num { color: var(--whisper); }
.signature {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  margin-top: 32px;
  color: var(--moss);
}

/* Full bleed */
.full-bleed {
  padding: 0;
}
.living-spaces { padding: clamp(64px, 10vw, 120px) 0; }
.living-spaces .section-head { margin-bottom: 40px; }
.living-spaces .strip-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.living-spaces .strip-3 .ph { aspect-ratio: 4/5; width: 100%; }
@media (max-width: 900px) {
  .living-spaces .strip-3 { grid-template-columns: 1fr; }
  .living-spaces .strip-3 .ph { aspect-ratio: 4/3; }
}

/* Gardens */
.gardens { padding: clamp(64px, 10vw, 120px) 0; background: var(--sand); }
.garden-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.garden-photo { aspect-ratio: 4/5; width: 100%; }
.garden-text h2 em { font-style: italic; color: var(--lichen); }
.gardens .strip-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: var(--max);
  margin: 56px auto 0;
  padding: 0 var(--gutter);
}
.gardens .strip-2 .ph { aspect-ratio: 3/2; width: 100%; }
@media (max-width: 900px) {
  .garden-grid { grid-template-columns: 1fr; gap: 32px; }
  .gardens .strip-2 { grid-template-columns: 1fr; }
}
.fb-photo {
  width: 100%;
  height: clamp(420px, 70vh, 760px);
}

/* Section heads */
.section-head {
  margin-bottom: 80px;
  max-width: 880px;
}
.section-head.split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  max-width: 100%;
}
.section-head h2 em { font-style: italic; color: var(--lichen); }

/* Floor tour */
.floor-tour { display: grid; gap: 56px; }
.floor-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.floor-tab {
  text-align: left;
  padding: 28px 0;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 4px 16px;
  border-right: 1px solid rgba(0,0,0,0.08);
  position: relative;
  transition: color .25s ease;
}
.floor-tab:last-child { border-right: 0; }
.floor-tab .num { grid-row: 1 / 3; align-self: center; font-size: 24px; font-family: var(--serif); color: var(--whisper); letter-spacing: 0; text-transform: none; transition: color .25s; }
.floor-tab .ft-label { font-family: var(--serif); font-size: 22px; color: var(--moss); }
.floor-tab .ft-sub { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--whisper); }
.floor-tab.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--moss);
}
.floor-tab.active .num { color: var(--moss); }

.floor-stage {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
}
.floor-plan { position: relative; }
.plan-photo {
  aspect-ratio: 4 / 3;
  height: 100%;
}
.floor-rooms { display: grid; gap: 24px; align-content: start; }
.floor-rooms .fr {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  align-items: start;
}
.floor-rooms .fr:last-child { border-bottom: 0; }
.floor-rooms .fr .num { padding-top: 6px; }
.floor-rooms .fr h4 { font-family: var(--serif); font-size: 22px; color: var(--moss); margin-bottom: 6px; }
.floor-rooms .fr p { font-size: 14px; color: var(--slate); }

/* Rooms mosaic */
.rooms-mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 360px 320px;
  gap: 24px;
}
.rooms-mosaic .room-card.large { grid-column: span 4; grid-row: span 1; }
.rooms-mosaic .room-card { grid-column: span 2; }
.rooms-mosaic .room-card:nth-child(2) { grid-column: span 2; }
.rooms-mosaic .room-card:nth-child(3) { grid-column: span 2; }
.rooms-mosaic .room-card:nth-child(4) { grid-column: span 2; }
.rooms-mosaic .room-card:nth-child(5) { grid-column: span 2; }
.room-card { display: grid; gap: 16px; }
.room-card .ph { width: 100%; height: 100%; transition: filter .35s ease; }
.room-card:hover .ph { filter: brightness(0.95); }
.room-card .room-meta { display: grid; gap: 4px; }
.room-card .room-meta .num { color: var(--whisper); }
.room-card .room-meta h3 { font-size: 26px; color: var(--moss); }
.room-card .room-meta p { font-size: 14px; }

/* Pull quote */
.pull {
  background: var(--moss);
  color: var(--sand);
  padding: clamp(96px, 14vw, 180px) 0;
}
.pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 4.4vw, 56px);
  line-height: 1.2;
  color: var(--paper);
  max-width: 22ch;
  letter-spacing: -0.01em;
}
.pull-quote .quote-mark {
  font-size: 1.4em;
  color: var(--lichen-2);
  font-style: normal;
  display: inline-block;
  margin-right: 4px;
  vertical-align: -0.15em;
}
.pull-attr { margin-top: 40px; color: var(--bone); }

/* Area */
.area-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.area-text h2 em { font-style: italic; color: var(--lichen); }
.area-map {
  position: relative;
  background: var(--sand);
  border: 1px solid rgba(0,0,0,0.08);
  padding: 24px;
}
.map-svg { width: 100%; height: auto; }
.map-legend {
  position: absolute;
  inset: auto auto 12px 24px;
  display: flex;
  gap: 16px;
  font-size: 9px;
  color: var(--lichen);
  pointer-events: none;
}

/* Distances */
.distances { background: var(--sand); }
.dist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.08);
  margin-top: 56px;
}
.dist {
  background: var(--sand);
  padding: 32px 28px;
  display: grid;
  gap: 8px;
  transition: background .25s;
}
.dist:hover { background: var(--paper); }
.dist .num { color: var(--lichen); font-size: 14px; }
.dist h4 { font-size: 22px; color: var(--moss); }
.dist p { font-size: 13px; color: var(--slate); }

/* Itinerary */
.itin-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.itin-card {
  background: var(--paper-2);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 36px 32px;
  display: grid;
  gap: 16px;
}
.itin-card > .num { color: var(--lichen); }
.itin-card h3 { font-size: 32px; color: var(--moss); }
.itin-card ul { list-style: none; display: grid; gap: 14px; margin-top: 8px; }
.itin-card ul li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 16px;
  font-size: 14px;
  color: var(--slate);
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(0,0,0,0.1);
}
.itin-card ul li:last-child { border-bottom: 0; }
.itin-card .t {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lichen);
  padding-top: 3px;
}

/* Dogs */
.dogs { background: var(--sand); }
.dog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.dog-photo { aspect-ratio: 4/5; }
.dog-text h2 em { font-style: italic; color: var(--lichen); }

/* Booking section */
.book-section { background: var(--paper-2); }
.book-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 80px;
  align-items: start;
}
.book-text h2 em { font-style: italic; color: var(--lichen); }
.rates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.rates > div { display: grid; gap: 4px; }
.rates .num { color: var(--lichen); }
.rates h4 { font-size: 32px; color: var(--moss); font-weight: 300; }
.rates p { font-size: 12px; color: var(--whisper); }

/* Calendar */
.book-cal {
  background: var(--paper);
  border: 1px solid rgba(0,0,0,0.08);
  padding: 32px;
}
.cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.cal-month { font-size: 13px; color: var(--moss); }
.cal-nav {
  width: 32px; height: 32px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 16px;
  transition: background .2s, color .2s;
}
.cal-nav:hover { background: var(--moss); color: var(--sand); border-color: var(--moss); }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-dow {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--whisper);
  text-align: center;
  padding-bottom: 8px;
}
.cal-days {
  grid-column: span 7;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--moss);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: background .15s;
}
.cal-day:hover:not(.empty):not(.booked) { background: var(--sand); }
.cal-day.empty { color: var(--whisper); opacity: 0.3; cursor: default; }
.cal-day.booked { background: var(--bone); color: var(--whisper); cursor: not-allowed; text-decoration: line-through; }
.cal-day.held { background: rgba(124,106,74,0.18); color: var(--lichen); }
.cal-day.selected { background: var(--moss); color: var(--sand); }
.cal-day.in-range { background: rgba(46,51,43,0.12); color: var(--moss); }
.cal-day.today::after {
  content: ''; position: absolute; bottom: 4px; width: 4px; height: 4px;
  border-radius: 50%; background: var(--lichen);
}
.cal-key {
  display: flex;
  gap: 18px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
.cal-key span { display: inline-flex; align-items: center; gap: 6px; }
.cal-key .dot { width: 8px; height: 8px; border-radius: 50%; }
.cal-key .dot.avail { background: var(--paper); border: 1px solid var(--moss); }
.cal-key .dot.held { background: rgba(124,106,74,0.4); }
.cal-key .dot.booked { background: var(--bone); }

/* Guestbook */
.guestbook { background: var(--sand); text-align: center; }
.gb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  margin-top: 64px;
  text-align: left;
}
.guestbook figure { display: grid; gap: 24px; }
.guestbook blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--moss);
  font-weight: 300;
}
.guestbook figcaption .num { color: var(--lichen); }

/* Responsive tweaks */
@media (max-width: 1100px) {
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .area-grid, .dog-grid, .book-grid { grid-template-columns: 1fr; gap: 56px; }
  .floor-stage { grid-template-columns: 1fr; }
  .rooms-mosaic { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .rooms-mosaic .room-card.large { grid-column: span 2; }
  .rooms-mosaic .room-card { grid-column: span 1; }
  .rooms-mosaic .room-card .ph { aspect-ratio: 4/3; }
  .itin-cards, .gb-grid { grid-template-columns: 1fr; gap: 24px; }
  .dist-grid { grid-template-columns: repeat(2, 1fr); }
  .intro-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .floor-tabs { grid-template-columns: 1fr; }
  .floor-tab { border-right: 0; border-bottom: 1px solid rgba(0,0,0,0.08); }
  .rates { grid-template-columns: 1fr; gap: 16px; }
}
