/* ==============================================================
   RESPONSIVE STYLES
   Saare @media rules yahan hain (style.css, flight.css, hotel.css,
   footer.css) — un files me sirf base/desktop styles rehte hain.
   Har breakpoint ka ek hi block hai, andar section-wise.
   Breakpoints: 992 (lg) · 1200 · 768 (md) · 576 (sm) · 480 · 420 · 360
   ============================================================== */

/* ====== DESKTOP (lg and up) ====== */
@media (min-width: 992px) {
  /* navbar: brand + collapse menu become direct flex children of .container */
  .navbar-top-row { display: contents; }
  /* service links run full navbar height so the active underline sits on the brand line */
  .navbar { padding: 0; }
  .navbar > .container { align-items: stretch; }
  .navbar-brand { padding: 8px 0; margin-right: 28px; align-self: center; }
  .navbar-collapse { align-self: stretch; }
  .nav-services { align-self: stretch; gap: 4px; }
  .nav-services .nav-item { display: flex; }
  .nav-services .nav-link { padding: 0 16px !important; }
  .nav-services .nav-link.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -2px; height: 4px; background: var(--accent); border-radius: 4px 4px 0 0; }
  .navbar-collapse > .ms-auto { align-self: center; }

  /* hero: narrow search panel floats on the left of the slider */
  .hs-section { padding-top: 34px; }
  /* with a banner behind it, keep the hero tall enough to show the offer text */
  .hs-section.hs-has-slider { min-height: 570px; }
  .hs-panel { width: 560px; }
  .hs-panel .flight-search-card { padding: 18px 20px 20px; }
  /* stack the search fields to fit the narrow panel */
  .hs-panel .search-row { flex-wrap: wrap; }
  .hs-panel .search-seg-fromto { flex: 1 1 100%; border-bottom: 1px solid var(--border); }
  .hs-panel .search-seg { flex: 1 1 50%; padding: 11px 18px; }
  .hs-panel .search-seg-fromto .search-seg:last-child::after,
  .hs-panel #returnDateGroup::after { display: none; }
  .hs-panel .traveller-wrapper { flex: 1 1 100%; border-top: 1px solid var(--border); }
  .hs-panel .search-submit-btn { flex: 1 1 100%; padding: 14px; border-radius: 0 0 12px 12px; font-size: 1.05rem; }
  /* hotel form: destination and rooms full width */
  .hs-panel #hotelSearchForm .search-row > .search-seg:first-child { flex: 1 1 100%; border-bottom: 1px solid var(--border); }
  .hs-panel #hotelSearchForm .search-row > .search-seg:first-child::after,
  .hs-panel #hotelSearchForm .search-row > .search-seg:nth-child(3)::after { display: none; }
  .hs-panel #hotelSearchForm .search-seg.no-divider { flex: 1 1 100%; border-top: 1px solid var(--border); }
  .hs-panel .special-fares-row { gap: 8px; margin-top: 14px; }
  .hs-panel .fare-pill { padding: 4px 11px; font-size: 0.76rem; }
  .hs-panel .trust-strip-bar { gap: 8px 16px; padding: 10px 14px; }
  .hs-panel .trust-shield { display: none; }
}

/* ====== NARROW DESKTOP (992–1199px) ====== */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* keep the offer text clear of the search panel */
  .hs-caption { width: 38%; right: 3%; }
  .hs-big { font-size: 2.4rem; }
  .hs-line { font-size: 1.1rem; }
  .hs-code { font-size: 1rem; padding: 8px 20px; }
}

/* ====== BELOW XL (< 1200px) ====== */
@media (max-width: 1199.98px) {
  /* hotel.css — list card: price column drops below as a full-width row */
  .hl-card { grid-template-columns: 250px 1fr; }
  .hl-price { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--border); flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; text-align: left; padding: 16px 22px; }
  .hl-fare { margin-top: 0; }
}

/* ====== TABLET & BELOW (< 992px) ====== */
@media (max-width: 991.98px) {
  /* blog.css — sidebar article ke neeche, sticky band */
  .blog-sidebar { position: static; }
  .blog-article { padding: 28px; }

  /* navbar: collapsed menu, stacked links, active gets a tinted row */
  .navbar-brand img { height: 46px; }
  .nav-services { padding: 8px 0; }
  .nav-services .nav-link { padding: 12px 14px !important; border-radius: 10px; }
  .nav-services .nav-link.active { background: rgba(var(--accent-rgb), 0.08); }
  .nav-badge { position: static; margin-left: 4px; }
  /* login / sign up sit full-width under the links */
  .nav-actions { padding: 6px 0 14px; }
  .nav-auth-btn { flex: 1 1 0; padding: 11px 16px; }

  .section-pad { padding: 64px 0; }

  /* search card */
  .search-row { flex-wrap: wrap; }
  .search-seg-fromto { flex: 1 1 100%; }
  .search-seg { flex: 1 1 50%; }
  .search-submit-btn { flex: 1 1 100%; border-radius: 0 0 12px 12px; padding: 14px; }

  /* hero: slider is desktop-only, the search panel sits on a tinted background */
  .hs-section { background: var(--bg-light); }
  .hs-panel { box-shadow: 0 12px 40px rgba(var(--primary-rgb), 0.12); }

  /* banners */
  .cta-banner { padding: 36px 28px; }
  .promo-bg-icon { right: 20px; }

  /* flight deals: ~2.3 tickets visible */
  .fd-track { grid-auto-columns: calc((100% - 2 * var(--fd-gap)) / 2.3); }

  /* fare watch */
  .fw-phone { margin-bottom: 0; }
  .fw-app { max-width: 320px; margin: 0 auto; }

  /* search summary bar (flight + hotel search) */
  .search-summary { gap: 12px 16px; }
  .ss-item { flex: 1 1 calc(50% - 16px); }
  .ss-item + .ss-item { padding-left: 0; border-left: 0; }
  .ss-modify { flex: 1 1 100%; justify-content: center; margin-left: 0; }

  /* flight.css — booking sidebar sits below the main column */
  .price-box { position: static; top: auto; }

  /* about.css */
  .ab-hero { padding: 50px 0 70px; }
  .ab-window-wrap { max-width: 320px; }
  .ab-float-top { left: -20px; }
  .ab-float-bottom { right: -16px; }
  .ab-route { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .ab-route::before { display: none; }

  /* faq.css — topics become a scrollable chip row */
  .faq-nav { position: static; display: flex; gap: 8px; overflow-x: auto; padding: 10px; }
  .faq-nav-title, .faq-nav-link small { display: none; }
  .faq-nav-link { flex: 0 0 auto; white-space: nowrap; padding: 6px 14px 6px 6px; border: 1px solid var(--border); border-radius: var(--radius-pill); }
  .faq-nav-link i { width: 28px; height: 28px; flex-basis: 28px; border-radius: 50%; }
}

/* ====== MOBILE LANDSCAPE / SMALL TABLET (< 768px) ====== */
@media (max-width: 767.98px) {
  /* legal / policy pages */
  .policy-body, .policy-header { padding: 22px; }
  .policy-toc ol { columns: 1; }

  /* blog.css */
  .blog-toc ol { columns: 1; }
  .blog-article { padding: 22px; }
  .blog-content { font-size: 0.97rem; line-height: 1.75; }
  .blog-content h2 { padding-left: 11px; border-left-width: 3px; }
  .blog-cta { padding: 22px; flex-direction: column; align-items: flex-start; }
  .blog-pagination { margin-top: 32px; }
  .page-hero { padding: 48px 0 42px; }

  .section-pad { padding: 52px 0; }
  .section-pad-sm { padding: 40px 0; }
  .section-header, .section-head { margin-bottom: 26px; }
  .section-head { align-items: flex-start; }

  /* service tabs scroll sideways */
  .service-tabs-row { flex-wrap: wrap; }
  .service-tabs { gap: 22px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1 1 auto; }
  .service-tabs::-webkit-scrollbar { display: none; }
  .service-tabs, .hs-panel .service-tabs { padding: 12px 0 4px; }
  .service-tab-link { white-space: nowrap; }

  /* search card: every field full width */
  .flight-search-card { padding: 18px 16px; }
  .search-seg-fromto { flex-direction: column; }
  .swap-airports-btn { position: static; transform: none; margin: -4px auto; }
  .swap-airports-btn:hover { transform: rotate(180deg); }
  .search-seg { flex: 1 1 100%; border-bottom: 1px solid var(--border); }
  .search-seg.no-divider { border-bottom: none; }
  .search-seg:not(.no-divider)::after { display: none; }
  .special-fares-row { gap: 8px; }
  .fare-pill { font-size: 0.75rem; padding: 5px 12px; }
  .trust-strip-bar { gap: 12px; }
  .trust-shield { margin-left: 0; }

  /* AI search tab */
  .ai-input { padding-left: 42px; }
  .ai-input-icon { left: 16px; }
  .ai-input input { font-size: 0.95rem; }
  .ai-go { padding: 0; width: 46px; height: 46px; justify-content: center; }
  .ai-go span { display: none; }
  .ai-go i { margin: 0 !important; }
  .ai-summary, .ai-skeleton { grid-template-columns: repeat(2, 1fr); }
  .ai-actions .btn { flex: 1; }

  /* flight deals: tabs get their own row, ~1.2 tickets visible */
  .fd-head { gap: 14px; }
  .fd-tabs { order: 3; width: 100%; gap: 20px; }
  .fd-track { --fd-gap: 16px; grid-auto-columns: 82%; }

  /* cards */
  .deal-promo img { height: 180px; }
  .h-card img { height: 170px; }

  /* banners */
  .promo-banner { padding: 26px 22px; gap: 18px; }
  .promo-banner h3 { font-size: 1.25rem; }
  .fw-banner { padding: 32px 20px; }
  .fw-skyline { width: 80%; }

  /* home ad slots */
  .ad-section { padding-bottom: 40px; }
  .ad-leaderboard { flex-wrap: wrap; padding: 36px 18px 18px; gap: 14px; }
  .ad-leaderboard .ad-cta { flex: 1 1 100%; justify-content: center; }
  .ad-card { height: 170px; }
  .ad-card-body b { font-size: 1.1rem; }

  /* flight.css — result cards + booking flow */
  .deal-card .card-img { height: 130px; }
  .details-card,
  .payment-card { padding: 18px; }
  .ticket-header { padding: 18px; }
  .ticket-header h2 { font-size: 1.3rem; }
  .ticket-body { padding: 18px; }
  .barcode { font-size: 20px; letter-spacing: 2px; }

  /* footer.css */
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-tabs-nav { flex-direction: row; flex-wrap: wrap; border-left: 0; gap: 8px; }
  .footer-tab { margin: 0; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--radius-pill); padding: 8px 14px; font-size: 0.82rem; }
  .footer-tab.active { border-color: var(--accent); background: var(--accent); }

  /* about.css */
  .ab-collage { padding: 0 30px 40px 0; }
  .ab-cta { padding: 50px 20px; }
}

/* ====== MOBILE (< 576px) ====== */
@media (max-width: 575.98px) {
  .section-pad { padding: 44px 0; }

  /* blog.css — mobile par full-bleed card */
  .blog-article { padding: 18px; border-radius: var(--radius-sm); }
  .blog-figure { margin-bottom: 20px; }
  .blog-toc { padding: 16px; }
  .blog-card-body { padding: 18px; }
  .blog-hero-meta { gap: 6px 16px; font-size: 0.85rem; }
  .blog-cta-actions, .blog-cta-actions .btn { width: 100%; }

  .hero-trust-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-trust-item { font-size: 0.92rem; }

  /* two-up cards get tighter */
  .feature-card { padding: 22px 14px; }
  .feature-icon { width: 52px; height: 52px; font-size: 1.25rem; margin-bottom: 14px; }
  .feature-card h6 { font-size: 0.92rem; }
  .deal-promo img { height: 150px; }
  .deal-promo-overlay { padding: 30px 12px 12px; }
  .deal-promo-overlay h6 { font-size: 0.95rem; }
  .deal-promo-overlay p { font-size: 0.72rem; }
  .h-card img { height: 140px; }
  .h-card h6 { font-size: 0.9rem; }
  .h-card > .p-3 > .d-flex:last-child { flex-wrap: wrap; gap: 8px; }
  .price-tag { font-size: 1.1rem; }

  /* banners */
  .offer-banner { min-height: 130px; padding: 20px 24px; }
  .promo-btn { width: 100%; text-align: center; }
  .cta-banner { padding: 30px 22px; text-align: center; }
  .cta-banner .btn-search { width: 100%; }

  .newsletter-box { padding: 32px 20px; }
  .newsletter-form input, .newsletter-form .btn-search { flex: 1 1 100%; max-width: none; }

  /* marquee */
  .airline-card { width: 140px; padding: 18px 10px; }
  .airline-logo-badge { width: 50px; height: 50px; font-size: 0.9rem; }
  .airline-name { font-size: 0.8rem; }

  /* flight.css — better-deal phone strip */
  .bdp-inner { justify-content: center; text-align: left; }
  .bdp-call { width: 100%; justify-content: center; }
  .bdp-close { top: 8px; right: 8px; transform: none; }

  /* flight.css — booking flow */
  .ticket-container { padding: 20px 0; }
  .details-card,
  .payment-card,
  .info-box { padding: 14px; }
  .ticket-header .col-md-4.text-md-end { text-align: left !important; margin-top: 10px; }
  .barcode { font-size: 16px; letter-spacing: 1.5px; }

  /* hotel.css — list cards */
  .hl-card { grid-template-columns: 1fr; }
  .hl-media { min-height: 200px; }
  .hl-info { padding: 18px 18px 16px; }
  .hl-name { font-size: 1.15rem; }
  .hl-price { padding: 16px 18px 18px; gap: 12px; }
  .hl-fare { text-align: right; }
  .hl-fare b { font-size: 1.6rem; }
  .hl-btn { flex: 1 1 100%; text-align: center; }

  /* footer.css — login modal */
  .auth-modal .modal-dialog { margin: 12px; }
  .auth-main { padding: 28px 20px 24px; }
  .auth-tabs { margin-right: 36px; }
  .auth-close { top: 12px; right: 12px; }

  /* about.css */
  .ab-hero-points { flex-direction: column; gap: 8px; }
  .ab-window { border-width: 10px; }
  .ab-float { padding: 8px 12px 8px 8px; }
  .ab-float i { width: 34px; height: 34px; font-size: 0.9rem; }
  .ab-float-top { left: -8px; top: 24px; }
  .ab-float-bottom { right: -8px; bottom: 30px; }
  .ab-route { grid-template-columns: 1fr; }
  .ab-photo::before { inset: 12px -10px -12px 12px; }

  /* faq.css */
  .faq-search input { font-size: 0.88rem; padding: 14px 18px 14px 46px; }
  .faq-search i { left: 18px; }
  .faq-item .accordion-button { font-size: 0.94rem; padding: 16px; }
  .faq-item .accordion-body { padding: 0 16px 16px; }
  .faq-help { padding: 26px 22px; }
}

/* ====== SMALL PHONES ====== */
@media (max-width: 480px) {
  .navbar-brand img { height: 38px; }
}
@media (max-width: 420px) {
  .call-deals-btn { padding: 5px 12px 5px 5px; gap: 7px; }
  .cdb-icon { width: 32px; height: 32px; flex-basis: 32px; font-size: 14px; }
  .cdb-text small { font-size: 8.5px; }
  .cdb-text strong { font-size: 13px; }

  .call-deals-btn-compact { padding: 4px 10px 4px 4px; gap: 6px; }
  .call-deals-btn-compact .cdb-icon { width: 30px; height: 30px; flex-basis: 30px; font-size: 13px; }
  .call-deals-btn-compact .cdb-text strong { font-size: 12px; }

  .ai-summary { grid-template-columns: 1fr; }
  .ai-chip { width: 100%; }
}
@media (max-width: 360px) {
  .cdb-text small { display: none; }
  .call-deals-btn-compact .cdb-text strong { font-size: 11px; }
}

/* ====== REDUCED MOTION ====== */
@media (prefers-reduced-motion: reduce) {
  .fw-arc, .fw-map-plane, .fw-status i,
  .ai-dots i, .ai-skeleton span, .ai-sum-item { animation: none; }
  html { scroll-behavior: auto; }
  .blog-card, .blog-card-media img, .blog-recent-thumb img, .blog-readmore i { transition: none; }
  .blog-card:hover, .blog-card:hover .blog-card-media img, .blog-recent a:hover .blog-recent-thumb img { transform: none; }
}

/* ====== PRINT (flight ticket) ====== */
@page { size: A4; margin: 8mm; }
@media print {
  body { background: #fff !important; margin: 0 !important; padding: 0 !important; zoom: 1 !important; -webkit-print-color-adjust: exact; }
  header, footer, nav, .navbar, .footer, .btn { display: none !important; }
  .ticket-container { width: 100% !important; max-width: 100% !important; margin: 0 !important; padding: 0 !important; }
  .ticket { width: 100% !important; box-shadow: none !important; border-radius: 0 !important; }
  .row { display: block !important; }
  table { font-size: 10px !important; }
  .info-box { margin-bottom: 5px !important; padding: 5px !important; }
  .ticket, table, .row { page-break-inside: auto !important; }
  .flight-details-row { display: flex !important; justify-content: space-between !important; align-items: center !important; text-align: center !important; }
  .flight-details-row > div { width: 33.33% !important; }
  .flight-segment-row { display: flex !important; align-items: center !important; }
  .flight-segment-row .col-md-3 { width: 25% !important; max-width: 25% !important; flex: 0 0 25% !important; }
}
