/* Extra styles for the dynamic pages (booking, rooms, gallery, reviews, contact, footer).
   The home-page design lives in site.css. */

/* nav: reviews/contact only appear in the mobile menu (desktop keeps the 3-link design) */
.nav-links .nav-extra { display: none; }
@media (max-width: 700px) { .nav-links .nav-extra { display: inline; } }

/* subpage header: solid navy bar with gold hairline */
.sub-header { border-bottom: 2px solid var(--gold); }
.sub-header .nav-links a { text-shadow: none; }
@media (max-width: 700px) { .sub-header .nav { min-height: 56px; } }

/* footer */
.site-footer { padding: 3rem 0 1.2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1.2fr 1fr;
  gap: 2rem;
  font-size: 0.9rem;
  color: #d9d4c5;
}
.footer-grid p { margin: 0 0 0.5rem; }
.footer-brand { font-family: var(--serif); letter-spacing: 0.14em; color: var(--gold-light); font-size: 1.15rem; }
.footer-h { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.68rem; color: var(--gold); }
.footer-grid a { color: var(--gold-light); }
.footer-grid a:hover { text-decoration: underline; }
.footer-base { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #ffffff1f; color: #9aa0ad; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* page heading used by all subpages */
.page-head { padding: 3.2rem 0 1.5rem; }
.page-head h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.05;
  margin: 0.3rem 0 0.6rem;
  color: var(--navy);
}
.page-head h1 em { color: var(--coral); font-style: italic; }
.page-head p { color: var(--muted); max-width: 40rem; margin: 0; }
.crumbs { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.crumbs a:hover { color: var(--coral); }

/* flash messages / validation */
.flash { padding: 0.85rem 1rem; border-radius: 8px; margin: 0 0 1.2rem; font-size: 0.95rem; }
.flash.ok { background: #e4f3e2; color: #1f5a2a; border: 1px solid #b9dcb5; }
.flash.err { background: #fbe6e1; color: #8a2a1a; border: 1px solid #efbdb2; }
.field-error, .validation-summary-errors { color: #a3321f; font-size: 0.8rem; }
.validation-summary-errors ul { margin: 0 0 1rem; padding-left: 1.1rem; }

/* generic form */
.form { display: grid; gap: 0.9rem; }
.form label { display: grid; gap: 0.3rem; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: #594a31; }
.form input, .form select, .form textarea {
  border: 1px solid var(--line); background: #fff; padding: 0.7rem 0.75rem; border-radius: 6px;
  text-transform: none; letter-spacing: 0; font-size: 0.97rem; color: var(--ink); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.form .hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
@media (max-width: 560px) { .form .row2 { grid-template-columns: 1fr; } }
.card { background: #fffef8; border: 1px solid var(--line); border-radius: 12px; padding: 1.4rem; }

/* room cards on subpages reuse .rooms-grid */
.rooms-page { padding-bottom: 4rem; }

/* room detail */
.room-detail { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 2.2rem; align-items: start; }
.room-gallery-main { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: #d8d0c0; display: block; }
.room-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 0.5rem; margin-top: 0.6rem; }
.thumbs a { aspect-ratio: 1; border-radius: 8px; overflow: hidden; display: block; background: #d8d0c0; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.thumbs a:hover img { transform: scale(1.06); }
.room-side { position: sticky; top: 1.5rem; }
.room-side .price { font-size: 1.8rem; margin: 0.4rem 0 1rem; }
.room-side .price small { font-size: 0.9rem; }
.room-side h3 { font-family: var(--serif); font-size: 1.5rem; margin: 1.5rem 0 0.4rem; font-weight: 600; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; color: var(--muted); font-size: 0.95rem; }
.checklist li::before { content: "✦"; color: var(--gold); margin-right: 0.55rem; }
.btn-block { display: flex; justify-content: center; width: 100%; margin-top: 0.6rem; }
@media (max-width: 860px) { .room-detail { grid-template-columns: 1fr; } .room-side { position: static; } }

/* gallery page */
.gallery-page .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.gallery-page .gallery-img { height: 190px; }
.filter { text-decoration: none; display: inline-block; }
.empty { color: var(--muted); padding: 2rem 0; }

/* rate us hub */
.rate-page { padding-bottom: 4rem; max-width: 720px; }
.rate-head h1 { max-width: 18ch; }
.rate-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--line);
}
.rate-ctas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}
.rate-primary {
  min-width: min(100%, 280px);
  padding: 1rem 1.5rem;
  font-size: 0.78rem;
}
.rate-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 28rem;
}
.rate-qr {
  text-align: center;
  padding: 1.2rem;
  background: #fffef8;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.rate-qr img {
  width: 180px;
  height: 180px;
  margin: 0 auto 0.75rem;
  image-rendering: pixelated;
}
.rate-qr p {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 700px) {
  .rate-panel { grid-template-columns: 1fr; }
  .rate-qr { order: -1; max-width: 260px; margin-inline: auto; }
  .rate-ctas { align-items: stretch; }
  .rate-primary { width: 100%; }
}

/* reviews */
.rating-summary { display: flex; align-items: center; gap: 0.8rem; margin-top: 1rem; font-family: var(--serif); font-size: 1.4rem; }
.stars { color: var(--gold); letter-spacing: 0.1em; }
.stars .off { color: #d9cfbb; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.review { background: #fffef8; border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem; }
.review p { margin: 0.6rem 0; }
.review footer { font-size: 0.8rem; color: var(--muted); }
.review footer strong { color: var(--ink); }
.reviews-layout { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 2rem; align-items: start; }
@media (max-width: 860px) { .reviews-layout { grid-template-columns: 1fr; } }

/* contact page */
.contact-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem; align-items: start; }
.contact-lines { display: grid; gap: 1.2rem; margin-top: 1.2rem; }
.contact-lines h3 { margin: 0 0 0.2rem; font-family: var(--serif); font-size: 1.3rem; }
.contact-lines p { margin: 0; color: var(--muted); }
.contact-lines a { color: var(--coral); }
@media (max-width: 860px) { .contact-page-grid { grid-template-columns: 1fr; } }

/* home: reviews teaser and CTA */
.reviews-teaser { background: var(--paper); }
.cta-band { background: var(--gold); text-align: center; padding: 4.5rem 0; }
.cta-band h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0.3rem 0 0.8rem; color: var(--navy); }
.cta-band p { max-width: 36rem; margin: 0 auto 1.4rem; color: #594a31; }
.cta-band .contact-actions { justify-content: center; }

/* ===== booking page ===== */
.book-layout { display: grid; grid-template-columns: 1.5fr 0.9fr; gap: 1.6rem; align-items: start; padding-bottom: 4rem; }
@media (max-width: 960px) { .book-layout { grid-template-columns: 1fr; } }
.step { margin-bottom: 1.4rem; }
.step h2 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin: 0 0 0.8rem; display: flex; align-items: center; gap: 0.6rem; }
.step h2 b { width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--navy); color: var(--gold-light); font-size: 0.95rem; display: grid; place-items: center; font-family: var(--sans); }
.type-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.type-toggle label { cursor: pointer; }
.type-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.type-toggle span {
  display: block; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: #fffef8;
}
.type-toggle strong { display: block; font-family: var(--serif); font-size: 1.2rem; }
.type-toggle small { color: var(--muted); }
.type-toggle small .intro { color: var(--navy); font-weight: 600; }
.type-toggle small s { margin-left: 0.25rem; opacity: 0.75; }
.type-toggle input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.type-toggle input:checked + span small { color: var(--gold-light); }
.type-toggle input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.room-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.6rem; margin-top: 0.8rem; }
.room-picks[hidden] { display: none; }
.room-pick { cursor: pointer; }
.room-pick input { position: absolute; opacity: 0; pointer-events: none; }
.room-pick > span { display: flex; gap: 0.7rem; align-items: center; padding: 0.5rem; border: 1px solid var(--line); border-radius: 10px; background: #fffef8; }
.room-pick img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
.room-pick strong { display: block; font-family: var(--serif); font-size: 1.05rem; line-height: 1.15; }
.room-pick small { color: var(--muted); }
.room-pick input:checked + span { border-color: var(--coral); box-shadow: 0 0 0 2px #ba553f33; background: #fff6ee; }
.room-pick input:focus-visible + span { outline: 2px solid var(--gold); }

/* calendar */
.cal { background: #fffef8; border: 1px solid var(--line); border-radius: 12px; padding: 1rem; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; }
.cal-nav { border: 1px solid var(--line); background: #fff; width: 2.2rem; height: 2.2rem; border-radius: 50%; cursor: pointer; font-size: 1.1rem; line-height: 1; }
.cal-nav:hover:not(:disabled) { background: var(--navy); color: #fff; }
.cal-nav:disabled { opacity: 0.35; cursor: default; }
.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; flex: 1; }
.cal-months .cal-title { text-align: center; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; margin-bottom: 0.4rem; }
.cal-wrap { display: flex; gap: 0.6rem; align-items: flex-start; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow { text-align: center; font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-bottom: 0.2rem; }
.cal-day {
  aspect-ratio: 1; border: 0; background: transparent; border-radius: 8px; cursor: pointer; font-size: 0.9rem;
  color: var(--ink); position: relative; padding: 0;
}
.cal-day:hover:not(:disabled) { background: #f0e4c4; }
.cal-day:disabled { cursor: not-allowed; color: #b8b2a2; }
.cal-day.blocked:disabled { background: repeating-linear-gradient(135deg, transparent 0 4px, #e9dfc9 4px 6px); text-decoration: line-through; }
.cal-day.today::after { content: ""; position: absolute; bottom: 4px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--coral); }
.cal-day.in-range { background: #f6e6b6; border-radius: 0; }
.cal-day.start, .cal-day.end { background: var(--navy); color: #fff; border-radius: 8px; }
.cal-day.start:hover, .cal-day.end:hover { background: var(--navy) !important; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.8rem; font-size: 0.75rem; color: var(--muted); }
.cal-legend i { display: inline-block; width: 0.9rem; height: 0.9rem; border-radius: 4px; vertical-align: -2px; margin-right: 0.3rem; background: #fff; border: 1px solid var(--line); }
.cal-legend .l-block { background: repeating-linear-gradient(135deg, transparent 0 3px, #e9dfc9 3px 5px); }
.cal-legend .l-sel { background: var(--navy); border-color: var(--navy); }
.cal-loading { color: var(--muted); font-size: 0.85rem; text-align: center; padding: 0.4rem; }
@media (max-width: 640px) {
  .cal-months { grid-template-columns: 1fr; }
  .cal-months .cal-month:nth-child(2) { display: none; }
}

/* summary */
.summary { position: sticky; top: 1.2rem; background: var(--navy); color: #fff; border-radius: 14px; padding: 1.4rem; }
@media (max-width: 960px) { .summary { position: static; } }
.summary h3 { margin: 0 0 0.8rem; font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--gold-light); }
.summary dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; font-size: 0.92rem; }
.summary dt { color: #b9c0cf; }
.summary dd { margin: 0; text-align: right; }
.summary .line { grid-column: 1 / -1; border-top: 1px solid #ffffff22; margin: 0.4rem 0; }
.summary .total { font-family: var(--serif); font-size: 1.9rem; color: var(--gold-light); }
.summary .note { font-size: 0.78rem; color: #b9c0cf; margin: 0.9rem 0 0; }
.summary .btn { width: 100%; justify-content: center; margin-top: 1rem; }
.summary .btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.summary .msg { color: #f6c6b9; font-size: 0.85rem; margin-top: 0.7rem; min-height: 1.1em; }

/* thanks */
.thanks { text-align: center; padding: 4rem 0 5rem; }
.thanks .ref { display: inline-block; font-family: var(--serif); font-size: 2.2rem; letter-spacing: 0.18em; color: var(--navy); background: #fffef8; border: 2px dashed var(--gold); border-radius: 12px; padding: 0.4rem 1.4rem; margin: 0.8rem 0 1.2rem; }
.thanks dl { display: inline-grid; grid-template-columns: auto auto; gap: 0.3rem 1.4rem; text-align: left; margin: 1rem 0 1.6rem; }
.thanks dt { color: var(--muted); }
.thanks dd { margin: 0; font-weight: 500; }

.gallery-card { display: block; }
.gallery-img { display: block; }


/* booking choice cards: undo the uppercase label style inherited from .form label */
.form .type-toggle label, .form .room-pick { text-transform: none; letter-spacing: 0; font-size: 1rem; color: inherit; display: block; }
.form .room-pick > span { display: flex; }

/* ===== lightbox: arrows + video ===== */
.lightbox button.lb-nav {
  position: absolute; top: 50%; right: auto; transform: translateY(-50%);
  width: 3rem; height: 3rem; border-radius: 50%; font-size: 1.8rem; line-height: 1; padding: 0;
  display: grid; place-items: center; background: #0b1730aa;
}
.lightbox button.lb-prev { left: 1rem; }
.lightbox button.lb-next { right: 1rem; }
.lightbox button[hidden] { display: none; }
.lightbox button.lb-nav:hover, .lightbox button.lb-close:hover { background: #fff; color: var(--navy); }
.lightbox video { width: auto; max-width: 100%; max-height: 80vh; margin: 0 auto; background: #000; border-radius: 6px; display: block; }
.lightbox video[hidden], .lightbox img[hidden] { display: none; }

/* ===== hero video fades in over the poster photo ===== */
/* ===== hero photo: slow "Ken Burns" drift + soft fade-in (photo only, no video) ===== */
.hero-media img {
  transform-origin: 55% 45%;
  will-change: transform, opacity;
  animation: heroIn 1.4s ease-out both, heroDrift 26s ease-in-out 1.4s infinite alternate;
}
.hero-media video {
  will-change: opacity;
  animation: heroIn 1.2s ease-out both;
}
@keyframes heroIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes heroDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to   { transform: scale(1.13) translate3d(-1.2%, -1.4%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media img { animation: heroIn 0.6s ease-out both; }
  .hero-media video { animation: none; }
}

/* ===== video tiles (gallery, room pages) ===== */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.75rem; }
.video-tile { position: relative; display: block; border-radius: 10px; overflow: hidden; background: #0d1b36; aspect-ratio: 9 / 14; cursor: pointer; }
.video-tile.wide { aspect-ratio: 16 / 10; }
.video-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.video-tile:hover img { transform: scale(1.05); }
.video-tile .play {
  position: absolute; left: 50%; top: 50%; width: 3.4rem; height: 3.4rem; margin: -1.7rem 0 0 -1.7rem; border-radius: 50%;
  background: #e4b64fee; color: var(--navy); display: grid; place-items: center; box-shadow: 0 6px 20px #0006;
}
.video-tile .play::before { content: ""; border-style: solid; border-width: 0.55rem 0 0.55rem 0.95rem; border-color: transparent transparent transparent var(--navy); margin-left: 0.2rem; }
.video-tile .vlabel {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 0.7rem 0.55rem; color: #fff; font-family: var(--serif); font-size: 1rem;
  background: linear-gradient(0deg, #0a1629d9, transparent);
}
.section-sub { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; margin: 2.2rem 0 0.8rem; color: var(--navy); }

/* ===== home: tour strip ===== */
.tour { background: var(--navy); color: #fff; }
.tour .section-head p { color: #d9d4c5; }
.tour-strip { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 0.6rem; scroll-snap-type: x proximity; }
.tour-strip .video-tile { flex: 0 0 auto; height: 380px; aspect-ratio: auto; scroll-snap-align: start; }
.tour-strip .video-tile img { width: auto; height: 100%; max-width: none; }
@media (max-width: 700px) { .tour-strip .video-tile { height: 300px; } }

/* ===== panorama: hover the left/right edge to look around (touch: swipe) ===== */
.pano-block { margin: 0 0 2.2rem; }
.pano-head h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 0.2rem; }
.pano-head p { margin: 0 0 0.9rem; color: #6b6657; }
.pano-tip-touch { display: none; }
@media (hover: none) { .pano-tip-mouse { display: none; } .pano-tip-touch { display: inline; } }
.pano { position: relative; overflow-x: auto; overflow-y: hidden; border-radius: 14px; background: #0d1b36;
  scrollbar-width: none; -ms-overflow-style: none; box-shadow: 0 10px 30px #0a164626; outline-offset: 3px; cursor: ew-resize; }
.pano::-webkit-scrollbar { display: none; }
.pano img { display: block; height: clamp(280px, 48vh, 480px); width: auto; min-width: 165%; max-width: none; user-select: none; -webkit-user-drag: none; }
.pano-wrap { position: relative; }
.pano-arrow { position: absolute; top: 0; bottom: 0; width: 16%; display: flex; align-items: center; pointer-events: none; z-index: 2;
  font-size: 4rem; line-height: 1; color: #fff; opacity: 0; transition: opacity .25s; text-shadow: 0 2px 12px #000a; }
.pano-arrow-l { left: 0; justify-content: flex-start; padding-left: 1rem; border-radius: 14px 0 0 14px; background: linear-gradient(90deg, #0a164699, transparent); }
.pano-arrow-r { right: 0; justify-content: flex-end; padding-right: 1rem; border-radius: 0 14px 14px 0; background: linear-gradient(270deg, #0a164699, transparent); }
.pano-wrap.go-left .pano-arrow-l, .pano-wrap.go-right .pano-arrow-r { opacity: 1; }
@media (hover: none) { .pano-arrow { display: none; } }

/* ===== true 360° (equirectangular / Pannellum) ===== */
/* Pannellum adds .pnlm-container (height:100%) onto the same element — keep an explicit height. */
.pano360,
.pano360.pnlm-container {
  position: relative;
  width: 100%;
  height: clamp(320px, 58vh, 560px);
  border-radius: 14px;
  overflow: hidden;
  background: #0d1b36;
  box-shadow: 0 10px 30px #0a164626;
}
.pano360 .pnlm-render-container,
.pano360 .pnlm-ui { height: 100%; }
.pano360 .pnlm-controls-container { right: 10px; top: 10px; }
.pano360 .pnlm-load-box { background: #0d1b36; }
