/* ==========================================================================
   pages/hotel-accommodation.css
   Loaded only on:
     /<resort>/accommodation
     /<resort>/accommodation/[roomURL]
   Loaded after these shared / component files (see src/components/common/PageStyles.jsx):
     shared/all-pages.css
     shared/inner-pages.css
     shared/hotel-inner-pages.css
     components/page-banner.css
     components/page-intro.css
   Everything below is used by this page only.
   Loaded after this file:
     shared/all-pages.after.css
     shared/inner-pages.after.css
     shared/hotel-inner-pages.after.css
     components/footer.css
     components/footer.inner.css
   ========================================================================== */

/* Room details: restrained editorial layout using the resort's existing palette. */

html[data-cc-page] .rd-info-section,
html[data-cc-page] .rd-info-section * {
  box-sizing: border-box;
}

html[data-cc-page],
html[data-cc-page] *:not(:where(.rd-info-section, .rd-info-section *, .rd-gallery-section, .rd-gallery-section *, .rd-other-section, .rd-other-section *, .rd-related-rooms, .rd-related-rooms *)) {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html[data-cc-page] .btn-outline {
  border-color: currentColor;
  background: transparent;
}

/* HEADER */

/* MOTION */

html[data-cc-page] .reveal,
html[data-cc-page] .reveal-left,
html[data-cc-page] .reveal-right {
  opacity: 0;
  transition: opacity .85s ease,transform 1s cubic-bezier(.22,1,.36,1);
}

html[data-cc-page] .reveal {
  transform: translateY(44px);
}

html[data-cc-page] .reveal-left {
  transform: translateX(-60px);
}

html[data-cc-page] .reveal-right {
  transform: translateX(60px);
}

html[data-cc-page] .reveal.in-view,
html[data-cc-page] .reveal-left.in-view,
html[data-cc-page] .reveal-right.in-view {
  opacity: 1;
  transform: none;
}

html[data-cc-page] .stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease,transform .8s cubic-bezier(.22,1,.36,1);
}

html[data-cc-page] .stagger.in-view > * {
  opacity: 1;
  transform: none;
}

html[data-cc-page] .scrolltop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: .3s;
}

/* Final v2 - hotel navigation clarity */

/* V7 - Detail pages use vertical editorial presentation, never horizontal rails */

html[data-cc-page] .detail-list {
  padding: 20px 0 145px;
  background: #fff;
}

html[data-cc-page] .detail-list .container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

html[data-cc-page] .detail-row {
  display: grid;
  border-top: 1px solid #e7e2e4;
  background: #fff;
}

html[data-cc-page] .detail-row:last-child {
  border-bottom: 1px solid #e7e2e4;
}

html[data-cc-page] .detail-media {
  overflow: hidden;
  background: #f2eff0;
}

html[data-cc-page] .detail-media img {
  display: block;
  transition: transform .9s cubic-bezier(.22,1,.36,1);
}

html[data-cc-page] .detail-row:hover .detail-media img {
  transform: scale(1.025);
}

html[data-cc-page] .detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

html[data-cc-page] .detail-copy h3 {
  font-family: var(--display);
  font-size: clamp(44px,4.3vw,68px);
  font-weight: 400;
  margin: 0 0 24px;
}

html[data-cc-page] .detail-copy p {
  color: var(--muted);
  margin: 0;
}

@media (max-width:900px) {
  html[data-cc-page] .detail-list {
    padding-bottom: 105px;
  }
}

/* keep section titles premium but proportional */

html[data-cc-page] .hotel-section-head h2 {
  font-size: var(--inner-section-title) !important;
  line-height: 1.04 !important;
  letter-spacing: -.03em !important;
}

html[data-cc-page] .hotel-section-head p {
  font-size: var(--inner-body) !important;
  line-height: 1.82 !important;
}

/* V8 detail content: exact 6/6 image/text, clean zigzag, no overlap */

html[data-cc-page] .detail-list {
  padding-top: 0 !important;
}

html[data-cc-page] .detail-row,
html[data-cc-page] .detail-row.reverse {
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
  min-height: 520px !important;
  align-items: stretch !important;
  overflow: hidden !important;
}

html[data-cc-page] .detail-row.reverse .detail-media {
  order: 2 !important;
}

html[data-cc-page] .detail-row.reverse .detail-copy {
  order: 1 !important;
}

html[data-cc-page] .detail-media {
  min-height: 520px !important;
  margin: 0 !important;
  position: relative !important;
  inset: auto !important;
  z-index: 1 !important;
}

html[data-cc-page] .detail-media img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

html[data-cc-page] .detail-copy {
  min-width: 0 !important;
  margin: 0 !important;
  position: relative !important;
  inset: auto !important;
  z-index: 2 !important;
  background: #fff !important;
}

html[data-cc-page] .detail-copy h3 {
  font-size: clamp(36px,3.6vw,50px) !important;
  line-height: 1.02 !important;
  letter-spacing: -.03em !important;
}

html[data-cc-page] .detail-copy p {
  font-size: 13.5px !important;
  line-height: 1.82 !important;
  max-width: 520px !important;
}

@media (max-width:900px) {
  html[data-cc-page] .detail-row,
  html[data-cc-page] .detail-row.reverse {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }

  html[data-cc-page] .detail-row.reverse .detail-media,
  html[data-cc-page] .detail-row.reverse .detail-copy {
    order: initial !important;
  }

  html[data-cc-page] .detail-media {
    min-height: 0 !important;
    aspect-ratio: 16/10 !important;
  }

  html[data-cc-page] .detail-media img {
    position: absolute !important;
  }
}

@media (max-width:560px) {
  html[data-cc-page] .detail-copy h3 {
    font-size: 36px !important;
  }
}

/* V9 - accommodation rate + facts treatment */

html[data-cc-page] .detail-copy {
  padding: 54px 58px 58px !important;
}

html[data-cc-page] .detail-copy > p.room-description {
  margin-bottom: 0 !important;
}

@media (max-width:900px) {
  html[data-cc-page] .detail-copy {
    padding: 42px 34px 48px !important;
  }
}

@media (max-width:560px) {
  html[data-cc-page] .detail-copy {
    padding: 34px 22px 40px !important;
  }
}

/* FINAL DEMO V10 - global header/menu consistency + hero legibility */

/* Group menu */

/* V10 - accommodation: commercial hotel listing, not PDF/factsheet */

html[data-cc-page] .detail-copy h3 {
  margin-bottom: 16px !important;
}

html[data-cc-page] .room-description {
  max-width: 600px !important;
}

html[data-cc-page] .room-commerce {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 34px;
  align-items: end;
  margin-top: 30px;
}

html[data-cc-page] .room-commerce-main {
  min-width: 0;
}

html[data-cc-page] .room-facts-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 20px 30px;
  max-width: 480px;
  margin: 0 0 27px;
}

html[data-cc-page] .room-fact-inline {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

html[data-cc-page] .room-fact-inline i {
  color: var(--pink);
  font-size: 15px;
  flex: 0 0 auto;
}

html[data-cc-page] .room-fact-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

html[data-cc-page] .room-fact-text small {
  font-size: 8px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: #999296;
  font-weight: 700;
}

html[data-cc-page] .room-fact-text strong {
  font-size: 11.5px;
  line-height: 1.45;
  font-weight: 600;
  color: #2d292b;
}

html[data-cc-page] .room-rate-side {
  min-width: 150px;
  text-align: right;
  align-self: end;
  padding-bottom: 2px;
}

html[data-cc-page] .room-rate-label-v10 {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8f888c;
  margin-bottom: 5px;
}

html[data-cc-page] .room-rate-amount {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
}

html[data-cc-page] .room-rate-amount strong {
  font-family: var(--display);
  font-size: 31px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--pink);
}

html[data-cc-page] .room-rate-amount span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--pink);
}

html[data-cc-page] .room-rate-per {
  display: block;
  color: #9a9497;
  line-height: 1.45;
}

html[data-cc-page] .room-rate-per {
  font-size: 10px;
  margin-top: 6px;
}

html[data-cc-page] .room-actions-v10 {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

html[data-cc-page] .room-actions-v10 .btn {
  min-height: 44px;
  padding: 0 20px;
  font-size: 9px;
}

/* kill old rate/list presentation if legacy rules remain */

@media (max-width:1180px) {
  html[data-cc-page] .room-commerce {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  html[data-cc-page] .room-rate-side {
    text-align: left;
    min-width: 0;
  }

  html[data-cc-page] .room-rate-amount {
    justify-content: flex-start;
  }
}

@media (max-width:900px) {
  html[data-cc-page] .room-facts-inline {
    gap: 18px 24px;
    max-width: 100%;
  }
}

@media (max-width:560px) {
  html[data-cc-page] .room-facts-inline {
    gap: 18px;
  }

  /* only stretch a lone item on the last row (odd count) */

  html[data-cc-page] .room-fact-inline:last-child:nth-child(odd) {
    grid-column: 1/-1;
  }

  html[data-cc-page] .room-rate-amount strong {
    font-size: 28px;
  }

  html[data-cc-page] .room-actions-v10 .btn {
    flex: 1;
  }
}

/* Stacked layout (tablet & phone): facts -> price -> buttons.
   Same design, only the price and the buttons swap places. */
@media (max-width:1180px) {
  html[data-cc-page] .room-commerce-main {
    display: contents;
  }

  html[data-cc-page] .room-commerce .room-facts-inline {
    order: 1;
    margin-bottom: 0;
  }

  html[data-cc-page] .room-commerce .room-rate-side {
    order: 2;
  }

  html[data-cc-page] .room-commerce .room-actions-v10 {
    order: 3;
  }
}
