/* GZ-FLIGHT-INTRO-02: "Gece uçuşu" flight search intro (fly.php). Styles the shared js/search-intro.js markup only under
   .flight-search-intro, so the hotel and tours intros (hotel-search.css) are untouched. Design: docs/design/GZ-TASARIM-Ucak-Intro.html.
   Calm mode (.is-static, or prefers-reduced-motion without html.gz-motion-full): no flight motion, pulse or shine;
   the only transition left is a ≤200ms opacity fade. */
.flight-search-intro { position: fixed; inset: 0; z-index: 10050; margin: 0; color: #F4EAD6; font-family: 'Manrope', system-ui, sans-serif; text-align: left; animation: flight-intro-in .3s ease both; }
.flight-search-intro[hidden] { display: none !important; }
@keyframes flight-intro-in { from { opacity: 0; } to { opacity: 1; } }
.flight-search-intro .hotel-loader-panel,
.flight-search-intro .hotel-loader-skeletons,
.flight-search-intro .hotel-loader-topbar,
.flight-search-intro .hotel-intro-radar { display: none; }
.flight-search-intro .hotel-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Stage: night map (or the flat night ground when Mapbox is not available), vignette, single gold corner accents. */
.flight-search-intro .hotel-intro { position: absolute; inset: 0; isolation: isolate; overflow: hidden; background: #0A0907; }
.flight-search-intro .hotel-intro-map { position: absolute; inset: 0; background: #14110C; }
.flight-search-intro .hotel-intro-map .mapboxgl-canvas-container { opacity: 0; transition: opacity .4s ease; }
.flight-search-intro .hotel-intro-map.is-ready .mapboxgl-canvas-container { opacity: 1; }
.flight-search-intro .hotel-intro-map .mapboxgl-ctrl-logo,
.flight-search-intro .hotel-intro-map .mapboxgl-ctrl-attrib { opacity: .45; }
.flight-search-intro .hotel-intro-vignette { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, rgba(10,9,7,0) 52%, rgba(10,9,7,.92) 100%); }
.flight-search-intro .hotel-intro-corner { position: absolute; z-index: 2; width: 34px; height: 34px; box-sizing: border-box; border: 1.5px solid #D9B65E; opacity: .8; pointer-events: none; }
.flight-search-intro .hotel-intro-corner.is-tl { left: 22px; top: 22px; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.flight-search-intro .hotel-intro-corner.is-tr { right: 22px; top: 22px; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.flight-search-intro .hotel-intro-corner.is-bl { left: 22px; bottom: 22px; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.flight-search-intro .hotel-intro-corner.is-br { right: 22px; bottom: 22px; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.flight-search-intro .hotel-intro-brand { position: absolute; z-index: 2; left: 0; right: 0; top: 30px; color: #E6C774; font-family: 'Playfair Display', Georgia, serif; font-size: 24px; font-weight: 500; line-height: 1.2; letter-spacing: 0; text-align: center; pointer-events: none; }
.flight-search-intro .hotel-intro-brand small { display: block; margin-top: 4px; color: #A89F8E; font-family: 'Manrope', system-ui, sans-serif; font-size: 12px; font-weight: 500; letter-spacing: 0; }

/* Glass card: one thin gold edge. The motion switch (GazovaMotion, reduced-motion users) shares the foot row. */
.flight-search-intro .hotel-intro-card { position: absolute; z-index: 3; left: 50%; bottom: 44px; transform: translateX(-50%); display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; column-gap: 12px; width: min(640px, calc(100% - 48px)); box-sizing: border-box; padding: 24px 28px 20px; border: 1px solid rgba(217,182,94,.28); border-radius: 22px; background: rgba(16,14,10,.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 30px 70px rgba(0,0,0,.55); }
.flight-search-intro .hotel-intro-card > * { grid-column: 1 / -1; min-width: 0; }
.flight-search-intro .flight-intro-route { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 18px; }
.flight-search-intro .flight-intro-end b { display: block; color: #F4EAD6; font-family: 'Playfair Display', Georgia, serif; font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: 0; }
.flight-search-intro .flight-intro-end small { display: block; margin-top: 4px; color: #A89F8E; font-size: 13px; line-height: 1.3; }
.flight-search-intro .flight-intro-end.is-end { text-align: right; }
.flight-search-intro .flight-intro-mid { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; padding-bottom: 18px; }
.flight-search-intro .flight-intro-line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(217,182,94,.15), rgba(217,182,94,.7), rgba(217,182,94,.15)); }
.flight-search-intro .flight-intro-mid svg { flex: none; width: 22px; height: 22px; }
.flight-search-intro .flight-intro-mid em { position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); color: #E6C774; font-size: 12px; font-style: normal; font-weight: 700; white-space: nowrap; }
.flight-search-intro .flight-intro-mid em:empty { display: none; }
.flight-search-intro .hotel-intro-meta { margin: 14px 0 16px; color: #BFB49E; font-size: 13px; line-height: 1.5; }
.flight-search-intro .hotel-loader-steps { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.4; }
.flight-search-intro .hotel-loader-steps li { display: flex; align-items: center; gap: 12px; color: #8C8270; }
.flight-search-intro .hotel-loader-steps li.is-done { color: #D2C6AE; }
.flight-search-intro .hotel-loader-steps li.is-active { color: #F4EAD6; font-weight: 700; }
.flight-search-intro .hotel-loader-dot { position: relative; display: grid; place-items: center; flex: none; width: 20px; height: 20px; box-sizing: border-box; border: 1.5px solid rgba(217,182,94,.3); border-radius: 50%; }
.flight-search-intro .is-active .hotel-loader-dot { border-color: #E6C774; }
.flight-search-intro .is-active .hotel-loader-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #E6C774; }
.flight-search-intro .is-active .hotel-loader-dot::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; background: rgba(230,199,116,.3); animation: flight-intro-pulse 1.6s ease-out infinite; }
@keyframes flight-intro-pulse { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.7); } }
.flight-search-intro .is-done .hotel-loader-dot { border-color: #D9B65E; background: #D9B65E; }
.flight-search-intro .is-done .hotel-loader-dot::before { content: ''; width: 4px; height: 8px; border: solid #16140F; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.flight-search-intro .hotel-intro-bar { height: 4px; margin: 18px 0 12px; overflow: hidden; border-radius: 4px; background: rgba(217,182,94,.14); }
.flight-search-intro .hotel-intro-bar > span { position: relative; display: block; height: 100%; overflow: hidden; border-radius: 4px; background: linear-gradient(90deg, #B48A34, #E6C774); transform: scaleX(0); transform-origin: left center; transition: none !important; }
.flight-search-intro .hotel-intro-bar > span::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transform: translateX(-100%); animation: flight-intro-shine 1.8s linear infinite; }
@keyframes flight-intro-shine { to { transform: translateX(100%); } }
.flight-search-intro .hotel-intro-foot { grid-column: 1; margin: 0; color: #8C8270; font-size: 12px; line-height: 1.4; }
.flight-search-intro .hotel-intro-toggle { grid-column: 2; display: flex; justify-content: flex-end; margin: -6px -6px -8px 0; }

/* Map markers: origin pulse, destination ring (fills on arrival), plane with its glow. Positions come from Mapbox every
   frame, so nothing here may transition transforms. */
.flight-search-intro .flight-intro-point,
.flight-search-intro .flight-intro-plane { width: 0; height: 0; pointer-events: none; }
.flight-search-intro .flight-intro-point i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; box-sizing: border-box; border-radius: 50%; background: #E6C774; }
.flight-search-intro .flight-intro-point.is-origin::after { content: ''; position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; box-sizing: border-box; border: 1.5px solid #E6C774; border-radius: 50%; animation: flight-intro-ping 2.4s ease-out infinite; }
@keyframes flight-intro-ping { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(4.4); } }
.flight-search-intro .flight-intro-point.is-destination i { left: -6px; top: -6px; width: 12px; height: 12px; border: 2px solid #E6C774; background: #14110C; transition: background-color .25s ease; }
.flight-search-intro .flight-intro-point.is-destination::after { content: ''; position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; box-sizing: border-box; border: 1px solid rgba(230,199,116,.35); border-radius: 50%; transition: border-color .25s ease, border-width .25s ease; }
.flight-search-intro .flight-intro-point.is-destination.is-reached i { background: #E6C774; }
.flight-search-intro .flight-intro-point.is-destination.is-reached::after { border: 2px solid #E6C774; }
.flight-search-intro .flight-intro-point span { position: absolute; top: -27px; color: #F4EAD6; font: 700 15px/1.2 'Manrope', system-ui, sans-serif; white-space: nowrap; text-shadow: 0 1px 10px rgba(0,0,0,.85); }
.flight-search-intro .flight-intro-point.is-label-left span { right: 10px; }
.flight-search-intro .flight-intro-point.is-label-right span { left: 10px; }
.flight-search-intro .flight-intro-plane-body { position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; transition: none !important; }
.flight-search-intro .flight-intro-plane-body svg { display: block; width: 32px; height: 32px; overflow: visible; }

/* Answer moment: real count and lowest price in the pill; cheapest / fastest chips only when the offers allow it. */
.flight-search-intro .hotel-intro-arrive { position: absolute; z-index: 4; left: 50%; top: 44%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); box-sizing: border-box; padding: 14px 22px; border: 1px solid #D9B65E; border-radius: 999px; background: #16140F; color: #F4EAD6; font-size: 15px; font-weight: 700; line-height: 1.35; box-shadow: 0 20px 50px rgba(0,0,0,.6); animation: flight-intro-pop .18s ease both; }
.flight-search-intro .hotel-intro-arrive[hidden],
.flight-search-intro .hotel-intro-chips[hidden] { display: none !important; }
.flight-search-intro .hotel-intro-arrive svg { flex: none; color: #E6C774; }
.flight-search-intro .hotel-intro-arrive-accent { color: #E6C774; font-family: 'Playfair Display', Georgia, serif; font-size: 18px; font-weight: 600; }
@keyframes flight-intro-pop { from { opacity: 0; transform: translate(-50%, calc(-50% + 8px)); } }
.flight-search-intro .hotel-intro-chips { position: absolute; z-index: 4; right: clamp(24px, 8vw, 120px); top: calc(44% + 46px); display: flex; flex-direction: column; gap: 8px; }
.flight-search-intro .hotel-intro-chip { min-width: 150px; padding: 9px 13px; border: 1px solid rgba(217,182,94,.35); border-radius: 12px; background: rgba(16,14,10,.85); color: #BFB49E; font-size: 12px; line-height: 1.4; }
.flight-search-intro .hotel-intro-chip span,
.flight-search-intro .hotel-intro-chip small { display: block; font-size: 12px; }
.flight-search-intro .hotel-intro-chip b { display: block; color: #E6C774; font-family: 'Playfair Display', Georgia, serif; font-size: 18px; font-weight: 600; }

/* The answer is here: the board is already open underneath; the intro fades in at most 400ms (200ms calm). */
.flight-search-intro.is-leaving { pointer-events: none; animation: flight-intro-out .4s ease both; }
@keyframes flight-intro-out { 0%, 25% { opacity: 1; } 100% { opacity: 0; } }

.flight-search-intro.is-static *,
.flight-search-intro.is-static *::before,
.flight-search-intro.is-static *::after { animation: none !important; transition: none !important; }
.flight-search-intro.is-static,
.flight-search-intro.is-leaving.is-static { animation-duration: .2s; }
.flight-search-intro.is-static .flight-intro-point.is-origin::after,
.flight-search-intro.is-static .flight-intro-plane-glow,
.flight-search-intro.is-static .hotel-intro-bar > span::after,
.flight-search-intro.is-static .is-active .hotel-loader-dot::after { display: none; }
@media (prefers-reduced-motion: reduce) {
    html:not(.gz-motion-full) .flight-search-intro *,
    html:not(.gz-motion-full) .flight-search-intro *::before,
    html:not(.gz-motion-full) .flight-search-intro *::after { animation: none !important; transition: none !important; }
    html:not(.gz-motion-full) .flight-search-intro { animation-duration: .2s; }
}

/* Phone (375px): full-screen map with the route above the card; the card sits at the bottom. */
@media (max-width: 640px) {
    .flight-search-intro .hotel-intro-corner { display: none; }
    .flight-search-intro .hotel-intro-brand { top: 22px; font-size: 19px; }
    .flight-search-intro .hotel-intro-card { left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: auto; padding: 18px 18px 14px; transform: none; }
    .flight-search-intro .flight-intro-route { gap: 12px; }
    .flight-search-intro .flight-intro-end b { font-size: 32px; }
    .flight-search-intro .flight-intro-mid em { font-size: 11px; }
    .flight-search-intro .hotel-intro-meta { margin: 10px 0 12px; font-size: 12px; }
    .flight-search-intro .hotel-loader-steps li { font-size: 13px; }
    .flight-search-intro .hotel-intro-bar { margin: 14px 0 10px; }
    .flight-search-intro .hotel-intro-arrive { top: 30%; width: calc(100% - 24px); justify-content: center; padding: 12px 16px; font-size: 14px; border-radius: 18px; }
    .flight-search-intro .hotel-intro-chips { display: none !important; }
    .flight-search-intro .flight-intro-point span { font-size: 13px; }
}
