/* Booking panel, opening hours and the find us block. */

/* --- Page lock while the panel is open --- */

html.booking-open {
  overflow: hidden;
}

/* --- Booking panel --- */

.booking-panel {
  position: fixed;
  inset: auto 0 0 0;
  width: 100%;
  max-width: 100%;
  max-height: 92svh;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 16px 16px 0 0;
  background-color: var(--paper);
  color: var(--ink);
  box-shadow: 0 -10px 40px rgba(34, 27, 25, 0.24);
  overflow: hidden;
}

.booking-panel[open] {
  display: flex;
  flex-direction: column;
  animation: booking-in-bottom 0.28s ease-out;
}

.booking-panel:not([open]) {
  display: none;
}

.booking-panel::backdrop {
  background-color: rgba(34, 27, 25, 0.55);
}

@keyframes booking-in-bottom {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes booking-in-side {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.booking-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px var(--gutter);
  border-bottom: 1px solid var(--line);
}

.booking-panel__title {
  font-size: 24px;
  line-height: 1.1;
}

.booking-panel__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border-radius: 50%;
  color: var(--ink);
}

.booking-panel__close:hover {
  background-color: var(--tint);
}

.booking-panel__close svg {
  width: 24px;
  height: 24px;
}

.booking-panel__body {
  flex: 1;
  padding: 20px var(--gutter);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.booking-panel__note {
  margin-bottom: 16px;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--muted);
}

.booking-panel__embed-block {
  max-width: 100%;
}

.booking-panel__embed iframe {
  display: block;
  width: 100%;
  height: 560px;
  border: 0;
}

/* The panel body already scrolls: cap the frame so a phone never shows two scrollbars. */
@supports (height: 70svh) {
  .booking-panel__embed iframe {
    height: min(560px, 70svh);
  }
}

/* With a framed booking form, the form scrolls by itself: the panel body stops
   scrolling and the frame fills the space left under the note, so there is
   only one scrollbar. Browsers without :has keep the capped frame above. */
.booking-panel:has(iframe) {
  height: 92svh;
}

.booking-panel__body:has(iframe) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.booking-panel__embed:has(iframe) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.booking-panel__embed-block:has(iframe):not([hidden]) {
  flex: 1;
  min-height: 0;
}

.booking-panel__embed-block:has(iframe) iframe {
  height: 100%;
}

.booking-panel__foot {
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

/* --- Opening hours --- */

.hours__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background-color: var(--tint);
  color: var(--accent-dk);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hours__status.is-closed {
  color: var(--muted);
}

.hours__list {
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.4;
}

.hours__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.hours__row:last-child {
  border-bottom: 0;
}

.hours__row dt {
  color: var(--muted);
}

.hours__row dd {
  margin: 0;
  text-align: right;
}

.hours__row.is-today dt,
.hours__row.is-today dd {
  color: var(--ink);
  font-weight: 700;
}

.hours--compact .hours__row {
  padding: 3px 0;
}

/* --- Find us --- */

/* Details on the left, map on the right from 720 px; stacked on phones. */
.find-us--with-map {
  display: grid;
  gap: 24px;
}

.find-us__title {
  margin-bottom: 12px;
}

.find-us__address {
  margin-bottom: 8px;
  font-style: normal;
}

.find-us__extra {
  margin-bottom: 8px;
  color: var(--muted);
}

.find-us__contact {
  margin-bottom: 6px;
}

.find-us__contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.find-us__contact a:hover {
  color: var(--accent);
}

.find-us__contact svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.find-us__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block: 16px;
}

.find-us__map {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 24px;
  margin-top: 16px;
  border: 1px solid var(--tint-2);
  border-radius: var(--radius-lg);
  /* Paper, so the box shows on tinted sections too. */
  background-color: var(--paper);
  text-align: center;
  overflow: hidden;
}

.find-us__map-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--accent);
  font-weight: 700;
}

.find-us__map-button:hover {
  border-color: var(--accent);
}

.find-us__map-button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.find-us__map-button svg {
  width: 18px;
  height: 18px;
}

.find-us__note {
  margin-top: 8px;
}

.find-us__map.is-loaded {
  position: relative;
  padding: 0;
}

/* The map fills the whole box (the box keeps its min-height). */
.find-us__map.is-loaded .map-embed {
  position: absolute;
  inset: 0;
  margin: 0;
  aspect-ratio: auto;
  border-radius: 0;
}

.map-embed {
  width: 100%;
  height: 100%;
  min-height: 280px;
  margin: 0;
  aspect-ratio: auto;
  border-radius: 0;
}

.map-embed {
  aspect-ratio: 16 / 9;
  margin-top: 16px;
  background-color: var(--tint);
  border-radius: var(--radius);
  overflow: hidden;
}

.map-embed__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Tablet and desktop --- */

@media (min-width: 720px) {
  .find-us--with-map {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    align-items: start;
    gap: 40px;
  }

  .find-us__map {
    margin-top: 0;
    min-height: 340px;
  }

  .booking-panel {
    inset: 0 0 0 auto;
    width: 480px;
    max-height: 100%;
    height: 100%;
  }

  .booking-panel:has(iframe) {
    height: 100%;
    border-radius: 0;
    box-shadow: -10px 0 40px rgba(34, 27, 25, 0.24);
  }

  .booking-panel[open] {
    animation: booking-in-side 0.28s ease-out;
  }

  .booking-panel__head {
    padding: 20px 24px;
  }

  .booking-panel__body {
    padding: 24px;
  }

  .booking-panel__foot {
    padding: 14px 24px;
  }
}
