/* Promo modale prenotazione Slope — solo index; usa --primary-color da scheme-01 */

.booking-promo-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

.booking-promo-overlay.booking-promo--hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.booking-promo-overlay:not(.booking-promo--hidden) {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.booking-promo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  cursor: pointer;
}

.booking-promo-dialog {
  position: relative;
  z-index: 1;
  max-width: 480px;
  width: 100%;
  padding: 2rem 2rem 1.75rem;
  background: rgba(24, 24, 24, 0.97);
  border: 2px solid var(--primary-color, #8a1736);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  outline: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.booking-promo-close {
  position: relative;
  top: auto;
  right: auto;
  align-self: flex-end;
  flex-shrink: 0;
  margin: -0.5rem -0.25rem 0.5rem 0;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.booking-promo-close:hover,
.booking-promo-close:focus {
  color: var(--primary-color, #8a1736);
  outline: none;
}

.booking-promo-dialog h3 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 0;
}

.booking-promo-highlight {
  display: inline;
  padding: 0 0.2em;
  border-radius: 2px;
  background: var(--primary-color, #8a1736);
  color: #fff;
  font-size: 0.92em;
  line-height: 1.2;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.booking-promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

body.booking-promo-no-scroll {
  overflow: hidden;
}

/* Banner fisso in basso (dopo chiusura popup) */

.booking-promo-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10040;
  background: rgba(24, 24, 24, 0.97);
  border-top: 2px solid var(--primary-color, #8a1736);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
  padding: 16px 20px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  overflow: visible;
}

.booking-promo-banner.booking-promo-banner--hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.booking-promo-banner:not(.booking-promo-banner--hidden) {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.booking-promo-banner__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.booking-promo-banner__copy {
  flex: 1;
  min-width: 0;
}

.booking-promo-banner__title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.booking-promo-banner__text {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
}

.booking-promo-banner__cta {
  flex-shrink: 0;
  white-space: nowrap;
}

body.booking-promo-banner-active {
  transition: padding-bottom 0.3s ease;
}

@media only screen and (max-width: 767px) {
  .booking-promo-dialog {
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .booking-promo-dialog h3 {
    font-size: 1.15rem;
  }

  .booking-promo-banner__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 14px;
  }

  .booking-promo-banner__cta {
    align-self: center;
  }
}

@media only screen and (max-width: 480px) {
  .booking-promo-dialog {
    padding: 1.25rem 1rem 1rem;
  }

  .booking-promo-dialog h3 {
    font-size: 1.05rem;
  }

  .booking-promo-dialog p {
    font-size: 0.9rem;
  }

  .booking-promo-banner {
    padding: 12px 14px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .booking-promo-banner__title {
    font-size: 1rem;
  }

  .booking-promo-banner__text {
    font-size: 0.875rem;
  }

  .booking-promo-banner__cta {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}
