/* Apollo Narooma — shared styles. Most layout is inline in the HTML; this file holds
   page basics and the small-screen overrides. */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: #FFFDF9; -webkit-font-smoothing: antialiased; }
a { color: #A9502F; }
a:hover { color: #8E4227; }
img { display: block; max-width: 100%; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #D9825E; outline-offset: 2px; }
[hidden] { display: none !important; }

/* Day trip "See the day" expanders */
details.trip { margin-top: 6px; border-top: 1px solid #EADFD4; padding-top: 4px; }
details.trip summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  cursor: pointer; font-weight: 600; font-size: 15px; color: #A9502F; list-style: none;
}
details.trip summary::-webkit-details-marker { display: none; }
details.trip summary::after { content: "+"; font-size: 20px; line-height: 1; }
details.trip[open] summary::after { content: "\2212"; }

/* What's On ticker */
.ticker { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track {
  display: flex; gap: 0; width: max-content; margin: 0; padding: 0; list-style: none;
  animation: ticker var(--ticker-duration, 50s) linear infinite;
}
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track, .ticker-track.paused { animation-play-state: paused; }
.ticker-track li { padding-right: 40px; white-space: nowrap; font-size: 15px; color: #33302C; display: flex; align-items: center; }
.ticker-track li::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: #D9825E; margin-right: 14px; }
.ticker-track a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.ticker-track a:hover strong { text-decoration: underline; }
.ticker-track span { color: #675C54; margin-left: 6px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-pause {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid #E0D2C5;
  background: #FFFDF9; color: #33302C; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .ticker-track { animation: none; }
  .ticker-track li[aria-hidden="true"] { display: none; }
  .ticker-pause { display: none; }
}

.menu-btn {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1.5px solid #E0D2C5; border-radius: 999px;
  background: #FFFDF9; color: #33302C; cursor: pointer;
}

/* oo.studio footer bottom line (house layout): © left, credit centre, Owner login right */
.footer-bottom {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: 12px; margin-top: 28px; padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12px; line-height: 1.4; color: #E8DFD6;
}
.footer-bottom a { color: #FFFFFF; }
.footer-bottom a:hover { color: #F2B89A; }
.footer-copy { justify-self: start; }
.footer-credit { justify-self: center; }
.footer-owner { justify-self: end; }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav-links { display: none !important; width: 100%; }
  .nav-links.open { display: flex !important; flex-direction: column; align-items: stretch !important; gap: 0 !important; padding-bottom: 8px; }
  .nav-links.open a { padding: 12px 0 !important; border-bottom: 1px solid #EADFD4 !important; }
  .nav-links.open a:last-child { border-bottom: 0 !important; margin-top: 12px; text-align: center; }
}

@media (max-width: 760px) {
  .nav { padding: 12px 20px !important; }
  section > div, footer > div { padding-left: 20px !important; padding-right: 20px !important; }
  section[style*="max-width: 1280px"] { padding-left: 20px !important; padding-right: 20px !important; }
  section[style*="max-width: 1280px"] > div { padding-left: 0 !important; padding-right: 0 !important; }
  .hero-card { padding: 28px 24px !important; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-auto-rows: 170px !important; }
  .groups-copy { padding: 64px 0 !important; }
  .filters { position: static !important; }
  .ticker-wrap { flex-wrap: wrap; gap: 8px 12px !important; }
  .ticker { flex-basis: 100% !important; order: 3; }
  .ticker-all { margin-left: auto; }
  .footer-bottom { grid-template-columns: 1fr; justify-items: center; gap: 0; text-align: center; }
  .footer-bottom > * { justify-self: center !important; display: inline-flex; align-items: center; min-height: 44px; }
}

/* Gallery (masonry columns) + photo viewer */
.gallery { columns: 4 240px; column-gap: 14px; margin: 0; padding: 0; list-style: none; }
.gallery li { break-inside: avoid; margin-bottom: 14px; }
.g-item { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 20px; overflow: hidden; }
.g-item img { width: 100%; height: auto; transition: transform .4s ease; }
.g-item:hover img { transform: scale(1.03); }
@media (max-width: 760px) { .gallery { columns: 2; column-gap: 10px; } .gallery li { margin-bottom: 10px; } .g-item { border-radius: 14px; } }

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(36, 32, 28, 0.94); color: #FFFDF9; }
.lightbox::backdrop { background: rgba(36, 32, 28, 0.94); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 64px 72px 40px; box-sizing: border-box; }
.lightbox img { max-width: 100%; max-height: calc(100% - 60px); object-fit: contain; border-radius: 14px; }
.lightbox figcaption { font-size: 15px; text-align: center; max-width: 720px; color: #E8DFD6; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 999px; border: 1.5px solid rgba(255,253,249,.4); background: rgba(36,32,28,.5); color: #FFFDF9; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.lb-btn:hover { background: rgba(255,253,249,.15); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 760px) {
  .lightbox figure { padding: 72px 12px 96px; }
  .lb-prev, .lb-next { top: auto; bottom: 24px; transform: none; }
  .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); }
}
@media (prefers-reduced-motion: reduce) { .g-item img { transition: none; } }

/* oo.studio credit with traced infinity loop (matches other oo.studio sites) */
.oo-credit { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; white-space: nowrap; transition: color .3s; }
.footer-bottom a.oo-credit { color: #FFFFFF; text-decoration: none; }
.footer-bottom a.oo-credit:hover, .footer-bottom a.oo-credit:focus-visible { color: #F2B89A; }
.oo-credit strong { font-weight: 600; }
.oo-credit svg { flex-shrink: 0; width: 2em; height: 1.333em; }
.oo-credit path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.oo-credit .oo-loop { opacity: .35; }
.oo-credit .oo-light { stroke-dasharray: 25 75; stroke-dashoffset: 0; animation: oo-trace 2.4s linear infinite; }
@keyframes oo-trace { to { stroke-dashoffset: -100; } }
@media (prefers-reduced-motion: reduce) { .oo-credit .oo-light { animation: none; opacity: 0; } }
.footer-bottom a.footer-owner { text-decoration: none; transition: color .3s; }
