/* ═══════════════════════════════════════════════════════════════
   OtelBilet — Flights Home (redesign v2)
   Scope of this file:
   1. HERO RE-SKIN ONLY — the original .hp-hero / .hero-search-bar
      search form (style.css) is kept as-is; here we only replace the
      flat blue backdrop with a flight-photo treatment.
   2. NEW CONTENT SECTIONS — .fh-* namespace: stats strip, destination
      photo cards, boarding-pass route tickets, dark "why us" band,
      tips, FAQ accordion, SEO link chips.
   Loads AFTER style.css/hotels.css and uses their :root tokens.
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────── 1. HERO RE-SKIN (flight photo) ─────────────── */
.hp-hero {
  background:
    linear-gradient(168deg, rgba(4,12,38,0.90) 0%, rgba(8,28,96,0.84) 46%, rgba(11,58,214,0.72) 100%),
    #0a2472 url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?w=1920&q=75&auto=format&fit=crop') center 38% / cover no-repeat;
}
/* the ≤880 mobile block in style.css re-sets a gradient background — win it back */
@media (max-width: 880px) {
  .hp-hero {
    background:
      linear-gradient(172deg, rgba(4,12,38,0.92) 0%, rgba(8,28,96,0.86) 50%, rgba(11,58,214,0.76) 100%),
      #0a2472 url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?w=900&q=70&auto=format&fit=crop') center 40% / cover no-repeat;
  }
}
/* Two-tab service switcher (Bilet | Otel) — only flights and hotels
   remain, so the old scrollable pill strip becomes a clean segmented
   control. Declared after style.css, so these also beat its ≤880
   mobile-block rules (overflow-x scroll, flex-start, pill shadows). */
.hp-service-pills {
  width: 100%;
  max-width: 420px;
  margin: 0 auto 22px;
  gap: 5px;
  flex-wrap: nowrap;
  overflow: visible;
  justify-content: center;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 5px;
  backdrop-filter: blur(6px);
}
.hp-service-pills .hp-pill {
  flex: 1;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 11px 10px;
  font-size: 14px;
}
.hp-service-pills .hp-pill:hover {
  transform: none;
  box-shadow: none;
  background: rgba(255,255,255,0.12);
}
.hp-service-pills .hp-pill.active {
  background: #fff;
  color: var(--primary);
  transform: none;
  box-shadow: none;
}

/* .hp-hero{isolation:isolate;z-index:5} traps the pax bottom-sheet's
   z-index:300 below the sticky bottom nav (z:100) — its Tayyor button was
   untappable. Lift the hero's whole stacking context above the nav on
   mobile (contact sheet / calendar live at body level with higher z). */
@media (max-width: 880px) {
  .hp-hero { z-index: 120; }
}

/* ──────────────── 2. SECTION SCAFFOLDING ──────────────── */
.fh-section { padding: 46px 16px; background: #fff; }
.fh-section.alt { background: var(--bg-subtle); }
.fh-container { max-width: 1120px; margin: 0 auto; }
.fh-head { margin-bottom: 22px; }
.fh-head-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 8px;
}
.fh-head-eyebrow::before {
  content: '';
  width: 20px; height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.fh-head h2 {
  font-size: clamp(21px, 5vw, 30px);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  line-height: 1.2;
}
.fh-head h2 .accent { color: var(--primary); }
.fh-head-sub {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.6;
}

/* ──────────── 4. DESTINATIONS — photo cards with footer ──────────── */
.fh-dest-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(220px, 62vw);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.fh-dest-scroll::-webkit-scrollbar { display: none; }
.fh-dest-card {
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-slow) var(--easing), box-shadow var(--duration-slow), border-color var(--duration);
}
/* hover only on mouse devices — on touch, tapping latches :hover and
   the effect sticks to the card. No big shadows (user preference). */
@media (hover: hover) {
  .fh-dest-card:hover {
    transform: translateY(-2px);
    border-color: #cfd8f5;
  }
}
.fh-dest-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #1e293b var(--card-img) center / cover no-repeat;
}
.fh-dest-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2,8,30,0.05) 55%, rgba(2,8,30,0.35) 100%);
}
.fh-dest-iata {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 1;
  background: rgba(255,255,255,0.92);
  color: var(--primary);
  border-radius: 8px;
  padding: 4px 9px;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.8px;
  box-shadow: var(--shadow-sm);
}
.fh-dest-time {
  position: absolute;
  bottom: 10px; right: 10px;
  z-index: 1;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(2,8,30,0.55);
  backdrop-filter: blur(4px);
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px; font-weight: 600;
}
.fh-dest-time svg { width: 12px; height: 12px; }
.fh-dest-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}
.fh-dest-foot-info { flex: 1; min-width: 0; }
.fh-dest-city {
  font-size: 15.5px; font-weight: 800;
  color: var(--text);
  letter-spacing: -0.2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fh-dest-country {
  font-size: 12px; font-weight: 500;
  color: var(--text-muted);
  margin-top: 1px;
}
.fh-dest-go {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background var(--duration), color var(--duration);
}
@media (hover: hover) {
  .fh-dest-card:hover .fh-dest-go { background: var(--primary); color: #fff; }
}
.fh-dest-go svg { width: 14px; height: 14px; }

/* ──────────── 5. ROUTES — boarding-pass tickets ──────────── */
.fh-tickets {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
.fh-ticket {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px 13px;
  transition: transform var(--duration), box-shadow var(--duration), border-color var(--duration);
  overflow: hidden;
}
@media (hover: hover) {
  .fh-ticket:hover {
    transform: translateY(-2px);
    border-color: #c3cdf5;
  }
}
/* boarding-pass side notches on the tear line */
.fh-ticket::before, .fh-ticket::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  top: 62px;
}
.fh-ticket::before { left: -9px; }
.fh-ticket::after  { right: -9px; }
.fh-ticket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 14px;
}
.fh-ticket-code {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.5px;
  line-height: 1.1;
  flex-shrink: 0;
}
.fh-ticket-code small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0;
  margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 110px;
}
.fh-ticket-code.to { text-align: right; }
.fh-ticket-code.to small { margin-left: auto; }
/* the flight path between the codes */
.fh-ticket-path {
  flex: 1;
  min-width: 30px;
  display: flex;
  align-items: center;
  color: var(--primary);
  position: relative;
  height: 20px;
}
.fh-ticket-path::before {
  content: '';
  flex: 1;
  border-top: 2px dashed #c9d3f2;
}
.fh-ticket-path svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin: 0 4px;
  transform: rotate(45deg);
}
.fh-ticket-path::after {
  content: '';
  flex: 1;
  border-top: 2px dashed #c9d3f2;
}
.fh-ticket-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px dashed var(--border-strong);
  padding-top: 11px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.fh-ticket-dur { display: inline-flex; align-items: center; gap: 5px; }
.fh-ticket-dur svg { width: 13px; height: 13px; }
.fh-ticket-badge {
  background: var(--primary-tint);
  color: var(--primary);
  font-weight: 700;
  font-size: 10.5px;
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

/* airlines strip */
.fh-airlines-label {
  font-size: 11px; font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 30px 0 12px;
}
.fh-airlines { display: flex; flex-wrap: wrap; gap: 8px; }
.fh-airline {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12.5px; font-weight: 600;
  color: var(--text-secondary);
}
.fh-airline-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ──────────── 6. WHY US — dark navy band ──────────── */
.fh-band {
  background:
    radial-gradient(700px 300px at 90% -20%, rgba(59,95,240,0.45) 0%, transparent 65%),
    linear-gradient(160deg, #071033 0%, #0a2472 60%, #0b2f9e 100%);
  padding: 50px 16px;
  color: #fff;
}
.fh-band .fh-head-eyebrow { color: #93b4ff; }
.fh-band .fh-head h2 { color: #fff; }
.fh-band .fh-head h2 .accent { color: #7dd3fc; }
.fh-band-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.fh-band-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  backdrop-filter: blur(4px);
  transition: background var(--duration), border-color var(--duration), transform var(--duration);
}
@media (hover: hover) {
  .fh-band-card:hover {
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.22);
    transform: translateY(-3px);
  }
}
.fh-band-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(125,211,252,0.14);
  border: 1px solid rgba(125,211,252,0.30);
  color: #7dd3fc;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.fh-band-icon svg { width: 20px; height: 20px; }
.fh-band-card h3 {
  font-size: 15px; font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}
.fh-band-card p {
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
}

/* ──────────── 7. TIPS — watermark-number cards ──────────── */
.fh-tips {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.fh-tip {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  overflow: hidden;
}
.fh-tip-num {
  position: absolute;
  top: -6px; right: 8px;
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  color: rgba(11,58,214,0.07);
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.fh-tip h3 {
  font-size: 14.5px; font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.2px;
  position: relative;
}
.fh-tip p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  position: relative;
}

/* ──────────── 8. FAQ — new accordion ──────────── */
.fh-faq { display: flex; flex-direction: column; gap: 10px; max-width: 780px; }
.fh-faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 15px 16px;
  cursor: pointer;
  transition: border-color var(--duration), box-shadow var(--duration);
}
.fh-faq-item:hover { border-color: #c3cdf5; }
.fh-faq-item.open {
  border-color: #c3cdf5;
}
.fh-faq-q {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.fh-faq-q::after {
  content: '+';
  margin-left: auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary);
  font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform var(--duration-slow) var(--easing), background var(--duration);
}
.fh-faq-item.open .fh-faq-q::after {
  content: '+';
  transform: rotate(45deg);
  background: var(--primary);
  color: #fff;
}
.fh-faq-a {
  max-height: 0;
  overflow: hidden;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  transition: max-height var(--duration-slow) var(--easing), margin var(--duration-slow);
}
.fh-faq-item.open .fh-faq-a { max-height: 400px; margin-top: 10px; }

/* ──────────── 9. SEO LINKS — chip groups ──────────── */
.fh-seo { display: flex; flex-direction: column; gap: 22px; }
.fh-seo-col {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}
.fh-seo-col-title {
  width: 100%;
  font-size: 13px; font-weight: 800;
  color: var(--text);
  margin-bottom: 2px;
}
.fh-seo-col a {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color var(--duration-fast), color var(--duration-fast), background var(--duration-fast);
}
.fh-seo-col a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-tint);
}

/* ───────────────── DESKTOP / TABLET LAYOUTS ───────────────── */
@media (min-width: 560px) {
  .fh-tickets  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fh-tips     { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fh-band-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 881px) {
  .fh-section { padding: 64px 24px; }
  .fh-head { margin-bottom: 28px; }
  .fh-band { padding: 64px 24px; }
  /* destinations: full grid, no scroll */
  .fh-dest-scroll {
    grid-auto-flow: row;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: visible;
  }
  .fh-tickets   { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fh-band-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fh-tips      { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fh-seo {
    flex-direction: row;
    gap: 32px;
  }
  .fh-seo-col { flex: 1; min-width: 0; }
}

/* The shared navbar (style.css) doesn't fit all 7 links + currency +
   agent button below ~1080px. Scoped fix for this page: compress, and
   drop the two least-important links in the tight range. */
@media (min-width: 881px) and (max-width: 1080px) {
  .nav-inner { gap: 16px; }
  .nav-link { padding: 8px 8px; font-size: 12.5px; }
  .nav-link[href="/qaynoq-turlar.html"],
  .nav-link[href="/aloqa.html"] { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   HOTELS PAGE (hotels.html) — same design language as the flights
   home: photo hero, fh-dest destination cards, popular-hotels rail.
   ═══════════════════════════════════════════════════════════════ */

/* hero re-skin: hotel photo under the same deep-blue brand overlay */
.hotel-hero {
  background:
    linear-gradient(168deg, rgba(4,12,38,0.90) 0%, rgba(8,28,96,0.84) 46%, rgba(11,58,214,0.74) 100%),
    #0a2472 url('https://images.unsplash.com/photo-1566073771259-6a8506099945?w=1920&q=75&auto=format&fit=crop') center 55% / cover no-repeat;
}
@media (max-width: 880px) {
  .hotel-hero {
    background:
      linear-gradient(172deg, rgba(4,12,38,0.92) 0%, rgba(8,28,96,0.86) 50%, rgba(11,58,214,0.78) 100%),
      #0a2472 url('https://images.unsplash.com/photo-1566073771259-6a8506099945?w=900&q=70&auto=format&fit=crop') center 55% / cover no-repeat;
  }
}
/* the search widget must not move — no entrance animation, flat rest */
.hotel-search-wrap {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ── City cards (hotel-site style: full photo, name over gradient) ── */
.fh-city-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(210px, 60vw);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.fh-city-scroll::-webkit-scrollbar { display: none; }
@media (min-width: 881px) {
  .fh-city-scroll {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    gap: 16px;
  }
}
.fh-city-card {
  position: relative;
  scroll-snap-align: start;
  aspect-ratio: 4 / 4.4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  background: #1e293b;
  color: #fff;
}
@media (min-width: 881px) {
  .fh-city-card { aspect-ratio: 4 / 3.2; }
}
.fh-city-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--card-img) center / cover no-repeat;
  transition: transform 0.5s var(--easing);
}
.fh-city-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(185deg, rgba(2,8,30,0.0) 42%, rgba(2,8,30,0.78) 100%);
}
@media (hover: hover) {
  .fh-city-card:hover .fh-city-photo { transform: scale(1.05); }
}
.fh-city-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.fh-city-sub {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  margin-top: 3px;
}

/* ── Popular hotels rail ── */
.fh-hotels {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(240px, 68vw);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.fh-hotels::-webkit-scrollbar { display: none; }
@media (min-width: 881px) {
  .fh-hotels {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
  }
}
.fh-hotel-card {
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--duration);
}
@media (hover: hover) {
  .fh-hotel-card:hover { border-color: #c3cdf5; }
  .fh-hotel-card:hover .fh-hotel-name { color: var(--primary); }
}
.fh-hotel-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #1e293b var(--card-img) center / cover no-repeat;
}
.fh-hotel-rating {
  position: absolute;
  bottom: 10px; right: 10px;
  background: #fff;
  color: var(--primary);
  border-radius: 9px;
  padding: 4px 8px;
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.fh-hotel-body { padding: 12px 14px 14px; }
.fh-hotel-stars {
  color: #f59e0b;
  font-size: 12px;
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 6px;
}
.fh-hotel-name {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.2px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--duration-fast);
}
.fh-hotel-city {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Accessibility & motion */
.fh-faq-item:focus-visible,
.fh-dest-card:focus-visible,
.fh-hotel-card:focus-visible,
.fh-ticket:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .fh-dest-card, .fh-ticket, .fh-band-card, .fh-faq-q::after { transition: none; }
}
