/* Homepage offer popup (app/components/holiday-offer-popup.php). See docs/DESIGN-SYSTEM.md.
   A small card fixed to the bottom corner: white, square, hairline border, no shadow.
   It is taken out of the page flow and only fades and slides with transform, so showing it
   never moves the page. Values come from tokens.css. Loads before aster-design.css, so
   selectors carry the body prefix. */

body .offer-pop { position: fixed; right: 24px; bottom: 24px; z-index: 68; box-sizing: border-box; width: 400px; max-width: calc(100vw - 48px); background: var(--ae-white); border: 1px solid var(--ae-wine); border-radius: var(--ae-radius); box-shadow: var(--ae-shadow); font-family: var(--ae-sans); color: var(--ae-ink); opacity: 0; transform: translateY(16px); transition: opacity .25s ease, transform .25s ease; }
body .offer-pop[hidden] { display: none; }
body .offer-pop.is-open { opacity: 1; transform: none; }
body .offer-pop *, body .offer-pop *::before, body .offer-pop *::after { box-sizing: border-box; }

body .offer-pop a.offer-pop__link { display: grid; grid-template-columns: 116px minmax(0, 1fr); align-items: stretch; min-height: 0; margin: 0; padding: 0; color: inherit; text-decoration: none; }
body .offer-pop .offer-pop__photo { position: relative; display: block; min-height: 148px; overflow: hidden; background: var(--ae-placeholder); }
body .offer-pop .offer-pop__photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 35%; }
body .offer-pop .offer-pop__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; padding: 20px 48px 20px 20px; }
body .offer-pop .offer-pop__eyebrow { font: 500 10px/1.6 var(--ae-sans); letter-spacing: var(--ae-eyebrow-tracking); text-transform: uppercase; color: var(--ae-wine); }
body .offer-pop .offer-pop__title { margin-top: 6px; font: 500 25px/1.12 var(--ae-serif); font-variant-numeric: lining-nums; color: var(--ae-ink); }
body .offer-pop .offer-pop__text { margin-top: 6px; font: 400 var(--ae-small)/1.55 var(--ae-sans); color: var(--ae-muted); }
body .offer-pop .offer-pop__cta { margin-top: 12px; padding-bottom: 3px; border-bottom: 1px solid var(--ae-wine); font: 500 var(--ae-label)/1.6 var(--ae-sans); letter-spacing: .13em; text-transform: uppercase; color: var(--ae-wine); transition: color var(--ae-transition), border-color var(--ae-transition); }
body .offer-pop a.offer-pop__link:is(:hover, :focus-visible) .offer-pop__cta { color: var(--ae-ink); border-bottom-color: var(--ae-ink); }
body .offer-pop a.offer-pop__link:focus-visible { outline: 2px solid var(--ae-wine); outline-offset: 3px; }

body .offer-pop button.offer-pop__close { position: absolute; top: 0; right: 0; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: var(--ae-radius); background: transparent; color: var(--ae-muted); font: 400 24px/1 var(--ae-sans); cursor: pointer; transition: color var(--ae-transition); }
body .offer-pop button.offer-pop__close:is(:hover, :focus-visible) { background: transparent; color: var(--ae-wine); }
body .offer-pop button.offer-pop__close:focus-visible { outline: 2px solid var(--ae-wine); outline-offset: -4px; }

/* Keep out of the way of the open menu, the booking overlay, the photo lightbox and the film dialog. */
body.aster-booking-open .offer-pop, body:has(.ae-menu:not([hidden])) .offer-pop, body:has(.ba-lightbox.is-open) .offer-pop, body:has(.ae-film-dialog[open]) .offer-pop { display: none; }

/* Phones and tablets: a slim strip across the bottom, just above the Shop / Book Now bar. */
@media (max-width: 900px) {
  body .offer-pop { left: 12px; right: 12px; bottom: calc(var(--offer-pop-lift, 71px) + 10px); width: auto; max-width: 480px; margin: 0 auto; }
  body .offer-pop a.offer-pop__link { grid-template-columns: 84px minmax(0, 1fr); }
  body .offer-pop .offer-pop__photo { min-height: 104px; }
  body .offer-pop .offer-pop__copy { padding: 12px 44px 12px 14px; }
  body .offer-pop .offer-pop__title { margin-top: 2px; font-size: 21px; }
  body .offer-pop .offer-pop__text { margin-top: 3px; font-size: 12px; }
  body .offer-pop .offer-pop__cta { margin-top: 7px; padding-bottom: 2px; font-size: 10px; }
}
/* Small phones: tighter, so the strip stays a small part of the screen. */
@media (max-width: 380px) {
  body .offer-pop a.offer-pop__link { grid-template-columns: 66px minmax(0, 1fr); }
  body .offer-pop .offer-pop__photo { min-height: 96px; }
  body .offer-pop .offer-pop__copy { padding: 10px 40px 10px 12px; }
  body .offer-pop .offer-pop__eyebrow { font-size: 9px; letter-spacing: .12em; }
  body .offer-pop .offer-pop__title { font-size: 19px; }
  body .offer-pop .offer-pop__text { font-size: 11px; }
  body .offer-pop .offer-pop__cta { margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  body .offer-pop { transition: none; transform: none; }
}
