/**
 * Yellowstone Luxury Lodges — Cabin Node Detail Page CSS
 * Full-width hero gallery, tabs, amenities, booking sidebar.
 */

/* ==================================================
   Cabin Node — Layout & Tabs
================================================== */
.cabin-node {
  overflow-x: hidden;
  max-width: 100%;
}

/* ==================================================
   CABIN GALLERY — full-width, flush under transparent header
   Gallery sits at top of viewport with the header floating
   semi-transparent over it (has-hero-image body class).
   No 100vw / translateX trick — the page template renders
   this OUTSIDE the Bootstrap .container so it's naturally
   full-width. That avoids scrollbar-width overflow bugs.
================================================== */

.cabin-gallery-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
}

/* Kill the partial's default bottom margin on cabin pages */
.cabin-gallery-wrap .wmd-gallery-wrapper {
  margin-bottom: 0;
}

/* --- Main slide — tall enough for hero impact, capped so title fits --- */
.cabin-gallery-wrap .wmd-gallery-main {
  border-radius: 0;
  margin-bottom: 2px;
  background: var(--lux-forest-deep, #1F3A14);
}

.cabin-gallery-wrap .wmd-gallery-slide__inner {
  aspect-ratio: auto !important;
  height: 68vh;
  min-height: 400px;
  max-height: 680px;
}

.cabin-gallery-wrap .wmd-gallery-slide__inner img,
.cabin-gallery-wrap .wmd-gallery-slide__lightbox-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* --- Dark gradient overlay on bottom 60% — anchors hero meta + depth --- */
.cabin-gallery-wrap .wmd-gallery-slide__inner::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(15, 26, 8, 0.25) 30%,
    rgba(15, 26, 8, 0.75) 75%,
    rgba(15, 26, 8, 0.92) 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* Top-edge gradient to keep header readable over bright images */
.cabin-gallery-wrap .wmd-gallery-slide__inner::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 180px;
  background: linear-gradient(
    to bottom,
    rgba(15, 26, 8, 0.45) 0%,
    rgba(15, 26, 8, 0.15) 60%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* Zoom cursor + z-index on whole trigger */
.cabin-gallery-wrap .wmd-gallery-slide__lightbox-trigger {
  cursor: zoom-in;
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
}

/* --- Zoom icon — hidden, full image is clickable --- */
.cabin-gallery-wrap .wmd-gallery-slide__zoom-icon {
  display: none;
}

/* --- Per-slide captions disabled in favor of persistent hero meta --- */
.cabin-gallery-wrap .wmd-gallery-slide__caption {
  display: none;
}

/* ==================================================
   HERO META OVERLAY
   Title + location + stats + reviews, bottom-left
   of the full-width image. Persists across slides.
================================================== */
.cabin-hero-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 75px; /* sits above the thumb strip */
  z-index: 6;
  pointer-events: none; /* let clicks pass through to the image lightbox */
  color: #fff;
}

.cabin-hero-meta__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem) 1.5rem;
  pointer-events: auto; /* re-enable on the content itself */
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7), 0 0 24px rgba(0, 0, 0, 0.45);
}

.cabin-hero-meta__eyebrow {
  font-family: var(--font-body, 'Open Sans', sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lux-brass-soft, #D4A86A);
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 0.25rem;
}
.cabin-hero-meta__eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2rem;
  height: 1px;
  background: var(--lux-brass-soft, #D4A86A);
  transform: translateY(-50%);
}

.cabin-hero-meta__title {
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: #fff;
  margin: 0;
}

.cabin-hero-meta__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-top: 0.35rem;
}
.cabin-hero-meta__stat {
  font-family: var(--font-body, 'Open Sans', sans-serif);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.cabin-hero-meta__icon {
  color: var(--lux-brass-soft, #D4A86A);
  flex-shrink: 0;
  opacity: 0.95;
}
.cabin-hero-meta__stat:not(:last-child)::after {
  content: '·';
  margin: 0 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.2rem;
  font-weight: 700;
}
.cabin-hero-meta__stat--price {
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}
.cabin-hero-meta__per {
  font-family: var(--font-body, 'Open Sans', sans-serif);
  font-size: 0.78rem;
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.78);
  margin-left: 0.15rem;
  letter-spacing: 0;
}

/* --- Prev / Next arrows — pure chevrons, no backgrounds --- */
.cabin-gallery-wrap .wmd-gallery-arrow {
  position: absolute;
  top: calc(50% - 40px); /* account for thumb strip below */
  transform: translateY(-50%);
  z-index: 10;
  width: 56px;
  height: 56px;
  border-radius: 0;
  background: transparent;
  border: none;
  backdrop-filter: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 2px rgba(0, 0, 0, 0.4));
  transition: opacity 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.cabin-gallery-wrap .wmd-gallery-arrow svg {
  width: 38px;
  height: 38px;
  stroke-width: 2.4;
}
.cabin-gallery-wrap .wmd-gallery-arrow--prev { left: 1rem; }
.cabin-gallery-wrap .wmd-gallery-arrow--next { right: 1rem; }
.cabin-gallery-wrap:hover .wmd-gallery-arrow,
.cabin-gallery-wrap .wmd-gallery-arrow:focus-visible {
  opacity: 1;
}
.cabin-gallery-wrap .wmd-gallery-arrow:hover {
  color: var(--lux-brass-soft, #D4A86A);
  transform: translateY(-50%) scale(1.1);
}
.cabin-gallery-wrap .wmd-gallery-arrow.swiper-button-disabled {
  opacity: 0;
  pointer-events: none;
}

/* --- Thumb strip --- */
.cabin-gallery-wrap .wmd-gallery-thumbs {
  margin-top: 0;
}
.cabin-gallery-wrap .wmd-gallery-thumbs .swiper-slide {
  width: 110px !important;
  height: 75px;
  border-radius: 0;
  opacity: 0.7;
  overflow: hidden;
  outline: none;
  transition: opacity 0.25s ease;
  border-right: 2px solid #fff;
}
.cabin-gallery-wrap .wmd-gallery-thumbs .swiper-slide:last-child {
  border-right: none;
}
.cabin-gallery-wrap .wmd-gallery-thumbs .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cabin-gallery-wrap .wmd-gallery-thumbs .swiper-slide:hover {
  opacity: 0.9;
}
.cabin-gallery-wrap .wmd-gallery-thumbs .swiper-slide-thumb-active {
  opacity: 1;
  position: relative;
}
.cabin-gallery-wrap .wmd-gallery-thumbs .swiper-slide-thumb-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 2px;
  bottom: 0;
  height: 3px;
  background: var(--lux-bronze, #9C6B2F);
  pointer-events: none;
}

/* --- GLightbox brand overrides --- */
.glightbox-clean .gslide-description {
  background: rgba(15, 26, 8, 0.88);
  color: #fff;
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.glightbox-clean .gclose,
.glightbox-clean .gnext,
.glightbox-clean .gprev {
  background-color: rgba(15, 26, 8, 0.7);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.glightbox-clean .gclose:hover,
.glightbox-clean .gnext:hover,
.glightbox-clean .gprev:hover {
  background-color: var(--lux-bronze, #9C6B2F);
  border-color: var(--lux-bronze, #9C6B2F);
}
.glightbox-clean .gslide-title {
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  color: #fff;
  font-weight: 500;
}

/* ==================================================
   Kill the gap between header and gallery
================================================== */
.main-content {
  padding-top: 0;
}

/* ==================================================
   Breadcrumb (inline above title)
================================================== */
.cabin-breadcrumb {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.cabin-breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
}
.cabin-breadcrumb li {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: #8a8578;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cabin-breadcrumb li + li::before {
  content: '›';
  margin: 0 0.5rem;
  color: #c9c1ae;
  font-size: 1rem;
}
.cabin-breadcrumb a {
  color: #6e6a60;
  text-decoration: none;
  transition: color 0.2s ease;
}
.cabin-breadcrumb a:hover {
  color: var(--lux-bronze, #9C6B2F);
}
.cabin-breadcrumb li[aria-current="page"] {
  color: var(--lux-forest-deep, #1F3A14);
}

/* ==================================================
   Header — refined serif title
================================================== */
.cabin-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--lux-hairline, rgba(156, 107, 47, 0.25));
}
.cabin-header__title {
  font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 600;
  color: var(--lux-forest-deep, #1F3A14);
  margin: 0 0 1rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

/* Quick Stats — dot-separated, refined body type */
.cabin-header__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-bottom: 0.75rem;
}
.cabin-stat {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--lux-ink, #3E3A32);
  font-weight: 500;
}
.cabin-stat:not(:last-child)::after {
  content: '·';
  margin: 0 0.6rem;
  color: #c9c1ae;
  font-size: 1.2rem;
  font-weight: 700;
}
.cabin-stat--price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--lux-forest-deep, #1F3A14);
  font-family: var(--font-heading);
}
.cabin-stat__per {
  font-size: 0.78rem;
  font-weight: 400;
  color: #8a8578;
  margin-left: 0.15rem;
  font-family: var(--font-body);
  font-style: italic;
}

/* Categories & Tags row — hidden (moved to amenities tab) */
.cabin-header__tags {
  display: none;
}

/* ==================================================
   Amenities & Tags — plain, elegant
================================================== */
.cabin-tag-list {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--lux-ink, #3E3A32);
  font-weight: 500;
  line-height: 1.9;
}
.cabin-amenity-list {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--lux-ink, #3E3A32);
  font-weight: 400;
  line-height: 2;
  margin: 0;
}

.cabin-amenities__tags {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--lux-hairline, rgba(156, 107, 47, 0.25));
}
.cabin-amenities__tags svg {
  color: var(--lux-bronze, #9C6B2F);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

#tab-amenities h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--lux-forest-deep, #1F3A14);
  margin: 0 0 1rem;
  letter-spacing: -0.005em;
}

/* ==================================================
   Body Layout — Bootstrap row/col with ordering
================================================== */
.cabin-body {
  margin-top: 0;
  padding-top: 0;
  /* NOTE: overflow-x:hidden was removed here because it breaks
     position:sticky on .cabin-booking-sticky. The gallery no longer
     uses the 100vw escape trick, so there's nothing to clip. */
}

/* Keep row columns top-aligned so tab content height changes don't
   drag the sidebar around. Sticky handles the scrolling behavior. */
.row.cabin-body {
  align-items: flex-start;
}

/* Cabin pages — kill the base theme's region-content top padding so
   the tabs sit tight under the gallery. Scoped to cabin node pages
   so other pages keep their normal breathing room. */
.node-type--mt_product .region-content {
  padding: 0;
}

.cabin-hero__main,
.cabin-hero__thumbs {
  max-width: 100%;
  overflow: hidden;
}

.cabin-booking-sticky {
  position: sticky;
  top: 120px;
}

@media (max-width: 991.98px) {
  .cabin-body__sidebar {
    margin-bottom: 1.5rem;
  }
}

.cabin-body__sidebar .block {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}
.cabin-body__sidebar .block > h2 {
  display: none;
}

/* ==================================================
   Description Tab
================================================== */
.cabin-description__summary {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--lux-ink, #3E3A32);
  margin-bottom: 1.75rem;
}
.cabin-description__section {
  margin-bottom: 1.75rem;
}
.cabin-description__section h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--lux-forest-deep, #1F3A14);
  margin: 0 0 0.75rem;
  letter-spacing: -0.005em;
}

/* ==================================================
   Videos Tab
================================================== */
.cabin-video__section {
  margin-bottom: 2rem;
}
.cabin-video__section h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--lux-forest-deep, #1F3A14);
  margin: 0 0 1rem;
}
.cabin-matterport {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 2px;
}
.cabin-matterport iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.cabin-video {
  border-radius: 2px;
  overflow: hidden;
}
.cabin-video iframe,
.cabin-video video {
  width: 100%;
  border-radius: 2px;
}

/* ==================================================
   Calendar Tab
================================================== */
#tab-calendar h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--lux-forest-deep, #1F3A14);
  margin: 0 0 1rem;
}

/* ==================================================
   Booking Sidebar
================================================== */
.cabin-booking-sidebar {
  margin-top: 2rem;
}

/* ==================================================
   Location Map
================================================== */
#cabin-location-map {
  width: 100%;
  height: 420px;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--lux-hairline, rgba(156, 107, 47, 0.25));
}

/* ==================================================
   Responsive
================================================== */

@media (max-width: 991.98px) {
  .cabin-gallery-wrap .wmd-gallery-slide__inner {
    height: 70vh;
    min-height: 380px;
    max-height: none;
  }
  .cabin-gallery-wrap .wmd-gallery-arrow {
    width: 42px;
    height: 42px;
  }
  .cabin-gallery-wrap .wmd-gallery-arrow svg {
    width: 30px;
    height: 30px;
  }
  .cabin-gallery-wrap .wmd-gallery-arrow--prev { left: 0.5rem; }
  .cabin-gallery-wrap .wmd-gallery-arrow--next { right: 0.5rem; }
  .cabin-hero-meta {
    bottom: 70px;
  }
}

@media (max-width: 767px) {
  .cabin-gallery-wrap .wmd-gallery-slide__inner {
    height: 58vh;
    min-height: 340px;
    max-height: 520px;
    aspect-ratio: auto !important;
  }
  .cabin-gallery-wrap .wmd-gallery-thumbs .swiper-slide {
    width: 75px !important;
    height: 55px;
  }
  /* Keep arrows visible by default on mobile since there's no hover */
  .cabin-gallery-wrap .wmd-gallery-arrow {
    opacity: 1;
    width: 38px;
    height: 38px;
  }
  .cabin-hero-meta {
    bottom: 60px;
  }
  .cabin-hero-meta__inner {
    padding: 0 1.25rem 1.25rem;
    gap: 0.35rem;
  }
  .cabin-hero-meta__eyebrow {
    padding-left: 1.75rem;
    font-size: 0.66rem;
    letter-spacing: 0.18em;
  }
  .cabin-hero-meta__eyebrow::before {
    width: 1.25rem;
  }
  .cabin-hero-meta__title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }
  .cabin-hero-meta__stats {
    row-gap: 0.25rem;
  }
  .cabin-hero-meta__stat {
    font-size: 0.82rem;
    gap: 0.3rem;
  }
  .cabin-hero-meta__icon {
    width: 15px;
    height: 15px;
  }
  .cabin-hero-meta__stat:not(:last-child)::after {
    margin: 0 0.5rem;
  }
}

