/* Drift Lodge: The Lodge page (Lodge.dc.html; the same responsive page on phones). */

/* Facts strip overlapping the hero */
.facts-outer { position: relative; z-index: 2; margin-top: -34px; }
.facts {
  list-style: none; margin: 0; padding: 8px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 8px;
  border-radius: 28px; background: #FFFFFF; box-shadow: 0 30px 60px -40px rgba(27, 42, 48, .5);
}
.fact { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 20px; background: var(--sand); line-height: 1.2; }
.fact svg { flex: none; color: var(--teal); }
.fact b { font-weight: 700; font-size: 16px; }
.fact span span { font-size: 13px; color: var(--muted); }

/* Room by room */
.rooms-sec { padding-top: 100px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 40px; }
.rooms-sec h2, .gallery h2 { font-size: clamp(38px, 4.8vw, 62px); }
.sec-intro--wide { max-width: 28em; }
.space { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.space--flip { flex-direction: row-reverse; }
.space-photo { flex: 1.25 1 440px; min-width: 0; position: relative; border-radius: 30px; overflow: hidden; min-height: 380px; }
.space-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.zoom img { transition: transform .6s ease; }
.zoom:hover img { transform: scale(1.04); }
.space-open { position: absolute; inset: 0; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.space-360 {
  position: absolute; top: 16px; right: 16px; display: flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .22); color: #FFFFFF; font-size: 14px; font-weight: 600;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.space-card { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 3vw, 36px); border-radius: 30px; background: var(--plum); color: #F3ECE3; }
.space-num { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--apricot); }
.space-card h3 { font-size: clamp(32px, 3.4vw, 44px); line-height: 1; }
.space-card p { margin: 0; color: #D6CEDF; }
.space-feats { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 8px; }
.space-feats li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.space-feats svg { flex: none; color: var(--apricot); }
.space-thumbs { margin-top: auto; padding-top: 10px; display: flex; gap: 8px; }
.space-thumbs button { flex: 1; max-width: 120px; height: 78px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #4A4258; }
.space-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Gallery */
.gallery { padding-top: 60px; padding-bottom: 90px; display: flex; flex-direction: column; gap: 24px; }
.cats { display: flex; gap: 8px; padding-bottom: 2px; overflow-x: auto; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid #DDD5C9; background: #FFFFFF; color: var(--night); font-size: 14px; font-weight: 600; white-space: nowrap; }
.cat[aria-selected="true"] { background: var(--night); color: #FFFFFF; border-color: var(--night); }
.cat-count { opacity: .8; font-weight: 500; } /* contrast check: was .6 */
.gal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 12px; }
.gal.is-all .wide { grid-column: span 2; grid-row: span 2; }
.gal-item { position: relative; padding: 0; border: 0; border-radius: 20px; overflow: hidden; background: var(--card-line); }
.gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-more { align-self: center; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--night); background: transparent; color: var(--night); font-weight: 700; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 95; display: flex; flex-direction: column; background: rgba(14, 18, 22, .94); color: #FFFFFF; }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px clamp(14px, 3vw, 28px); }
.lb-count { font-family: var(--mono); font-size: 13px; }
.lb-close { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #FFFFFF; }
.lb-stage { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; padding: 0 clamp(8px, 6vw, 90px); }
.lb-stage img { max-width: 100%; max-height: 100%; border-radius: 16px; display: block; object-fit: contain; }
.lb-stage .fadein { animation: dlIn .5s ease both; }
@keyframes dlIn { from { transform: translateY(10px); opacity: .35; } to { transform: none; opacity: 1; } }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 52px; height: 52px;
  border-radius: 50%; border: 0; background: rgba(255, 255, 255, .18); color: #FFFFFF;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.lb-prev { left: clamp(6px, 2vw, 24px); }
.lb-next { right: clamp(6px, 2vw, 24px); }
.lb-caption { margin: 0; padding: 16px; text-align: center; font-size: 15px; opacity: .85; }

/* 360° viewer */
.tourv { position: fixed; inset: 0; z-index: 95; display: flex; flex-direction: column; background: #10151A; color: #FFFFFF; }
.tourv .pano { flex: 1; background-repeat: no-repeat; background-size: 160% auto; background-position: 50% 50%; cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.tourv .pano:active { cursor: grabbing; }
.tourv .pano.sway { animation: dlSway 22s ease-in-out infinite; }
@keyframes dlSway { 0%, 100% { background-position: 15% 50%; } 50% { background-position: 85% 50%; } }
.tourv-bar { position: absolute; left: 16px; right: 16px; top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tourv-name {
  display: flex; align-items: center; gap: 4px; padding: 10px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .45);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font-size: 14px;
}
.tourv-close { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; border: 0; background: #FFFFFF; color: var(--night); }
.tourv-note { position: absolute; left: 16px; bottom: 16px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .75); color: var(--night); font-family: var(--mono); font-size: 11px; }

@media (max-width: 960px) {
  .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 8px; }
}
@media (max-width: 600px) {
  .space-photo { min-height: 250px; }
  .tourv .pano { background-size: auto 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .zoom img { transition: none; }
  .lb-stage .fadein { animation: none; }
  .tourv .pano.sway { animation: none; }
}
