/* Airlife Travels - responsive fixes for the public website (Batch H, Oct 2026).
   Loaded in <head> on every public page (includes/head-tags.php), so the header is drawn
   correctly from the first moment (no jumping). Rules use "html body" + !important so they
   win over each page's own styles. */

/* ── HEADER (desktop): logo left, menu exactly in the middle, phone + WhatsApp + buttons right.
      Sizes grow and shrink with the screen, so nothing overlaps at any width or zoom level. ── */
@media (min-width: 1100px) {
    html body .cs-nav-inner {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr !important;
        column-gap: clamp(10px, 1.2vw, 28px) !important;
    }
    html body .cs-logo { justify-self: start !important; }
    html body .cs-logo img { height: clamp(62px, 5.4vw, 104px) !important; max-width: none !important; }
    html body .cs-menu {
        justify-self: center !important;
        width: auto !important;
        gap: clamp(2px, .7vw, 16px) !important;
    }
    html body .cs-menu > li > a {
        padding: 6px clamp(6px, .75vw, 14px) !important;
        font-size: clamp(10.5px, .8vw, 12.5px) !important;
    }
    html body .cs-actions { justify-self: end !important; gap: clamp(4px, .45vw, 8px) !important; min-width: 0 !important; }
    html body .cs-contact-btns {
        gap: clamp(8px, .9vw, 14px) !important;
        padding-right: clamp(6px, .7vw, 12px) !important;
        margin-right: clamp(2px, .3vw, 4px) !important;
    }
    html body .cs-contact-btn { gap: 5px !important; }
    html body .cs-contact-btn .cs-contact-number,
    html body .cs-contact-btn .cs-contact-label {
        display: inline !important;
        font-size: clamp(11.5px, .85vw, 16px) !important;
    }
    html body .cs-contact-icon { font-size: clamp(14px, 1vw, 18px) !important; }
    html body .cs-btn-login,
    html body .cs-btn-register,
    html body .cs-btn-bookings {
        font-size: clamp(10.5px, .75vw, 13px) !important;
        padding: clamp(6px, .45vw, 8px) clamp(8px, .8vw, 14px) !important;
        white-space: nowrap !important;
    }
    html body .cs-user-trigger { max-width: clamp(150px, 13vw, 240px) !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ── HEADER (992-1099px, e.g. small laptops or a zoomed-in browser): there is not enough room for the
      full menu + phone number + WhatsApp + buttons, so the mobile menu button is used (same as tablets). ── */
@media (min-width: 992px) and (max-width: 1099px) {
    html body .cs-menu,
    html body .cs-actions { display: none !important; }
    html body .cs-hamburger { display: flex !important; }
    html body .cs-drawer { display: flex !important; }
    html body .cs-overlay.open { display: block !important; }
    html body .cs-nav-inner {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
}

/* ── UMRAH PACKAGES: page uses the full screen width; as many cards per row as fit
      (1 on mobile, 2 on laptops, 3 on big screens, 4+ on 23"+ screens or when zoomed out). ── */
@media (min-width: 992px) {
    html body .wrap:has(> #sidebar) { max-width: 2400px !important; }
    html body #packagesList.card-layout {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)) !important;
        gap: 14px !important;
    }
}
@media (max-width: 991px) {
    html body #packagesList.card-layout { grid-template-columns: 1fr !important; }
}

/* ── General safety on small screens ── */
@media (max-width: 767px) {
    html body img, html body video { max-width: 100%; height: auto; }
    html body table { max-width: 100%; }
    html body .table-responsive, html body .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    html body input, html body select, html body textarea { max-width: 100%; }
}

/* ── UMRAH CALCULATOR (Make Your Package): the Price Summary box must never be cut off on the right.
      The form column may shrink, the summary box adapts to the screen, big screens use more width. ── */
@media (min-width: 1201px) {
    html body .calc-wrap {
        grid-template-columns: minmax(0, 1fr) clamp(300px, 24vw, 400px) !important;
        max-width: 1800px !important;
    }
    html body .calc-wrap > .form-col { min-width: 0 !important; }
}
@media (min-width: 1201px) and (max-width: 1440px) {
    html body .calc-wrap { padding: 24px 16px !important; gap: 18px !important; }
    html body .calc-wrap .hotel-row {
        grid-template-columns: minmax(90px, .9fr) minmax(150px, 1.6fr) minmax(60px, .55fr) minmax(140px, 1.35fr) minmax(120px, 1fr) 38px !important;
    }
}
@media (max-width: 1200px) {
    html body .calc-wrap { grid-template-columns: minmax(0, 1fr) !important; }
    html body .calc-wrap > * { min-width: 0 !important; max-width: 100% !important; }
}
