/* ECHIVO /horeca — featured.css · v9 A3. "Recommended in the audio guide" (Pro), told as 3 beats a busy owner gets at a glance:
   (1) a tourist listens to the guide at the Moon Church · (2) the guide ends with "Sponsorizat · your venue, 2 min walk"
   · (3) they walk in (route on the map). Illustrative, silent, no audio. Max 3 venues per monument, rotated.
   Default CSS = final state (all beats lit, route drawn). JS sets the start states and plays each beat. */

/* ============================================================ STAGE */
#featured.hx-featured { position: relative; isolation: isolate; }
#featured .hx-featured__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
    radial-gradient(50% 40% at 18% 8%, rgba(245,200,130,.09), transparent 70%),
    radial-gradient(40% 50% at 88% 70%, rgba(79,179,255,.06), transparent 70%); }
#featured .hx-featured__inner { min-width: 0; }
#featured .hx-featured__head { max-width: 1100px; margin-bottom: clamp(28px, 5vh, 56px); }
#featured .hx-featured__head h2 { overflow-wrap: normal; word-break: normal; hyphens: manual; }
#featured .hx-featured__head .hx-lead { max-width: 56ch; }

/* ============================================================ BEATS */
#featured .hx-beats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 32px); counter-reset: none; }
#featured .hx-beat { position: relative; min-width: 0; display: flex; flex-direction: column; }
#featured .hx-beat__vis { position: relative; overflow: hidden; height: clamp(190px, 30vh, 330px); border-radius: 24px;
  background: linear-gradient(165deg, #121a2c, #070a12); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
#featured .hx-beat__txt { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: baseline; padding: 18px 4px 0; }
#featured .hx-beat__n { grid-row: 1 / 3; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; align-self: start;
  background: var(--gold); color: #1a1206; font-weight: 850; font-size: 1.05rem; font-variant-numeric: tabular-nums; box-shadow: 0 8px 22px rgba(245,200,130,.3); }
#featured .hx-beat__t { margin: 0; font-size: clamp(1.25rem, 1.7vw, 1.6rem); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
#featured .hx-beat__p { margin: 6px 0 0; color: var(--text-2); font-size: clamp(.98rem, 1.1vw, 1.08rem); line-height: 1.45; max-width: 36ch; }
/* arrows between beats (desktop row) */
#featured .hx-beat:not(:last-child)::after { content: ""; position: absolute; z-index: 3; top: calc(clamp(190px, 30vh, 330px) / 2); right: calc(clamp(14px, 1.8vw, 32px) / -2);
  width: 30px; height: 30px; translate: 50% -50%; border-radius: 50%; background: var(--night, #05070d) center / 14px no-repeat
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5c882' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E");
  border: 1px solid rgba(245,200,130,.45); }

/* shared moon glyph (half gold, half night) */
#featured .hx-moon { display: block; width: 100%; height: 100%; border-radius: 50%; background: linear-gradient(90deg, #ffe2aa 0%, var(--gold) 50%, #0b0d12 50%); border: 1.5px solid var(--gold); }

/* ---------- beat 1: the tourist listens at the Moon Church */
#featured .hx-fb1__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
#featured .hx-fb1::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(5,7,13,.15) 0%, rgba(5,7,13,.05) 35%, rgba(5,7,13,.88) 100%); }
#featured .hx-fb1__who { position: absolute; z-index: 2; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 9px; border-radius: 999px;
  background: rgba(5,7,13,.78); border: 1px solid rgba(255,255,255,.16); font-size: .8rem; font-weight: 750; }
#featured .hx-fb1__who svg { width: 16px; height: 16px; color: var(--gold); }
#featured .hx-fb1__player { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 12px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; row-gap: 8px; align-items: center;
  padding: 10px 12px; border-radius: 16px; background: rgba(9,12,22,.9); border: 1px solid rgba(255,255,255,.12); }
#featured .hx-fb1__art { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: linear-gradient(160deg, #1d2a45, #0b1020); }
#featured .hx-fb1__meta { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
#featured .hx-fb1__meta small { font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#featured .hx-fb1__meta b { font-size: .92rem; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#featured .hx-fb1__eq { display: flex; align-items: center; gap: 3px; height: 18px; }
#featured .hx-fb1__eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--gold); transform: scaleY(.3); }
#featured .hx-fb1__bar { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.16); overflow: hidden; }
#featured .hx-fb1__bar i { display: block; height: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(.86); }
#featured .hx-fb1__cap { grid-column: 1 / -1; font-size: .8rem; line-height: 1.35; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#featured .hx-beat--1.is-on .hx-fb1__eq i { animation: hx-feat-eq .9s ease-in-out infinite alternate; }
#featured .hx-beat--1.is-on .hx-fb1__eq i:nth-child(2) { animation-duration: .7s; animation-delay: -.3s; }
#featured .hx-beat--1.is-on .hx-fb1__eq i:nth-child(3) { animation-duration: 1.1s; animation-delay: -.5s; }
#featured .hx-beat--1.is-on .hx-fb1__eq i:nth-child(4) { animation-duration: .8s; animation-delay: -.2s; }
@keyframes hx-feat-eq { 0% { transform: scaleY(.2); } 100% { transform: scaleY(1); } }

/* ---------- beat 2: the guide's last line, labelled Sponsorizat */
#featured .hx-fb2 { display: flex; flex-direction: column; justify-content: center; gap: clamp(10px, 2vh, 18px); padding: 16px clamp(16px, 1.6vw, 26px);
  background: radial-gradient(80% 70% at 70% 30%, rgba(245,200,130,.13), transparent 70%), linear-gradient(165deg, #121a2c, #070a12); }
#featured .hx-fb2 > * { flex: none; }
#featured .hx-fb2__end { align-self: flex-end; margin-bottom: -10px; font-family: var(--mono); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
#featured .hx-fb2__wave { position: relative; display: flex; align-items: center; gap: 3px; height: 38px; }
#featured .hx-fb2__wave i { flex: 1; min-width: 2px; height: calc(var(--h) * 100%); border-radius: 2px; background: rgba(255,255,255,.3); }
#featured .hx-fb2__wave i.is-ad { background: var(--gold); }
#featured .hx-fb2__wave::after { content: ""; position: absolute; left: 63%; right: -6px; top: -6px; bottom: -6px; border-left: 1.5px dashed rgba(245,200,130,.85); border-radius: 0 8px 8px 0; background: rgba(245,200,130,.08); pointer-events: none; }
#featured .hx-fb2__head { position: absolute; z-index: 1; left: 100%; top: -8px; bottom: -8px; width: 2px; margin-left: -1px; border-radius: 2px; background: #fff; box-shadow: 0 0 8px rgba(255,255,255,.7); }
#featured .hx-fb2__bubble { position: relative; display: block; padding: 14px 16px 16px; border-radius: 18px 18px 18px 6px; background: rgba(255,255,255,.07); border: 1px solid rgba(245,200,130,.5); }
#featured .hx-fb2__badge { display: inline-block; margin-bottom: 8px; padding: 4px 10px; border-radius: 7px; background: var(--gold); color: #1a1206; font-size: .68rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; line-height: 1.3; }
#featured .hx-fb2__say { display: block; font-size: clamp(1.02rem, 1.3vw, 1.3rem); font-weight: 700; line-height: 1.3; color: var(--text); }

/* ---------- beat 3: the walk to the venue */
#featured .hx-fb3 { background: #0a0f1b; }
#featured .hx-fb3__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
#featured .hx-fb3__river { fill: none; stroke: rgba(79,179,255,.18); stroke-width: 18; stroke-linecap: round; }
#featured .hx-fb3__streets path { fill: none; stroke: rgba(255,255,255,.13); stroke-width: 1.5; }
#featured .hx-fb3__route { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
#featured .hx-fb3__walker { fill: #fff; stroke: var(--gold); stroke-width: 3; }
/* overlay positions are in % of the 400×240 viewBox; the svg uses "slice", so JS re-places them if the card's ratio differs */
#featured .hx-fb3__mon, #featured .hx-fb3__pin, #featured .hx-fb3__walk { position: absolute; z-index: 2; }
#featured .hx-fb3__mon { left: 26%; top: 59.2%; width: 34px; height: 34px; translate: -50% -50%; border-radius: 50%; box-shadow: 0 0 0 6px rgba(245,200,130,.14); }
#featured .hx-fb3__pin { left: 74.5%; top: 30.8%; translate: -50% calc(-100% - 12px); }
#featured .hx-fb3__pinb { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 8px; border-radius: 999px;
  background: linear-gradient(90deg, #ffe2aa, var(--gold)); color: #1a1206; font-weight: 800; font-size: .84rem; white-space: nowrap; box-shadow: 0 10px 26px rgba(245,200,130,.35); }
#featured .hx-fb3__pinb::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 12px; height: 12px; margin-left: -6px; transform: rotate(45deg); background: var(--gold); border-radius: 2px; z-index: -1; }
#featured .hx-fb3__pinb i { width: 12px; height: 12px; border-radius: 50%; background: #1a1206; box-shadow: inset 0 0 0 3px var(--gold); }
#featured .hx-fb3__walk { left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 999px;
  background: rgba(5,7,13,.82); border: 1px solid rgba(245,200,130,.45); color: var(--gold); font-size: .82rem; font-weight: 800; white-space: nowrap; }
#featured .hx-fb3__walk svg { width: 16px; height: 16px; }

/* ============================================================ FOOT: plan + rules + honesty */
#featured .hx-featured__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; margin-top: clamp(24px, 4.5vh, 48px); }
#featured .hx-keys { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
#featured .hx-keys li { max-width: 100%; display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--hairline); font-weight: 600; font-size: .88rem; }
#featured .hx-keys li.is-plan { background: rgba(245,200,130,.14); border-color: rgba(245,200,130,.45); color: var(--gold); font-weight: 800; }
#featured .hx-keys svg { flex: none; width: 17px; height: 17px; color: var(--gold); }
#featured .hx-honest { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--mint); font-size: .84rem; font-weight: 600; }
#featured .hx-honest svg { flex: none; }

/* ============================================================ PHONE / TABLET: beats stack, arrows point down */
@media (max-width: 899px) {
  #featured .hx-beats { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  #featured .hx-beat__vis { height: auto; aspect-ratio: 16 / 10; }
  #featured .hx-beat:not(:last-child)::after { top: auto; right: auto; left: 50%; bottom: -17px; translate: -50% 50%; rotate: 90deg; }
  #featured .hx-beat__txt { padding-top: 14px; }
  #featured .hx-beat__n { width: 34px; height: 34px; font-size: .98rem; }
  #featured .hx-fb3__mon { width: 30px; height: 30px; }
  #featured .hx-featured__foot { flex-direction: column; align-items: flex-start; }
  #featured .hx-keys li { font-size: .84rem; padding: 8px 12px; }
}
@media (max-width: 899px) and (min-width: 600px) {
  #featured .hx-beat { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 22px; align-items: center; }
  #featured .hx-beat__vis { aspect-ratio: 4 / 3; }
}
@media (max-width: 380px) { #featured .hx-fb1__eq { display: none; } #featured .hx-fb3__pinb { font-size: .78rem; } }

/* tiers */
.lp #featured .hx-beat__vis { box-shadow: 0 14px 30px rgba(0,0,0,.3); }
.lp #featured .hx-fb3__pinb { box-shadow: none; }
.reduced-motion #featured .hx-fb1__eq i { animation: none !important; }

/* ============================================================ DESKTOP (≥1024): one wide screen, beats in a row
   html.hx-cine: the section is pinned (featured.js → ctx.scene) and scroll plays the beats 1 → 2 → 3. */
@media (min-width: 1024px) {
  #featured .hx-featured__inner { max-width: var(--hx-max, 1680px); margin: 0 auto; }
  #featured .hx-featured__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--hx-gap, clamp(20px, 1.8vw, 36px)); max-width: none; align-items: end; }
  #featured .hx-featured__head .eyebrow { grid-column: 1 / -1; }
  #featured .hx-featured__head h2 { grid-column: 1 / span 9; font-size: min(var(--t-h1), 4.9vw, 9vh); }
  #featured .hx-featured__head .hx-lead { grid-column: 10 / -1; margin: 0; padding-bottom: .4em; font-size: clamp(1rem, 1.15vw, 1.2rem); }
}
@media (min-width: 1024px) and (min-height: 600px) {
  .hx-cine #featured.hx-featured { height: 100vh; height: 100svh; display: flex; align-items: center; padding-top: clamp(76px, 10vh, 112px); padding-bottom: clamp(24px, 4vh, 48px); }
  .hx-cine #featured .hx-featured__inner { width: 100%; }
}
@media (min-width: 1024px) and (max-height: 820px) {
  #featured .hx-featured__head { margin-bottom: 24px; }
  #featured .hx-featured__head h2 { font-size: min(var(--t-h1), 4.6vw, 8.4vh); }
  #featured .hx-beat__vis { height: clamp(180px, 28vh, 300px); }
  #featured .hx-beat:not(:last-child)::after { top: calc(clamp(180px, 28vh, 300px) / 2); }
  #featured .hx-beat__txt { padding-top: 12px; }
  #featured .hx-beat__p { font-size: .95rem; }
  #featured .hx-fb1__cap { display: none; }
  #featured .hx-featured__foot { margin-top: 20px; }
}

/* V10 · F4: hover depth on the beat cards (fine pointers). `translate`, not `transform`, so it composes with the
   desktop scene's GSAP y/opacity on the same element. Lift 4 px, gold edge, the number answers. */
@media (hover: hover) and (pointer: fine) {
  #featured .hx-beat__vis { transition: translate .6s var(--ease-out), border-color .4s, box-shadow .6s var(--ease-out); }
  #featured .hx-beat__n { transition: scale .5s var(--ease-out), box-shadow .5s var(--ease-out); }
  #featured .hx-beat:hover .hx-beat__vis { translate: 0 -4px; border-color: rgba(245,200,130,.3); box-shadow: 0 34px 70px rgba(0,0,0,.45), 0 0 0 1px rgba(245,200,130,.08); }
  #featured .hx-beat:hover .hx-beat__n { scale: 1.06; box-shadow: 0 10px 28px rgba(245,200,130,.45); }
}
.reduced-motion #featured .hx-beat__vis, .reduced-motion #featured .hx-beat__n { transition: none; translate: none; scale: none; }
