/* ============================================================
   Istanbul Night Cruise — New Year's Eve layer
   Loaded only on /istanbul-new-years-eve-cruise, after style.css.
   Keeps the site's palette (night / sunset / sea / sand) and adds
   one festive token: champagne. Motion is soft and every animation
   is switched off under prefers-reduced-motion.
   ============================================================ */

:root {
  --champ: #F5D889;
  --champ-deep: #D9A93F;
}
.text-champ { color: var(--champ); }
.eyebrow-champ { color: var(--champ); }

/* ---------- Light garland under the header bar ----------
   The header is fixed, so the string hangs from the bar on every
   scroll position. Bulbs glow in a slow chase; the wire is a row
   of scallops. Every second bulb is dropped on phones. */
.nye-lights { position: absolute; left: 0; right: 0; top: 100%; height: 30px; display: flex; justify-content: space-between; padding: 0 10px; pointer-events: none; z-index: 2; }
.nye-lights::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 9px;
  background: radial-gradient(circle 15px at 15px -9px, transparent 14px, rgba(255,255,255,.42) 14.5px, transparent 16px) repeat-x; background-size: 30px 9px; }
.header-solid .nye-lights::before { background-image: radial-gradient(circle 15px at 15px -9px, transparent 14px, rgba(15,42,68,.30) 14.5px, transparent 16px); }
.nye-bulb { position: relative; display: block; width: 10px; height: 15px; margin-top: 9px; border-radius: 50% 50% 50% 50% / 42% 42% 58% 58%;
  background: radial-gradient(circle at 35% 28%, #fff 0, var(--b) 45%, var(--bd) 100%); box-shadow: 0 0 9px 2px var(--g);
  animation: nyeGlow 2.8s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.21s); }
.nye-bulb::before { content: ""; position: absolute; left: 50%; top: -6px; width: 4px; height: 6px; margin-left: -2px; border-radius: 1px; background: rgba(255,255,255,.55); }
.header-solid .nye-bulb::before { background: rgba(15,42,68,.45); }
.nye-bulb:nth-child(4n+1) { --b: #F5D889; --bd: #B8892A; --g: rgba(245,216,137,.85); }
.nye-bulb:nth-child(4n+2) { --b: #F0704B; --bd: #A83A22; --g: rgba(240,112,75,.85); }
.nye-bulb:nth-child(4n+3) { --b: #FFFFFF; --bd: #9DB4C8; --g: rgba(255,255,255,.75); }
.nye-bulb:nth-child(4n+4) { --b: #4FD1D9; --bd: #157A83; --g: rgba(79,209,217,.85); }
@keyframes nyeGlow { 0%, 100% { opacity: .38; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.08); } }
@media (max-width: 767px) { .nye-bulb:nth-child(2n) { display: none; } .nye-lights { height: 26px; } }

/* ---------- Hero ---------- */
.nye-hero video { filter: saturate(1.08) brightness(.95); }
.nye-hero-shade { background: linear-gradient(90deg, rgba(10,29,48,.92) 0%, rgba(10,29,48,.62) 55%, rgba(26,20,64,.35) 100%); }
.nye-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.nye-eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(245,216,137,.45);
  background: rgba(245,216,137,.09); color: var(--champ); font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; backdrop-filter: blur(6px); max-width: 100%; }
.nye-eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--champ); box-shadow: 0 0 10px 2px rgba(245,216,137,.8); flex-shrink: 0; animation: nyeGlow 2s ease-in-out infinite; }
.nye-year { background: linear-gradient(100deg, #FFFFFF 0%, var(--champ) 48%, #F0704B 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* countdown */
.nye-cd-label { font-size: 10.5px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 8px; }
.nye-cd { display: flex; gap: 8px; max-width: 420px; }
.nye-cd-box { flex: 1; min-width: 0; text-align: center; padding: 10px 4px 8px; border-radius: 14px; background: rgba(10,29,48,.55); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px); }
.nye-cd-num { display: block; font-family: 'Fraunces', Georgia, serif; font-size: 28px; font-weight: 600; color: var(--champ); line-height: 1; font-variant-numeric: tabular-nums; }
.nye-cd-lbl { display: block; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.55); margin-top: 6px; }
.nye-cd-box--s { border-color: rgba(245,216,137,.45); }
.nye-cd-box--s .nye-cd-num { color: #fff; }
.nye-cd-wrap.is-done .nye-cd { display: none; }
.nye-cd-done { font-family: 'Fraunces', Georgia, serif; font-size: 28px; font-weight: 600; color: var(--champ); }

/* CTA glow */
.nye-btn { position: relative; overflow: hidden; animation: nyePulse 2.8s ease-out infinite; }
.nye-btn::after { content: ""; position: absolute; top: -40%; bottom: -40%; left: -70%; width: 38%; transform: skewX(-18deg);
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.42), transparent); animation: nyeSheen 4.6s ease-in-out infinite; pointer-events: none; }
@keyframes nyePulse { 0% { box-shadow: 0 10px 24px -10px rgba(240,112,75,.6), 0 0 0 0 rgba(240,112,75,.5); } 70% { box-shadow: 0 10px 24px -10px rgba(240,112,75,.6), 0 0 0 14px rgba(240,112,75,0); } 100% { box-shadow: 0 10px 24px -10px rgba(240,112,75,.6), 0 0 0 0 rgba(240,112,75,0); } }
@keyframes nyeSheen { 0%, 62% { left: -70%; } 100% { left: 170%; } }

/* quick card on the hero */
.nye-quick::before { background: linear-gradient(135deg, rgba(245,216,137,.55), rgba(240,112,75,.35)); }

/* ---------- Facts card ---------- */
.nye-fact { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 11px 0; align-items: baseline; }
.nye-fact dt { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.nye-fact dd { font-size: 15px; font-weight: 600; color: var(--night); line-height: 1.45; overflow-wrap: anywhere; }
@media (max-width: 400px) { .nye-fact { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Programme (dark band, timeline) ---------- */
.nye-dark { background: radial-gradient(ellipse at 20% 0%, #1B3A5C 0%, #0F2A44 40%, #0A1D30 100%); }
.nye-stars { position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image: radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,255,255,.9), transparent 60%), radial-gradient(1px 1px at 30% 70%, rgba(245,216,137,.9), transparent 60%),
    radial-gradient(1.5px 1.5px at 55% 12%, rgba(255,255,255,.8), transparent 60%), radial-gradient(1px 1px at 72% 44%, rgba(245,216,137,.8), transparent 60%),
    radial-gradient(1.5px 1.5px at 88% 78%, rgba(255,255,255,.8), transparent 60%), radial-gradient(1px 1px at 40% 92%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 8% 60%, rgba(245,216,137,.8), transparent 60%), radial-gradient(1px 1px at 95% 25%, rgba(255,255,255,.8), transparent 60%); }
.nye-tl { position: relative; padding-left: 58px; }
.nye-tl::before { content: ""; position: absolute; left: 20px; top: 10px; bottom: 30px; width: 2px; background: linear-gradient(rgba(245,216,137,.12), rgba(245,216,137,.85) 25%, rgba(245,216,137,.85) 75%, rgba(245,216,137,.12)); }
.nye-step { position: relative; padding: 0 0 34px; }
.nye-step:last-child { padding-bottom: 0; }
.nye-dot { position: absolute; left: -45px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--champ); box-shadow: 0 0 12px 2px rgba(245,216,137,.75); }
.nye-step--midnight .nye-dot { width: 26px; height: 26px; left: -51px; top: 4px; background: #fff; box-shadow: 0 0 0 7px rgba(245,216,137,.18), 0 0 30px 9px rgba(245,216,137,.8); animation: nyeGlow 2.2s ease-in-out infinite; }
.nye-time { font-family: 'Fraunces', Georgia, serif; font-size: 22px; font-weight: 600; color: var(--champ); line-height: 1; margin-bottom: 6px; }
.nye-step-title { font-weight: 800; color: #fff; font-size: 17px; margin-bottom: 5px; }
.nye-step-desc { color: rgba(255,255,255,.68); font-size: 14.5px; line-height: 1.65; max-width: 44rem; }
[dir="rtl"] .nye-tl { padding-left: 0; padding-right: 58px; }
[dir="rtl"] .nye-tl::before { left: auto; right: 20px; }
[dir="rtl"] .nye-dot { left: auto; right: -45px; }
[dir="rtl"] .nye-step--midnight .nye-dot { right: -51px; }

/* ---------- Midnight band ---------- */
.nye-midnight { background: #0A1D30 url('/assets/images/nila/nila-bosphorus-dinner-cruise-ortakoy-mosque-night-istanbul.webp') center 30% / cover no-repeat; }
@media (min-width: 1024px) { .nye-midnight { background-attachment: fixed; } }
.nye-midnight::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,29,48,.78) 0%, rgba(10,29,48,.5) 50%, rgba(10,29,48,.9) 100%); }
.nye-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(245,216,137,.4); color: #fff; font-size: 13px; font-weight: 700; backdrop-filter: blur(6px); }
.nye-chip svg { color: var(--champ); }

/* ---------- Menu ---------- */
.nye-course { background: var(--sand); border: 1px solid var(--sand-dark); border-radius: 1.25rem; padding: 20px; }
.nye-course-n { font-family: 'Fraunces', Georgia, serif; font-size: 13px; letter-spacing: .18em; color: var(--sunset-dark); font-weight: 600; }
.nye-menu-tile { aspect-ratio: 1 / 1; }
.nye-menu-tile .menu-tile-label { position: absolute; left: 10px; bottom: 10px; }

/* ---------- Show ---------- */
.nye-act { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px dashed var(--sand-deep); }
.nye-act:last-child { border-bottom: 0; }
.nye-act-n { width: 30px; height: 30px; border-radius: 50%; background: var(--night); color: var(--champ); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }

/* ---------- Tickets ---------- */
.nye-rule { padding: 0 4px; }

/* ---------- Guide ---------- */
.nye-guide h3 { font-family: 'Fraunces', Georgia, serif; font-size: 19px; font-weight: 600; color: var(--night); margin-bottom: 8px; line-height: 1.3; }
.nye-guide p { color: var(--ink-muted); font-size: 15px; line-height: 1.7; }

/* ---------- Wizard: fixed date line ---------- */
.nye-wiz-date { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--night); color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.nye-wiz-date::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--champ); box-shadow: 0 0 8px 2px rgba(245,216,137,.7); flex-shrink: 0; }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .nye-eyebrow { font-size: 10px; padding: 6px 11px; letter-spacing: .09em; }
  .nye-cd-box { padding: 8px 2px 7px; border-radius: 12px; }
  .nye-cd-num { font-size: 22px; }
  .nye-cd-lbl { font-size: 8.5px; letter-spacing: .1em; margin-top: 4px; }
  .nye-cd-label { font-size: 9.5px; margin-bottom: 6px; }
}
/* the reservation button has to stay above the fold on short phones: the countdown moves below the chips */
@media (max-width: 639px) and (max-height: 700px) {
  .nye-hero .hero-chips { display: none; }
}

/* ---------- Motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  .nye-bulb, .nye-eyebrow-dot, .nye-btn, .nye-btn::after, .nye-step--midnight .nye-dot { animation: none; }
  .nye-canvas { display: none; }
  .nye-midnight { background-attachment: scroll; }
}

/* ---------- Fixes from the first device pass (8 Sep 2026) ---------- */
/* the wizard's date picker is hidden on this page, but .field-label{display:block} beats the hidden attribute */
.field-label[hidden] { display: none !important; }
/* on phones the header slides away while scrolling down — the garland goes with it instead of peeking out behind the section chips */
.nye-lights { transition: opacity .25s; }
.header-hidden .nye-lights { opacity: 0; }
