/* =====================================================================================
   Dịch vụ sân bay (pro/AirportConnect) — giao diện trang khách.

   Luật (chép từ vé vui chơi `ticket.css`, đã trả giá mới có):
   1. Mọi class tiền tố `.ap-`. ⛔ Không mượn class theme (`.row`, `.col-*`, `.btn`, `.form-control`…).
   2. Màu bám `var(--primary-color)` của theme; chữ trên nền chính qua `--ap-on-primary` (tự tính bằng OKLCH — theme VNE vàng).
   3. Nút viết `.ap-wrap .ap-btn` (đặc hiệu thắng `.ap-wrap a { color: inherit }`).
   4. ⛔ Không `!important`.
   5. Khoảng cách bội số 4px.
   ===================================================================================== */

.ap-wrap {
    --ap-vien: #e4e7ec;
    --ap-nen: #ffffff;
    --ap-nen-mo: #f6f7f9;
    --ap-chu: #1d2433;
    --ap-chu-mo: #6b7280;
    --ap-chinh: var(--primary-color, #1a73e8);
    --ap-on-primary: #ffffff;
    --ap-chinh-chu: var(--ap-chinh);
    --ap-chinh-mo: #f2f5f9;
    --ap-canh-vien: #f3d9a4;
    --ap-canh-nen: #fff8e8;
    --ap-tin-nen: #eef6ff;
    --ap-tin-vien: #c9defa;
    --ap-do: #d93025;
    --ap-do-nen: #fdecea;
    --ap-xanh: #15803d;
    --ap-xanh-nen: #e8f7ee;
    --ap-bong: 0 10px 24px rgba(16, 24, 40, .12);
    --ap-bong-nhe: 0 1px 2px rgba(16, 24, 40, .06);
    --ap-bo: 12px;
    --ap-bo-nho: 8px;
    /* `airport-chung.js` đo header dính / menu đáy của theme rồi ghi đè; không JS thì 0. */
    --ap-dinh: 0px;
    --ap-day: 0px;

    color: var(--ap-chu);
    font-size: 15px;
    line-height: 1.5;
    padding-bottom: 48px;
}

@supports (color: oklch(from red l c h)) {
    .ap-wrap {
        --ap-chinh-chu: oklch(from var(--ap-chinh) min(l, 0.52) c h);
        --ap-on-primary: oklch(from var(--ap-chinh) clamp(0, (0.68 - l) * 100, 1) 0 0);
        --ap-chinh-mo: color-mix(in srgb, var(--ap-chinh) 10%, #fff);
    }
}

.ap-wrap * { box-sizing: border-box; }
.ap-wrap a { color: inherit; text-decoration: none; }
.ap-wrap img { max-width: 100%; display: block; }
.ap-hop { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.ap-an { display: none; }

/* ── Nút ───────────────────────────────────────────────────────────────────────────── */
.ap-wrap .ap-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 8px 20px; border: 0; border-radius: var(--ap-bo-nho);
    background: var(--ap-chinh); color: var(--ap-on-primary); font: inherit; font-weight: 700; cursor: pointer;
    text-align: center;
}
.ap-wrap .ap-btn:hover { filter: brightness(.95); }
.ap-wrap .ap-btn[disabled] { opacity: .6; cursor: not-allowed; }
.ap-wrap .ap-btn.is-rong { width: 100%; }
.ap-wrap .ap-btn.is-vien { background: var(--ap-nen); color: var(--ap-chinh-chu); border: 1px solid var(--ap-vien); }
.ap-wrap .ap-link { color: var(--ap-chinh-chu); font-weight: 600; }
.ap-ic { flex: 0 0 auto; vertical-align: middle; }

/* ── Dải báo ───────────────────────────────────────────────────────────────────────── */
.ap-bao { border: 1px solid var(--ap-vien); border-radius: var(--ap-bo-nho); padding: 12px 16px; margin: 0 0 16px; background: var(--ap-nen-mo); }
.ap-bao b { display: block; margin-bottom: 4px; }
.ap-bao.is-xau { background: var(--ap-do-nen); border-color: #f5c2bd; color: #8a1c14; }
.ap-bao.is-canh { background: var(--ap-canh-nen); border-color: var(--ap-canh-vien); color: #7a4f00; }
.ap-bao.is-tin { background: var(--ap-tin-nen); border-color: var(--ap-tin-vien); color: #134e8c; }
.ap-bao.is-tot { background: var(--ap-xanh-nen); border-color: #b7e3c6; color: #0f5d2c; }

/* ── Hero + ô chọn sân bay ─────────────────────────────────────────────────────────── */
.ap-hero { background: var(--ap-chinh); color: var(--ap-on-primary); padding: 40px 0 32px; margin-bottom: 24px; position: relative; }
.ap-hero-nho { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; opacity: .85; }
.ap-hero-tieu { font-size: 30px; line-height: 1.25; margin: 4px 0 8px; color: inherit; font-weight: 800; }
.ap-hero-phu { margin: 0 0 20px; opacity: .9; max-width: 720px; }
.ap-tim { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; max-width: 720px; }
.ap-sb { position: relative; flex: 1 1 320px; }
.ap-sb-select, .ap-sb-o {
    width: 100%; min-height: 48px; padding: 8px 16px; border: 0; border-radius: var(--ap-bo-nho);
    background: var(--ap-nen); color: var(--ap-chu); font: inherit;
}
.ap-sb-o { display: none; }
.ap-sb.is-js .ap-sb-select { display: none; }
.ap-sb.is-js .ap-sb-o { display: block; }
.ap-sb-ds {
    position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px); max-height: 320px; overflow-y: auto;
    background: var(--ap-nen); color: var(--ap-chu); border-radius: var(--ap-bo-nho); box-shadow: var(--ap-bong); padding: 8px 0;
}
.ap-sb-ds[hidden] { display: none; }
.ap-sb-nhom { padding: 8px 16px 4px; font-size: 12px; font-weight: 700; color: var(--ap-chu-mo); text-transform: uppercase; }
.ap-sb-muc { display: flex; gap: 8px; width: 100%; padding: 8px 16px; border: 0; background: none; text-align: left; font: inherit; cursor: pointer; color: inherit; }
.ap-sb-muc b { min-width: 44px; color: var(--ap-chinh-chu); }
.ap-sb-muc:hover, .ap-sb-muc.is-dang { background: var(--ap-chinh-mo); }
.ap-sb-rong { padding: 8px 16px; color: var(--ap-chu-mo); }
.ap-wrap .ap-hero .ap-btn { background: var(--ap-nen); color: var(--ap-chinh-chu); min-height: 48px; }

/* ── Tab loại + chip lọc ───────────────────────────────────────────────────────────── */
.ap-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; }
.ap-tab {
    flex: 0 0 auto; display: inline-flex; gap: 8px; align-items: center; padding: 8px 16px; border-radius: 999px;
    border: 1px solid var(--ap-vien); background: var(--ap-nen); font-weight: 600; white-space: nowrap;
}
.ap-tab small { color: var(--ap-chu-mo); font-weight: 400; }
.ap-tab.is-chon { background: var(--ap-chinh); border-color: var(--ap-chinh); color: var(--ap-on-primary); }
.ap-tab.is-chon small { color: inherit; opacity: .85; }
.ap-dem { color: var(--ap-chu-mo); margin: 0 0 12px; font-size: 14px; }

/* ── Lưới trang danh sách: cột lọc trái + cột kết quả (khuôn vé vui chơi `.tc-ds-luoi`) ─────────────────── */
.ap-ds-luoi { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 32px; align-items: start; padding: 8px 0 48px; }
.ap-ds-chinh { min-width: 0; }

/* Nút nổi "Bộ lọc", nền tối, đầu + chân bảng trượt: chỉ ở khổ hẹp KHI CÓ JS (xem @media cuối mục). */
.ap-loc-mo, .ap-loc-nen, .ap-cl-dau, .ap-cl-chan { display: none; }

.ap-cot-loc { position: sticky; top: calc(var(--ap-dinh) + 16px); display: flex; flex-direction: column; gap: 16px; }
.ap-cl-than { display: flex; flex-direction: column; gap: 16px; }
.ap-cl-the { border: 1px solid var(--ap-vien); border-radius: var(--ap-bo); background: var(--ap-nen); box-shadow: var(--ap-bong-nhe); overflow: hidden; }
.ap-cl-the-dau { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--ap-vien); font-size: 15px; }
.ap-wrap .ap-cl-xoa { font-size: 13px; font-weight: 600; color: var(--ap-chinh-chu); }
.ap-wrap .ap-cl-xoa:hover { text-decoration: underline; }
.ap-cl-nhom { padding: 16px 20px; }
.ap-cl-nhom + .ap-cl-nhom { border-top: 1px solid var(--ap-nen-mo); }
.ap-cl-nhom-ten { margin: 0 0 8px; font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--ap-chu); }
.ap-cl-ds { margin: 0; padding: 0; list-style: none; }
.ap-wrap .ap-cl-muc { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 14px; line-height: 20px; color: var(--ap-chu); }
.ap-wrap .ap-cl-muc:hover .ap-cl-chu { color: var(--ap-chinh-chu); }
/* Chấm TRÒN — mỗi mặt lọc chỉ chọn MỘT giá trị. */
.ap-cl-cham { position: relative; flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #c4c9d2; background: var(--ap-nen); transition: border-color .15s; }
.ap-cl-muc:hover .ap-cl-cham, .ap-cl-muc.is-now .ap-cl-cham { border-color: var(--ap-chinh); }
.ap-cl-muc.is-now .ap-cl-cham::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--ap-chinh); }
.ap-cl-muc.is-now .ap-cl-chu { font-weight: 600; }
.ap-cl-chu { flex: 1 1 auto; min-width: 0; }
.ap-cl-so { flex: 0 0 auto; padding: 0 8px; border-radius: 999px; background: var(--ap-nen-mo); font-size: 12px; line-height: 20px; color: var(--ap-chu-mo); }
.ap-cl-them summary { cursor: pointer; padding: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--ap-chinh-chu); list-style: none; }
.ap-cl-them summary::-webkit-details-marker { display: none; }
.ap-cl-them summary::after { content: " ▾"; }
.ap-cl-them[open] summary { display: none; }

/* Thẻ hỗ trợ đặt dịch vụ */
.ap-wrap .ap-tu-van { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--ap-bo); background: var(--ap-chinh); color: var(--ap-on-primary); box-shadow: var(--ap-bong-nhe); }
.ap-tu-van-ic { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.ap-tu-van-chu { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ap-tu-van-nhan { font-size: 13px; opacity: .9; }
.ap-tu-van-so { font-size: 18px; font-weight: 800; letter-spacing: .4px; }

html.ap-khoa-cuon, html.ap-khoa-cuon body { overflow: hidden; }

@media (max-width: 1023.98px) {
    .ap-ds-luoi { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .ap-cot-loc { position: static; }

    /* CÓ JS: thu cột lọc vào bảng trượt từ đáy (không JS: cột nằm thẳng trên danh sách). */
    .ap-co-js .ap-cot-loc {
        position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 1002;
        display: flex; flex-direction: column; gap: 0;
        max-height: 86vh; max-height: 86dvh;
        border-radius: 16px 16px 0 0; background: var(--ap-nen);
        box-shadow: 0 -12px 32px rgba(16, 24, 40, .18);
        transform: translateY(100%); visibility: hidden;
        transition: transform .25s ease, visibility 0s linear .25s;
    }
    .ap-co-js .ap-cot-loc.is-mo { transform: none; visibility: visible; transition: transform .25s ease, visibility 0s; }
    .ap-co-js .ap-cl-dau { display: block; flex: 0 0 auto; padding: 12px 16px; border-bottom: 1px solid var(--ap-vien); }
    .ap-cl-keo { display: block; width: 40px; height: 4px; margin: 0 auto 12px; border-radius: 999px; background: #c4c9d2; }
    .ap-cl-dau-hang { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 16px; }
    .ap-wrap .ap-cl-dong {
        display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; margin: 0 -8px 0 0;
        border: 0; border-radius: 50%; background: transparent; color: var(--ap-chu); cursor: pointer;
    }
    .ap-wrap .ap-cl-dong:hover { background: var(--ap-nen-mo); }
    .ap-co-js .ap-cl-than { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 8px 16px 16px; }
    .ap-co-js .ap-cl-the { border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
    .ap-co-js .ap-cl-the-dau { display: none; }
    .ap-co-js .ap-cl-nhom { padding: 12px 0; }
    .ap-co-js .ap-cl-muc { min-height: 44px; }
    .ap-co-js .ap-cl-chan {
        display: flex; align-items: center; gap: 12px; flex: 0 0 auto;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--ap-vien); background: var(--ap-nen);
    }
    .ap-wrap .ap-cl-chan-xoa {
        display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
        border: 1.5px solid var(--ap-vien); border-radius: var(--ap-bo-nho); font-weight: 600; color: var(--ap-chu-mo);
    }
    .ap-wrap .ap-cl-chan-nut { flex: 1 1 auto; min-height: 44px; }
    .ap-co-js .ap-loc-nen {
        display: block; position: fixed; inset: 0; z-index: 1001; background: rgba(16, 24, 40, .45);
        opacity: 0; pointer-events: none; transition: opacity .25s ease;
    }
    .ap-co-js .ap-loc-nen.is-mo { opacity: 1; pointer-events: auto; }
    .ap-wrap.ap-co-js .ap-loc-mo {
        display: inline-flex; align-items: center; gap: 8px;
        /* Đứng TRÊN menu đáy của theme (`--ap-day` do airport-chung.js đo); không có thì chừa vùng an toàn iPhone. */
        position: fixed; left: 50%; bottom: calc(16px + max(var(--ap-day), env(safe-area-inset-bottom, 0px))); z-index: 1000;
        transform: translateX(-50%);
        min-height: 44px; padding: 0 20px; margin: 0;
        border: 1.5px solid #c4c9d2; border-radius: 999px; background: var(--ap-nen); color: var(--ap-chu);
        font: inherit; font-size: 14px; font-weight: 700; box-shadow: 0 8px 24px rgba(16, 24, 40, .18); cursor: pointer;
    }
    .ap-loc-mo-so {
        display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 4px;
        border-radius: 999px; background: var(--ap-chinh); color: var(--ap-on-primary); font-size: 12px; line-height: 1;
    }
    /* Chừa chỗ cho nút nổi ⇒ thẻ / phân trang cuối không bị che. */
    .ap-co-js .ap-ds-luoi { padding-bottom: 88px; }
}

/* ── Lưới thẻ ──────────────────────────────────────────────────────────────────────── */
.ap-luoi { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ap-the {
    display: flex; flex-direction: column; background: var(--ap-nen); border: 1px solid var(--ap-vien);
    border-radius: var(--ap-bo); overflow: hidden; box-shadow: var(--ap-bong-nhe); transition: box-shadow .15s, transform .15s;
}
.ap-the:hover { box-shadow: var(--ap-bong); transform: translateY(-2px); }
.ap-the-anh { aspect-ratio: 4 / 3; background: var(--ap-chinh-mo); position: relative; }
.ap-the-anh img { width: 100%; height: 100%; object-fit: cover; }
.ap-the-anh .ap-the-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--ap-chinh-chu); opacity: .5; }
.ap-the-loai { position: absolute; left: 12px; top: 12px; background: var(--ap-nen); border-radius: 999px; padding: 2px 12px; font-size: 12px; font-weight: 700; }
.ap-the-than { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ap-the-ten { font-size: 17px; font-weight: 700; line-height: 1.35; margin: 0; }
.ap-the-sb { display: flex; flex-wrap: wrap; gap: 4px; font-size: 13px; color: var(--ap-chu-mo); }
.ap-the-sb span { border: 1px solid var(--ap-vien); border-radius: 4px; padding: 0 8px; }
.ap-the-tt { font-size: 14px; color: var(--ap-chu-mo); margin: 0; }
.ap-the-gia { margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--ap-vien); display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ap-the-gia small { color: var(--ap-chu-mo); }
.ap-the-gia b { font-size: 18px; color: var(--ap-chinh-chu); }
.ap-rong { text-align: center; padding: 48px 16px; border: 1px dashed var(--ap-vien); border-radius: var(--ap-bo); background: var(--ap-nen-mo); }
.ap-rong b { display: block; font-size: 17px; margin-bottom: 8px; }
.ap-trang { display: flex; justify-content: center; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.ap-trang a, .ap-trang span { min-width: 40px; padding: 8px 12px; border: 1px solid var(--ap-vien); border-radius: var(--ap-bo-nho); text-align: center; }
.ap-trang .is-chon { background: var(--ap-chinh); border-color: var(--ap-chinh); color: var(--ap-on-primary); }

/* ── Trang chi tiết ────────────────────────────────────────────────────────────────── */
.ap-duong { font-size: 13px; color: var(--ap-chu-mo); margin: 16px 0; display: flex; flex-wrap: wrap; gap: 4px; }
.ap-duong a:hover { color: var(--ap-chinh-chu); }
.ap-ct-dau h1 { font-size: 28px; line-height: 1.25; margin: 0 0 8px; font-weight: 800; }
.ap-ct-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ap-nhan { display: inline-flex; align-items: center; gap: 4px; padding: 2px 12px; border-radius: 999px; background: var(--ap-chinh-mo); color: var(--ap-chinh-chu); font-size: 13px; font-weight: 600; }
.ap-ct { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
.ap-gal { display: grid; gap: 8px; grid-template-columns: 2fr 1fr; grid-auto-rows: 160px; border-radius: var(--ap-bo); overflow: hidden; margin-bottom: 24px; }
.ap-gal figure { margin: 0; background: var(--ap-chinh-mo); }
.ap-gal figure:first-child { grid-row: span 2; }
.ap-gal img { width: 100%; height: 100%; object-fit: cover; }
.ap-gal.is-mot { grid-template-columns: 1fr; grid-auto-rows: 320px; }
.ap-gal.is-mot figure:first-child { grid-row: auto; }
.ap-muc { background: var(--ap-nen); border: 1px solid var(--ap-vien); border-radius: var(--ap-bo); padding: 20px; margin-bottom: 16px; }
.ap-muc h2 { font-size: 18px; margin: 0 0 12px; font-weight: 700; }
.ap-muc-noi { overflow-wrap: anywhere; }
.ap-muc-noi ul, .ap-muc-noi ol { padding-left: 20px; margin: 0 0 8px; }
.ap-muc-noi p { margin: 0 0 8px; }
.ap-khong-hoan { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: #7a4f00; background: var(--ap-canh-nen); border: 1px solid var(--ap-canh-vien); border-radius: var(--ap-bo-nho); padding: 8px 12px; margin: 12px 0; }

.ap-hop-mua { position: sticky; top: calc(var(--ap-dinh) + 16px); background: var(--ap-nen); border: 1px solid var(--ap-vien); border-radius: var(--ap-bo); box-shadow: var(--ap-bong); padding: 20px; }
.ap-hop-mua h2 { font-size: 18px; margin: 0 0 4px; font-weight: 700; }
.ap-gia-tu { margin-bottom: 16px; color: var(--ap-chu-mo); font-size: 14px; }
.ap-gia-tu b { color: var(--ap-chinh-chu); font-size: 22px; }
.ap-o { margin-bottom: 16px; }
.ap-o > label, .ap-o-nhan { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.ap-o-goi { font-size: 13px; color: var(--ap-chu-mo); margin-top: 4px; }
.ap-input, .ap-select, .ap-textarea {
    width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--ap-vien); border-radius: var(--ap-bo-nho);
    background: var(--ap-nen); color: var(--ap-chu); font: inherit;
}
.ap-textarea { min-height: 72px; resize: vertical; }
.ap-input:focus, .ap-select:focus, .ap-textarea:focus { outline: 2px solid var(--ap-chinh); outline-offset: 0; border-color: transparent; }
.ap-ky { display: grid; gap: 8px; }
.ap-ky-muc { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--ap-vien); border-radius: var(--ap-bo-nho); cursor: pointer; }
.ap-ky-muc input { margin-top: 4px; accent-color: var(--ap-chinh); }
.ap-ky-muc:has(input:checked) { border-color: var(--ap-chinh); background: var(--ap-chinh-mo); }
.ap-ky-chu { flex: 1; display: flex; flex-direction: column; }
.ap-ky-chu small { color: var(--ap-chu-mo); }
.ap-ky-gia { font-weight: 700; color: var(--ap-chinh-chu); white-space: nowrap; }
.ap-so-hang { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.ap-so-hang + .ap-so-hang { border-top: 1px solid var(--ap-vien); }
.ap-so-hang small { display: block; color: var(--ap-chu-mo); }
.ap-so { display: inline-flex; align-items: center; border: 1px solid var(--ap-vien); border-radius: var(--ap-bo-nho); overflow: hidden; }
.ap-so button { width: 40px; height: 40px; border: 0; background: var(--ap-nen-mo); font-size: 20px; cursor: pointer; color: var(--ap-chu); }
.ap-so button[disabled] { opacity: .4; cursor: not-allowed; }
.ap-so input { width: 56px; height: 40px; border: 0; text-align: center; font: inherit; font-weight: 700; -moz-appearance: textfield; }
.ap-so input::-webkit-outer-spin-button, .ap-so input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ap-ten-ds { display: grid; gap: 8px; }
.ap-tam-tinh { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 12px 0; border-top: 1px dashed var(--ap-vien); margin-top: 8px; }
.ap-tam-tinh b { font-size: 20px; color: var(--ap-chinh-chu); }
.ap-buoc2 { border-top: 1px solid var(--ap-vien); margin-top: 8px; padding-top: 16px; }
/* Thanh "Mua ngay" ở đáy (< 992px) — đứng NGAY TRÊN menu đáy của theme (`--ap-day` do airport-chung.js đo) và z-index 900 như thanh
   "Chọn vé" của vé vui chơi: đo thật 26/11/2026 trên HotelHub, bong bóng hotline / WhatsApp nổi `.gfx_hotline` (z-index 99) ĐÈ lên nút
   "Mua ngay" khi thanh để z-index thấp. */
.ap-day {
    display: none; position: fixed; left: 0; right: 0; bottom: var(--ap-day); z-index: 900;
    background: var(--ap-nen); border-top: 1px solid var(--ap-vien); box-shadow: 0 -6px 16px rgba(16, 24, 40, .08);
    padding: 8px 16px; align-items: center; justify-content: space-between; gap: 12px;
}
.ap-day b { color: var(--ap-chinh-chu); font-size: 18px; }

/* ── Thanh toán + hoàn tất ─────────────────────────────────────────────────────────── */
.ap-buoc { display: flex; gap: 16px; flex-wrap: wrap; margin: 24px 0 16px; font-size: 14px; color: var(--ap-chu-mo); }
.ap-buoc span { display: inline-flex; align-items: center; gap: 8px; }
.ap-buoc i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--ap-nen-mo); border: 1px solid var(--ap-vien); font-size: 12px; font-weight: 700; }
.ap-buoc .is-dang { color: var(--ap-chu); font-weight: 700; }
.ap-buoc .is-dang i, .ap-buoc .is-xong i { background: var(--ap-chinh); border-color: var(--ap-chinh); color: var(--ap-on-primary); }
.ap-tt { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
.ap-the-hop { background: var(--ap-nen); border: 1px solid var(--ap-vien); border-radius: var(--ap-bo); padding: 20px; margin-bottom: 16px; }
.ap-the-hop h2, .ap-the-hop h3 { font-size: 18px; margin: 0 0 12px; font-weight: 700; }
.ap-tt-phai { position: sticky; top: calc(var(--ap-dinh) + 16px); }
.ap-gw-opt { border: 1px solid var(--ap-vien); border-radius: var(--ap-bo-nho); margin-bottom: 8px; }
.ap-gw-opt label { display: flex; gap: 12px; align-items: center; padding: 12px 16px; cursor: pointer; margin: 0; font-weight: 600; }
.ap-gw-opt input { accent-color: var(--ap-chinh); }
.ap-gw-opt.is-chon { border-color: var(--ap-chinh); background: var(--ap-chinh-mo); }.ap-gw-mo-ta { display: none; padding: 0 16px 12px 44px; font-size: 14px; color: var(--ap-chu-mo); }
.ap-gw-opt.is-chon .ap-gw-mo-ta { display: block; }
.ap-tt-ten { font-weight: 700; font-size: 16px; }
.ap-tt-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; margin: 12px 0; }
.ap-tt-dl dt { color: var(--ap-chu-mo); font-weight: 400; }
.ap-tt-dl dd { margin: 0; text-align: right; font-weight: 600; }
.ap-tt-cong { border-top: 1px solid var(--ap-vien); padding-top: 12px; display: grid; gap: 4px; font-size: 14px; }
.ap-tt-cong div { display: flex; justify-content: space-between; gap: 8px; }
.ap-tt-cong .is-tong { font-size: 18px; font-weight: 800; border-top: 1px dashed var(--ap-vien); padding-top: 8px; margin-top: 4px; }
.ap-tt-cong .is-tong span:last-child { color: var(--ap-chinh-chu); }
.ap-tt-khach { font-size: 14px; color: var(--ap-chu-mo); border-top: 1px solid var(--ap-vien); margin-top: 12px; padding-top: 12px; }
.ap-tt-khach ol { margin: 4px 0 0; padding-left: 20px; color: var(--ap-chu); }
.ap-xong { text-align: center; padding: 32px 20px; }
.ap-xong-ic { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; background: var(--ap-xanh-nen); color: var(--ap-xanh); }
.ap-xong-ic.is-cho { background: var(--ap-canh-nen); color: #b45309; }
.ap-xong h1 { font-size: 24px; margin: 0 0 8px; }

/* ── Khối trang chủ ────────────────────────────────────────────────────────────────── */
.ap-khoi-dau { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.ap-khoi-dau h2 { margin: 0; font-size: 26px; font-weight: 800; }
.ap-khoi-dau p { margin: 4px 0 0; color: var(--ap-chu-mo); }

@media (max-width: 991px) {
    .ap-ct, .ap-tt { grid-template-columns: minmax(0, 1fr); }
    .ap-hop-mua, .ap-tt-phai { position: static; }
    .ap-day { display: flex; }
    .ap-wrap.co-day { padding-bottom: calc(88px + var(--ap-day)); }
}
@media (max-width: 767px) {
    .ap-hero { padding: 28px 0 24px; }
    .ap-hero-tieu { font-size: 24px; }
    .ap-ct-dau h1 { font-size: 22px; }
    .ap-gal { grid-template-columns: 1fr; grid-auto-rows: 220px; }
    .ap-gal figure:first-child { grid-row: auto; }
    .ap-gal figure:nth-child(n+2) { display: none; }
    .ap-luoi { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
}

/* ── P4 — trang hoàn tất. Thẻ voucher: voucher-card.css (lớp `apv-*`, 01/12/2026); ở đây chỉ còn hàng thao tác dưới thẻ. ─── */
.ap-vc-tt { font-weight: 600; color: var(--ap-xanh); }
.ap-wrap .ap-vc-chep { border: 1px solid var(--ap-vien); background: var(--ap-nen); color: var(--ap-chu); border-radius: 6px; padding: 4px 10px; font-size: 13px; cursor: pointer; }
.ap-wrap .ap-btn-pdf { display: inline-block; padding: 10px 18px; border-radius: 8px; background: var(--ap-chinh); color: var(--ap-on-primary); font-weight: 600; text-decoration: none; }
