/* Brickoodle · Resort Collection, Option 3: "Resort Magic with a live sky".
   Loaded after the "Resort Magic" stylesheet (Option 1), which it does not change. It adds only what was borrowed
   from the "Wonder" page (Option 2): the live sky, the key card that takes turns, a gold-foil line in the headline,
   each resort's painted backdrop on the stage, and the puff of sparkles. */

/* Option 3 has its own scenery: a lakeside log-and-stone lodge among pines, in place of the white lagoon hotel.
   The same picture is used wherever the page shows a glimpse of the scenery (the "In every kit" card, the ticket
   section, and the stage before a resort's own backdrop has loaded). */
:root { --veranda: url("/resorts/assets/lodge-lake-hero.webp"); }

/* Where the scenery sits. In the picture the lodge stands in the right half, its chimney 15% of the way down.
   - Upright tablets: the picture is wider than the screen, so slide it left until the whole lodge is in view.
   - Wide screens: the key card covers the lower right, so lift the picture until the lodge's roofline is about
     230px above the card's top edge (never closer than 30px to the awning, never further than the picture allows).
     --hero-h is the hero's height; the picture is 66.67vw tall there, so the chimney top is 10vw down it. */
@media (min-width: 760px) {
  .hero__bg > img { object-position: 90% 52%; }
}
@media (min-width: 1020px) and (min-aspect-ratio: 3/2) {
  .hero { --hero-h: clamp(712px, 100svh - 72px, 920px); }
  .hero__bg > img { object-position: 54% calc(-1 * max(0px, min(10vw - max(30px, var(--hero-h) - 769px), 66.67vw - var(--hero-h)))); }
}

/* the live sky: fireworks and a shooting star, drawn over the scenery and under its shading */
.hero__fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* gold foil on the second line of the headline */
.hero h1 em {
  padding: 0 .12em .14em 0;
  background: linear-gradient(180deg, #FFF3C7 0%, #FFD98A 42%, #F0B04A 78%, #FFE3A3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 0 rgba(96, 58, 0, .45)) drop-shadow(0 0 22px rgba(255, 196, 92, .32));
}

/* the key card takes turns: the picture is now a link to that resort */
.hero .post--front .post__pic { cursor: pointer; text-decoration: none; }
.hero .post--front .post__pic:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 15px; }
.hero .post__pic img { transition: opacity .4s var(--ease), transform .55s var(--ease); }
.hero .post__key, .hero .post__name, .hero .post__meta, .hero .post__stamp { transition: opacity .3s var(--ease); }
.hero .post.is-swapping .post__pic img { opacity: 0; transform: translateY(10px) scale(.97); }
.hero .post.is-swapping .post__name, .hero .post.is-swapping .post__meta, .hero .post.is-swapping .post__key { opacity: 0; }
.hero .post--front { transition: box-shadow .3s var(--ease); }
/* On narrower cards a long name used to push "… pieces" onto a third line, which made the card (and on phones the
   whole page below it) jump each time the resort changed. The caption now keeps one shape: greeting and piece
   count on the first line, the name alone on the second. */
@media (max-width: 1199px) {
  .hero .post--front .post__cap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 0 10px; }
  .hero .post--front .post__name { grid-column: 1 / -1; grid-row: 2; white-space: nowrap; }
  .hero .post--front .post__meta { grid-column: 2; grid-row: 1; margin: 0; }
}
@media (hover: hover) {
  .hero .post--front:hover { box-shadow: 0 34px 70px -32px rgba(1, 9, 23, .85), 0 14px 28px -18px rgba(1, 9, 23, .62), 0 0 0 2px rgba(255, 217, 138, .9), 0 0 44px rgba(255, 205, 110, .45); }
}

/* iPad upright: on the "Resort Magic" page the card behind reaches into the words and covers the end of the facts
   ticket ("On request"). Here it stays inside its own column and peeks out above the key card instead. */
@media (min-width: 760px) and (max-width: 999px) {
  /* The key card is about 31.7vw + 77px tall at these widths; this tucks the lower half of the other card behind its top edge. */
  .hero .post--back { left: 40%; bottom: calc(31.7vw + 30px); width: 50%; transform: rotate(8deg); }
}

/* the stage: each resort stands in its own painted world once that picture has loaded */
.stage.has-scene .stage__pic::before { inset: 0; background: var(--stage-bg) 50% 78% / cover no-repeat; filter: none; opacity: 1; }
.stage.has-scene .stage__pic::after { background: radial-gradient(120% 85% at 50% 100%, transparent 55%, rgba(4, 19, 45, .2)); }
.stage.has-scene .stage__model { filter: drop-shadow(0 16px 12px rgba(4, 12, 30, .42)); }
.stage.has-scene.is-photo .stage__model { filter: none; }

/* a puff of sparkles around the chip that was just chosen */
.puff { position: fixed; z-index: 80; pointer-events: none; fill: var(--gold-soft); filter: drop-shadow(0 0 6px rgba(255, 205, 110, .9)); animation: puff .9s var(--ease) both; }
@keyframes puff { from { transform: translate(-50%, -50%) scale(.2) rotate(0deg); opacity: 1; } to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1) rotate(160deg); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .puff { display: none; }
}

/* ---------- 14 November: the boat, and the built pictures ---------- */

/* A little launch glides across the lake, left to right, and comes round again. On phones it passes just below the
   lodge's dock; on wider screens the cards cover that water, so it crosses the open water along the bottom instead,
   a little nearer and larger. The awning, words and cards all sit above it. */
/* The boat sits above the picture's dark shading (which would hide it on wide screens) but stays inside the
   picture's own layer, under the awning, the words and the cards. */
.hero__bg { isolation: isolate; }
.hero__sea { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.boat { position: absolute; left: 0; top: 57%; width: 11.5%; transform: translate3d(58vw, -100%, 0); animation: sail 84s linear -30s infinite; will-change: transform; }
/* (".hero__bg img" on the Resort Magic page sizes, crops and shifts every picture in the hero's background; undo that for the boat.) */
.hero__bg .boat img { width: 100%; height: auto; object-fit: contain; object-position: 50% 50%; transform: none; will-change: auto; }
.hero__bg .boat .boat__ship { position: relative; display: block; filter: brightness(.86) saturate(.95) drop-shadow(0 0 6px rgba(255, 196, 110, .55)); animation: bob 3.6s ease-in-out infinite; }
/* its reflection: the same picture upside down under the waterline, soft and fading out */
.hero__bg .boat .boat__mirror { position: absolute; left: 0; top: 98%; display: block; transform: scaleY(-1); opacity: .34; filter: blur(1.4px) brightness(.85);
  -webkit-mask: linear-gradient(to top, #000 0%, transparent 78%); mask: linear-gradient(to top, #000 0%, transparent 78%); animation: shimmer 2.8s ease-in-out infinite; }
/* a thin pale wake trailing behind */
.boat__wake { position: absolute; right: 90%; top: 90%; width: 240%; height: 9%; min-height: 1px; border-radius: 50%; background: linear-gradient(90deg, rgba(214, 226, 255, 0), rgba(214, 226, 255, .55)); filter: blur(.5px); }
@keyframes sail { from { transform: translate3d(-130%, -100%, 0); } to { transform: translate3d(calc(100vw + 30%), -100%, 0); } }
@keyframes bob { 50% { transform: translateY(-2.5%) rotate(-.5deg); } }
@keyframes shimmer { 50% { opacity: .22; transform: scaleY(-1) scaleX(1.03); } }
@media (min-width: 760px) {
  .boat { top: calc(100% - 22px); width: clamp(120px, 12vw, 190px); }
}

/* The key card shows each resort twice: its design (a cut-out on the card's pale sky), then how it looks built
   (a picture that fills the card). A small label says which one is showing. */
.post__tag { position: absolute; left: 10px; bottom: 10px; z-index: 1; padding: 5px 11px 4px; border-radius: 999px; background: rgba(4, 19, 45, .8); color: #FFF9ED;
  font: 750 .62rem/1.2 var(--f-text); letter-spacing: .15em; text-transform: uppercase; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: opacity .3s var(--ease); }
.hero .post--front .post__pic { position: relative; }
.hero .post.is-photo .post__pic { padding: 0; }
.hero .post.is-photo .post__pic img { object-fit: cover; object-position: 50% 58%; filter: none; }
.hero .post.is-developing .post__pic img { opacity: 0; transform: scale(1.03); }
.hero .post.is-developing .post__tag, .hero .post.is-swapping .post__tag { opacity: 0; }

/* On each resort: the built picture's button comes first, ahead of the three design views. */
.views button[data-photo] { order: -1; }
@media (max-width: 420px) {
  .views button { min-width: 0; padding: 0 13px; }
}

/* Final sale: said under the Buy button, and only once a kit can be bought. */
.info__final { display: none; margin-top: -4px; font-size: .84rem; color: var(--slate); text-align: center; }
.info__cta.is-buy .info__final { display: block; }

/* One collection, every name in view: on phones and tablets the eleven resort chips wrap onto as many rows as they
   need (they used to sit in one row that ran off the side, showing two or three names). */
@media (max-width: 899px) {
  .chips { flex-wrap: wrap; overflow: visible; margin: 20px 0 0; padding: 0; -webkit-mask: none; mask: none; }
}
/* The teal band under the picture now carries one line and no style labels. */
@media (min-width: 760px) {
  .destination-strip__in { grid-template-columns: 1fr; }
}
