/* Shared site extras: snowflakes + raining ornaments, photo viewer, share ornaments */

/* ---------- Snowflakes ---------- */
.snowfall {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.flake {
  position: absolute;
  top: -40px;
  color: #ffffff;
  animation-name: flake-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.flake .gust,
.falling .gust {
  display: block;
  width: 100%;
  height: 100%;
  will-change: transform;
}
.flake svg {
  display: block;
  width: 100%;
  height: 100%;
  animation: flake-sway 5s ease-in-out infinite alternate;
}
@keyframes flake-fall {
  from { transform: translateY(-40px) rotate(0deg); }
  to   { transform: translateY(110vh) rotate(var(--spin, 240deg)); }
}
@keyframes flake-sway {
  from { transform: translateX(calc(var(--sway, 14px) * -1)); }
  to   { transform: translateX(var(--sway, 14px)); }
}

/* ---------- Raining ornaments (booking-page style) ---------- */
.ornament-rain {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.falling {
  position: absolute;
  top: -60px;
  animation: orn-fall linear infinite;
}
.falling svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  animation: orn-sway ease-in-out infinite alternate;
}
@keyframes orn-fall {
  from { transform: translateY(-60px) rotate(0deg); }
  to   { transform: translateY(115vh) rotate(var(--spin, 200deg)); }
}
@keyframes orn-sway {
  from { transform: translateX(calc(var(--sway, 20px) * -1)); }
  to   { transform: translateX(var(--sway, 20px)); }
}

@media (prefers-reduced-motion: reduce) {
  .flake, .flake svg, .falling, .falling svg { animation: none; }
  .ornament-rain { display: none; }
}


/* ---------- Hanging ornaments (shared) ---------- */
.ornaments {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  z-index: 3;
  pointer-events: none;
}
/* Keep body positioned so absolute ornaments anchor to the page top */
body { position: relative; }
.orn {
  position: absolute;
  top: 0;
  transform-origin: top center;
  animation: orn-swing 4s ease-in-out infinite alternate;
}
.orn svg { display: block; overflow: visible; }
.orn:nth-child(2) { animation-delay: -1.3s; animation-duration: 4.6s; }
.orn:nth-child(3) { animation-delay: -2.1s; animation-duration: 3.7s; }
.orn:nth-child(4) { animation-delay: -0.6s; animation-duration: 5s; }
@keyframes orn-swing {
  from { transform: rotate(-6deg); }
  to   { transform: rotate(6deg); }
}
@media (max-width: 760px) {
  .ornaments { display: none; }
}

/* ---------- Twinkling string-light bulbs ---------- */
svg.lights .bulb-twinkle {
  animation-name: bulb-twinkle;
  animation-duration: var(--twinkle-dur, 2.4s);
  animation-delay: var(--twinkle-delay, 0s);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes bulb-twinkle {
  0%, 100% {
    opacity: 1;
    filter: drop-shadow(0 0 5px var(--bulb-color, #f6c453));
  }
  50% {
    opacity: 0.45;
    filter: drop-shadow(0 0 1px var(--bulb-color, #f6c453));
  }
}

@media (prefers-reduced-motion: reduce) {
  .orn { animation: none; }
  svg.lights .bulb-twinkle {
    animation: none;
    opacity: 1;
    filter: drop-shadow(0 0 4px var(--bulb-color, #f6c453));
  }
}

/* ---------- Clickable photos ---------- */
a.zoomable {
  display: block;
  overflow: hidden;
  cursor: zoom-in;
  border-radius: inherit;
  position: relative;
}
a.zoomable img {
  transition: transform 0.35s ease, filter 0.35s ease;
}
a.zoomable:hover img,
a.zoomable:focus-visible img {
  transform: scale(1.05);
  filter: brightness(1.08);
}
a.zoomable::after {
  content: "View photo";
  position: absolute;
  left: 50%;
  bottom: 0.7rem;
  transform: translate(-50%, 6px);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid #f6c453;
  color: #fdf7e9;
  font: 600 0.75rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
a.zoomable:hover::after,
a.zoomable:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}
a.zoomable.small::after { display: none; }
@media (prefers-reduced-motion: reduce) {
  a.zoomable img, a.zoomable::after { transition: none; }
}

/* ---------- Photo viewer ---------- */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: rgba(3, 5, 8, 0.92);
}
.viewer[hidden] { display: none !important; }
.viewer-img {
  max-width: min(100%, 1400px);
  max-height: calc(100vh - 150px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  border: 3px solid #f6c453;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  background: #0d1520;
}
.viewer-caption {
  color: #f8f9fa;
  font: 500 1rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  text-align: center;
  max-width: 40rem;
}
.viewer-count {
  color: #cfd4da;
  font: 400 0.85rem/1 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.viewer button {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #f6c453;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.viewer button:hover { background: #d7263d; }
.viewer button:focus-visible { outline: 3px solid #f6c453; outline-offset: 3px; }
.viewer-close { top: max(16px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); }
.viewer-prev { left: max(16px, env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
.viewer-next { right: max(16px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .viewer-prev, .viewer-next { top: auto; bottom: max(16px, env(safe-area-inset-bottom, 0px)); transform: none; }
  .viewer-img { max-height: calc(100vh - 190px); }
}
body.viewer-open { overflow: hidden; }

/* ---------- Shared site footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid #283447;
  background: rgba(0, 0, 0, 0.4);
  color: #cfd4da;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
.site-footer .foot {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  padding-block: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.9rem;
}
.site-footer p { margin: 0; }
.site-footer .foot-brand {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #f8f9fa;
}
.site-footer .foot-legal { margin-top: 0.75rem; font-size: 0.85rem; }
.site-footer .foot-copy { font-size: 0.8rem; }
.site-footer .foot-links { display: flex; flex-direction: column; gap: 0.3rem; }
.site-footer .foot-links strong { color: #f6c453; }
.site-footer a { color: #f6c453; text-decoration: underline; }

/* ---------- Share strip ---------- */
.share-strip {
  position: relative;
  z-index: 2;
  padding: 2.5rem max(16px, env(safe-area-inset-right, 0px)) 2.5rem max(16px, env(safe-area-inset-left, 0px));
  text-align: center;
  color: #f8f9fa;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.share-strip h2 {
  margin: 0 0 0.35rem;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  text-wrap: balance;
}
.share-strip p { margin: 0 auto 1.2rem; max-width: 34rem; color: #cfd4da; font-size: 0.98rem; }
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.share-btn {
  --lit: #ff3b4e;
  --glow: rgba(255, 59, 78, 0.85);
  --lit-glyph: #ffffff;
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  border: 2px solid #f6c453;
  background: rgba(0, 0, 0, 0.45);
  color: #f6c453;
  font-size: 1.3rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}
/* Christmas-light glow colors per button */
.share-buttons .share-btn:nth-child(8n+1) { --lit: #ff3b4e; --glow: rgba(255, 59, 78, 0.85); --lit-glyph: #ffffff; }
.share-buttons .share-btn:nth-child(8n+2) { --lit: #2ed573; --glow: rgba(46, 213, 115, 0.85); --lit-glyph: #08331a; }
.share-buttons .share-btn:nth-child(8n+3) { --lit: #ffd56a; --glow: rgba(255, 213, 106, 0.9); --lit-glyph: #3a2800; }
.share-buttons .share-btn:nth-child(8n+4) { --lit: #4dabf7; --glow: rgba(77, 171, 247, 0.9); --lit-glyph: #041628; }
.share-buttons .share-btn:nth-child(8n+5) { --lit: #ff922b; --glow: rgba(255, 146, 43, 0.9); --lit-glyph: #2a1400; }
.share-buttons .share-btn:nth-child(8n+6) { --lit: #a66cff; --glow: rgba(166, 108, 255, 0.9); --lit-glyph: #ffffff; }
.share-buttons .share-btn:nth-child(8n+7) { --lit: #ff8cc8; --glow: rgba(255, 140, 200, 0.9); --lit-glyph: #2a0420; }
.share-buttons .share-btn:nth-child(8n+8) { --lit: #f1f3f5; --glow: rgba(241, 243, 245, 0.95); --lit-glyph: #1a1d21; }

.share-btn:is(:hover, :focus-visible, :active) {
  background: var(--lit) !important;
  border-color: #fff4c2 !important;
  color: var(--lit-glyph) !important;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.25), 0 0 18px 4px var(--glow), 0 6px 14px rgba(0,0,0,0.35) !important;
  filter: brightness(1.06);
  transform: translateY(-2px);
  outline: none;
}
.share-btn:focus-visible {
  outline: 3px solid #f6c453;
  outline-offset: 3px;
}
.share-btn[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .share-btn { transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; }
  .share-btn:is(:hover, :focus-visible, :active) { transform: none; }
}
.share-status { display: block; min-height: 1.4em; margin-top: 0.6rem; font-size: 0.88rem; color: #f6c453; }


/* ---------- Site-wide hover / tap style: red with a gold outline ---------- */
/* Buttons */
body :is(a.btn, a.btn-primary, a.btn-ghost, a.btn-back, button.submit:not(:disabled), .viewer button):is(:hover, :focus-visible, :active) {
  background: #d7263d !important;
  border-color: #f6c453 !important;
  color: #ffffff !important;
  filter: none !important;
  box-shadow: 0 0 0 2px #f6c453, 0 10px 24px rgba(0, 0, 0, 0.5) !important;
}
/* Share ornament buttons keep their own per-color light-up styles (see .share-btn above). */
body :is(a.btn, a.btn-primary, a.btn-ghost, a.btn-back, button.submit) {
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Text links, nav links and footer links */
body a:not(.btn):not(.btn-primary):not(.btn-ghost):not(.btn-back):not(.share-btn):not(.zoomable):is(:hover, :focus-visible, :active) {
  background: #d7263d;
  color: #ffffff !important;
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 0 0 0 2px #d7263d, 0 0 0 4px #f6c453;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* FAQ questions */
body details > summary { border-radius: 10px; transition: background 0.2s ease, box-shadow 0.2s ease; }
body details > summary:is(:hover, :focus-visible) {
  background: #d7263d;
  color: #ffffff;
  box-shadow: 0 0 0 6px #d7263d, 0 0 0 8px #f6c453;
  outline: none;
}
body details > summary:is(:hover, :focus-visible)::after { color: #ffffff; }

/* Clickable photos */
body a.zoomable:is(:hover, :focus-visible, :active) {
  box-shadow: 0 0 0 3px #d7263d, 0 0 0 6px #f6c453;
}

@media (prefers-reduced-motion: reduce) {
  body :is(a.btn, a.btn-primary, a.btn-ghost, a.btn-back, button.submit), body details > summary { transition: none; }
}
