/* einfachair — screen layouts */

/* ============ PHOTO LAYER ============ */
.photo { position: relative; overflow: hidden; isolation: isolate; }
.photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; opacity: 0; transform: scale(1.04); transition: opacity .6s ease, transform 6s ease; }
.photo-img.is-loaded { opacity: 1; transform: scale(1); }
.photo-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(7,30,28,.06) 0%, transparent 32%, rgba(7,28,26,.16) 62%, rgba(6,24,22,.62) 100%); }
/* lift flow-content overlays above scrim without clobbering absolutely-positioned ones */
.ribbon, .deal-cat, .deal-overcity, .td-photo > .deal-overcity, .pc-tag { z-index: 2; }
.ribbon, .deal-cat, .deal-overcity { position: relative; }
.heart-btn { z-index: 3; }
/* hover zoom on cards */
.deal-card:hover .photo-img.is-loaded, .postcard:hover .photo-img.is-loaded, .top-deal:hover .photo-img.is-loaded { transform: scale(1.08); }

/* ============ °HOT VOTING ============ */
.temp { display: inline-flex; align-items: center; gap: 1px; background: var(--bg); border-radius: var(--pill); padding: 3px; flex-shrink: 0; }
.temp-btn { width: 27px; height: 27px; border-radius: var(--pill); display: grid; place-items: center; color: var(--ink-400); transition: all .13s; }
.temp-btn.up:hover { color: var(--coral-500); background: var(--coral-50); }
.temp-btn.down:hover { color: var(--teal-600); background: var(--teal-50); }
.temp-btn.up.on { color: #fff; background: var(--coral-500); }
.temp-btn.down.on { color: #fff; background: var(--teal-500); }
.temp-deg { font-family: var(--font-display); font-weight: 800; font-size: 14px; min-width: 46px; text-align: center; color: var(--ink-700); font-variant-numeric: tabular-nums; }
.temp-deg.hot { color: var(--coral-600); }

/* ============ CATEGORY BAR ============ */
.cat-bar { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 6px; scrollbar-width: none; }
.cat-bar::-webkit-scrollbar { display: none; }
.cat-chip { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--pill); background: var(--card); box-shadow: var(--sh-xs); font-weight: 700; font-size: 14px; color: var(--ink-600); white-space: nowrap; transition: all .14s; flex-shrink: 0; }
.cat-chip:hover { color: var(--ink-900); box-shadow: var(--sh-sm); }
.cat-chip.on { background: var(--petrol-800); color: #fff; box-shadow: var(--sh); }
.cat-chip.on svg { color: var(--teal-300); }

/* ============ DEAL FEED ============ */
.feed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ============ TOP DEAL ============ */
.top-deal { display: grid; grid-template-columns: 1.25fr 1fr; background: var(--card); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh); cursor: pointer; transition: box-shadow .22s, transform .22s; }
.top-deal:hover { box-shadow: var(--sh-lg); transform: translateY(-3px); }
.td-photo { position: relative; min-height: 340px; padding: 20px; display: flex; flex-direction: column; align-items: flex-start; }
.td-photo .oc-city { font-size: 46px; }
.td-body { padding: 30px 34px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.td-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--coral-600); white-space: nowrap; }
.td-price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.td-price { font-family: var(--font-display); font-weight: 900; font-size: 52px; line-height: 1; color: var(--coral-600); letter-spacing: -.02em; white-space: nowrap; }
.td-old { font-size: 22px; text-decoration: line-through; color: var(--ink-400); font-weight: 700; white-space: nowrap; }

/* ============ PROMO BANNER ============ */
.promo-banner {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(90deg, var(--accent), var(--accent-600));
  color: #fff; font-weight: 700; font-size: 14px; padding: 11px 20px; cursor: pointer; flex-wrap: nowrap;
}
.promo-banner > span:first-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.promo-banner .pb-cta { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.2); padding: 5px 13px; border-radius: 999px; font-size: 13px; margin-left: 4px; transition: gap .15s; white-space: nowrap; flex-shrink: 0; }
.promo-banner:hover .pb-cta { gap: 8px; }

/* ============ DEAL TICKER ============ */
.ticker { display: flex; align-items: stretch; background: var(--ink-900); border-radius: var(--pill); overflow: hidden; box-shadow: var(--sh); }
.ticker-tag { display: flex; align-items: center; gap: 7px; background: var(--accent); color: #fff; font-weight: 800; font-size: 13px; padding: 0 18px; white-space: nowrap; flex-shrink: 0; letter-spacing: .01em; }
.ticker-vp { overflow: hidden; flex: 1; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: inline-flex; align-items: center; gap: 0; padding: 11px 0; animation: ticker 38s linear infinite; white-space: nowrap; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item { display: inline-flex; align-items: center; gap: 9px; padding: 0 20px; color: rgba(255,255,255,.85); font-weight: 700; font-size: 14px; }
.ticker-item:hover { color: #fff; }
.ti-route { font-family: var(--font-display); font-weight: 800; color: var(--sky-200); }
.ti-city { font-weight: 600; color: rgba(255,255,255,.7); }
.ti-price { color: var(--sun-400); font-family: var(--font-display); font-weight: 800; }
.ti-dot { width: 5px; height: 5px; border-radius: 999px; background: rgba(255,255,255,.25); }

/* ============ DEAL OF THE DAY ============ */
.dotd { display: grid; grid-template-columns: 1.05fr 1.2fr; background: var(--card); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh); cursor: pointer; transition: box-shadow .22s, transform .22s; }
.dotd:hover { box-shadow: var(--sh-lg); transform: translateY(-3px); }
.dotd-media { position: relative; min-height: 320px; padding: 22px; display: flex; flex-direction: column; color: #fff; isolation: isolate; }
.dotd-media::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(8,12,26,.55)); }
.dotd-city { font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: -.02em; }
.dotd-country { font-size: 14px; font-weight: 600; opacity: .9; margin-top: 4px; }
.dotd-body { padding: 28px 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.dotd-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cd { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-display); }
.cd i { color: var(--ink-300); font-style: normal; font-weight: 700; }
.cd-n { background: var(--ink-900); color: #fff; font-weight: 800; font-size: 15px; padding: 4px 8px; border-radius: 8px; min-width: 30px; text-align: center; font-variant-numeric: tabular-nums; }

/* decorative blobs */
.blob { position: absolute; border-radius: 999px; filter: blur(8px); z-index: 0; pointer-events: none; opacity: .5; }
.blob-1 { width: 120px; height: 120px; left: 6%; top: 30%; background: radial-gradient(circle at 30% 30%, var(--sun-300), transparent 70%); animation: float1 9s ease-in-out infinite; }
.blob-2 { width: 90px; height: 90px; right: 9%; top: 46%; background: radial-gradient(circle at 30% 30%, var(--sky-200), transparent 70%); animation: float2 11s ease-in-out infinite; }
@keyframes float1 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }
@keyframes float2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } .blob { animation: none; } }

/* ============ PRICE ALERT BAND ============ */
.alert-band { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--coral-500), var(--coral-600)); border-radius: var(--r-xl); padding: 28px 32px; cursor: pointer; transition: transform .2s, box-shadow .2s; color: #fff; }
.alert-band:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.alert-band .ab-blob { position: absolute; right: -50px; top: -60px; width: 220px; height: 220px; border-radius: 999px; background: rgba(255,255,255,.12); }

/* ============ REVIEWS ============ */
.reviews-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.review-card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-sm); padding: 22px; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.review-card:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.review-text { font-size: 14.5px; line-height: 1.55; color: var(--ink-700); font-weight: 500; flex: 1; }

/* ============ FAQ ============ */
.faq-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--card); border-radius: var(--r); box-shadow: var(--sh-sm); overflow: hidden; transition: box-shadow .18s; }
.faq-item.open { box-shadow: var(--sh); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-family: var(--font-display); font-weight: 700; font-size: 16px; text-align: left; color: var(--ink-900); }
.faq-ic { width: 30px; height: 30px; border-radius: 999px; background: var(--bg-2); display: grid; place-items: center; color: var(--ink-500); transition: all .22s; flex-shrink: 0; }
.faq-item.open .faq-ic { background: var(--primary); color: #fff; transform: rotate(180deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .26s ease; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-in { overflow: hidden; padding: 0 20px; color: var(--ink-600); font-size: 14.5px; line-height: 1.6; }
.faq-item.open .faq-a-in { padding: 0 20px 20px; }

/* ============ HERO / SEARCH BAND ============ */
.hero { position: relative; padding: 54px 0 38px; overflow: hidden; isolation: isolate; }
.hero-photo { position: absolute; inset: 0; z-index: 0; background: linear-gradient(150deg, var(--petrol-800), var(--teal-600)); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; opacity: 0; transform: scale(1.05); transition: opacity 1s ease, transform 9s ease; }
.hero-photo img.is-loaded { opacity: 1; transform: scale(1); }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,40,42,.62) 0%, rgba(7,40,42,.42) 38%, rgba(7,40,42,.30) 100%); }
.hero-inner { position: relative; z-index: 1; }
.hero-head { text-align: center; max-width: 820px; margin: 4px auto 24px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; color: #fff; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); padding: 7px 14px; border-radius: var(--pill); margin-bottom: 16px; }
.hero h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.02; letter-spacing: -.03em; color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.22); }
.hero h1 .hl { color: var(--amber-300); position: relative; white-space: nowrap; }
.hero h1 .hl-coral { color: var(--coral-400); }
.hero-sub { margin-top: 15px; font-size: clamp(15px, 1.7vw, 18.5px); color: rgba(255,255,255,.94); font-weight: 500; text-shadow: 0 1px 14px rgba(0,0,0,.3); max-width: 60ch; margin-inline: auto; }
.hero-trust { display: flex; gap: 24px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.hero-trust .trust-item { color: #fff; font-weight: 700; font-size: 13.5px; }
.hero-trust .trust-item svg { color: var(--amber-300); }
.trust { display: flex; gap: 22px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.trust-item { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; color: var(--ink-600); }
.trust-item .dot { width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; color: #fff; }

/* ---- Search widget ---- */
.search-card { position: relative; z-index: 2; background: var(--card); border-radius: var(--r-xl); box-shadow: var(--sh-lg); padding: 14px; max-width: 980px; margin: 0 auto; }
.trip-tabs { display: flex; gap: 6px; padding: 4px 6px 12px; }
.trip-tab { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--pill); font-weight: 700; font-size: 14px; color: var(--ink-500); transition: all .14s ease; }
.trip-tab.is-active { background: var(--primary-50); color: var(--primary-700); }
.trip-tab:hover:not(.is-active) { color: var(--ink-800); background: var(--bg-2); }
.search-grid { display: grid; grid-template-columns: 1.1fr 1.1fr 1fr .8fr auto; gap: 10px; align-items: stretch; }
.sfield { position: relative; background: var(--bg); border-radius: var(--r); padding: 10px 14px; cursor: pointer; transition: box-shadow .15s ease, background .15s; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sfield:hover { background: var(--bg-2); }
.sfield.focus { background: #fff; box-shadow: inset 0 0 0 2px var(--primary); }
.sfield .lbl { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-400); }
.sfield .val { font-weight: 700; font-size: 16px; color: var(--ink-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sfield .val.placeholder { color: var(--ink-300); }
.sfield .sub { font-size: 12px; color: var(--ink-400); font-weight: 600; }
.sfield input.bare { border: none; background: none; outline: none; font-weight: 700; font-size: 16px; padding: 0; width: 100%; }
.swap-btn { position: absolute; left: -17px; top: 50%; transform: translateY(-50%); z-index: 3; width: 34px; height: 34px; border-radius: 999px; background: #fff; box-shadow: var(--sh-sm); display: grid; place-items: center; color: var(--primary); }
.swap-btn:hover { color: var(--primary-700); transform: translateY(-50%) rotate(180deg); }
@media (min-width: 721px) { .f-to-wrap .sfield { padding-left: 24px; } }
.search-submit { align-self: stretch; }
.search-extra { display: flex; gap: 8px; padding: 12px 6px 4px; flex-wrap: wrap; align-items: center; }

/* autocomplete dropdown */
.ac { position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: 8px; z-index: 40; border: 1px solid var(--line-2); max-height: 320px; overflow: auto; }
.ac-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); cursor: pointer; }
.ac-item:hover, .ac-item.hl { background: var(--bg-2); }
.ac-code { width: 42px; height: 36px; border-radius: 9px; background: var(--primary-50); color: var(--primary-700); font-weight: 800; font-size: 13px; display: grid; place-items: center; flex-shrink: 0; }
.ac-city { font-weight: 700; font-size: 15px; }
.ac-country { font-size: 12.5px; color: var(--ink-400); font-weight: 600; }

/* stepper for pax */
.stepper { display: flex; align-items: center; gap: 14px; }
.step-btn { width: 34px; height: 34px; border-radius: 999px; background: var(--bg-2); color: var(--ink-800); font-size: 20px; display: grid; place-items: center; font-weight: 700; }
.step-btn:hover { background: var(--primary-50); color: var(--primary-700); }

/* ---- Popular destinations strip ---- */
.dest-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.postcard { position: relative; background: var(--card); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); cursor: pointer; transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s; }
.postcard:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.pc-photo { height: 150px; }
.pc-tag { position: absolute; right: 10px; bottom: 10px; background: #fff; box-shadow: var(--sh); border-radius: 10px; padding: 5px 11px; display: flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.pc-tag span { font-size: 10.5px; font-weight: 700; color: var(--ink-400); }
.pc-tag b { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--coral-600); }
.pc-body { padding: 12px 14px 14px; }
.pc-city { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -.02em; line-height: 1.05; }
.pc-country { font-size: 12.5px; font-weight: 600; color: var(--ink-400); margin-top: 2px; }

/* ============ DEALS PAGE ============ */
.deals-hero { background: linear-gradient(120deg, var(--petrol-800), var(--petrol-700) 60%, var(--teal-600)); color: #fff; border-radius: var(--r-xl); padding: 32px 36px; position: relative; overflow: hidden; }
.deals-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; border-radius: 999px; background: rgba(43,211,194,.18); }
.deals-hero::before { content: ""; position: absolute; right: 90px; bottom: -90px; width: 200px; height: 200px; border-radius: 999px; background: rgba(255,158,18,.16); }
.deals-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 44px); position: relative; letter-spacing: -.02em; }
.deals-hero p { color: rgba(255,255,255,.88); margin-top: 10px; font-size: 16.5px; max-width: 54ch; position: relative; }
.deals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.deal-card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-sm); overflow: hidden; cursor: pointer; transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s; display: flex; flex-direction: column; }
.deal-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.deal-photo { height: 200px; padding: 13px; display: flex; flex-direction: column; align-items: flex-start; }
.ribbon { align-self: flex-start; background: var(--coral-500); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 15px; padding: 5px 12px; border-radius: 9px; box-shadow: var(--sh-coral); letter-spacing: -.01em; }
.deal-cat { margin-top: auto; background: rgba(255,255,255,.92); color: var(--ink-800); font-weight: 800; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; padding: 4px 10px; border-radius: var(--pill); backdrop-filter: blur(4px); white-space: nowrap; }
.deal-overcity { margin-top: 8px; }
.oc-city { font-family: var(--font-display); font-weight: 800; font-size: 27px; line-height: 1; letter-spacing: -.02em; color: #fff; }
.oc-country { display: flex; align-items: center; gap: 4px; color: rgba(255,255,255,.92); font-weight: 600; font-size: 12.5px; margin-top: 5px; white-space: nowrap; }
.deal-photo .heart-btn { position: absolute; top: 12px; right: 12px; }
.deal-body { padding: 14px 15px 15px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.deal-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-500); font-weight: 600; }
.deal-meta .m { display: inline-flex; align-items: center; gap: 5px; }
.deal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.price-tag { display: flex; flex-direction: column; min-width: 0; }
.pt-from { font-size: 11px; color: var(--ink-400); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.pt-row { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.pt-row b { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--coral-600); letter-spacing: -.01em; white-space: nowrap; }
.pt-old { text-decoration: line-through; color: var(--ink-400); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.deal-urgent { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12px; color: var(--coral-600); background: var(--coral-50); padding: 8px 11px; border-radius: var(--r-sm); white-space: nowrap; }

.heart-btn { width: 38px; height: 38px; border-radius: 999px; background: rgba(255,255,255,.92); backdrop-filter: blur(4px); display: grid; place-items: center; color: var(--ink-500); box-shadow: var(--sh-sm); transition: all .15s ease; }
.heart-btn:hover { color: var(--coral-500); transform: scale(1.08); }
.heart-btn.saved { color: #fff; background: var(--coral-500); }
.deal-filters { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.save-pill { background: var(--mint-50); color: var(--mint-600); font-weight: 800; font-size: 12.5px; padding: 5px 11px; border-radius: 999px; }

/* countdown */
.countdown { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 12px; color: var(--coral-600); background: var(--coral-50); padding: 4px 10px; border-radius: 999px; }

/* ============ RESULTS ============ */
.results-layout { display: grid; grid-template-columns: 268px 1fr; gap: 24px; align-items: start; }
.filters { position: sticky; top: calc(var(--nav-h) + 18px); background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-sm); padding: 18px; }
.filter-group { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.filter-group:first-child { padding-top: 0; }
.filter-group:last-child { border-bottom: none; padding-bottom: 0; }
.filter-title { font-weight: 800; font-size: 13.5px; margin-bottom: 12px; display: flex; justify-content: space-between; }
.check { display: flex; align-items: center; gap: 11px; padding: 7px 0; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink-700); }
.check .box { width: 21px; height: 21px; border-radius: 7px; box-shadow: inset 0 0 0 2px var(--ink-200); display: grid; place-items: center; transition: all .14s ease; flex-shrink: 0; }
.check:hover .box { box-shadow: inset 0 0 0 2px var(--primary); }
.check.on .box { background: var(--primary); box-shadow: none; color: #fff; }
.check .price { margin-left: auto; color: var(--ink-400); font-weight: 700; font-size: 13px; }
.rangeline { display: flex; justify-content: space-between; font-weight: 700; font-size: 13px; color: var(--ink-600); margin-top: 4px; }
input[type=range] { width: 100%; accent-color: var(--primary); }

.results-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.sort-tabs { display: flex; gap: 4px; background: var(--card); padding: 4px; border-radius: var(--pill); box-shadow: var(--sh-xs); }
.sort-tab { padding: 8px 15px; border-radius: var(--pill); font-weight: 700; font-size: 13.5px; color: var(--ink-500); }
.sort-tab.on { background: var(--ink-900); color: #fff; }
.sort-tab .sub { font-weight: 600; font-size: 11px; opacity: .7; margin-left: 4px; }

.flight-card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-sm); padding: 18px 20px; display: grid; grid-template-columns: 1fr 200px; gap: 18px; align-items: center; transition: box-shadow .18s ease, transform .18s; margin-bottom: 14px; }
.flight-card:hover { box-shadow: var(--sh); transform: translateY(-2px); }
.flight-card.best { box-shadow: inset 0 0 0 2px var(--mint-400), var(--sh-sm); }
.fc-leg { display: flex; align-items: center; gap: 16px; }
.airline-logo { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 16px; color: #fff; flex-shrink: 0; }
.fc-times { display: flex; align-items: center; gap: 14px; }
.fc-time { text-align: center; }
.fc-time .t { font-family: var(--font-display); font-weight: 800; font-size: 21px; }
.fc-time .a { font-size: 12.5px; color: var(--ink-400); font-weight: 700; }
.fc-path { flex: 1; min-width: 90px; text-align: center; }
.fc-path .dur { font-size: 12px; color: var(--ink-500); font-weight: 700; }
.fc-line { position: relative; height: 2px; background: var(--line); margin: 7px 0; border-radius: 2px; }
.fc-line::before, .fc-line::after { content: ""; position: absolute; top: 50%; transform: translateY(-50%); width: 7px; height: 7px; border-radius: 999px; background: var(--ink-300); }
.fc-line::before { left: 0; } .fc-line::after { right: 0; background: var(--primary); }
.fc-stop { font-size: 11.5px; font-weight: 700; }
.fc-stop.direct { color: var(--mint-600); } .fc-stop.stops { color: var(--ink-400); }
.fc-right { border-left: 1px solid var(--line-2); padding-left: 18px; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.fc-price { font-family: var(--font-display); font-weight: 800; font-size: 27px; }
.fc-price small { font-size: 13px; color: var(--ink-400); font-weight: 700; }
.fc-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ============ DETAIL ============ */
.detail-hero { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 280px; display: flex; align-items: flex-end; padding: 26px; color: #fff; }
.detail-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,12,26,.1) 30%, rgba(8,12,26,.7)); }
.detail-hero > * { position: relative; z-index: 1; }
.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; margin-top: 24px; }
.detail-section { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-sm); padding: 22px 24px; margin-bottom: 18px; }
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-stop { position: relative; padding: 8px 0; }
.tl-stop::before { content: ""; position: absolute; left: -26px; top: 12px; width: 14px; height: 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 3px var(--primary); }
.tl-stop.mid::before { box-shadow: inset 0 0 0 3px var(--ink-300); width: 10px; height: 10px; left: -24px; }
.booking-box { position: sticky; top: calc(var(--nav-h) + 18px); background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh); padding: 22px; }
.price-row { display: flex; justify-content: space-between; padding: 7px 0; font-weight: 600; font-size: 14.5px; color: var(--ink-600); }
.price-row.total { border-top: 1.5px dashed var(--line); margin-top: 8px; padding-top: 14px; font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--ink-900); }
.amenity { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-weight: 600; font-size: 14px; color: var(--ink-700); }
.amenity .ai { width: 32px; height: 32px; border-radius: 9px; background: var(--primary-50); color: var(--primary-700); display: grid; place-items: center; flex-shrink: 0; }

/* ============ ACCOUNT / AUTH ============ */
.auth-wrap { min-height: calc(100vh - var(--nav-h)); display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-form-col { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-form { width: 100%; max-width: 400px; }
.auth-aside { position: relative; overflow: hidden; background: linear-gradient(150deg, var(--sky-500), var(--sky-700)); color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 48px; }
.auth-aside::before { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 999px; background: rgba(255,255,255,.10); }
.auth-aside::after { content: ""; position: absolute; left: -60px; bottom: -100px; width: 260px; height: 260px; border-radius: 999px; background: rgba(255,209,60,.18); }
.auth-aside .aa-in { position: relative; z-index: 1; }
.auth-perk { display: flex; align-items: center; gap: 13px; padding: 11px 0; font-weight: 600; font-size: 15.5px; }
.auth-perk .ap { width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.18); display: grid; place-items: center; flex-shrink: 0; }
.seg { display: flex; background: var(--bg-2); border-radius: var(--pill); padding: 5px; margin-bottom: 24px; }
.seg button { flex: 1; height: 42px; border-radius: var(--pill); font-weight: 700; font-size: 14.5px; color: var(--ink-500); }
.seg button.on { background: #fff; color: var(--ink-900); box-shadow: var(--sh-sm); }
.social-btn { width: 100%; height: 48px; border-radius: var(--r); background: #fff; box-shadow: inset 0 0 0 1.6px var(--line); display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: 14.5px; color: var(--ink-800); }
.social-btn:hover { box-shadow: inset 0 0 0 1.6px var(--ink-200); }
.or-line { display: flex; align-items: center; gap: 14px; color: var(--ink-400); font-weight: 600; font-size: 13px; margin: 18px 0; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ============ DASHBOARD / SAVED ============ */
.dash-hero { background: linear-gradient(135deg, var(--ink-900), var(--ink-700)); color: #fff; border-radius: var(--r-xl); padding: 30px 32px; position: relative; overflow: hidden; }
.dash-hero::after { content: ""; position: absolute; right: -40px; top: -60px; width: 240px; height: 240px; border-radius: 999px; background: radial-gradient(circle, rgba(44,107,255,.45), transparent 70%); }
.dash-hero > * { position: relative; z-index: 1; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: rgba(255,255,255,.10); border-radius: var(--r); padding: 16px 18px; backdrop-filter: blur(4px); }
.stat .v { font-family: var(--font-display); font-weight: 800; font-size: 28px; }
.stat .k { font-size: 13px; opacity: .8; font-weight: 600; margin-top: 2px; }
.tab-pills { display: flex; gap: 8px; margin: 22px 0 18px; flex-wrap: wrap; }
.saved-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.empty { text-align: center; padding: 60px 24px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.empty .ei { width: 76px; height: 76px; border-radius: 999px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; margin: 0 auto 18px; }

.trip-row { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-sm); padding: 16px; display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.trip-thumb { width: 84px; height: 70px; border-radius: var(--r); flex-shrink: 0; position: relative; overflow: hidden; color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 13px; }

/* ============ CHECKOUT ============ */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.steps { display: flex; align-items: center; gap: 0; margin-bottom: 26px; }
.step { display: flex; align-items: center; gap: 10px; }
.step .num { width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--bg-2); color: var(--ink-400); flex-shrink: 0; }
.step.done .num { background: var(--mint-500); color: #fff; }
.step.active .num { background: var(--primary); color: #fff; box-shadow: var(--sh-sky); }
.step .nm { font-weight: 700; font-size: 14px; color: var(--ink-400); }
.step.active .nm, .step.done .nm { color: var(--ink-900); }
.step-line { flex: 1; height: 2px; background: var(--line); margin: 0 12px; min-width: 24px; }
.step-line.done { background: var(--mint-400); }
.seat-map { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; max-width: 360px; }
.seat { aspect-ratio: 1; border-radius: 8px; background: var(--bg-2); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--ink-400); cursor: pointer; transition: all .12s; }
.seat.aisle { background: none; cursor: default; }
.seat.avail:hover { background: var(--primary-100); color: var(--primary-700); }
.seat.taken { background: var(--line); color: var(--ink-200); cursor: not-allowed; }
.seat.sel { background: var(--primary); color: #fff; box-shadow: var(--sh-sky); }
.pay-card { border-radius: var(--r); box-shadow: inset 0 0 0 1.6px var(--line); padding: 14px 16px; display: flex; align-items: center; gap: 13px; cursor: pointer; transition: all .14s; }
.pay-card.on { box-shadow: inset 0 0 0 2px var(--primary); background: var(--primary-50); }
.confirm-wrap { max-width: 540px; margin: 40px auto; text-align: center; }
.confirm-check { width: 92px; height: 92px; border-radius: 999px; background: var(--mint-500); color: #fff; display: grid; place-items: center; margin: 0 auto 22px; box-shadow: 0 14px 36px rgba(20,184,136,.4); animation: pop .5s cubic-bezier(.2,.9,.3,1.4); }

/* ============ FOOTER ============ */
.footer { background: var(--ink-900); color: #fff; margin-top: 60px; padding: 48px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer h5 { font-family: var(--font-display); font-size: 14px; font-weight: 700; margin-bottom: 14px; opacity: .9; }
.footer a { display: block; padding: 5px 0; color: rgba(255,255,255,.62); font-size: 14px; font-weight: 500; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 34px; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; color: rgba(255,255,255,.5); font-size: 13px; flex-wrap: wrap; gap: 12px; }

/* page padding helper */
.page { padding: 30px 0 10px; }
/* nur vertikale Abstände setzen, damit die horizontale Zentrierung von .wrap erhalten bleibt */
.section { margin-top: 46px; margin-bottom: 46px; }

/* ---- detail hero photo ---- */
.detail-hero { position: relative; }
.dh-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.detail-hero::after { z-index: 1; }

/* ---- flight card flag + relative ---- */
.flight-card { position: relative; }
.flight-card.best { box-shadow: inset 0 0 0 2px var(--mint-500), var(--sh-sm); }
.fc-flag { position: absolute; top: -1px; left: 18px; transform: translateY(-50%); background: var(--mint-500); color: #fff; font-weight: 800; font-size: 11px; padding: 4px 10px; border-radius: var(--pill); display: inline-flex; align-items: center; gap: 5px; box-shadow: var(--sh-sm); }
