/* ==========================================================
   PATUNO RESORT — Room Detail Page
   ========================================================== */

/* Solid header for inner pages */
.header--solid {
  height: 70px;
  background: rgba(251, 248, 243, .82);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  color: var(--ocean-800);
  box-shadow: 0 1px 0 rgba(11,42,49,.08);
}
.header--solid .lang-switch { border-color: rgba(11,42,49,.18); }
.header--solid.menu-open .lang-switch { border-color: rgba(255,255,255,.35); }

.rd { padding-top: 70px; }
.reveal-up { animation: fadeUp .9s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Title ---------- */
.rd-top { padding-top: 28px; }
.crumbs { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 26px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--coral); }
.crumbs strong { color: var(--ocean-800); font-weight: 600; }
.crumbs span { opacity: .4; }

.rd-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.rd-title h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(42px, 6vw, 76px); line-height: 1; letter-spacing: -.02em;
  color: var(--ocean-800); margin: 14px 0 14px;
}
.rd-title__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px; color: var(--muted); }
.rd-title__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--sand-200); }
.rd-title__actions { display: flex; gap: 10px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 100px;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: var(--sand-100); color: var(--ocean-700);
}
.chip--accent { background: rgba(217,130,91,.14); color: var(--coral-d); }
.chip--accent::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }

.rd-rating { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.rd-rating svg { width: 16px; color: var(--coral); }
.rd-rating strong { font-weight: 700; }
.rd-rating span { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

.pill-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 100px;
  border: 1px solid var(--sand-200); background: var(--white);
  font-size: 14px; font-weight: 600; color: var(--ocean-800);
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.pill-btn svg { width: 17px; }
.pill-btn:hover { border-color: var(--ocean-800); transform: translateY(-1px); }
.pill-btn[aria-pressed="true"] { color: var(--coral); border-color: var(--coral); }
.pill-btn[aria-pressed="true"] svg path { fill: currentColor; }

/* ---------- Bento gallery ---------- */
.bento {
  position: relative;
  display: grid; gap: 10px;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(180px, 260px));
  border-radius: 24px; overflow: hidden;
}
.bento__item { position: relative; overflow: hidden; cursor: zoom-in; background: var(--sand-200); }
.bento__item:first-child { grid-row: span 2; }
.bento__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .5s; }
.bento__item:hover img { transform: scale(1.06); }
.bento:hover .bento__item:not(:hover) img { filter: brightness(.82); }
.bento__all {
  position: absolute; right: 18px; bottom: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 100px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  font-size: 13px; font-weight: 700; color: var(--ocean-800);
  box-shadow: 0 8px 24px -8px rgba(0,0,0,.3);
  transition: transform .3s var(--ease);
}
.bento__all svg { width: 16px; }
.bento__all:hover { transform: translateY(-2px); }

/* ---------- Body layout ---------- */
.rd-body {
  display: grid; grid-template-columns: minmax(0, 1fr) 400px;
  gap: clamp(40px, 6vw, 90px);
  padding: 56px 0 40px;
  align-items: start;
}
.rd-block { padding: 44px 0; border-top: 1px solid var(--sand-200); }
.rd-h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3vw, 36px); color: var(--ocean-800); margin-bottom: 26px; line-height: 1.1; }

/* Specs */
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-bottom: 44px; }
.spec {
  padding: 18px; border-radius: 16px; background: var(--white);
  border: 1px solid var(--sand-200);
  display: flex; flex-direction: column; gap: 10px;
}
.spec svg { width: 24px; height: 24px; color: var(--ocean-500); }
.specs dt, .specs dd { margin: 0; }
.spec dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.spec dd { font-size: 16px; color: var(--ocean-800); font-weight: 700; line-height: 1.2; }

.rd-lead { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 30px); line-height: 1.3; color: var(--ocean-800); margin-bottom: 22px; }
.rd-desc p { margin-bottom: 16px; font-size: 16px; }

/* Highlights */
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hl {
  padding: 24px; border-radius: 18px;
  background: linear-gradient(160deg, var(--white), var(--sand-100));
  border: 1px solid var(--sand-200);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.hl:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.hl__icon { width: 46px; height: 46px; border-radius: 14px; background: var(--ocean-800); color: #fff; display: grid; place-items: center; margin-bottom: 18px; }
.hl__icon svg { width: 22px; height: 22px; }
.hl h3 { font-size: 16px; font-weight: 700; color: var(--ocean-800); margin-bottom: 4px; }
.hl p { font-size: 14px; line-height: 1.55; }

/* Amenities */
.amenities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 20px; }
.amenities li { display: flex; align-items: center; gap: 14px; padding: 12px 0; font-size: 15px; color: var(--ocean-800); }
.amenities svg { width: 24px; height: 24px; color: var(--ocean-500); flex: none; }

/* Included */
.included { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.included__item { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 16px; background: var(--white); border: 1px solid var(--sand-200); }
.included__item > span { font-size: 24px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--sand-100); flex: none; }
.included__item strong { display: block; font-size: 15px; color: var(--ocean-800); }
.included__item small { font-size: 13px; color: var(--muted); }

/* Policies */
.policy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.policy-time { padding: 20px 22px; border-radius: 16px; background: var(--ocean-800); color: #fff; }
.policy-time small { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .65; }
.policy-time strong { font-family: var(--serif); font-size: 38px; font-weight: 500; line-height: 1.1; }
.accordion details { border-bottom: 1px solid var(--sand-200); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; color: var(--ocean-800);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--sand-200);
  display: grid; place-items: center; font-weight: 400; font-size: 18px; transition: transform .35s var(--ease), background .3s;
}
.accordion details[open] summary::after { transform: rotate(45deg); background: var(--sand-100); }
.accordion details p { padding: 0 40px 20px 0; font-size: 15px; }

/* Reviews */
.reviews-sum { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: center; padding: 28px; border-radius: 20px; background: var(--white); border: 1px solid var(--sand-200); margin-bottom: 18px; }
.reviews-sum__score { text-align: center; }
.reviews-sum__score strong { display: block; font-family: var(--serif); font-size: 72px; font-weight: 500; line-height: 1; color: var(--ocean-800); }
.reviews-sum__score small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.reviews-sum__bars { display: grid; gap: 14px; }
.reviews-sum__bars li { display: grid; grid-template-columns: 110px 1fr 34px; gap: 14px; align-items: center; font-size: 14px; color: var(--ocean-800); }
.reviews-sum__bars i { height: 6px; border-radius: 6px; background: var(--sand-100); overflow: hidden; }
.reviews-sum__bars b { display: block; height: 100%; width: calc(var(--v) * 100%); background: linear-gradient(90deg, var(--ocean-500), var(--ocean-800)); border-radius: 6px; }
.reviews-sum__bars em { font-style: normal; font-weight: 700; text-align: right; }
.review-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.review { padding: 24px; border-radius: 18px; border: 1px solid var(--sand-200); background: var(--sand-50); }
.review figcaption { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.review figcaption strong { display: block; color: var(--ocean-800); font-size: 15px; }
.review figcaption small { color: var(--muted); font-size: 12px; }
.review .avatar { width: 42px; height: 42px; font-size: 18px; }
.review blockquote { font-size: 15px; color: var(--ink); line-height: 1.65; }

/* ---------- Booking card ---------- */
.rd-aside { position: sticky; top: 94px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.rd-main, .book-card { min-width: 0; }
.book-card {
  padding: 28px; border-radius: 24px; background: var(--white);
  border: 1px solid var(--sand-200);
  box-shadow: 0 30px 60px -30px rgba(7,29,34,.28);
}
.book-card__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.book-card__price { font-family: var(--serif); font-size: 36px; font-weight: 600; color: var(--ocean-800); line-height: 1; }
.book-card__head small { font-size: 14px; color: var(--muted); margin-left: 4px; }
.rd-rating--sm { font-size: 14px; }

.book-card__dates { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--sand-200); border-radius: 16px; overflow: hidden; margin-bottom: 20px; }
.book-card__dates label { padding: 12px 16px; display: flex; flex-direction: column; cursor: pointer; transition: background .3s; }
.book-card__dates label:first-child { border-right: 1px solid var(--sand-200); }
.book-card__dates label.full { grid-column: 1 / -1; border-top: 1px solid var(--sand-200); }
.book-card__dates label:focus-within { background: var(--sand-50); box-shadow: inset 0 0 0 2px var(--ocean-500); }
.book-card__dates small { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ocean-800); }
.book-card__dates input, .book-card__dates select { border: 0; outline: 0; background: transparent; font-size: 15px; padding-top: 2px; cursor: pointer; width: 100%; }

.addons { border: 0; margin-bottom: 18px; }
.addons legend { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.addon {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 14px; cursor: pointer;
  border: 1px solid transparent; transition: background .3s, border-color .3s;
}
.addon + .addon { margin-top: 4px; }
.addon:hover { background: var(--sand-50); }
.addon input { position: absolute; opacity: 0; pointer-events: none; }
.addon__box { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--sand-200); display: grid; place-items: center; transition: all .25s var(--ease); }
.addon__box::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform .25s var(--ease); }
.addon input:checked ~ .addon__box { background: var(--coral); border-color: var(--coral); }
.addon input:checked ~ .addon__box::after { transform: rotate(-45deg) scale(1); }
.addon:has(input:checked) { background: rgba(217,130,91,.07); border-color: rgba(217,130,91,.35); }
.addon input:focus-visible ~ .addon__box { box-shadow: 0 0 0 3px rgba(43,111,120,.25); }
.addon__txt strong { display: block; font-size: 14px; color: var(--ocean-800); }
.addon__txt small { font-size: 12px; color: var(--muted); }
.addon em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--ocean-800); white-space: nowrap; }
.addon em.is-free { color: #2b7a4b; text-decoration: none; }
.addon em s { color: var(--muted); font-weight: 500; margin-right: 4px; }

.breakdown { border-top: 1px dashed var(--sand-200); padding-top: 16px; margin-bottom: 18px; font-size: 14px; }
.breakdown .row { display: flex; justify-content: space-between; padding: 5px 0; color: var(--muted); }
.breakdown .row span:last-child { color: var(--ink); }
.breakdown .row--total { border-top: 1px solid var(--sand-200); margin-top: 10px; padding-top: 14px; font-size: 17px; font-weight: 700; }
.breakdown .row--total span { color: var(--ocean-800) !important; }
.breakdown .row--save span:last-child { color: #2b7a4b; }

.name-row input {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--sand-200);
  font-size: 15px; outline: 0; margin-bottom: 12px; transition: border-color .3s, box-shadow .3s;
}
.name-row input:focus { border-color: var(--ocean-500); box-shadow: 0 0 0 4px rgba(43,111,120,.12); }
.name-row input.has-error { border-color: #c94a3a; }
.book-card__note { font-size: 12px; text-align: center; margin-top: 12px; line-height: 1.5; }
.book-card .form-msg { text-align: center; margin: 6px 0 0; min-height: 0; }

.help-card { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-radius: 18px; background: var(--ocean-800); color: #fff; }
.help-card__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--coral); display: grid; place-items: center; flex: none; }
.help-card__icon svg { width: 20px; }
.help-card small { display: block; font-size: 12px; opacity: .7; }
.help-card a { font-weight: 700; }

/* ---------- Other rooms ---------- */
.rd-others { background: var(--sand-100); margin-top: 40px; }
.others-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.o-card { border-radius: 20px; overflow: hidden; background: var(--white); transition: transform .5s var(--ease), box-shadow .5s; display: block; }
.o-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.o-card__img { aspect-ratio: 4/3; overflow: hidden; }
.o-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.o-card:hover .o-card__img img { transform: scale(1.07); }
.o-card__body { padding: 22px 24px 24px; }
.o-card__meta { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ocean-500); }
.o-card h3 { font-family: var(--serif); font-size: 28px; font-weight: 500; color: var(--ocean-800); margin: 6px 0 12px; line-height: 1.1; }
.o-card__foot { display: flex; justify-content: space-between; align-items: center; }

.footer--compact { padding-top: 0; }

/* ---------- Mobile booking bar ---------- */
.mobile-book {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
  display: none; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
  border-top: 1px solid var(--sand-200);
  transform: translateY(100%); transition: transform .45s var(--ease);
}
.mobile-book.is-visible { transform: none; }
.mobile-book strong { font-family: var(--serif); font-size: 22px; color: var(--ocean-800); }
.mobile-book small { color: var(--muted); font-size: 13px; }
.mobile-book span { display: block; font-size: 12px; color: var(--muted); text-decoration: underline; }

/* ---------- Photo viewer ---------- */
.viewer {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(7,29,34,.97);
  display: grid; grid-template-rows: auto 1fr auto;
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.viewer.is-open { opacity: 1; visibility: visible; }
.viewer__top { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; color: rgba(255,255,255,.75); font-size: 14px; font-weight: 600; }
.viewer__close { color: #fff; font-size: 40px; font-weight: 200; line-height: 1; width: 44px; height: 44px; }
.viewer__stage { display: grid; place-items: center; padding: 0 80px; min-height: 0; }
.viewer__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; transition: opacity .3s; }
.viewer__stage img.is-loading { opacity: .3; }
.viewer__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.1);
  color: #fff; font-size: 30px; line-height: 1; transition: background .3s;
}
.viewer__nav:hover { background: rgba(255,255,255,.22); }
.viewer__prev { left: 20px; }
.viewer__next { right: 20px; }
.viewer__thumbs { display: flex; justify-content: center; gap: 8px; padding: 18px; overflow-x: auto; }
.viewer__thumbs button { width: 72px; height: 52px; border-radius: 8px; overflow: hidden; opacity: .45; flex: none; outline: 2px solid transparent; outline-offset: 2px; transition: opacity .3s, outline-color .3s; }
.viewer__thumbs button.is-active { opacity: 1; outline-color: var(--coral); }
.viewer__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 3000;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 22px; border-radius: 100px; background: var(--ocean-800); color: #fff;
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow);
  transition: opacity .35s, transform .35s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Skeleton while loading */
.bento:empty { min-height: 420px; background: linear-gradient(90deg, var(--sand-100), var(--sand-200), var(--sand-100)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
  .rd-body { grid-template-columns: minmax(0, 1fr) 360px; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .highlights { grid-template-columns: 1fr; }
  .amenities { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .rd-body { grid-template-columns: minmax(0, 1fr); padding-top: 36px; }
  .rd-aside { position: static; }
  .mobile-book { display: flex; }
  .page-room .wa-float { bottom: 92px; }
  .page-room .to-top { bottom: 162px; }
  .others-grid { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: 280px 160px; }
  .bento__item:first-child { grid-column: 1 / -1; grid-row: auto; }
  .bento__item:nth-child(n+4) { display: none; }
}

@media (max-width: 600px) {
  .rd-top { width: 100%; padding-top: 18px; }
  .crumbs, .rd-title { padding-inline: 18px; }
  .rd-title__actions { width: 100%; }
  .rd-title__actions .pill-btn { flex: 1; justify-content: center; }
  .bento { border-radius: 0; grid-template-columns: 1fr; grid-template-rows: 300px; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; scrollbar-width: none; }
  .bento::-webkit-scrollbar { display: none; }
  .bento__item, .bento__item:nth-child(n+4) { display: block; flex: 0 0 100%; height: 300px; scroll-snap-align: start; }
  .bento__all { right: 14px; bottom: 14px; }
  .specs { gap: 8px; }
  .spec { padding: 14px; }
  .included, .review-cards, .policy-grid { grid-template-columns: 1fr; }
  .amenities { grid-template-columns: 1fr; }
  .reviews-sum { grid-template-columns: 1fr; gap: 20px; padding: 22px; }
  .reviews-sum__bars li { grid-template-columns: 90px 1fr 30px; }
  .others-grid { grid-template-columns: 1fr; }
  .book-card { padding: 18px; }
  .book-card__dates label { padding: 12px 12px; }
  .viewer__stage { padding: 0 10px; }
  .viewer__nav { display: none; }
}

/* ---------- 404 ---------- */
.nf { padding: clamp(60px, 10vw, 120px) 0; text-align: center; max-width: 720px; }
.nf .eyebrow { justify-content: center; }
.nf p { font-size: 17px; }
.nf__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 30px 0 40px; }
.nf .btn--light { border: 1px solid var(--sand-200); }
.nf__rooms { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.nf__rooms a { display: inline-block; padding: 8px 16px; border-radius: 100px; background: var(--white); border: 1px solid var(--sand-200); font-size: 14px; font-weight: 600; color: var(--ocean-800); }
.nf__rooms a:hover { border-color: var(--coral); color: var(--coral); }