/* ==================================================
   Cabin Node Page — Layout & Tabs
================================================== */

/* Prevent horizontal overflow */
.cabin-node {
  overflow-x: hidden;
  max-width: 100%;
}

/* ==================================================
   Hero Image Gallery (Swiper + Thumbs + Lightbox)
================================================== */
.cabin-hero {
  position: relative;
  margin-bottom: 1.5rem;
  overflow: hidden;
  max-width: 100%;
}

/* --- Main Swiper --- */
.cabin-hero__main {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #f0f0f0;
  cursor: pointer;
}
.cabin-hero__main .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
}
.cabin-hero__main .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Override any field wrapper margins inside hero */
.cabin-hero__main .field,
.cabin-hero__main .field__item,
.cabin-hero__main .media,
.cabin-hero__main .media--type-image {
  margin: 0;
  padding: 0;
  line-height: 0;
}
.cabin-hero__main .swiper-button-prev,
.cabin-hero__main .swiper-button-next {
  opacity: 0;
  transition: opacity 0.2s ease;
}
.cabin-hero__main:hover .swiper-button-prev,
.cabin-hero__main:hover .swiper-button-next {
  opacity: 0.9;
}

/* Photo counter badge */
.cabin-hero__counter {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 16px;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

/* --- Thumbnail Strip --- */
.cabin-hero__thumbs {
  margin-top: 0.5rem;
  overflow: hidden;
  border-radius: 8px;
}
.cabin-hero__thumbs .swiper-slide {
  width: 80px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid transparent;
}
.cabin-hero__thumbs .swiper-slide-thumb-active {
  opacity: 1;
  border-color: #E8A838;
  box-shadow: 0 0 0 1px #E8A838;
}
.cabin-hero__thumbs .swiper-slide:hover {
  opacity: 0.85;
}
.cabin-hero__thumbs .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cabin-hero__thumbs .field,
.cabin-hero__thumbs .field__item,
.cabin-hero__thumbs .media,
.cabin-hero__thumbs .media--type-image {
  margin: 0;
  padding: 0;
  line-height: 0;
  width: 100%;
  height: 100%;
}

/* --- View All Photos Button --- */
.cabin-hero__view-all {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.92);
  color: #2B2B2B;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  line-height: 1;
}
.cabin-hero__view-all:hover {
  background: #fff;
  border-color: #E8A838;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* ==================================================
   Lightbox
================================================== */
.cabin-hero-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
}
.cabin-hero-lightbox--open {
  display: flex;
}
.cabin-hero-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}
.cabin-hero-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.cabin-hero-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.3);
}
.cabin-hero-lightbox__counter {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-weight: 600;
}
.cabin-hero-lightbox__swiper {
  position: relative;
  width: 90vw;
  height: 80vh;
  max-width: 1200px;
  z-index: 5;
}
.cabin-hero-lightbox__swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cabin-hero-lightbox__swiper .swiper-slide img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
}
.cabin-hero-lightbox__swiper .field,
.cabin-hero-lightbox__swiper .field__item,
.cabin-hero-lightbox__swiper .media,
.cabin-hero-lightbox__swiper .media--type-image {
  margin: 0;
  padding: 0;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Lightbox nav buttons */
.cabin-hero-lightbox__swiper .swiper-button-prev,
.cabin-hero-lightbox__swiper .swiper-button-next {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  backdrop-filter: blur(4px);
}
.cabin-hero-lightbox__swiper .swiper-button-prev::after,
.cabin-hero-lightbox__swiper .swiper-button-next::after {
  font-size: 16px;
  color: #fff;
  font-weight: 900;
}
.cabin-hero-lightbox__swiper .swiper-button-prev:hover,
.cabin-hero-lightbox__swiper .swiper-button-next:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Image caption from alt text (shown below image in lightbox) */
.cabin-hero-lightbox__swiper .swiper-slide img[title] {
  /* Title will appear as native tooltip on hover */
}

/* ==================================================
   Breadcrumb (inline above title)
================================================== */
.cabin-breadcrumb {
  margin-bottom: 0.5rem;
}
.cabin-breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
}
.cabin-breadcrumb li {
  font-size: 0.8rem;
  color: #999;
  font-weight: 500;
}
.cabin-breadcrumb li + li::before {
  content: '›';
  margin: 0 0.4rem;
  color: #ccc;
}
.cabin-breadcrumb a {
  color: #777;
  text-decoration: none;
  transition: color 0.15s ease;
}
.cabin-breadcrumb a:hover {
  color: #E8A838;
}
.cabin-breadcrumb li[aria-current="page"] {
  color: #555;
}

/* Header */
.cabin-header {
  margin-bottom: 1.5rem;
}
.cabin-header__title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  color: #2B2B2B;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

/* Quick Stats Row — dot-separated, dark text like teaser cards */
.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-size: 0.95rem;
  color: #2B2B2B;
  font-weight: 600;
}
.cabin-stat:not(:last-child)::after {
  content: '·';
  margin: 0 0.5rem;
  color: #bbb;
  font-size: 1.2rem;
  font-weight: 700;
}
.cabin-stat--price {
  font-size: 1.05rem;
  font-weight: 700;
  color: #2B2B2B;
}
.cabin-stat__per {
  font-size: 0.8rem;
  font-weight: 400;
  color: #777;
  margin-left: 0.1rem;
}

/* Header review stars */
.cabin-header__reviews {
  margin-top: 0.25rem;
}

/* Categories & Tags row */
.cabin-header__tags {
  display: none; /* Moved to amenities tab */
}

/* ==================================================
   Amenities & Tags — plain text with dot separators
================================================== */
.cabin-tag-list {
  font-size: 0.85rem;
  color: #555;
  font-weight: 500;
  line-height: 1.8;
}
.cabin-amenity-list {
  font-size: 0.88rem;
  color: #444;
  font-weight: 500;
  line-height: 1.9;
  margin: 0;
}

/* Tags row inside amenities tab */
.cabin-amenities__tags {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #eee;
}
.cabin-amenities__tags svg {
  color: #E8A838;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* Amenities tab heading */
#tab-amenities h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2B2B2B;
  margin: 0 0 0.75rem;
}

/* ==================================================
   Body Layout — Bootstrap row/col with ordering
================================================== */
.cabin-body {
  margin-top: 0.5rem;
  overflow-x: hidden;
}

/* Constrain Swiper from causing overflow */
.cabin-hero__main,
.cabin-hero__thumbs {
  max-width: 100%;
  overflow: hidden;
}

/* Sidebar sticky wrapper */
.cabin-booking-sticky {
  position: sticky;
  top: 100px;
}

/* On mobile, add spacing below sidebar before content */
@media (max-width: 991.98px) {
  .cabin-body__sidebar {
    margin-bottom: 1.5rem;
  }
}

/* Remove any block wrapper chrome from the rendered booking block */
.cabin-body__sidebar .block {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}
.cabin-body__sidebar .block > h2 {
  display: none; /* Hide block title if Drupal renders one */
}

/* Tab styles now in ipr-tabs.css */

/* ==================================================
   Description Tab
================================================== */
.cabin-description__summary {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 1.5rem;
}
.cabin-description__section {
  margin-bottom: 1.5rem;
}
.cabin-description__section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2B2B2B;
  margin: 0 0 0.5rem;
}

/* Amenities tab — now uses .cabin-inline-list, see above */

/* ==================================================
   Videos Tab
================================================== */
.cabin-video__section {
  margin-bottom: 2rem;
}
.cabin-video__section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2B2B2B;
  margin: 0 0 0.75rem;
}
.cabin-matterport {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
}
.cabin-matterport iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.cabin-video {
  border-radius: 12px;
  overflow: hidden;
}
.cabin-video iframe,
.cabin-video video {
  width: 100%;
  border-radius: 12px;
}

/* ==================================================
   Calendar Tab
================================================== */
#tab-calendar h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2B2B2B;
  margin: 0 0 0.75rem;
}

/* ==================================================
   Reviews Tab — uses styles from cards.css
================================================== */

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

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

@media (max-width: 991.98px) {
  .cabin-hero__main {
    aspect-ratio: 4 / 3;
    border-radius: 0;
  }
  .cabin-hero__thumbs {
    padding: 0 0.75rem;
  }
  .cabin-hero__view-all {
    bottom: 10px;
    right: 10px;
  }
  .cabin-hero__counter {
    bottom: 10px;
    left: 10px;
  }
}

@media (max-width: 767px) {
  .cabin-header__stats {
    gap: 0.5rem 1rem;
  }
  .cabin-stat {
    font-size: 0.8rem;
  }
  .cabin-hero__main {
    aspect-ratio: 4 / 3;
    border-radius: 0;
  }
  .cabin-hero__thumbs .swiper-slide {
    width: 60px;
    height: 42px;
  }
  /* Lightbox mobile */
  .cabin-hero-lightbox__swiper {
    width: 100vw;
    height: 70vh;
  }
  .cabin-hero-lightbox__swiper .swiper-button-prev,
  .cabin-hero-lightbox__swiper .swiper-button-next {
    width: 36px;
    height: 36px;
  }
  .cabin-hero-lightbox__close {
    top: 10px;
    right: 10px;
  }
}



#cabin-location-map {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
}