/* Homepage: photo-led layout and motion. Every animation is disabled under prefers-reduced-motion (see site.css). */

/* header floats over the hero, turns solid once you scroll */
.home .site-header.over-hero { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background .35s, border-color .35s, backdrop-filter .35s; }
.home .site-header.over-hero.scrolled { background: rgba(6, 26, 31, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: rgba(255, 255, 255, .06); }
.home .announce + .site-header.over-hero { top: auto; }

/* hero slideshow */
.hero-photo { min-height: min(100svh, 980px); display: flex; flex-direction: column; justify-content: flex-end; padding-top: 72px; }
.slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--night); }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s ease; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.slide.is-on { opacity: 1; }
.slide.is-on img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12) translate3d(0, 0, 0); } to { transform: scale(1.02) translate3d(-1.5%, -1%, 0); } }
.hero-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(6, 26, 31, .55) 0%, rgba(6, 26, 31, .1) 30%, rgba(6, 26, 31, .25) 55%, rgba(6, 26, 31, .92) 100%),
  linear-gradient(90deg, rgba(6, 26, 31, .7) 0%, rgba(6, 26, 31, 0) 65%); }
.hero-content { position: relative; flex: 1; display: flex; align-items: flex-end; padding-bottom: 40px; }
.hero-photo .hero-inner { padding: 0; max-width: 720px; }
.hero-kicker { font-size: 2rem; display: block; margin-bottom: 8px; transform: rotate(-2deg); transform-origin: left; animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.hero-photo h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn-glass { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .22); }

/* word-by-word headline reveal (words wrapped by JS) */
.split-words .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; }
.split-words .w > span { display: inline-block; transform: translateY(105%); animation: wordUp .9s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(.12s + var(--i) * .06s); }
@keyframes wordUp { to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px) rotate(-2deg); } to { opacity: 1; transform: rotate(-2deg); } }
.fade-in { opacity: 0; animation: fadeUp .9s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: var(--d, 0s); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.slide-dots { position: absolute; right: 0; bottom: 48px; display: flex; gap: 8px; }
.slide-dots button { width: 44px; height: 24px; background: none; border: 0; padding: 0; cursor: pointer; display: grid; align-items: center; }
.slide-dots i { display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .3); overflow: hidden; position: relative; }
.slide-dots i::after { content: ''; position: absolute; inset: 0; background: var(--lime); transform: scaleX(0); transform-origin: left; }
.slide-dots [aria-selected='true'] i::after { animation: progress var(--slide-ms, 6000ms) linear forwards; }
.slide-dots.paused [aria-selected='true'] i::after { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }
@media (max-width: 760px) { .slide-dots { display: none; } .hero-content { padding-bottom: 28px; } }

.hero-photo .quickbook { margin-bottom: -56px; }
.qb-tabs { position: relative; }
.qb-tab { position: relative; z-index: 1; transition: color .25s; }
.qb-tab[aria-selected='true'] { background: transparent; }
.qb-pill { position: absolute; z-index: 0; top: 4px; height: 38px; border-radius: 999px; background: var(--night); transition: left .35s cubic-bezier(.2, .8, .2, 1), width .35s cubic-bezier(.2, .8, .2, 1); }
.qb-fields { transition: grid-template-columns .3s; }

/* marquee */
.marquee { background: var(--night); color: var(--lime); overflow: hidden; padding: 92px 0 22px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 38s linear infinite; font: 650 clamp(1.4rem, 3vw, 2.2rem)/1 var(--display); white-space: nowrap; }
.marquee-track span:nth-child(4n+3) { color: var(--teal-bright); }
.marquee-track b { font-size: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--roof); display: inline-block; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ways: photo cards */
.way-card { display: flex; flex-direction: column; background: var(--card); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.way-card:hover { transform: translateY(-6px); box-shadow: 0 18px 50px rgba(6, 26, 31, .16); }
.way-img { aspect-ratio: 16 / 10; overflow: hidden; }
.way-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.way-card:hover .way-img img { transform: scale(1.07); }
.way-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.way-body h3 { font-size: 1.4rem; margin-bottom: 6px; }
.way-body p { color: var(--ink-2); font-size: .97rem; }
.way-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); }
.way-foot .price { font: 700 1.35rem var(--display); }
.way-foot .price small { font: 500 .85rem var(--body); color: var(--ink-3); }
.way-foot .arrow { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); font-size: 1.2rem; transition: transform .3s, background .3s, color .3s; }
.way-card:hover .arrow { transform: translateX(4px); background: var(--lime); color: var(--night); }
.way-card.featured { background: var(--night); color: #fff; }
.way-card.featured p, .way-card.featured .price small { color: rgba(255, 255, 255, .72); }
.way-card.featured .way-foot { border-color: rgba(255, 255, 255, .12); }
.way-card.featured .arrow { background: rgba(255, 255, 255, .1); }

/* stats */
.stats-band { padding: 56px 0; background: linear-gradient(120deg, var(--night) 0%, var(--night-2) 100%); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats-grid b { display: block; font: 800 clamp(2.4rem, 5vw, 3.6rem)/1 var(--display); color: var(--lime); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stats-grid div:nth-child(even) b { color: var(--teal-bright); }
.stats-grid span { display: block; margin-top: 8px; color: rgba(255, 255, 255, .72); font-size: .95rem; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: 1fr 1fr; row-gap: 32px; } }

/* cabin cards with photo carousel */
.cabin { transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.cabin:hover { transform: translateY(-5px); box-shadow: 0 18px 50px rgba(6, 26, 31, .14); }
.carousel { position: relative; height: 100%; }
.carousel-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.car-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: var(--night); font-size: 1.3rem; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .2s, transform .2s; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.car-btn.prev { left: 10px; } .car-btn.next { right: 10px; }
.cabin:hover .car-btn, .car-btn:focus-visible { opacity: 1; }
@media (hover: none) { .car-btn { display: none; } }
.car-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.car-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); transition: width .25s, background .25s; }
.car-dots i.on { width: 18px; border-radius: 4px; background: #fff; }

/* feature rows */
.feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; margin-bottom: clamp(56px, 8vw, 96px); }
.feature.flip .feature-img { order: 2; }
.feature-img { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 24px 60px rgba(6, 26, 31, .18); }
.feature-img img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.feature-text .num { font: 800 3.4rem/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--teal); display: block; margin-bottom: 10px; }
.feature-text h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.feature-text p { color: var(--ink-2); font-size: 1.06rem; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature.flip .feature-img { order: 0; } }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tags li { border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 18px; font-weight: 600; color: var(--ink-2); transition: background .2s, border-color .2s, color .2s; }
.tags li:hover { background: var(--night); border-color: var(--night); color: var(--lime); }

/* image clip reveal */
.reveal-clip { clip-path: inset(12% 12% 12% 12% round 24px); opacity: .3; transition: clip-path 1.1s cubic-bezier(.2, .8, .2, 1), opacity .8s; }
.reveal-clip.in { clip-path: inset(0 0 0 0 round 24px); opacity: 1; }
.reveal { transition-delay: var(--d, 0s); }

/* gallery */
#gallery .filters { display: flex; flex-wrap: wrap; gap: 6px; background: rgba(255, 255, 255, .06); padding: 5px; border-radius: 999px; }
#gallery .filters button { border: 0; background: none; color: rgba(255, 255, 255, .75); font: 600 .92rem var(--body); padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s; }
#gallery .filters button[aria-selected='true'] { background: var(--lime); color: var(--night); }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; grid-auto-flow: dense; gap: 12px; }
.bento button { position: relative; border: 0; padding: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: var(--night-2); transition: opacity .4s, transform .4s; }
.bento button.wide { grid-column: span 2; }
.bento button.tall { grid-row: span 2; }
.bento button.big { grid-column: span 2; grid-row: span 2; }
.bento img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .8, .2, 1), filter .4s; }
.bento button:hover img { transform: scale(1.06); }
.bento button::after { content: attr(data-cap); position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: #fff; font-size: .88rem; font-weight: 600; text-align: left; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.bento button:hover::after, .bento button:focus-visible::after { opacity: 1; transform: none; }
.bento button.hide { display: none; }
.bento button.pop { animation: pop .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--i, 0s); }
@keyframes pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) { .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; } }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(3, 12, 14, .94); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; animation: fadeIn .25s; }
.lightbox[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; padding: 20px 0; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 12px; object-fit: contain; animation: zoomIn .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes zoomIn { from { opacity: 0; transform: scale(.96); } }
.lightbox figcaption { color: rgba(255, 255, 255, .8); font-size: .95rem; }
.lightbox button { background: rgba(255, 255, 255, .1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; justify-self: center; }
.lightbox button:hover { background: rgba(255, 255, 255, .2); }
.lb-close { position: absolute; top: 16px; right: 16px; }
@media (max-width: 640px) { .lightbox { grid-template-columns: 1fr; } .lb-prev, .lb-next { position: absolute; bottom: 20px; } .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); } }

/* groups: stacked photos */
.script-h { font-family: var(--script); font-size: clamp(2.6rem, 5vw, 3.8rem); color: var(--forest); font-weight: 600; letter-spacing: 0; line-height: 1; }
.stack { position: relative; aspect-ratio: 1; max-width: 540px; width: 100%; justify-self: center; }
.stack img { position: absolute; border-radius: 20px; object-fit: cover; box-shadow: 0 24px 60px rgba(6, 26, 31, .25); border: 6px solid #fff; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.stack .s1 { width: 78%; height: 58%; left: 0; top: 0; transform: rotate(-3deg); }
.stack .s2 { width: 56%; height: 42%; right: 0; top: 34%; transform: rotate(4deg); z-index: 2; }
.stack .s3 { width: 40%; height: 46%; left: 8%; bottom: 0; transform: rotate(-1deg); z-index: 1; }
.stack:hover .s1 { transform: rotate(-5deg) translate(-8px, -6px); }
.stack:hover .s2 { transform: rotate(6deg) translate(10px, 0); }
.stack:hover .s3 { transform: rotate(-3deg) translate(-6px, 8px); }

/* contact/map without icons */
.map-card { display: block; text-decoration: none; }
.map-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.map-card:hover img { transform: scale(1.04); }
.contact-card { padding: 16px 20px; }

/* closing CTA */
.cta-band { position: relative; overflow: hidden; color: #fff; text-align: center; padding: clamp(90px, 14vw, 160px) 0; isolation: isolate; }
.cta-band > img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; z-index: -2; }
.cta-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at center, rgba(6, 26, 31, .45), rgba(6, 26, 31, .85)); }
.cta-band .script { font-size: 2rem; display: block; margin-bottom: 6px; }
.cta-band h2 { font-size: clamp(2.4rem, 6vw, 4.4rem); margin-bottom: 26px; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .split-words .w > span, .fade-in, .hero-kicker { animation: none; opacity: 1; transform: none; }
  .reveal-clip { clip-path: none; opacity: 1; }
  .slide.is-on img { animation: none; transform: none; }
}

/* ---------- phones ---------- */
@media (hover: none) {
  .way-card:hover, .cabin:hover { transform: none; }
  .way-card:hover .way-img img { transform: none; }
}
@media (max-width: 760px) {
  .hero-photo { min-height: 0; padding-top: 104px; }
  .hero-content { padding-bottom: 22px; }
  .hero-kicker { font-size: 1.55rem; }
  .hero-photo h1 { font-size: clamp(2.15rem, 9.6vw, 2.9rem); margin-bottom: 14px; }
  .hero-photo .lede { font-size: 1.02rem; line-height: 1.55; }
  .hero-ctas { margin-top: 18px; }
  .hero-ctas .btn-primary { display: none; } /* the search card right below does the same job */
  .hero-shade { background: linear-gradient(180deg, rgba(6, 26, 31, .6) 0%, rgba(6, 26, 31, .35) 35%, rgba(6, 26, 31, .9) 100%); }

  /* compact search card: tabs in one swipeable row, then dates, then guests + search */
  .hero-photo .quickbook { padding: 10px; border-radius: 18px; margin-bottom: -64px; }
  .qb-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 10px; }
  .qb-tabs::-webkit-scrollbar { display: none; }
  .qb-tab { flex: 1 0 auto; padding: 9px 12px; font-size: .9rem; }
  .qb-fields, .qb-fields.daypass { grid-template-columns: 1fr 1fr; gap: 8px; }
  .qb-fields .btn { grid-column: auto; min-height: 50px; }
  .qb-fields .field input, .qb-fields .field select { padding: 10px; font-size: 16px; }

  .marquee { padding-top: 88px; }
  .marquee-track { gap: 20px; animation-duration: 28s; }
  .way-body { padding: 18px 18px 20px; }
  .way-body h3 { font-size: 1.25rem; }
  .stats-band { padding: 44px 0; }
  .feature { margin-bottom: 48px; gap: 20px; }
  .feature-text .num { font-size: 2.6rem; }
  .feature-img { border-radius: 18px; }
  .tags { justify-content: flex-start; }
  .tags li { padding: 8px 14px; font-size: .92rem; }

  #gallery .section-head { flex-direction: column; align-items: stretch; }
  #gallery .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; max-width: 100%; }
  #gallery .filters::-webkit-scrollbar { display: none; }
  #gallery .filters button { flex: 1 0 auto; min-height: 40px; }
  .bento { grid-auto-rows: 120px; gap: 8px; }
  .bento button { border-radius: 12px; }
  .bento button::after { opacity: 1; transform: none; font-size: .78rem; padding: 22px 10px 8px; }

  .stack { max-width: 380px; margin-top: 12px; }
  .stack img { border-width: 4px; }
  .cta-band { padding: 80px 0; }
  .cta-band .script { font-size: 1.6rem; }
  .car-dots { bottom: 8px; }
}
@media (max-width: 340px) {
  .qb-fields { grid-template-columns: 1fr; }
  .qb-fields .btn { grid-column: 1 / -1; }
  .stats-grid b { font-size: 2.1rem; }
}
