/* ---------------------------------------------------------------
   Camp Bridal — lodge page
   Builds on styles.css (shared tokens + header/footer/buttons/form,
   .subhero, .section-head). Adds: unit comparison cards, per-unit
   detail, click-to-play video facade, stats, carousel, rates table.
---------------------------------------------------------------- */

/* ----- intro ----- */
.lodge-intro { padding: var(--section-pad) var(--gutter); }
.lodge-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 5rem);
  max-width: 84rem;
  margin: 0 auto;
  align-items: start;
}
.lodge-intro-body p + p { margin-top: 1.1rem; }
.lodge-intro-body p:not(.lede) { color: var(--ink-soft); max-width: 38em; }

/* ----- units: comparison cards ----- */
.units {
  background: var(--sage);
  padding: var(--section-pad) var(--gutter);
}
.unit-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  max-width: 90rem;
  margin: 0 auto;
}
.unit-card {
  display: flex;
  flex-direction: column;
  background: oklch(0.99 0.007 95);
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 12px 30px oklch(0.3 0.04 150 / 0.12);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.unit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px oklch(0.3 0.04 150 / 0.2);
}
.unit-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.unit-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.unit-card:hover .unit-card-media img { transform: scale(1.05); }
.unit-rating {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: oklch(0.99 0.007 95);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding: 0.25rem 0.6rem;
}
.unit-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  flex: 1;
}
.unit-eyebrow {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.unit-name {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.95;
  font-size: clamp(1.6rem, 2.3vw, 2.1rem);
}
.unit-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.1rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.unit-stats b { color: var(--ink); font-weight: 600; }
.unit-blurb { color: var(--ink-soft); }
.unit-from {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 1.05rem;
}
.unit-from b {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
}
.unit-from i { color: var(--ink-soft); font-style: normal; font-size: 0.9rem; }
.unit-go {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.98rem;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 0.2rem;
  align-self: flex-start;
}
.unit-card:hover .unit-go { border-bottom-color: var(--yellow-hover); }

/* ----- unit detail ----- */
.unit-detail { padding: var(--section-pad) var(--gutter); }
.unit-detail-alt { background: var(--cream-deep); }
.unit-detail-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  max-width: 90rem;
  margin: 0 auto;
  align-items: center;
}
.unit-detail-alt .unit-media { order: 2; }
.unit-copy h2 { margin: 0.5rem 0 0.75rem; }
.unit-copy .unit-eyebrow { color: var(--ink-soft); }
.unit-detail-rating {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.unit-detail-rating span {
  font-family: var(--body);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0;
  color: var(--ink-soft);
}
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: 1.25rem 0;
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; }
.stat b {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1;
}
.stat span {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-top: 0.3rem;
}
.unit-copy .lede { margin-bottom: 1.5rem; }
.unit-copy .ticks { margin-bottom: 1.75rem; }
.rate-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.9rem 1.1rem;
  background: var(--sage);
  font-size: 1.02rem;
  margin-bottom: 1.75rem;
}
.rate-line b { font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.unit-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* outline button — now the "Call" secondary action */
.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--cream); }

/* Airbnb out-link, demoted to a small tertiary text link below the CTAs */
.airbnb-aside {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.airbnb-aside a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.airbnb-aside a:hover { color: var(--forest); }

/* per-unit photo carousel */
.carousel {
  max-width: 90rem;
  margin: clamp(1.5rem, 3vw, 2.5rem) auto 0;
}
.carousel:focus-visible { outline: 3px solid var(--yellow-hover); outline-offset: 4px; }
.carousel-viewport {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: oklch(0.2 0.04 150);
  box-shadow: 0 22px 50px oklch(0.28 0.04 150 / 0.18);
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s var(--ease-out);
  will-change: transform;
}
.carousel-slide { position: relative; flex: 0 0 100%; height: 100%; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-slide figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 3rem clamp(1.25rem, 3vw, 2rem) 1.2rem;
  color: oklch(0.98 0.01 95);
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  background: linear-gradient(to top, oklch(0.18 0.04 150 / 0.82), transparent);
}
.carousel-slide figcaption::before {
  content: "";
  flex: none;
  width: 1.4rem;
  height: 2px;
  background: var(--yellow);
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(2.75rem, 4vw, 3.25rem);
  height: clamp(2.75rem, 4vw, 3.25rem);
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: oklch(0.98 0.01 95 / 0.92);
  color: var(--forest);
  font-size: 1.8rem;
  line-height: 1;
  font-family: var(--display);
  box-shadow: 0 6px 18px oklch(0.2 0.04 150 / 0.3);
  transition: background-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.carousel-arrow span { margin-top: -3px; }
.carousel-arrow:hover { background: var(--yellow); }
.carousel-prev { left: clamp(0.75rem, 1.5vw, 1.1rem); }
.carousel-next { right: clamp(0.75rem, 1.5vw, 1.1rem); }
.carousel-counter {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 0.7rem;
  background: oklch(0.2 0.04 150 / 0.6);
  color: oklch(0.98 0.01 95);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.carousel-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 0.3rem;
}
.carousel-thumb {
  flex: 0 0 auto;
  width: clamp(4.5rem, 8vw, 6rem);
  aspect-ratio: 3 / 2;
  padding: 0;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  background: none;
  opacity: 0.5;
  transition: opacity 0.2s var(--ease-out);
}
.carousel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.carousel-thumb:hover { opacity: 0.85; }
.carousel-thumb.is-active { opacity: 1; outline: 3px solid var(--yellow); outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none; }
}

/* ----- video facade ----- */
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: oklch(0.2 0.04 150);
  overflow: hidden;
  box-shadow: 0 24px 55px oklch(0.28 0.04 150 / 0.22);
}
.video-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: none;
}
.video-play img { width: 100%; height: 100%; object-fit: cover; }
.video-play::after {
  content: "";
  position: absolute;
  inset: 0;
  background: oklch(0.2 0.04 150 / 0.22);
  transition: background-color 0.3s var(--ease-out);
}
.video-play:hover::after { background: oklch(0.2 0.04 150 / 0.08); }
.video-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(4rem, 7vw, 5.5rem);
  height: clamp(4rem, 7vw, 5.5rem);
  border-radius: 50%;
  background: var(--yellow);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px oklch(0.2 0.04 150 / 0.4);
  transition: transform 0.3s var(--ease-out), background-color 0.2s var(--ease-out);
  z-index: 1;
}
.video-btn::after {
  content: "";
  border-style: solid;
  border-width: 0.8rem 0 0.8rem 1.35rem;
  border-color: transparent transparent transparent var(--on-yellow);
  margin-left: 0.35rem;
}
.video-play:hover .video-btn { transform: translate(-50%, -50%) scale(1.08); background: var(--yellow-hover); }
.video-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 2.5rem 1.25rem 1.1rem;
  color: oklch(0.98 0.01 95);
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  text-align: left;
  background: linear-gradient(to top, oklch(0.18 0.04 150 / 0.8), transparent);
}

/* ----- shared lodge amenities ----- */
.lodge-amenities {
  background: var(--forest);
  color: oklch(0.95 0.015 110);
  padding: var(--section-pad) var(--gutter);
}
.lodge-amenities .section-head h2 { color: oklch(0.98 0.01 95); }
.amenity-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  max-width: 90rem;
  margin: 0 auto;
  border-top: 1px solid oklch(0.42 0.05 150);
}
.amenity-grid li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: clamp(1.25rem, 2.5vw, 1.9rem) clamp(1rem, 2vw, 1.75rem) clamp(1.25rem, 2.5vw, 1.9rem) 0;
  border-bottom: 1px solid oklch(0.42 0.05 150);
}
.amenity-grid b {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.2rem;
  color: oklch(0.98 0.01 95);
}
.amenity-grid span { color: oklch(0.85 0.03 120); }

/* ----- rates ----- */
.rates {
  background: var(--cream-deep);
  padding: var(--section-pad) var(--gutter);
}
.rate-banner {
  max-width: 90rem;
  margin: 0 auto 1.5rem;
  padding: 0.9rem 1.1rem;
  background: oklch(0.93 0.07 92);
  border: 1px solid oklch(0.8 0.12 90);
  font-size: 0.96rem;
}
.rate-banner b { font-weight: 600; }
.rate-table-wrap { max-width: 90rem; margin: 0 auto; overflow-x: auto; }
.rate-table {
  width: 100%;
  border-collapse: collapse;
  background: oklch(0.99 0.007 95);
}
.rate-table th,
.rate-table td {
  text-align: left;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.rate-table thead th {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: var(--cream);
}
.rate-table tbody th {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.15rem;
}
.rate-table tbody th small {
  display: block;
  font-family: var(--body);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.2rem;
}
.rate-table td {
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}
.rate-table tbody tr:last-child th,
.rate-table tbody tr:last-child td { border-bottom: 0; }
.rate-table a {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  color: var(--ink);
  border-bottom: 2px solid var(--yellow);
  text-decoration: none;
  padding-bottom: 0.1rem;
}
.rates-fine {
  max-width: 90rem;
  margin: 1.25rem auto 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ----- responsive ----- */
@media (max-width: 900px) {
  .lodge-intro-grid,
  .unit-detail-grid {
    grid-template-columns: 1fr;
  }
  .unit-detail-alt .unit-media { order: 0; }
}

@media (max-width: 640px) {
  .site-header { flex-wrap: wrap; gap: 0.6rem 1rem; padding-block: 0.6rem; }
  .site-nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
  .site-header .btn { margin-left: auto; }
  .subhero { min-height: min(70svh, 34rem); }

  /* rate table -> stacked cards */
  .rate-table thead { display: none; }
  .rate-table,
  .rate-table tbody,
  .rate-table tr,
  .rate-table th,
  .rate-table td { display: block; width: 100%; }
  .rate-table tr {
    border-bottom: 3px solid var(--cream-deep);
    padding: 0.5rem 0;
  }
  .rate-table tbody th { border-bottom: 1px solid var(--line); padding-bottom: 0.75rem; }
  .rate-table td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .rate-table td::before {
    content: attr(data-label);
    font-family: var(--display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.85rem;
    color: var(--ink-soft);
  }
}
