/* Isolated promotion module. Image transparency does not affect the controls. */
.mr-promo:not([open]) { display: none; }
.mr-promo {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  border: 0;
  width: min(640px, calc(100vw - 32px), calc(80vh * var(--mr-promo-ratio)));
  height: fit-content;
  aspect-ratio: var(--mr-promo-ratio);
  max-width: none;
  max-height: 80vh;
  overflow: visible;
  background: transparent;
  color: #262625;
  box-shadow: 0 18px 64px rgb(0 0 0 / 20%);
}
@supports (height: 100dvh) {
  .mr-promo {
    width: min(640px, calc(100vw - 32px), calc(80dvh * var(--mr-promo-ratio)));
    max-height: 80dvh;
  }
}
.mr-promo::backdrop { background: rgb(0 0 0 / 8%); }
.mr-promo__image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  opacity: var(--mr-promo-opacity, .95);
}
.mr-promo__booking {
  position: absolute;
  left: var(--mr-promo-left);
  top: var(--mr-promo-y);
  width: var(--mr-promo-width);
  height: var(--mr-promo-height);
  min-height: 44px;
  transform: translateY(-50%);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}
.mr-promo__close {
  box-sizing: border-box;
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgb(38 38 37 / 20%);
  border-radius: 50%;
  background: #f6f0e7;
  color: #262625;
  box-shadow: 0 2px 10px rgb(0 0 0 / 15%);
  cursor: pointer;
}
.mr-promo__booking:focus-visible,
.mr-promo__close:focus-visible { outline: 3px solid #a8644f; outline-offset: 3px; }
.mr-promo__close:hover { background: #fff; }

/* Animate the artwork and controls together; the final opacity belongs only to the image. */
.mr-promo[open] { animation: mr-promo-reveal 550ms ease-out both; }
@keyframes mr-promo-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .mr-promo[open] { animation: none; }
}

/* 70% transparent green background; text keeps full opacity. */
.mr-promo-reopen[hidden] { display:none !important; }
.mr-promo-reopen {
  position:fixed; left:max(16px,env(safe-area-inset-left));
  bottom:calc(16px + env(safe-area-inset-bottom,0px)); z-index:900;
  display:inline-flex; align-items:center; justify-content:center;
  min-height:44px; padding:10px 18px; border:1px solid rgb(28 94 49 / 45%);
  border-radius:999px; background:rgb(52 160 80 / 30%); color:#102c19;
  font:700 12px/1.2 var(--body, sans-serif); letter-spacing:.06em;
  cursor:pointer; box-shadow:0 3px 16px rgb(0 0 0 / 10%);
  animation:mr-promo-reveal 450ms ease-out both;
}
.mr-promo-reopen:hover { background:rgb(52 160 80 / 45%); }
.mr-promo-reopen:focus-visible { outline:3px solid #a8644f; outline-offset:3px; }
@media(prefers-reduced-motion:reduce) { .mr-promo-reopen {animation:none;} }
