/* =========================================================================
   Flash sales (calendar offers) — guest pages.
   Loaded after site.css on the booking page, the Rooms page and the Hotel
   homepage, and built entirely on its Navy & Gold tokens. The register is the
   resort's own: a deep-navy panel, one gold hairline across the top (the same
   closing line the hero uses), Playfair for the words that matter, Inter caps
   for the labels. No starbursts, no red, no countdown.

   Contrast (all measured, WCAG 2.x):
     gold #D4AF37 / gold-lit #F0D9A0 on ink-deep ........ 8.2 / 12.4 : 1
     on-dark-mute #A9B4C4 on ink-deep ................... 8.2 : 1
     --mmo-bronze #6F560F on cream-deep (worst light bg)  5.4 : 1
     --mmo-muted  #4E5D70 on cream-deep ................. 5.2 : 1
   The site's own gold-on-cream price colour is ~1.9 : 1, so the sale price
   uses --mmo-bronze on light grounds instead.
   ========================================================================= */

:root {
  --mmo-bronze: #6F560F;   /* antique gold, dark enough to read as text on cream */
  --mmo-muted:  #4E5D70;   /* muted text / struck-through prices on cream */
}

/* site.css makes every <svg> display:block; the bolt sits in a line of text */
.mmo-bolt { display: inline-block; width: 1em; height: 1em; flex: none; fill: currentColor; vertical-align: -.14em; }

/* ---------- Page banner host (booking page, Rooms page) ---------- */
.mmo[hidden] { display: none; }
.mmo--page {
  background: var(--cream);
  padding-block: clamp(2rem, 4.5vw, 3.25rem);
  border-bottom: 1px solid var(--line-light);
}
.mmo--booking { margin-bottom: clamp(2rem, 4vw, 3rem); }

.mmo__list, .mmo-cards { display: grid; gap: 1rem; }
.mmo__list { gap: 1.1rem; }
@media (min-width: 880px) {
  .mmo-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mmo-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- The sale card ---------- */
.mmo-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto;
  background: var(--ink-deep); color: var(--on-dark);
  border: 1px solid var(--gold-dim);
  box-shadow: inset 0 3px 0 0 var(--gold);
  overflow: hidden; isolation: isolate;
}
/* a faint warmth behind the figure — light, not a glare */
.mmo-card::before {
  content: ''; position: absolute; inset: 0 0 0 auto; width: 60%; z-index: -1;
  background: radial-gradient(ellipse at 100% 0%, rgba(212, 175, 55, .16), transparent 64%);
  pointer-events: none;
}
.mmo-card--solo { grid-template-columns: minmax(0, 1fr); }

.mmo-card__main { padding: clamp(1.25rem, 3vw, 1.9rem) clamp(1.25rem, 3vw, 2rem); display: grid; gap: .65rem; align-content: start; }
.mmo-card__eyebrow {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--caps); text-transform: uppercase; font-size: .7rem; letter-spacing: .2em; color: var(--gold);
}
.mmo-card__eyebrow .mmo-bolt { width: .95rem; height: .95rem; }
.mmo-card__title { font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.15; color: var(--on-dark); text-wrap: balance; }
.mmo-card__text { font-size: .95rem; line-height: 1.6; color: var(--on-dark-mute); max-width: 60ch; }

.mmo-facts {
  display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin: .45rem 0 0; padding: .85rem 0 0;
  border-top: 1px solid var(--line-dark);
}
.mmo-facts > div { display: grid; gap: .1rem; min-width: 0; }
.mmo-facts dt { font-family: var(--caps); text-transform: uppercase; font-size: .62rem; letter-spacing: .16em; color: var(--on-dark-mute); }
.mmo-facts dd { margin: 0; font-size: .88rem; line-height: 1.45; color: var(--on-dark); }
.mmo-facts__wide { flex-basis: 100%; }
.mmo-conds { display: grid; gap: .2rem; }
.mmo-conds li { position: relative; padding-left: 1rem; }
.mmo-conds li::before {
  content: ''; position: absolute; left: .1rem; top: .55em; width: .32rem; height: .32rem;
  background: var(--gold); rotate: 45deg;
}

/* the figure, set like the stub of a ticket */
.mmo-card__side {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem;
  min-width: clamp(10rem, 18vw, 13rem); padding: 1.5rem clamp(1.1rem, 2.4vw, 1.9rem);
  border-left: 1px dashed var(--line-dark); text-align: center;
}
.mmo-card__label {
  font-family: var(--display); font-weight: 500; line-height: 1.05; letter-spacing: -.01em;
  font-size: clamp(1.7rem, 3.2vw, 2.45rem); color: var(--gold); text-wrap: balance;
}
.mmo-card__left {
  font-family: var(--caps); text-transform: uppercase; font-size: .66rem; letter-spacing: .15em;
  color: var(--gold-lit); border: 1px solid var(--gold-dim); padding: .3rem .7rem;
}

/* Narrow cards — on a phone, and whenever two sit side by side — put the figure
   underneath the words (a ticket's foot, not its stub): beside them it would
   leave the text a ~100px column. */
@media (max-width: 640px) {
  .mmo-card { grid-template-columns: minmax(0, 1fr); }
  .mmo-card__side {
    flex-direction: row; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1rem;
    border-left: 0; border-top: 1px dashed var(--line-dark); padding: 1rem clamp(1.25rem, 3vw, 2rem); text-align: left;
  }
}
@media (min-width: 880px) {
  .mmo-cards--2 .mmo-card, .mmo-cards--3 .mmo-card { grid-template-columns: minmax(0, 1fr); }
  .mmo-cards--2 .mmo-card__side, .mmo-cards--3 .mmo-card__side {
    flex-direction: row; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1rem;
    border-left: 0; border-top: 1px dashed var(--line-dark); padding: 1rem clamp(1.25rem, 3vw, 2rem); text-align: left;
  }
}

/* On the booking page the host is a plain block, so the one-line rows need their
   own gap under the cards (the Rooms page's host is a grid and already has one). */
.mmo--booking > .mmo-cards + .mmo-rows { margin-top: 1rem; }

/* ---------- Coming / sold-out / extra rows ---------- */
.mmo-rows { display: grid; border: 1px solid var(--line-light); background: var(--cream); }
.mmo-row {
  display: grid; grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr) auto; gap: .35rem 1.25rem; align-items: baseline;
  padding: .85rem 1.1rem; font-size: .9rem; line-height: 1.5; color: var(--on-light);
}
.mmo-row + .mmo-row { border-top: 1px solid var(--line-light); }
.mmo-row__when { font-size: .82rem; color: var(--mmo-muted); }
.mmo-row__status {
  display: inline-block; margin-right: .4rem; padding: .05rem .5rem;
  font-family: var(--caps); text-transform: uppercase; font-size: .62rem; font-weight: 600; letter-spacing: .14em;
  color: var(--ink); border: 1px solid var(--ink);
}
.mmo-row--soldout .mmo-row__status { color: var(--maroon); border-color: var(--maroon); }
.mmo-row--soldout .mmo-row__what { color: var(--mmo-muted); }
.mmo-row__what strong { display: block; font-family: var(--display); font-weight: 500; font-size: 1rem; }
.mmo-row__what > span { display: block; color: var(--mmo-muted); }
.mmo-row__bits { font-size: .82rem; }
.mmo-row__label { font-family: var(--display); color: var(--mmo-bronze); font-size: 1.05rem; white-space: nowrap; }
@media (max-width: 720px) {
  .mmo-row { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
}

.mmo-more { margin-top: .75rem; }
.mmo-more > summary {
  cursor: pointer; padding: .3rem 0; font-family: var(--caps); text-transform: uppercase; font-size: .72rem;
  letter-spacing: .14em; color: var(--ink);
}
.mmo-more .mmo-rows { margin-top: .6rem; }

/* ---------- Slim homepage bar ---------- */
.mmo-bar[hidden] { display: none; }
.mmo-bar { background: var(--ink-deep); color: var(--on-dark); border-bottom: 1px solid var(--gold-dim); }
.mmo-bar__inner { display: flex; align-items: center; gap: .9rem 1.25rem; padding-block: .6rem; }
.mmo-bar__text {
  flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .9rem;
  font-size: .9rem; line-height: 1.45;
}
.mmo-bar__text .mmo-bolt { width: .95rem; height: .95rem; color: var(--gold); align-self: center; }
.mmo-bar__headline { font-family: var(--display); font-weight: 500; font-size: 1.05rem; color: var(--gold-lit); }
.mmo-bar__desc {
  color: var(--on-dark-mute);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; line-clamp: 1; overflow: hidden;
}
.mmo-bar__label {
  font-family: var(--caps); text-transform: uppercase; font-size: .7rem; letter-spacing: .14em;
  color: var(--gold); border: 1px solid var(--gold-dim); padding: .08rem .55rem;
}
.mmo-bar__until { font-family: var(--caps); text-transform: uppercase; font-size: .68rem; letter-spacing: .12em; color: var(--on-dark-mute); }
.mmo-bar__cta {
  flex: none; display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; text-decoration: none;
  font-family: var(--caps); text-transform: uppercase; font-size: .74rem; letter-spacing: .14em;
  color: var(--ink-deep); background: var(--gold); border: 1px solid var(--gold-dim); padding: .5rem 1rem;
  transition: background .25s var(--ease);
}
.mmo-bar__cta:hover { background: var(--gold-lit); }
.mmo-bar__close {
  flex: none; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; cursor: pointer;
  background: transparent; border: 1px solid var(--line-dark); color: var(--on-dark);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.mmo-bar__close:hover { background: var(--ink-soft); border-color: var(--gold-dim); }
.mmo-bar__close svg { width: .8rem; height: .8rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
@media (max-width: 640px) {
  .mmo-bar__inner { flex-wrap: wrap; padding-block: .7rem; }
  .mmo-bar__text { flex-basis: 100%; padding-right: 2.75rem; }
  .mmo-bar__cta { order: 3; flex: 1 1 auto; justify-content: center; }
  .mmo-bar__close { order: 2; margin-left: auto; position: absolute; right: var(--gutter); top: .6rem; }
  .mmo-bar { position: relative; }
}

/* ---------- The "coupon or sale?" dialog ---------- */
html.mmo-lock, html.mmo-lock body { overflow: hidden; }
.mmo-modal { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 1rem; }
.mmo-modal__scrim { position: absolute; inset: 0; background: rgba(15, 27, 46, .74); }
.mmo-modal__dialog {
  position: relative; width: min(33rem, 100%); max-height: calc(100dvh - 2rem); overflow: auto;
  background: var(--cream); color: var(--on-light);
  border: 1px solid var(--gold-dim); box-shadow: inset 0 3px 0 0 var(--gold), 0 32px 64px -24px rgba(0, 0, 0, .55);
  padding: clamp(1.5rem, 4vw, 2.25rem); display: grid; gap: .9rem;
}
.mmo-modal__dialog:focus { outline: none; }
.mmo-modal__eyebrow {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--caps); text-transform: uppercase; font-size: .7rem; letter-spacing: .2em; color: var(--mmo-bronze);
}
.mmo-modal__eyebrow .mmo-bolt { width: .95rem; height: .95rem; }
.mmo-modal__title { font-family: var(--display); font-weight: 500; font-size: clamp(1.45rem, 3.4vw, 1.85rem); line-height: 1.15; color: var(--on-light); }
.mmo-modal__text { font-size: 1rem; line-height: 1.6; color: var(--on-light); }
.mmo-modal__label {
  margin-bottom: -.35rem; font-family: var(--caps); text-transform: uppercase; font-size: .66rem; letter-spacing: .16em; color: var(--mmo-muted);
}
.mmo-modal__list { display: grid; gap: .25rem; padding: .75rem 1rem; background: var(--cream-deep); border-left: 2px solid var(--gold-dim); font-size: .92rem; }
.mmo-modal__list li { position: relative; padding-left: 1rem; }
.mmo-modal__list li::before {
  content: ''; position: absolute; left: 0; top: .6em; width: .32rem; height: .32rem; background: var(--mmo-bronze); rotate: 45deg;
}
.mmo-modal__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.mmo-modal__btn { flex: 1 1 12rem; text-align: center; }
.mmo-modal__dialog .btn--ghost { color: var(--ink); border-color: var(--ink); }
.mmo-modal__dialog .btn--ghost:hover { color: var(--cream); }

/* ---------- Motion — only for people who haven't asked for less ---------- */
@media (prefers-reduced-motion: reduce) {
  .mmo-bar__cta, .mmo-bar__close { transition: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .mmo:not([hidden]) .mmo-card,
  .mmo-bar:not([hidden]) .mmo-bar__inner { animation: mmo-rise .5s var(--ease) both; }
  .mmo-modal__scrim { animation: mmo-fade .2s ease-out both; }
  .mmo-modal__dialog { animation: mmo-rise .28s var(--ease) both; }
}
@keyframes mmo-rise { from { opacity: 0; transform: translateY(.5rem); } to { opacity: 1; transform: none; } }
@keyframes mmo-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Room prices on the Rooms page (data-room-price elements) ----------
   Reuses the site's .price / .price--sale / .price__strike / .price__badge so a
   room under a flash sale sits in the same slot a season sale always did. */
.price--offer .price__current { color: var(--mmo-bronze); }
.section--dark .price--offer .price__current, .section--deep .price--offer .price__current { color: var(--gold); }
.price--offer .price__strike { margin-bottom: .2rem; color: var(--mmo-muted); }
.section--dark .price--offer .price__strike, .section--deep .price--offer .price__strike { color: var(--on-dark-mute); }
.price__badge--offer {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--ink-deep); color: var(--gold-lit); border: 1px solid var(--gold-dim);
}
.price__badge--offer .mmo-bolt { width: .8rem; height: .8rem; color: var(--gold); }
.price__from {
  font-family: var(--caps); text-transform: uppercase; font-size: .62rem; letter-spacing: .14em; color: var(--mmo-muted);
}
.section--dark .price__from, .section--deep .price__from { color: var(--on-dark-mute); }
.price--offer small { color: var(--mmo-muted); }   /* the site's own #5B6B7D is 4.2:1 on cream-deep */
.section--dark .price--offer small, .section--deep .price--offer small { color: var(--on-dark-mute); }
.price--offer .price__note { margin-top: .2rem; letter-spacing: .1em; }
