/* =====================================================================
   Floating action buttons — single source of truth
   WhatsApp (right) + mobile Book Now (left)
===================================================================== */

/* --- WhatsApp --- */
.fab {
  position: fixed;
  left: auto;
  top: auto;
  right: max(18px, env(safe-area-inset-right, 0px));
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  width: 56px;
  height: 56px;
  margin: 0;
  padding: 0;
  z-index: 2601;
}

.fab .btn {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #29df70 0%, #21b95a 100%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  box-shadow: 0 10px 26px rgba(5, 32, 18, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  font-size: 26px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.fab .btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 30px rgba(5, 32, 18, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  filter: saturate(1.06);
}

.fab .btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.fab .btn .tip {
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: #111;
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-family: var(--font-sans, "Montserrat", sans-serif);
  font-weight: 700;
  border-radius: 0;
}

.fab .btn:hover .tip {
  opacity: 1;
  transform: translateY(-50%);
}

/* --- Mobile Book Now pill --- */
.fab-booking {
  position: fixed;
  left: 16px;
  right: auto;
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  display: none;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 7px 18px 7px 7px;
  min-height: 56px;
  height: 56px;
  max-width: min(248px, calc(100vw - 96px));
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #111, #8c6b32);
  color: #fff;
  cursor: pointer;
  z-index: 2601;
  box-sizing: border-box;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  font-family: var(--font-sans, "Montserrat", sans-serif);
  overflow: hidden;
  transition: opacity 0.45s ease, transform 0.45s ease, box-shadow 0.3s ease;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
}

.fab-booking.fab-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.fab-booking:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.34);
}

.fab-booking.fab-visible:hover {
  transform: translateY(-2px);
}

.fab-booking__icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.fab-booking__icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  display: block;
}

.fab-booking__icon i {
  font-size: 18px;
  line-height: 1;
  color: #fff;
}

.fab-booking__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
  text-align: left;
  min-width: 0;
}

.fab-booking__copy strong {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
}

.fab-booking__copy span {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

/* --- Booking popup overlay --- */
.fab-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2700;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.fab-popup.active {
  display: flex;
}

.fab-popup .popup-booking {
  position: relative;
  background: #fff;
  width: min(100%, 400px);
  max-width: 400px;
  border-radius: 28px;
  padding: 22px 20px 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  border: 0;
  overflow: visible;
  text-align: left;
  animation: fabPopupFade 0.25s ease-out;
}

@keyframes fabPopupFade {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.fab-popup .popup-booking__head {
  padding: 2px 4px 16px;
  padding-right: 40px;
}

.fab-popup .popup-booking__eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f3ead7;
  color: #8a6a2f;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1;
}

.fab-popup .popup-booking__head h3 {
  margin: 0 0 10px;
  font-family: var(--font-serif, "Spectral", serif);
  font-size: clamp(26px, 7vw, 30px);
  line-height: 1.05;
  font-style: italic;
  font-weight: 500;
  color: #111;
}

.fab-popup .popup-booking__head p {
  margin: 0;
  color: #7a746c;
  line-height: 1.55;
  font-size: 13.5px;
}

.fab-popup .popup-booking > .close-popup {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f1f1;
  border: 0;
  font-size: 22px;
  color: #444;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.fab-popup .popup-booking .booking-bar {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.fab-popup .popup-booking .field,
.fab-popup .popup-booking .booking-bar button.field,
.fab-popup .popup-booking .booking-bar .field {
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 12px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
}

.fab-popup .popup-booking .field::after,
.fab-popup .popup-booking .booking-bar button.field::after {
  display: none;
  content: none;
}

.fab-popup .popup-booking .field .top {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.fab-popup .popup-booking .field .ico {
  width: 22px;
  height: 22px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fab-popup .popup-booking .field .ico img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.fab-popup .popup-booking .field .nights,
.fab-popup .popup-booking .field .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8a8a8a;
  font-weight: 600;
  line-height: 1;
  margin: 0;
}

.fab-popup .popup-booking .field .value,
.fab-popup .popup-booking .field .counter,
.fab-popup .popup-booking .field .counter output {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  line-height: 1.2;
}

.fab-popup .popup-booking .field .value.counter,
.fab-popup .popup-booking .field .counter {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  width: auto;
}

.fab-popup .popup-booking .counter button,
.fab-popup .popup-booking .counter .minus,
.fab-popup .popup-booking .counter .plus {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  color: #111;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.fab-popup .popup-booking .booking-bar .book,
.fab-popup #mobileBookBtn {
  width: 100%;
  margin-top: 8px;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #1a1a1a 0%, #3a2f1f 42%, #c9a45c 100%);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(24, 24, 24, 0.24);
}

.fab-popup .popup-booking .booking-bar .book:hover,
.fab-popup #mobileBookBtn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.fab-popup .popup-booking .booking-bar .book:active,
.fab-popup #mobileBookBtn:active {
  transform: translateY(1px) scale(0.995);
  filter: brightness(0.96);
}

.fab-popup .popup-booking .booking-bar .book:focus-visible,
.fab-popup #mobileBookBtn:focus-visible {
  outline: 3px solid rgba(201, 164, 92, 0.45);
  outline-offset: 2px;
}

/* --- 18th anniversary chip --- */
.fab-18th {
  position: fixed;
  left: 50%;
  bottom: max(84px, calc(16px + env(safe-area-inset-bottom, 0px) + 64px));
  transform: translateX(-50%);
  z-index: 2590;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: min(220px, calc(100vw - 32px));
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.92);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.fab-18th img {
  display: block;
  max-height: 36px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.fab-18th span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Visibility states --- */
body.mnav-open .fab,
body.mnav-open .fab-booking,
body.mnav-open .fab-popup,
body.mnav-open #fabBooking,
body.mnav-open #fabPopup {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body:has(.fab-popup.active) .fab,
body:has(#fabPopup.active) .fab,
body:has(#suiteModal.open) .fab,
body:has(.venue-modal.open) .fab,
body:has(.fab-popup.active) .fab-booking,
body:has(#fabPopup.active) .fab-booking,
body:has(#suiteModal.open) .fab-18th,
body:has(.venue-modal.open) .fab-18th,
body:has(.fab-popup.active) .fab-18th {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* --- Responsive --- */
@media (min-width: 769px) {
  .fab-booking,
  .fab-popup {
    display: none;
  }
}

@media (max-width: 768px) {
  .fab {
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
  }

  .fab .btn .tip {
    display: none;
  }

  .fab-booking {
    display: flex;
  }

  .fab-popup .popup-booking {
    width: 100%;
    max-width: 100%;
  }
}

@media (min-width: 1025px) {
  .fab-18th {
    left: auto;
    right: max(18px, env(safe-area-inset-right, 0px));
    bottom: max(90px, calc(18px + env(safe-area-inset-bottom, 0px) + 62px));
    transform: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .fab .btn .tip {
    display: none;
  }
}

#dateModal,
#dateModal.open,
#dateModal .backdrop,
#dateModal.open .backdrop,
#dateModal .card {
  z-index: 2800;
}
