/* Tour transit Nội Bài — /tour-transit/* */
.transit-page { max-width: 1100px; margin: 0 auto; padding: 24px 16px 48px; }
.transit-page h1 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.transit-page .card { border-radius: 10px; margin-bottom: 16px; border-color: #e5e7eb; }
.transit-page .card-header { background: #fff; font-weight: 600; border-bottom-color: #eef0f2; }
.transit-page .form-label { font-size: 14px; }
.transit-page .fs-12 { font-size: 12px; }
.transit-page .fs-13 { font-size: 13px; }
.transit-page .btn-brand, #transit-review .btn-brand { background: #70be54; border-color: #70be54; color: #fff; }
.transit-page .btn-brand:hover, .transit-page .btn-brand:focus, #transit-review .btn-brand:hover { background: #5fa845; border-color: #5fa845; color: #fff; }
.transit-page .btn-outline-brand { border-color: #70be54; color: #3f8a27; }
.transit-page .btn-outline-brand:hover { background: #70be54; color: #fff; }
.transit-page .hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.transit-page .preview-banner { background: #fff8e1; border: 1px dashed #f0b400; border-radius: 8px; padding: 8px 12px; font-size: 13px; margin-bottom: 16px; }
.transit-page .steps { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; margin: 8px 0 16px; }
.transit-page .steps span { padding: 4px 10px; border-radius: 999px; background: #f1f3f5; color: #6b7280; }
.transit-page .steps span.active { background: #70be54; color: #fff; font-weight: 600; }
.transit-page .tour-card { display: flex; gap: 16px; align-items: flex-start; }
.transit-page .tour-card img { width: 160px; height: 110px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.transit-page .slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 12px; }
.transit-page .slot { border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.transit-page .slot.available { border-color: #70be54; }
.transit-page .slot.unavailable { background: #f8f9fa; color: #6b7280; }
.transit-page .slot .time { font-size: 17px; font-weight: 700; color: #1f2937; }
.transit-page .slot.unavailable .time { color: #9ca3af; }
.transit-page .code-box { display: inline-block; font-size: 24px; font-weight: 700; letter-spacing: 1px; padding: 8px 20px; border: 2px dashed #70be54; border-radius: 8px; color: #3f8a27; }
.transit-page .pre-line { white-space: pre-line; }
.transit-page .summary dt { font-weight: 500; color: #6b7280; font-size: 13px; }
.transit-page .summary dd { margin-bottom: 8px; }
@media (max-width: 576px) {
    .transit-page .tour-card { flex-direction: column; }
    .transit-page .tour-card img { width: 100%; height: 160px; }
}

/* ---------- Revamp trang chọn khung giờ: hero ảnh nền + card tìm kiếm nổi + gợi ý chuyến bay ---------- */
.transit-hero { position: relative; min-height: 360px; display: flex; align-items: flex-end; overflow: hidden; background: linear-gradient(135deg, #2f6e1f, #70be54); color: #fff; }
.transit-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); animation: transitHeroZoom 18s ease-out forwards; }
@keyframes transitHeroZoom { to { transform: scale(1.1); } }
.transit-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 24, 12, .25) 0%, rgba(8, 24, 12, .55) 55%, rgba(8, 24, 12, .82) 100%); }
.transit-hero-inner { position: relative; max-width: 1100px; width: 100%; margin: 0 auto; padding: 48px 16px 120px; }
.transit-hero h1 { font-size: 40px; font-weight: 800; margin: 6px 0 8px; text-shadow: 0 2px 16px rgba(0, 0, 0, .35); }
.transit-hero p { font-size: 17px; max-width: 640px; margin: 0; opacity: .95; }
.transit-hero-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); padding: 4px 12px; border-radius: 999px; backdrop-filter: blur(6px); }
.transit-hero-preview { display: inline-block; margin-bottom: 12px; font-size: 13px; background: rgba(255, 200, 0, .92); color: #3d2e00; padding: 6px 12px; border-radius: 8px; }
.transit-page-overlap { margin-top: -96px; position: relative; z-index: 2; }
.transit-search-card { background: #fff; border-radius: 20px; padding: 18px 22px 20px; box-shadow: 0 24px 60px rgba(16, 40, 20, .22); }
.transit-search-card .steps { margin: 0 0 12px; }
.transit-legs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tfp-leg { border: 1px solid #e6eee3; border-radius: 14px; padding: 12px 14px; background: #fbfdfa; transition: border-color .2s, box-shadow .2s; }
.tfp-leg:focus-within { border-color: #70be54; box-shadow: 0 0 0 3px rgba(112, 190, 84, .15); }
.tfp-leg.tfp-picked { background: #f3faef; }
.tfp-leg-title { font-weight: 700; font-size: 15px; margin-bottom: 8px; color: #1f2d1b; }
.tfp-leg-icon { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: #e7f5df; align-items: center; justify-content: center; margin-right: 4px; }
.tfp-row { display: grid; grid-template-columns: 1.3fr 1.2fr .9fr; gap: 10px; }
.tfp-row-meta { grid-template-columns: auto 1fr; align-items: center; margin-top: 8px; }
.tfp-field { position: relative; min-width: 0; }
.tfp-field label { display: block; font-size: 12px; font-weight: 600; color: #5a6a55; margin-bottom: 3px; }
.tfp-field input { width: 100%; min-width: 0; box-sizing: border-box; height: 44px; border: 1px solid #d8e2d4; border-radius: 10px; padding: 0 12px; font-size: 15px; background: #fff; cursor: text; }
.tfp-field input[type=date], .tfp-field input[type=time] { cursor: pointer; }
.tfp-field input:focus { outline: none; border-color: #70be54; }
.tfp-flight input { font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.tfp-flight input::placeholder { font-weight: 400; text-transform: none; letter-spacing: 0; }
.tfp-type { width: auto; border-radius: 999px; font-size: 13px; }
.tfp-hint { font-size: 12.5px; color: #3f8a27; min-height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tfp-hint.warn { color: #b45309; white-space: normal; }
.tfp-dd { position: absolute; left: 0; top: 100%; z-index: 30; width: max(100%, 380px); max-height: 320px; overflow-y: auto; margin-top: 4px; background: #fff; border: 1px solid #e2e8df; border-radius: 12px; box-shadow: 0 18px 40px rgba(16, 40, 20, .18); }
.tfp-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer; border-bottom: 1px solid #f1f4ef; }
.tfp-item:last-child { border-bottom: none; }
.tfp-item:hover, .tfp-item.active { background: #f1f9ed; }
.tfp-item-no { font-weight: 800; color: #2f6e1f; min-width: 64px; }
.tfp-item-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tfp-item-main { font-size: 14px; color: #1f2d1b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tfp-item-sub { font-size: 12px; color: #6b7280; }
.tfp-item-time { font-weight: 700; font-size: 15px; color: #1f2d1b; }
.tfp-empty { padding: 10px 12px; font-size: 13px; color: #6b7280; }
/* Ngày dd/mm/yyyy + giờ 24h: ô text hiển thị, input date ẩn chỉ để mở lịch (transit-flight-picker.js) */
.tfp-date-field input.tfp-date-text, .tfp-time-field input.tfp-time { font-variant-numeric: tabular-nums; }
.tfp-date-field input.tfp-date-text { cursor: pointer; padding-right: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235a6a55' stroke-width='1.6' viewBox='0 0 16 16'%3E%3Crect x='2' y='3' width='12' height='11' rx='2'/%3E%3Cpath d='M2 6.5h12M5.5 1.5v3M10.5 1.5v3'/%3E%3C/svg%3E") no-repeat right 12px center; }
.tfp-date-field input.tfp-date { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.tfp-time-dd { width: 100%; min-width: 96px; max-height: 240px; }
.tfp-time-dd .tfp-item { padding: 8px 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.transit-search-bottom { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.tfp-pax { display: flex; gap: 8px; flex-wrap: wrap; }
.tfp-stepper { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #d8e2d4; border-radius: 999px; padding: 4px 6px 4px 14px; background: #fff; }
.tfp-stepper span { font-size: 13px; color: #5a6a55; margin-right: 4px; }
.tfp-stepper button { width: 30px; height: 30px; border-radius: 50%; border: none; background: #eef6ea; color: #2f6e1f; font-size: 18px; line-height: 1; cursor: pointer; }
.tfp-stepper button:hover { background: #70be54; color: #fff; }
.tfp-stepper input { width: 34px; border: none; text-align: center; font-weight: 700; font-size: 15px; -moz-appearance: textfield; background: transparent; }
.tfp-stepper input::-webkit-outer-spin-button, .tfp-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tfp-tour { width: auto; min-width: 200px; flex: 1; border-radius: 999px; height: 44px; }
.tfp-submit { border-radius: 999px; padding: 10px 28px; font-weight: 700; box-shadow: 0 10px 24px rgba(112, 190, 84, .4); }
.transit-result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 28px 0 12px; }
.transit-result-head h2 { font-size: 22px; font-weight: 800; margin: 0; }
.transit-layover-pill { background: #eef6ea; color: #2f6e1f; font-weight: 600; font-size: 14px; padding: 6px 14px; border-radius: 999px; }
.transit-tour-result { display: flex; background: #fff; border: 1px solid #e6eee3; border-radius: 18px; overflow: hidden; margin-bottom: 16px; box-shadow: 0 8px 24px rgba(16, 40, 20, .06); }
.transit-tour-result.is-unavailable { opacity: .75; }
.transit-tour-media { position: relative; width: 260px; flex-shrink: 0; background: linear-gradient(135deg, #7cc65f, #3d8a2a); }
.transit-tour-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.transit-tour-duration { position: absolute; left: 12px; top: 12px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.transit-tour-body { flex: 1; padding: 16px 18px; min-width: 0; }
.transit-tour-body h3 { font-size: 19px; font-weight: 800; margin: 0; }
.transit-tour-price { text-align: right; }
.transit-tour-price span { display: block; font-size: 12px; color: #6b7280; }
.transit-tour-price b { font-size: 20px; color: #e8553b; }
a.slot { display: block; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
a.slot.available:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(112, 190, 84, .25); }
.slot-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.slot-seats { font-size: 12px; color: #3f8a27; font-weight: 600; }
.slot-cta { font-size: 12.5px; font-weight: 700; color: #fff; background: #70be54; padding: 4px 10px; border-radius: 999px; }
@media (max-width: 900px) {
    .transit-legs { grid-template-columns: 1fr; }
    .transit-hero h1 { font-size: 30px; }
}
@media (max-width: 576px) {
    .tfp-row { grid-template-columns: 1fr 1fr; }
    .tfp-flight { grid-column: 1 / -1; }
    .tfp-dd { width: 100%; }
    .transit-tour-result { flex-direction: column; }
    .transit-tour-media { width: 100%; height: 170px; }
    .transit-search-card { padding: 14px; }
    .tfp-tour, .tfp-submit { width: 100%; }
}
