/* Calls from the site (ТЗ 23.10.2026): pinned call button, Phone Only Deals, call pop-up,
   airline logos and reviews. Loaded on every page after app.css; uses its design tokens. */

/* --- Pinned call button (#fixcn) --------------------------------------
   app.css hides .fixcn and shows it on phones only after 450px of scroll.
   .fixcn--pinned (search page) is visible from the first screen on every size. */
.fixcn.fixcn--pinned {
  display: flex; align-items: center; gap: var(--s3);
  position: fixed; z-index: 1000;
  background: var(--emerald-800); color: var(--text-invert);
  box-shadow: 0 8px 28px rgba(7,35,30,.32);
}
.fixcn-call { display: flex; align-items: center; gap: var(--s3); color: var(--text-invert); text-decoration: none; }
.fixcn-call:hover { color: #fff; }
.fixcn-call i { font-size: 26px; color: var(--gold); }
.fixcn .deal-wrap { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.fixcn .deal-text { font-size: .78rem; opacity: .85; }
.fixcn-number { font-size: 1.25rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.fixcn-copy {
  border: 1px solid rgba(255,255,255,.45); background: transparent; color: var(--text-invert);
  border-radius: 999px; padding: 4px 12px; font-size: .75rem; cursor: pointer;
}
.fixcn-copy:hover { background: rgba(255,255,255,.12); }

@media (min-width: 768px) {
  /* A pill in the bottom-right corner that follows the reader down the list */
  .fixcn.fixcn--pinned { right: 24px; bottom: 24px; padding: 10px 12px 10px 18px; border-radius: 999px; }
}
@media (max-width: 767.98px) {
  /* Full-width bar on phones: one tap starts the call */
  .fixcn.fixcn--pinned {
    left: 0; right: 0; bottom: 0; justify-content: center;
    padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom, 0px));
  }
  .fixcn-copy { display: none; }
  body:has(.fixcn--pinned) { padding-bottom: 76px; }
}

/* --- Phone Only Deals ------------------------------------------------- */
.pod {
  background: var(--surface); border: 1px solid var(--emerald-100); border-radius: var(--radius);
  padding: var(--s4); margin-bottom: var(--s4); box-shadow: var(--shadow-sm);
}
.pod-head strong { display: block; font-size: 1.05rem; color: var(--ink); }
.pod-head span { font-size: .8rem; color: var(--text-muted); }
.pod-list { display: grid; gap: var(--s2); margin-top: var(--s3); }
.pod-card {
  display: grid; gap: 2px; padding: var(--s3); border-radius: var(--radius-sm);
  background: #f3faf6; border: 1px solid var(--emerald-100); color: var(--text); text-decoration: none;
}
.pod-card:hover { border-color: var(--emerald-500); color: var(--text); box-shadow: var(--shadow-sm); }
.pod-route { font-weight: 700; color: var(--ink); }
.pod-note { font-size: .8rem; color: var(--text-muted); }
.pod-price { font-size: .85rem; font-weight: 600; color: var(--emerald-500); }
.pod-cta { margin-top: var(--s1); display: inline-flex; gap: 6px; align-items: center; font-weight: 700; color: var(--emerald-700); }
.pod--inline { display: none; }
@media (max-width: 767.98px) {
  .pod--side { display: none; }
  /* Phones: the same cards as a compact strip above the results */
  .pod--inline { display: block; padding: var(--s3); }
  .pod--inline .pod-list { grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 2px; }
  .pod--inline .pod-card { scroll-snap-align: start; }
}

/* --- Call pop-up: a card, not a modal — the flight list stays usable ---- */
.fm-popup {
  position: fixed; z-index: 1100; left: 24px; bottom: 24px; max-width: 340px;
  background: var(--surface); border-radius: var(--radius); border-top: 4px solid var(--gold);
  box-shadow: var(--shadow-lg); padding: var(--s5) var(--s4) var(--s4);
  animation: fm-popup-in .25s ease-out;
}
@keyframes fm-popup-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.fm-popup strong { display: block; font-size: 1.1rem; color: var(--ink); margin-bottom: 6px; padding-right: 28px; }
.fm-popup p { margin: 0 0 var(--s3); font-size: .9rem; color: var(--text-muted); }
.fm-popup-call {
  display: flex; align-items: center; justify-content: center; gap: var(--s2);
  background: var(--emerald-500); color: #fff; border-radius: var(--radius-sm);
  padding: var(--s3); font-weight: 700; text-decoration: none;
}
.fm-popup-call:hover { background: var(--emerald-600); color: #fff; }
.fm-popup-x {
  position: absolute; top: 6px; right: 8px; width: 36px; height: 36px;
  border: 0; background: transparent; font-size: 24px; line-height: 1; cursor: pointer; color: var(--text-muted);
}
@media (max-width: 767.98px) {
  .fm-popup { left: 12px; right: 12px; bottom: 88px; max-width: none; }
}

/* --- Trust: airline logos and reviews (ТЗ 6) --------------------------- */
.trust-airlines { padding: var(--s7) 0; background: var(--surface); }
.trust-airlines h2, .trust-reviews h2 { font-size: 1.5rem; text-align: center; margin-bottom: var(--s5); color: var(--ink); }
/* Logo with the airline's name under it (27.10). Desktop: all twelve in one compact row. */
.trust-airlines-list { list-style: none; margin: 0; padding: 0; }
.trust-airlines-list li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.trust-airlines-list img { display: block; width: 40px; height: 40px; object-fit: contain; }
.trust-airlines-list span { font-size: .78rem; line-height: 1.2; font-weight: 600; color: var(--ink); }
@media (min-width: 992px) {
  .trust-airlines { padding: var(--s6) 0; }
  .trust-airlines h2 { margin-bottom: var(--s4); }
  .trust-airlines-list { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s3); align-items: start; }
  .trust-airlines-list--dup { display: none; }
}
/* Phones and tablets: a slow running line, one row high instead of four rows of three.
   Two identical lists slide left by exactly one list's width, so the loop has no jump. */
@media (max-width: 991.98px) {
  .trust-airlines { padding: var(--s5) 0; }
  .trust-airlines h2 { font-size: 1.25rem; margin-bottom: var(--s3); }
  .trust-airlines-viewport {
    overflow: hidden; margin: 0 calc(-1 * var(--s4));
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }
  .trust-airlines-track { display: flex; width: max-content; animation: fm-airlines 45s linear infinite; }
  .trust-airlines-viewport:hover .trust-airlines-track,
  .trust-airlines-viewport:active .trust-airlines-track { animation-play-state: paused; }
  .trust-airlines-list { display: flex; flex-shrink: 0; }
  .trust-airlines-list li { width: 96px; flex-shrink: 0; }
}
@keyframes fm-airlines { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* No motion wanted: the same row, swiped by hand */
@media (max-width: 991.98px) and (prefers-reduced-motion: reduce) {
  .trust-airlines-viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .trust-airlines-track { animation: none; }
  .trust-airlines-list--dup { display: none; }
}
.trust-reviews { padding: var(--s7) 0; background: #f6faf8; }
.trust-reviews-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s4); }
.trust-review { margin: 0; background: var(--surface); border-radius: var(--radius); padding: var(--s4); box-shadow: var(--shadow-sm); }
.trust-review blockquote { margin: var(--s2) 0; font-size: .95rem; }
.trust-review figcaption { font-size: .8rem; color: var(--text-muted); }
.trust-review-stars { color: var(--gold); letter-spacing: 2px; }

/* --- Footer company line (ТЗ 6) --------------------------------------- */
.fcompany { margin-top: var(--s3); font-size: .85rem; opacity: .85; }

/* --- Header number and the line under the home hero (ТЗ 23.10: every screen offers a call) --- */
.nav-call { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--emerald-700) !important; white-space: nowrap; }
.nav-call i { font-size: .9em; }
@media (min-width: 992px) { .nav-call-item { margin-left: var(--s3); } .nav-call { border: 1px solid var(--emerald-100); border-radius: 999px; padding: 6px 14px !important; } }
@media (max-width: 991.98px) { .nav-call-item { display: none; } }
/* Desktop header (Olha, 27.10): no "Contact us" — its place goes to "Phone-Only Deals! Call <number>"
   with an agent's face, as on the competitor's site. The burger menu on phones keeps Contact us. */
.nav-call-agent, .nav-call-label { display: none; }
@media (min-width: 992px) {
  .nav-contact-item { display: none; }
  .nav-call { padding: 4px 16px 4px 4px !important; background: #f3faf6; }
  .nav-call:hover { background: var(--emerald-100); text-decoration: none; }
  .nav-call-agent { display: block; width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; }
  .nav-call-label { display: inline; font-weight: 600; color: var(--ink); }
}
.hero-call { display: inline-flex; align-items: center; gap: var(--s3); margin-top: var(--s5); padding: 12px 20px; border-radius: var(--radius); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28); color: #fff; text-decoration: none; }
.hero-call:hover { background: rgba(255,255,255,.18); color: #fff; }
.hero-call i { font-size: 26px; color: var(--gold); }
.hero-call small { display: block; font-size: .8rem; opacity: .85; }
.hero-call b { font-size: 1.4rem; letter-spacing: .02em; }
@media (max-width: 767.98px) { .hero-call { display: none; } }
.hero-call b, .hero-call small { color: #fff !important; }

/* --- Mobile: the four help cards are call links, and say so --------------------- */
.mobile-support .features-lead { margin: 0 0 var(--s2); text-align: center; font-weight: 600; color: var(--ink); }
a.feature-card { color: var(--ink); text-decoration: none; }
a.feature-card:active, a.feature-card:hover { border-color: var(--emerald-500); background: #f3faf6; color: var(--ink); }
a.feature-card::after { content: "Call"; margin-left: auto; font-size: .75rem; font-weight: 700; color: var(--emerald-700); }

/* --- Mobile: traveller details is a full-screen sheet with Done always in reach ---
   On a phone the dropdown ran past the bottom edge under the call bar, so the
   last class and the Done button could not be reached. */
@media (max-width: 767.98px) {
  #pop {
    position: fixed; inset: 0; z-index: 1200;
    width: auto; max-width: none; border: 0; border-radius: 0;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: var(--s4) var(--s4) 0;
  }
  #pop .repbackhighttr { position: sticky; top: calc(-1 * var(--s4)); margin: calc(-1 * var(--s4)) calc(-1 * var(--s4)) var(--s4); padding: var(--s4); background: var(--surface); z-index: 2; }
  #pop .repbackhighttr i { display: inline-flex; font-size: 1.2rem; padding: 8px; cursor: pointer; color: var(--ink); }
  #pop > div:last-child, #pop #optionbtn {
    position: sticky; bottom: 0; z-index: 2;
    margin: var(--s4) calc(-1 * var(--s4)) 0; padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom, 0px));
    background: var(--surface); border-top: 1px solid var(--border-soft);
    display: flex; gap: var(--s3);
  }
  #pop #optionbtn .btncommin { flex: 1; justify-content: center; padding: 14px 16px; font-size: 1rem; }
  #pop #btn-done { background: var(--emerald-600); color: #fff; }
}

/* --- Mobile: the date picker is a full-screen sheet, like traveller details ---------
   Inline in the field it ran under the call bar, its right column spilled out of the
   card and the Return icon floated over the days. As a sheet it has the whole screen,
   two months scroll, and Reset / Done stay at the bottom. */
@media (max-width: 767.98px) {
  .desktop_view_calaender {
    position: fixed !important; inset: 0; z-index: 1200;
    width: auto !important; max-width: none !important; margin: 0;
    border: 0; border-radius: 0; box-shadow: none;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 0 var(--s4);
    left: 0 !important; right: 0 !important; top: 0 !important;
  }
  .desktop_view_calaender::before {
    content: "Choose your dates"; display: block; position: sticky; top: 0; z-index: 3;
    margin: 0 calc(-1 * var(--s4)) var(--s3); padding: var(--s4); background: var(--surface);
    border-bottom: 1px solid var(--border-soft); font: 600 1.05rem var(--font-display); color: var(--ink);
  }
  .desktop_view_calaender .ui-datepicker-multi { width: 100% !important; }
  .desktop_view_calaender .confirm-cal {
    position: sticky; bottom: 0; z-index: 3; margin: var(--s4) calc(-1 * var(--s4)) 0;
    padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom, 0px)); background: var(--surface);
  }
  .desktop_view_calaender .confirm-cal .calbtn { flex: 1; justify-content: center; padding: 14px 16px; font-size: 1rem; }
}

/* --- Mobile home: one clear call button, compact, so the search form shows on the first screen --- */
@media (max-width: 767.98px) {
  .mobile-support { padding: var(--s3) var(--s4); }
  .mobile-support .support-compact { display: flex; align-items: center; gap: var(--s3); }
  .mobile-support .agent { flex: none; width: 56px; height: 56px; margin: 0; border-radius: 50%; object-fit: cover; object-position: 60% 35%; }
  .mobile-support .support-content { text-align: left; }
  .mobile-support .support-content h4 { margin: 0 0 2px; font-size: 1rem; line-height: 1.25; text-align: left; }
  .mobile-support .support-content p { margin: 0; font-size: .85rem; color: var(--text-muted); text-align: left; }
  .support-call {
    display: flex; align-items: center; justify-content: center; gap: var(--s3); margin-top: var(--s3);
    padding: 12px 16px; border-radius: var(--radius); background: var(--emerald-600); color: #fff; text-decoration: none;
    font-weight: 600; box-shadow: 0 4px 14px rgba(7,35,30,.22);
  }
  .support-call:active { background: var(--emerald-700); color: #fff; }
  .support-call i { font-size: 1.2rem; color: var(--gold); }
  .support-call b { font-size: 1.15rem; letter-spacing: .02em; }
}
@media (min-width: 768px) { .support-call { display: none; } }

/* --- Pinned call button: 25% larger, with a light ring on the phone icon --- */
.fixcn.fixcn--pinned .fixcn-call i { font-size: 32px; position: relative; animation: fm-ring 4.5s ease-in-out infinite; transform-origin: 50% 60%; }
.fixcn.fixcn--pinned .deal-text { font-size: .975rem; }
.fixcn.fixcn--pinned .fixcn-number { font-size: 1.5625rem; }
@media (min-width: 768px) { .fixcn.fixcn--pinned { padding: 12px 15px 12px 22px; gap: 16px; box-shadow: 0 8px 28px rgba(7,35,30,.32), 0 0 0 0 rgba(240,180,41,.5); animation: fm-glow 4.5s ease-out infinite; } }
@media (max-width: 767.98px) {
  .fixcn.fixcn--pinned { padding: 15px var(--s5) calc(15px + env(safe-area-inset-bottom, 0px)); animation: fm-glow-bar 4.5s ease-out infinite; }
  body:has(.fixcn--pinned) { padding-bottom: 96px; }
}
@keyframes fm-ring {
  0%, 70%, 100% { transform: rotate(0); }
  74% { transform: rotate(14deg); } 78% { transform: rotate(-12deg); } 82% { transform: rotate(10deg); } 86% { transform: rotate(-6deg); } 90% { transform: rotate(0); }
}
@keyframes fm-glow { 0%, 60% { box-shadow: 0 8px 28px rgba(7,35,30,.32), 0 0 0 0 rgba(240,180,41,.55); } 100% { box-shadow: 0 8px 28px rgba(7,35,30,.32), 0 0 0 18px rgba(240,180,41,0); } }
@keyframes fm-glow-bar { 0%, 60% { box-shadow: 0 -4px 24px rgba(7,35,30,.28), inset 0 0 0 0 rgba(240,180,41,.0); } 80% { box-shadow: 0 -4px 24px rgba(7,35,30,.28), inset 0 3px 0 0 rgba(240,180,41,.9); } 100% { box-shadow: 0 -4px 24px rgba(7,35,30,.28), inset 0 3px 0 0 rgba(240,180,41,0); } }
@media (prefers-reduced-motion: reduce) { .fixcn.fixcn--pinned, .fixcn.fixcn--pinned .fixcn-call i { animation: none !important; } }

/* Mobile home: headline short, value points hidden, so the search form is on the first screen */
.support-call b { color: #fff; }
@media (max-width: 767.98px) {
  .three-box { display: none; }
  .hero-call { display: none; }
}
