/* =========================================================
   Home hero — "Book a Bay" popup
   Markup: inc/book-bay-popup.php · Behaviour: assets/js/book-bay-popup.js
   ========================================================= */

html.has-book-popup {
  overflow: hidden;
}

.book-popup {
  width: min(calc(100% - 32px), 620px);
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  border: 0;
  border-radius: 24px;
  padding: 0;
  overflow: auto;
  color: #0c0e12;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.book-popup::backdrop {
  background: rgba(2, 7, 5, 0.62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.book-popup[open] {
  animation: book-popup-in 0.32s cubic-bezier(.22, 1, .36, 1);
}

.book-popup[open]::backdrop {
  animation: book-popup-fade 0.32s ease;
}

@keyframes book-popup-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes book-popup-fade {
  from {
    opacity: 0;
  }
}

.book-popup__panel {
  position: relative;
  padding: 44px 40px 36px;
  text-align: center;
}

/* Lime accent bar along the top edge */
.book-popup__panel::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--color-brand-lime, #e3f956);
  content: "";
}

.book-popup__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: #f2f2f2;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.book-popup__close::before,
.book-popup__close::after {
  position: absolute;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-brand-forest, #003415);
  content: "";
  transform: rotate(45deg);
}

.book-popup__close::after {
  transform: rotate(-45deg);
}

.book-popup__close:hover,
.book-popup__close:focus-visible {
  background: var(--color-brand-lime, #e3f956);
  transform: rotate(90deg);
}

.book-popup__close:focus-visible,
.book-popup__button:focus-visible {
  outline: 2px solid var(--color-brand-forest, #003415);
  outline-offset: 3px;
}

.book-popup__eyebrow {
  margin: 0 0 12px;
  color: var(--color-brand-forest, #003415);
  text-align: center;
}

.book-popup__title {
  margin: 0 auto;
  max-width: 400px;
  color: #000000;
  font-family: "Montserrat", var(--font-sans, sans-serif);
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.book-popup__text {
  max-width: 400px;
  margin: 14px auto 0;
  color: #3a3d38;
  font-family: "Inter", var(--font-sans, sans-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

.book-popup__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.book-popup__actions:has(> :only-child) {
  grid-template-columns: minmax(0, 1fr);
}

.book-popup .book-popup__button {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  font-family: "Inter", var(--font-sans, sans-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}

.book-popup__icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: currentColor;
}

.book-popup__icon--phone {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='2.5'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='2.5'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.book-popup__icon--arrow {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
}

.book-popup__note {
  margin: 16px 0 0;
  color: #6b6f68;
  font-family: "Inter", var(--font-sans, sans-serif);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 560px) {
  .book-popup {
    border-radius: 20px;
  }

  .book-popup__panel {
    padding: 40px 22px 26px;
  }

  .book-popup__actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .book-popup__text {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .book-popup[open],
  .book-popup[open]::backdrop {
    animation: none;
  }

  .book-popup__close:hover,
  .book-popup__close:focus-visible {
    transform: none;
  }
}
