/*
 * Capri shared components, used by every venue.
 * Built only from the tokens each venue stylesheet already defines
 * (--olive, --gold, --serif, --shadow-sm and so on), so it inherits each venue's look.
 */

/* Venue details toggle blocks with the hidden attribute; component rules
   such as .btn set display and would otherwise override it. */
[hidden] { display: none !important; }

/* ------------------------------------------------------------------
   Live gallery
   ------------------------------------------------------------------ */
.gallery-hero img { object-position: center 45%; }
.live-gallery { min-height: 280px; }
.gallery-grid { columns: 3 280px; column-gap: 20px; }
.gallery-tile {
  break-inside: avoid;
  margin: 0 0 20px;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  animation: galleryTileIn .7s cubic-bezier(.2,.8,.2,1) both;
}
.gallery-tile img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--paper-2, #eee9df);
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
.gallery-tile:hover img { transform: scale(1.025); }
.gallery-tile figcaption { padding: 13px 17px 16px; color: #696b64; font-size: .84rem; line-height: 1.55; }
@keyframes galleryTileIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.gallery-status {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 64px 24px;
  border: 1px dashed rgba(143,117,64,.38);
  border-radius: 26px;
  background: rgba(255,255,255,.55);
  text-align: center;
}
.gallery-status p { max-width: 460px; margin: 0; color: #696b64; line-height: 1.7; }
.gallery-status-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  color: var(--gold);
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-family: var(--serif);
  font-size: 1.5rem;
}
.gallery-status-mark::before { content: "C"; }
.live-gallery:not([data-state]) .gallery-status-mark { animation: galleryPulse 1.6s ease-in-out infinite; }
@keyframes galleryPulse { 50% { opacity: .45; } }

/* Homepage strip of the latest photos, inside a glass card. */
.gallery-board-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.gallery-board-strip a {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: var(--paper-2, #eee9df);
}
.gallery-board-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.gallery-board-strip a:hover img, .gallery-board-strip a:focus-visible img { transform: scale(1.08); }
.gallery-board-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px 14px;
  border: 1px dashed rgba(143,117,64,.35);
  border-radius: 10px;
  color: #6f7169;
  background: rgba(255,255,255,.6);
  font-size: .62rem;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 650px) {
  .gallery-grid { columns: 2 150px; column-gap: 12px; }
  .gallery-tile { margin-bottom: 12px; border-radius: 16px; }
  .gallery-tile figcaption { padding: 10px 12px 12px; font-size: .76rem; }
  .gallery-status { padding: 48px 20px; }
  .gallery-board-empty { font-size: .72rem; }
}

/* ------------------------------------------------------------------
   Menu chooser: one card, several menus
   ------------------------------------------------------------------ */
button.menu-card {
  width: 100%;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.menu-card .menu-card-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 14px;
}
.menu-card .menu-card-options span {
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.1);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.menu-chooser {
  width: min(calc(100% - 32px), 720px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 28px;
  color: var(--ink);
  background: #f8f6f1;
  box-shadow: var(--shadow-lg);
}
.menu-chooser::backdrop {
  background: rgba(16,22,14,.62);
  backdrop-filter: blur(6px);
}
.menu-chooser[open] { animation: chooserIn .35s cubic-bezier(.2,.8,.2,1); }
.menu-chooser[open]::backdrop { animation: chooserFade .35s ease; }
@keyframes chooserIn {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes chooserFade { from { opacity: 0; } to { opacity: 1; } }

.menu-chooser-inner { position: relative; padding: 38px; }
.menu-chooser h2 {
  margin: 10px 0 8px;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.035em;
}
.menu-chooser-intro { margin: 0 0 26px; color: #696b64; line-height: 1.7; }
.menu-chooser-close {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--olive);
  background: #fff;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  transition: transform .2s ease, background .2s ease;
}
.menu-chooser-close:hover, .menu-chooser-close:focus-visible { transform: rotate(90deg); background: var(--paper-2, #eee9df); }
.menu-chooser-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.menu-option {
  position: relative;
  display: grid;
  min-height: 260px;
  padding: 24px;
  align-content: end;
  overflow: hidden;
  isolation: isolate;
  border-radius: 20px;
  color: #fff;
  background: var(--olive) center / cover no-repeat;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.menu-option::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(20,26,17,.08), rgba(20,26,17,.86));
}
.menu-option:hover, .menu-option:focus-visible { transform: translateY(-5px); box-shadow: 0 24px 48px rgba(31,36,27,.22); }
.menu-option small {
  color: rgba(255,255,255,.72);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.menu-option strong {
  display: block;
  margin: 6px 0 12px;
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1;
}

@media (max-width: 650px) {
  .menu-chooser { border-radius: 22px; }
  .menu-chooser-inner { padding: 30px 20px 22px; }
  .menu-chooser-close { top: 16px; right: 16px; }
  .menu-chooser-options { grid-template-columns: 1fr; gap: 12px; }
  .menu-option { min-height: 170px; padding: 20px; }
}

/* ------------------------------------------------------------------
   Coming soon: normal page chrome, only the main content waits
   ------------------------------------------------------------------ */
.coming-soon-hero .content-wrap { min-height: 560px; }
.coming-soon-badge {
  display: inline-flex;
  width: max-content;
  margin-top: 26px;
  padding: 8px 14px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.coming-soon-badge::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  content: "";
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(180,147,80,.6);
  animation: comingSoonPing 2s ease-out infinite;
}
@keyframes comingSoonPing {
  70% { box-shadow: 0 0 0 10px rgba(180,147,80,0); }
  100% { box-shadow: 0 0 0 0 rgba(180,147,80,0); }
}
.coming-soon-panel {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  padding: 46px;
  align-items: center;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.coming-soon-panel h2 {
  margin: 10px 0 14px;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.035em;
}
.coming-soon-panel p { margin: 0; color: #696b64; line-height: 1.8; }
.coming-soon-links { display: grid; gap: 12px; }
.coming-soon-link {
  display: flex;
  min-height: 72px;
  padding: 16px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfaf7;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.coming-soon-link:hover, .coming-soon-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(143,117,64,.4);
  box-shadow: var(--shadow-sm);
}
.coming-soon-link strong { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 400; }
.coming-soon-link small { display: block; color: #77786f; font-size: .78rem; }
.coming-soon-link::after { color: var(--gold); content: "→"; font-size: 1.1rem; }

@media (max-width: 980px) {
  .coming-soon-panel { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 650px) {
  .coming-soon-hero .content-wrap { min-height: 470px; }
  .coming-soon-panel { padding: 28px 22px; border-radius: 22px; }
}

/* ------------------------------------------------------------------
   Venue details waiting to be confirmed
   ------------------------------------------------------------------ */
.venue-pending { color: #8a8b84; font-style: italic; }
.site-footer .venue-pending { color: rgba(255,255,255,.5); }
.map-placeholder {
  position: relative;
  display: grid;
  height: 100%;
  min-height: 520px;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--olive);
}
.map-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .42;
  filter: saturate(.7);
}
.map-placeholder div { position: relative; z-index: 1; max-width: 360px; padding: 24px; text-align: center; }
.map-placeholder strong { display: block; margin-bottom: 8px; font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.map-placeholder p { margin: 0; color: rgba(255,255,255,.78); line-height: 1.7; }
.map-frame [data-venue="map"] { height: 100%; }
.map-frame [data-venue="map"] iframe { width: 100%; height: 100%; min-height: 520px; border: 0; filter: sepia(.2) saturate(.75) contrast(.95); }

@media (prefers-reduced-motion: reduce) {
  .gallery-tile, .menu-chooser[open], .menu-chooser[open]::backdrop { animation: none; }
  .coming-soon-badge::before, .live-gallery:not([data-state]) .gallery-status-mark { animation: none; }
}
