﻿/*
 * Responsive breakpoints (booking form)
 * narrow: container ≤767px — stack grids, full-width CTA (hnl-bf-wrap inline-size)
 * xs-tabs: container ≤380px — horizontal scroll tabs
 * md: container width 768–1023px — 2×2 form grid, flight row wrap
 * lg: viewport ≥1024px — default multi-column grids
 * xl: viewport ≥1280px — cap inner card width for readability
 */
.hnl-bf-wrap {
    --qb-accent: #1a73e8;
    --qb-accent-hover: #155ec5;
    --qb-accent-active: #1249a8;
    --hnl-bf-control-min-height: 56px;
    --qb-ink: #191e3b;
    --qb-ink-soft: #4a4f6e;
    --qb-line: #dfe1e8;
    --qb-line-soft: #edeef2;
    --md-error: #b3261e;
    --md-surface: #ffffff;
    width: 100%;
    max-width: none;
    background: #F8FAFC;
    margin: 0 auto;
    padding: 1.5rem max(1.5rem, env(safe-area-inset-left, 0px)) 2rem max(1.5rem, env(safe-area-inset-right, 0px));
    container-type: inline-size;
    container-name: hnl-bf;
    min-width: 0;
    overflow-x: clip; /* 내부 요소가 비져 나도 페이지 가로 스크롤 방지 */
}
.hnl-bf-wrap--page { background: transparent; }
.hnl-bf {
    background: #ffffff;
    border: 1px solid var(--qb-line);
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 1px 4px rgba(25, 30, 59, 0.06);
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.hnl-bf-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.hnl-bf-tab {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 11px 16px;
    border: 1px solid var(--qb-line);
    border-radius: 999px;
    background: #fff;
    color: var(--qb-ink-soft);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    opacity: 0.85;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s, opacity 0.15s;
    font-family: inherit;
}
@media (min-width: 768px) {
    .hnl-bf-tab { flex: 1 1 auto; }
}
/* Narrow card (container ≤767px): layout stacks; viewport-only rules stay in @media below */
@container hnl-bf (max-width: 767px) {
    .hnl-bf-tab {
        flex: 1 1 calc(50% - 5px);
    }
    .hnl-bf-form-row {
        grid-template-columns: 1fr;
    }
    .hnl-bf-airline-flight-row {
        grid-template-columns: 1fr;
    }
    .hnl-bf-flight-row {
        grid-template-columns: 1fr;
    }
    .hnl-bf-search-row {
        justify-content: stretch;
    }
    .hnl-bf-btn {
        width: 100%;
    }
    .hnl-bf-contact-grid {
        grid-template-columns: 1fr;
    }
}
/* Very narrow card: single-row scrollable tabs (long labels / small embeds) */
@container hnl-bf (max-width: 380px) {
    .hnl-bf-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        gap: 8px;
        padding-bottom: 6px;
        margin-inline: -2px;
        padding-inline: 2px;
    }
    .hnl-bf-tab {
        flex: 0 0 auto;
        min-width: 9.5rem;
    }
}
/* md card width: 2×2 form grid + flight row wrap (viewport-independent; beats narrow embed on wide screens) */
@container hnl-bf (min-width: 768px) and (max-width: 1023px) {
    .hnl-bf-form-row {
        grid-template-columns: 1fr 1fr;
    }
    #hnlBfFlightRow {
        grid-template-columns: 1fr 1fr;
    }
    #hnlBfFlightRow:not(.hnl-bf-flight-row--two) #hnlBfFieldTime {
        grid-column: 1 / -1;
    }
}
.hnl-bf-tab:hover {
    border-color: #64748b;
    color: var(--qb-ink);
    opacity: 1;
}
.hnl-bf-tab.active {
    background: var(--qb-ink);
    border-color: var(--qb-ink);
    color: #ffffff;
    opacity: 1;
}
.hnl-bf-tab svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
    flex-shrink: 0;
}

/* transit-style form row (2×2 grid on desktop and md, 1col on mobile) */
.hnl-bf-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
    min-width: 0;
}
.hnl-bf-form-row--single {
    grid-template-columns: 1fr;
}
.hnl-bf-field {
    position: relative;
    background: #fff;
    border: 1px solid var(--qb-line);
    border-radius: 10px;
    padding: 7px 12px 7px 44px;
    min-height: var(--hnl-bf-control-min-height, 56px);
    min-width: 0;
    transition: border-color 0.15s;
    cursor: default;
}
.hnl-bf-field.focused {
    border-color: var(--qb-accent);
}
/* :focus-within으로 select/input 키보드·마우스 포커스 모두에 둥근 ring 적용.
   카드의 border-radius:10px을 따라 자연스럽게 둥글게 그려짐. */
.hnl-bf-field:focus-within {
    border-color: var(--qb-accent);
    box-shadow: 0 0 0 2px var(--qb-accent);
}
.hnl-bf-field--ac {
    cursor: text;
}
.hnl-bf-field-icon {
    position: absolute;
    left: 14px;
    top: 18px;
    width: 20px;
    height: 20px;
    color: #6c7189;
    pointer-events: none;
}
.hnl-bf-field.focused .hnl-bf-field-icon {
    color: var(--qb-accent);
}
.hnl-bf-field-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}
/* Pickup/drop use filled path icons (plane, pin, building); keep stroke icons elsewhere */
#hnlBf #hnlBfFieldPickup .hnl-bf-field-icon svg,
#hnlBf #hnlBfFieldDrop .hnl-bf-field-icon svg {
    fill: currentColor;
    stroke: none;
}
.hnl-bf-field-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    color: #5f6368;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
}
.hnl-bf-field-input {
    width: 100%;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: var(--qb-ink);
    border: none;
    background: transparent;
    outline: none;
    padding: 0;
}
.hnl-bf-field-input::placeholder {
    color: #9ca0b3;
    font-weight: 500;
}
.hnl-bf-field-input:read-only {
    cursor: default;
    color: var(--qb-ink-soft);
}
.hnl-bf-field-input:focus-visible {
    outline: none;
}
.hnl-bf-ac-inner {
    position: relative;
    min-width: 0;
}
.hnl-bf-drop-loc-trigger {
    width: 100%;
    min-height: 1.5em; /* 폰트 크기 비례로 안정화. focus 시 점프 방지 */
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: var(--qb-ink);
    text-align: left;
    cursor: pointer;
    display: block;
}
.hnl-bf-drop-loc-trigger:disabled {
    cursor: default;
    color: var(--qb-ink-soft);
}
.hnl-bf-drop-loc-trigger-text {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hnl-bf-drop-loc-trigger-text--empty {
    color: #9ca0b3;
    font-weight: 500;
}
.hnl-bf-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: -44px;
    right: -12px;
    background: #fff;
    border: 1px solid var(--qb-line);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(25, 30, 59, 0.1);
    z-index: 10000;
    max-height: 220px;
    overflow-y: auto;
}
.hnl-bf-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--qb-line-soft);
}
.hnl-bf-item:last-child { border-bottom: none; }
.hnl-bf-item:hover { background: rgba(26, 115, 232, 0.07); }
.hnl-bf-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--qb-ink);
}
.hnl-bf-item-address {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.35;
    color: #5c6378;
}
.hnl-bf-no-result {
    padding: 16px;
    text-align: center;
    color: #6c7189;
    font-size: 13px;
}

/* Drop-off location search modal (hnl_location_search) */
.hnl-bf-loc-modal {
    position: fixed;
    inset: 0;
    z-index: 10090;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}
.hnl-bf-loc-modal.hnl-bf-loc-modal--open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.hnl-bf-loc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(25, 30, 59, 0.45);
}
.hnl-bf-loc-modal-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    max-height: min(90dvh, 720px);
    margin: 0 auto;
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 40px rgba(25, 30, 59, 0.18);
    display: flex;
    flex-direction: column;
    transform: translateY(10px);
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.hnl-bf-loc-modal.hnl-bf-loc-modal--open .hnl-bf-loc-modal-panel {
    transform: translateY(0);
}
/* Mobile + Tablet portrait: near full-viewport sheet (OTA-style); close via header X or backdrop */
@media (max-width: 767px) {
    .hnl-bf-loc-modal-panel {
        max-width: none;
        width: 100%;
        border-radius: 0;
        height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        overflow: hidden;
    }
    .hnl-bf-loc-modal-footer {
        display: none;
    }
    .hnl-bf-loc-modal-list {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    }
}
@media (min-width: 768px) {
    .hnl-bf-loc-modal {
        align-items: center;
        padding: 20px;
    }
    .hnl-bf-loc-modal-panel {
        border-radius: 16px;
        max-height: min(88dvh, 640px);
        box-shadow: 0 20px 50px rgba(25, 30, 59, 0.2);
    }
}
.hnl-bf-loc-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 10px;
    border-bottom: 1px solid var(--qb-line);
    flex-shrink: 0;
}
.hnl-bf-loc-modal-header-text {
    min-width: 0;
}
.hnl-bf-loc-modal-title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--qb-ink);
    letter-spacing: -0.02em;
}
.hnl-bf-loc-modal-sub {
    margin: 4px 0 0 0;
    font-size: 0.8125rem;
    color: var(--qb-ink-soft);
    line-height: 1.45;
}
.hnl-bf-loc-modal-close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: -4px -6px 0 0;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--qb-ink-soft);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.hnl-bf-loc-modal-close:hover {
    background: var(--qb-line-soft);
    color: var(--qb-ink);
}
.hnl-bf-loc-modal-search-wrap {
    padding: 10px 18px 12px;
    flex-shrink: 0;
}
.hnl-bf-loc-modal-search {
    width: 100%;
    height: 48px;
    padding: 0 40px 0 14px;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid var(--qb-line);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.15s ease;
}
/* WebKit/Chromium: native clear → dark circle + white X */
.hnl-bf-loc-modal-search::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    margin-right: 2px;
    cursor: pointer;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23191e3b'/%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' d='M6.5 6.5l7 7M13.5 6.5l-7 7'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
}
.hnl-bf-loc-modal-search::-webkit-search-cancel-button:hover {
    opacity: 0.88;
}
.hnl-bf-loc-modal-search:focus {
    border-color: var(--qb-accent);
}
.hnl-bf-loc-modal-search:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--qb-accent);
}
.hnl-bf-loc-modal-list {
    flex: 1;
    min-height: 100px;
    max-height: min(52dvh, 520px);
    overflow-y: auto;
    padding: 4px 10px 12px;
    -webkit-overflow-scrolling: touch;
}
@media (min-width: 768px) {
    .hnl-bf-loc-modal-list {
        max-height: min(48vh, 440px);
    }
}
@media (prefers-reduced-motion: reduce) {
    .hnl-bf-loc-modal {
        transition: none;
    }
    .hnl-bf-loc-modal-panel {
        transition: none;
        transform: translateY(0);
    }
}
.hnl-bf-loc-modal-row {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    margin: 4px 0;
    text-align: left;
    border: none;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease;
}
.hnl-bf-loc-modal-row:hover {
    background: rgba(26, 115, 232, 0.07);
}
.hnl-bf-loc-modal-row:active {
    background: rgba(26, 115, 232, 0.12);
}
.hnl-bf-loc-modal-row .hnl-bf-item-name,
.hnl-bf-loc-modal-row .hnl-bf-item-address {
    display: block;
}
.hnl-bf-loc-modal-hint {
    padding: 18px 14px;
    text-align: center;
    color: #6c7189;
    font-size: 13px;
    line-height: 1.5;
}
.hnl-bf-loc-modal-footer {
    flex-shrink: 0;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--qb-line);
}
.hnl-bf-loc-modal-footer-btn {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--qb-line);
    border-radius: 10px;
    background: #fff;
    color: var(--qb-ink);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.hnl-bf-loc-modal-footer-btn:hover {
    background: var(--qb-line-soft);
    border-color: #c5c9d6;
}

.hnl-bf-pax-trigger,
.hnl-bf-bag-trigger {
    position: relative;
    cursor: pointer;
}
.hnl-bf-pax-trigger .hnl-bf-field-icon,
.hnl-bf-bag-trigger .hnl-bf-field-icon { pointer-events: none; }
.hnl-bf-pax-trigger .hnl-bf-field-label,
.hnl-bf-bag-trigger .hnl-bf-field-label { pointer-events: none; }
.hnl-bf-pax-display,
.hnl-bf-bag-display {
    font-size: 16px;
    font-weight: 600;
    color: var(--qb-ink);
    margin-top: 1px;
    padding: 1px 0;
    pointer-events: none;
}
.hnl-bf-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    background: transparent;
}
.hnl-bf-sheet-backdrop.open { display: block; }
.hnl-bf-pax-popover,
.hnl-bf-bag-popover {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 10060;
    width: 340px;
    background: #ffffff;
    border: 1px solid var(--qb-line);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(25, 30, 59, 0.18), 0 2px 6px rgba(25, 30, 59, 0.06);
    padding: 18px 20px 16px;
    display: none;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.16s ease, transform 0.16s ease;
    cursor: default;
}
.hnl-bf-bag-popover {
    width: 280px;
}
.hnl-bf-pax-popover.open,
.hnl-bf-bag-popover.open {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.hnl-bf-pax-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--qb-ink-soft);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: absolute;
    top: 10px;
    right: 10px;
    transition: background 0.15s;
}
.hnl-bf-pax-close:hover { background: var(--qb-line-soft); }
.hnl-bf-pax-close svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.hnl-bf-pax-popover-hd { padding: 2px 0 12px; }
.hnl-bf-pax-popover-title { font-size: 16px; font-weight: 600; color: var(--qb-ink); line-height: 1.3; }
.hnl-bf-pax-popover-sub { font-size: 13px; color: var(--qb-ink-soft); margin-top: 3px; line-height: 1.4; }
.hnl-bf-pax-section {
    background: #ffffff;
    border: 1px solid var(--qb-line-soft);
    border-radius: 10px;
    padding: 6px 14px 10px;
    margin-bottom: 12px;
}
.hnl-bf-pax-section-hd {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--qb-ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 8px 0 2px;
}
.hnl-bf-pax-section-hd svg {
    width: 14px;
    height: 14px;
    stroke: var(--qb-ink-soft);
    fill: none;
    stroke-width: 2;
}
.hnl-bf-pax-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
}
.hnl-bf-pax-row-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--qb-ink);
    line-height: 1.2;
}
.hnl-bf-pax-row-sub {
    font-size: 12px;
    color: var(--qb-ink-soft);
    margin-top: 2px;
    font-weight: 500;
}
.hnl-bf-pax-counter {
    display: flex;
    align-items: center;
    gap: 12px;
}
.hnl-bf-pax-counter-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--qb-accent);
    background: #fff;
    color: var(--qb-accent);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    padding: 0;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}
.hnl-bf-pax-counter-btn:hover:not(:disabled) {
    background: rgba(26, 115, 232, 0.1);
}
.hnl-bf-pax-counter-btn:disabled {
    border-color: var(--qb-line);
    color: #c9ccd8;
    cursor: not-allowed;
}
.hnl-bf-pax-counter-val {
    font-size: 16px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
    color: var(--qb-ink);
    font-variant-numeric: tabular-nums;
}
.hnl-bf-pax-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 12px;
    margin-top: 6px;
}
.hnl-bf-pax-done {
    padding: 9px 26px;
    background: var(--qb-accent);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}
.hnl-bf-pax-done:hover { background: var(--qb-accent-hover); }
@media (max-width: 767px) {
    .hnl-bf-sheet-backdrop.open {
        background: rgba(25, 30, 59, 0.45);
        backdrop-filter: blur(2px);
    }
    .hnl-bf-pax-popover,
    .hnl-bf-bag-popover {
        position: fixed;
        inset: auto 0 0 0;
        width: 100%;
        top: auto;
        right: auto;
        border-radius: 16px 16px 0 0;
        padding: 24px 20px calc(20px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -4px 24px rgba(25, 30, 59, 0.2);
        transform: translateY(20px);
    }
    .hnl-bf-pax-popover.open,
    .hnl-bf-bag-popover.open { transform: translateY(0); }
    .hnl-bf-pax-close { display: inline-flex; }
    .hnl-bf-pax-row { padding: 14px 0; }
    .hnl-bf-pax-counter-val { font-size: 17px; }
    .hnl-bf-pax-footer { padding-top: 16px; margin-top: 10px; }
    .hnl-bf-pax-done { flex: 1; padding: 14px; font-size: 16px; }
}

.hnl-bf-date-trigger {
    cursor: pointer;
}
.hnl-bf-date-display {
    width: 100%;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: var(--qb-ink);
    border: none;
    background: transparent;
    outline: none;
    padding: 0;
    cursor: pointer;
}
select.hnl-bf-time {
    width: 100%;
    max-width: 100%;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: var(--qb-ink);
    border: none;
    background: transparent;
    outline: none;
    padding: 2px 0;
    margin: 0;
    cursor: pointer;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}
/* select 클릭/포커스 시 브라우저 기본 박스 차단. 둥근 ring은 부모 .hnl-bf-field가 처리. */
select.hnl-bf-time:focus,
select.hnl-bf-time:focus-visible {
    outline: none;
    box-shadow: none;
}

/* Calendar modal (transit-style, namespaced) */
.hnl-bf-cal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(25, 30, 59, 0.45);
    backdrop-filter: blur(2px);
    z-index: 10200;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 20px 20px;
    opacity: 0;
    transition: opacity 0.18s ease;
    overflow-y: auto;
}
.hnl-bf-cal-overlay.open {
    display: flex;
    opacity: 1;
}
.hnl-bf-cal-modal {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(25, 30, 59, 0.25);
    width: 100%;
    max-width: 880px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(-8px);
    transition: transform 0.2s ease;
    max-height: calc(100vh - 100px);
    z-index: 10210;
}
.hnl-bf-cal-overlay.open .hnl-bf-cal-modal {
    transform: translateY(0);
}
.hnl-bf-cal-header {
    padding: 20px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-shrink: 0;
}
.hnl-bf-cal-selected {
    display: inline-block;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--qb-accent);
}
.hnl-bf-cal-selected-date {
    font-size: 20px;
    font-weight: 700;
    color: var(--qb-ink);
    letter-spacing: -0.01em;
}
.hnl-bf-cal-header-spacer {
    width: 72px;
    flex-shrink: 0;
}
.hnl-bf-cal-close-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--qb-ink-soft);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s;
}
.hnl-bf-cal-close-btn:hover {
    background: var(--qb-line-soft);
}
.hnl-bf-cal-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 12px 12px 18px;
    position: relative;
}
.hnl-bf-cal-nav {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 8px;
    position: relative;
}
.hnl-bf-cal-nav-btn {
    width: 32px;
    height: 32px;
    align-self: center;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid var(--qb-line);
    background: #fff;
    color: var(--qb-accent);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    padding: 0;
}
.hnl-bf-cal-nav-btn:hover {
    border-color: var(--qb-accent);
    background: color-mix(in srgb, var(--qb-accent) 10%, transparent);
}
.hnl-bf-cal-nav-btn:disabled {
    color: var(--qb-line);
    border-color: var(--qb-line-soft);
    cursor: not-allowed;
    background: var(--qb-line-soft);
}
.hnl-bf-cal-months {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(16px, 3vw, 28px);
    padding: 0;
}
.hnl-bf-cal-month {
    min-width: 0;
}
.hnl-bf-cal-month-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--qb-ink);
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.hnl-bf-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    margin-bottom: 4px;
}
.hnl-bf-cal-weekday {
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--qb-ink-soft);
    padding: 4px 0;
}
.hnl-bf-cal-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    column-gap: 2px;
    row-gap: 2px;
}
.hnl-bf-cal-day {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 44px; /* WCAG 2.5.5: 좁은 폰에서도 터치 타겟 보장 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(16px, 2.4vw, 18px); /* 16px로 시작점 상향 */
    font-weight: 500;
    color: var(--qb-ink);
    cursor: pointer;
    border-radius: 50%;
    border: none;
    background: transparent;
    font-family: inherit;
    transition: all 0.15s;
    padding: 0;
    position: relative;
    box-sizing: border-box;
}
.hnl-bf-cal-day:hover:not(.disabled):not(.selected) {
    background: color-mix(in srgb, var(--qb-accent) 14%, transparent);
    color: var(--qb-accent);
}
.hnl-bf-cal-day.empty {
    width: 100%;
    min-width: 0;
    aspect-ratio: 1 / 1;
    cursor: default;
    pointer-events: none;
}
.hnl-bf-cal-day.disabled {
    color: #c9ccd8;
    cursor: not-allowed;
    text-decoration: line-through;
    text-decoration-color: #e0e2ea;
}
.hnl-bf-cal-day.today {
    font-weight: 700;
    color: var(--qb-accent);
}
.hnl-bf-cal-day.today::after {
    content: '';
    position: absolute;
    bottom: 18%;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--qb-accent);
    border-radius: 50%;
}
.hnl-bf-cal-day.selected {
    background: var(--qb-accent);
    color: #fff;
    font-weight: 700;
}
.hnl-bf-cal-day.selected.today::after {
    background: #fff;
}
.hnl-bf-cal-footer {
    padding: 14px 24px;
    border-top: 1px solid var(--qb-line);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    background: #fff;
}
.hnl-bf-cal-footer-left {
    flex: 1;
    font-size: 14px;
    color: var(--qb-ink-soft);
}
.hnl-bf-cal-done-btn {
    padding: 10px 32px;
    background: var(--qb-accent);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}
.hnl-bf-cal-done-btn:hover {
    background: var(--qb-accent-hover);
}
@media (max-width: 767px) {
    .hnl-bf-cal-overlay {
        padding: 0;
        align-items: flex-end;
    }
    .hnl-bf-cal-modal {
        max-width: 100%;
        max-height: min(92dvh, 92vh);
        border-radius: 16px 16px 0 0;
        transform: translateY(20px);
    }
    .hnl-bf-cal-overlay.open .hnl-bf-cal-modal {
        transform: translateY(0);
    }
    .hnl-bf-cal-header {
        flex-direction: row;
        justify-content: space-between;
        padding: 14px 18px 0;
    }
    .hnl-bf-cal-close-btn {
        display: inline-flex;
        order: -1;
    }
    .hnl-bf-cal-selected {
        order: 0;
        flex: 1;
        padding-left: 6px;
    }
    .hnl-bf-cal-header-spacer {
        display: none;
    }
    .hnl-bf-cal-scroll {
        padding: 12px 12px 100px;
    }
    .hnl-bf-cal-nav-btn {
        display: none;
    }
    .hnl-bf-cal-months {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 0;
    }
    .hnl-bf-cal-weekday {
        font-size: 13px;
    }
    .hnl-bf-cal-day {
        font-size: clamp(16px, 4.2vw, 19px);
    }
    .hnl-bf-cal-footer {
        position: sticky;
        bottom: 0;
        padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -2px 12px rgba(25, 30, 59, 0.06);
    }
    .hnl-bf-cal-footer-left {
        display: none;
    }
    .hnl-bf-cal-done-btn {
        flex: 1;
        padding: 14px;
        font-size: 17px;
    }
}

.hnl-bf-flight-section {
    margin-top: 4px;
    margin-bottom: 12px;
}
.hnl-bf-airline-flight-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 12px;
    min-width: 0;
}
.hnl-bf-airline-flight-row.hnl-bf--hidden {
    display: none !important;
}
#hnlBfFlightNumberWrap.hnl-bf--hidden {
    display: none !important;
}
#hnlBfFieldFlightWrap.hnl-bf--hidden {
    display: none !important;
}
.hnl-bf-step.hnl-bf--hidden {
    display: none !important;
}
.hnl-bf-flight-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 12px;
    min-width: 0;
}
.hnl-bf-flight-row.hnl-bf-flight-row--two {
    grid-template-columns: 1fr 1fr;
}
.hnl-bf-field--airline .hnl-bf-drop-loc-trigger-text.hnl-bf-airline-ph {
    color: #6c7189;
    font-weight: 500;
}
.hnl-bf-field--airline .hnl-bf-drop-loc-trigger-text:not(.hnl-bf-airline-ph) {
    color: var(--qb-ink);
    font-weight: 600;
}
#hnlBf .hnl-bf-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
#hnlBf .hnl-bf-airline-modal {
    position: fixed;
    inset: 0;
    z-index: 100002;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
#hnlBf .hnl-bf-airline-modal.is-open {
    display: flex;
}
#hnlBf .hnl-bf-airline-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}
#hnlBf .hnl-bf-airline-modal-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    max-height: min(85vh, 560px);
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--qb-line);
    box-shadow: 0 16px 48px rgba(25, 30, 59, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
#hnlBf .hnl-bf-airline-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 12px;
    border-bottom: 1px solid var(--qb-line-soft);
    flex-shrink: 0;
}
#hnlBf .hnl-bf-airline-modal-head-text {
    min-width: 0;
}
#hnlBf .hnl-bf-airline-modal-head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: var(--qb-ink);
}
#hnlBf .hnl-bf-airline-modal-head p {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--qb-ink-soft);
    line-height: 1.45;
}
#hnlBf .hnl-bf-airline-modal-close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: -4px -6px 0 0;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--qb-ink-soft);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
#hnlBf .hnl-bf-airline-modal-close:hover {
    background: var(--qb-line-soft);
    color: var(--qb-ink);
}
/* Phase 4: 항공사 모달 검색 input (위치 검색 모달 패턴 차용) */
.hnl-bf-airline-modal-search-wrap {
    padding: 8px 18px 12px;
    border-bottom: 1px solid var(--qb-line);
}
.hnl-bf-airline-modal-search {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-size: 16px;
    font-family: inherit;
    color: var(--qb-ink);
    background: #fff;
    border: 1px solid var(--qb-line);
    border-radius: 10px;
    outline: none;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}
.hnl-bf-airline-modal-search::placeholder {
    color: #9ca0b3;
}
.hnl-bf-airline-modal-search::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    margin-left: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239ca0b3'%3E%3Cpath d='M19 6.4L17.6 5 12 10.6 6.4 5 5 6.4 10.6 12 5 17.6 6.4 19 12 13.4 17.6 19 19 17.6 13.4 12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 18px;
    cursor: pointer;
}
.hnl-bf-airline-modal-search:focus {
    outline: none;
    border-color: var(--qb-accent);
    box-shadow: 0 0 0 2px var(--qb-accent);
}
#hnlBf .hnl-bf-airline-modal-list {
    padding: 12px 14px 16px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#hnlBf .hnl-bf-airline-modal-item {
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--qb-line);
    background: #fff;
    font-size: 16px;
    font-weight: 600;
    color: var(--qb-ink);
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s, background 0.15s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}
/* 모달 항목 부제 (항공사 코드) */
#hnlBf .hnl-bf-airline-modal-item-code {
    font-size: 12px;
    font-weight: 500;
    color: var(--qb-ink-soft);
    letter-spacing: 0.04em;
}
#hnlBf .hnl-bf-airline-modal-item:hover {
    border-color: var(--qb-accent);
    background: rgba(26, 115, 232, 0.06);
}
#hnlBf .hnl-bf-airline-modal-item.is-selected {
    border-color: var(--qb-accent);
    background: rgba(26, 115, 232, 0.1);
}

/* 모바일 + 태블릿 portrait ≤767px: 항공사 모달도 다른 모달들과 동일하게 하단 시트로 전환 */
@media (max-width: 767px) {
    #hnlBf .hnl-bf-airline-modal {
        align-items: flex-end;
        padding: 0;
    }
    #hnlBf .hnl-bf-airline-modal-panel {
        max-width: none;
        width: 100%;
        max-height: calc(100dvh - env(safe-area-inset-top, 0px));
        border-radius: 16px 16px 0 0;
        border: none;
        box-shadow: 0 -8px 40px rgba(25, 30, 59, 0.18);
    }
    #hnlBf .hnl-bf-airline-modal-list {
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    }
    /* 모바일·태블릿에서 검색창 sticky — 스크롤해도 항상 보임 */
    .hnl-bf-airline-modal-search-wrap {
        position: sticky;
        top: 0;
        z-index: 1;
        background: #fff;
    }
}

.hnl-bf-price {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(26, 115, 232, 0.08);
    border: 1px solid var(--qb-line-soft);
    border-radius: 10px;
    margin-bottom: 14px;
}
.hnl-bf-price-label {
    font-size: 13px;
    color: var(--qb-ink-soft);
    flex: 1;
}
.hnl-bf-price-val {
    font-size: 22px;
    font-weight: 800;
    color: var(--qb-accent);
    font-variant-numeric: tabular-nums;
}
.hnl-bf-price-dist {
    font-size: 12px;
    color: #6c7189;
}

.hnl-bf-search-row {
    display: flex;
    justify-content: flex-end;
    padding-top: 14px;
}
.hnl-bf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: var(--hnl-bf-control-min-height, 56px);
    padding: 13px 36px;
    background: var(--qb-accent);
    color: #ffffff;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s;
    font-family: inherit;
    border: none;
    cursor: pointer;
}
.hnl-bf-btn:hover {
    background: var(--qb-accent-hover);
    color: #ffffff;
    text-decoration: none;
}
.hnl-bf-btn:active { background: var(--qb-accent-active); }
.hnl-bf-btn svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.hnl-bf-btn--secondary {
    background: #fff;
    color: var(--qb-accent);
    border: 1px solid var(--qb-line);
}
.hnl-bf-btn--secondary:hover {
    background: var(--qb-line-soft);
    color: var(--qb-accent-hover);
}
/* Secondary 버튼은 흰 배경이므로 SVG stroke가 본문 색을 따라가도록 오버라이드 */
.hnl-bf-btn--secondary svg {
    stroke: currentColor;
}
.hnl-bf-stepper-heading-wrap {
    position: relative;
    margin-bottom: 16px;
}
.hnl-bf-stepper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0 0 4px 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    font-size: 12px;
    font-weight: 700;
    color: var(--qb-ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    list-style: none;
}
.hnl-bf-stepper__item {
    flex-shrink: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}
.hnl-bf-stepper .hnl-bf-stepper__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: calc(12px * 1.25 + 12px + 2px);
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--qb-line);
    background: #fff;
    font: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    color: inherit;
    line-height: 1.25;
}
.hnl-bf-stepper button.hnl-bf-stepper__pill {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}
.hnl-bf-stepper button.hnl-bf-stepper__pill:disabled {
    cursor: default;
    opacity: 0.55;
}
.hnl-bf-stepper button.hnl-bf-stepper__pill.is-done:not(:disabled) {
    opacity: 1;
}
@media (hover: hover) {
    .hnl-bf-stepper button.hnl-bf-stepper__pill.is-done:not(:disabled):hover {
        border-color: #16a34a;
        color: #14532d;
        background: #f0fdf4;
    }
}
.hnl-bf-stepper .hnl-bf-stepper__pill.is-active {
    background: var(--qb-ink);
    color: #fff;
    border-color: var(--qb-ink);
}
.hnl-bf-stepper .hnl-bf-stepper__pill.is-done {
    border-color: #22c55e;
    color: #15803d;
}
.hnl-bf-step-title {
    margin: 0 0 12px 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--qb-ink);
    letter-spacing: -0.02em;
}
.hnl-bf-step-title:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--qb-accent);
    border-radius: 4px;
}
.hnl-bf-step3-title:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--qb-accent);
    border-radius: 4px;
}
.hnl-bf-form-msg {
    display: none;
    margin: 0 0 12px 0;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}
.hnl-bf-form-msg.is-visible { display: block; }
.hnl-bf-form-msg--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.hnl-bf-form-msg--success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.hnl-bf-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
.hnl-bf-contact-field {
    min-width: 0;
}
.hnl-bf-contact-field--full {
    grid-column: 1 / -1;
}
#hnlBfStep2 .hnl-bf-float {
    position: relative;
    min-width: 0;
}
#hnlBfStep2 .hnl-bf-float input,
#hnlBfStep2 .hnl-bf-float select {
    width: 100%;
    box-sizing: border-box;
    height: var(--hnl-bf-control-min-height, 56px);
    min-height: var(--hnl-bf-control-min-height, 56px);
    margin: 0;
    padding: 16px 16px 12px;
    border: 1px solid var(--qb-line);
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.25;
    color: var(--qb-ink);
    background: #fff;
    transition: border-color 0.15s ease;
}
#hnlBfStep2 .hnl-bf-float select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234a4f6e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-color: #fff;
    padding-right: 40px;
}
@media (hover: hover) {
    #hnlBfStep2 .hnl-bf-float:not(.is-error):not(:focus-within) input:hover,
    #hnlBfStep2 .hnl-bf-float:not(.is-error):not(:focus-within) select:hover {
        border-color: #64748b;
    }
}
#hnlBfStep2 .hnl-bf-float input:focus,
#hnlBfStep2 .hnl-bf-float select:focus {
    outline: none;
    border-width: 1px;
    border-color: var(--qb-accent);
    box-shadow: 0 0 0 2px var(--qb-accent);
}
#hnlBfStep2 .hnl-bf-float.is-error input:focus,
#hnlBfStep2 .hnl-bf-float.is-error select:focus {
    border-color: var(--md-error);
    box-shadow: 0 0 0 2px var(--md-error);
}
#hnlBfStep2 .hnl-bf-float.is-error input,
#hnlBfStep2 .hnl-bf-float.is-error select {
    border-width: 1px;
    border-color: var(--md-error);
}
#hnlBfStep2 .hnl-bf-float label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    max-width: calc(100% - 24px);
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--qb-ink-soft);
    pointer-events: none;
    transition: top 0.15s ease, transform 0.15s ease, font-size 0.15s ease, color 0.15s ease, padding 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#hnlBfStep2 .hnl-bf-float:focus-within label,
#hnlBfStep2 .hnl-bf-float.is-filled label,
#hnlBfStep2 .hnl-bf-float--always-filled label {
    top: 0;
    transform: translateY(-50%);
    padding: 0 4px;
    font-size: 12px;
    font-weight: 500;
    background: var(--md-surface);
}
#hnlBfStep2 .hnl-bf-float:focus-within:not(.is-error) label {
    color: var(--qb-accent);
}
#hnlBfStep2 .hnl-bf-float.is-filled:not(:focus-within):not(.is-error) label,
#hnlBfStep2 .hnl-bf-float--always-filled:not(:focus-within):not(.is-error) label {
    color: var(--qb-ink-soft);
}
#hnlBfStep2 .hnl-bf-float.is-error label {
    color: var(--md-error);
}
#hnlBfStep2 .hnl-bf-float--always-filled:focus-within:not(.is-error) label {
    color: var(--qb-accent);
}
/* Phase 3: Step 2 inline 에러 메시지 (Material 표준) */
.hnl-bf-field-error {
    display: none;
    margin: 6px 4px 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--md-error);
    min-height: 0;
}
.hnl-bf-contact-field.is-error .hnl-bf-field-error,
.hnl-bf-contact-field--full:has(.is-error) .hnl-bf-field-error {
    display: block;
}
/* :has() 미지원 폴백 — JS에서 .is-error를 contact-field에도 직접 토글 */
.hnl-bf-contact-field .hnl-bf-field-error.is-visible {
    display: block;
}
.hnl-bf-phone-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
}
.hnl-bf-step3-title {
    margin: 0 0 6px 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--qb-ink);
    letter-spacing: -0.02em;
}
.hnl-bf-summary-intro {
    margin: 0 0 14px 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--qb-ink-soft);
}
.hnl-bf-summary-card {
    font-size: 14px;
    line-height: 1.45;
    color: var(--qb-ink);
    background: #fff;
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(25, 30, 59, 0.04);
}
.hnl-bf-summary-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 14px 14px 12px;
    border-bottom: 1px solid var(--qb-line);
}
.hnl-bf-summary-row:last-child {
    border-bottom: none;
}
.hnl-bf-summary-row__icon-wrap {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--qb-accent, #3b82f6);
}
.hnl-bf-summary-row__icon-wrap svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: currentColor;
}
.hnl-bf-summary-row__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hnl-bf-summary-row__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--qb-ink-soft);
}
.hnl-bf-summary-row__value {
    font-size: 16px;
    font-weight: 700;
    color: var(--qb-ink);
    word-break: break-word;
    font-variant-numeric: tabular-nums;
}
.hnl-bf-summary-row__meta {
    font-size: 13px;
    font-weight: 500;
    color: var(--qb-ink-soft);
    white-space: pre-line;
}
.hnl-bf-summary-row--fare {
    background: rgba(59, 130, 246, 0.08);
    border-bottom: none;
}
.hnl-bf-summary-row--fare .hnl-bf-summary-row__icon-wrap {
    background: rgba(59, 130, 246, 0.18);
    color: var(--qb-accent, #2563eb);
}
.hnl-bf-summary-row--fare .hnl-bf-summary-row__value {
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}
.hnl-bf-summary-terms {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 16px;
    padding: 10px 4px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--qb-ink);
}
.hnl-bf-summary-terms input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--qb-accent, #3b82f6);
    cursor: pointer;
}
.hnl-bf-summary-terms__label {
    cursor: pointer;
    flex: 1;
    min-width: 0;
}
.hnl-bf-summary-terms__link {
    color: var(--qb-accent, #2563eb);
    font-weight: 600;
    text-decoration: none;
}
.hnl-bf-summary-terms__link:hover {
    text-decoration: underline;
}
.hnl-bf-step-nav .hnl-bf-btn--with-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.hnl-bf-step-nav .hnl-bf-btn--with-icon svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
}
.hnl-bf-step-nav .hnl-bf-btn__label {
    min-width: 0;
}
.hnl-bf-step-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 4px;
}
.hnl-bf-step-nav .hnl-bf-btn { flex: 1 1 auto; min-width: 0; }

/* Phase 6: 예약 완료 페이지 (Step 4) */
.hnl-bf-complete {
    text-align: center;
    padding: 24px 16px 8px;
}
.hnl-bf-complete__icon {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}
.hnl-bf-complete__heading {
    margin: 0 0 10px 0;
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--qb-ink);
    letter-spacing: -0.02em;
}
.hnl-bf-complete__subtext {
    margin: 0 auto 22px;
    max-width: 480px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--qb-ink-soft);
}
.hnl-bf-complete__ref {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    margin: 0 0 12px 0;
    padding: 14px 24px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 12px;
    box-sizing: border-box;
}
.hnl-bf-complete__ref[hidden] {
    display: none;
}
.hnl-bf-complete__ref-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--qb-ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.hnl-bf-complete__ref-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--qb-accent);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    word-break: break-all;
}
.hnl-bf-complete__email {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin: 0 0 24px 0;
    padding: 12px 24px;
    background: rgba(95, 99, 121, 0.04);
    border: 1px solid var(--qb-line);
    border-radius: 12px;
    font-size: 13px;
    color: var(--qb-ink-soft);
    box-sizing: border-box;
}
.hnl-bf-complete__email[hidden] {
    display: none;
}
.hnl-bf-complete__email-value {
    color: var(--qb-ink);
    font-weight: 600;
    word-break: break-all;
}
/* 픽업 정보 요약 박스 */
.hnl-bf-complete__summary {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    margin: 0 0 24px 0;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid var(--qb-line);
    border-radius: 12px;
    box-sizing: border-box;
    text-align: left;
}
.hnl-bf-complete__summary[hidden] {
    display: none;
}
.hnl-bf-complete__summary-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.hnl-bf-complete__summary-row[hidden] {
    display: none;
}
.hnl-bf-complete__summary-icon {
    flex-shrink: 0;
    color: var(--qb-ink-soft);
    margin-top: 2px;
}
.hnl-bf-complete__summary-body {
    flex: 1;
    min-width: 0;
}
.hnl-bf-complete__summary-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--qb-ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}
.hnl-bf-complete__summary-value {
    font-size: 14px;
    color: var(--qb-ink);
    font-weight: 500;
    line-height: 1.4;
    word-break: break-word;
}
.hnl-bf-complete__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding-top: 8px;
}
.hnl-bf-complete__actions .hnl-bf-btn {
    flex: 0 0 auto;
}
@media (max-width: 480px) {
    .hnl-bf-complete__actions {
        flex-direction: column;
        align-items: stretch;
    }
    .hnl-bf-complete__actions .hnl-bf-btn {
        width: 100%;
    }
}
/* Phase 20: 공유 토스트 UI */
.hnl-bf-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(8px);
    z-index: 9999;
    max-width: calc(100% - 32px);
    padding: 12px 20px;
    background: rgba(15, 23, 42, 0.95);
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    border-radius: 10px;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.hnl-bf-toast[hidden] {
    display: none;
}
.hnl-bf-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .hnl-bf-toast {
        transition: none;
    }
}

/* Viewport ≤767px: card padding/radius only — grid stacking lives in @container hnl-bf (max-width: 767px) */
@media (max-width: 767px) {
    .hnl-bf {
        padding: 18px max(16px, env(safe-area-inset-left, 0px)) 18px max(16px, env(safe-area-inset-right, 0px));
        border-radius: 14px;
    }
    .hnl-bf-tabs { margin-bottom: 16px; gap: 8px; }

    /* HOTFIX: 컨테이너 쿼리가 부모 레이아웃 영향으로 발동 안 하는 경우 대비.
       viewport 기준 안전망으로 모바일에서는 무조건 1열 강제.
       기존 @container 규칙은 임베드 환경 대응을 위해 그대로 보존됨. */
    .hnl-bf-form-row {
        grid-template-columns: 1fr !important;
    }
    .hnl-bf-airline-flight-row {
        grid-template-columns: 1fr !important;
    }
    .hnl-bf-flight-row {
        grid-template-columns: 1fr !important;
    }
    .hnl-bf-contact-grid {
        grid-template-columns: 1fr !important;
    }
    .hnl-bf-tab {
        flex: 1 1 calc(50% - 5px);
    }
    .hnl-bf-btn {
        width: 100%;
    }

    /* 좁은 폰에서 카드 좌우 외부 여백 축소 (24px → 12px).
       카드 내부 컨트롤이 양쪽 12px씩 더 넓게 확보됨. */
    .hnl-bf-wrap {
        padding-left: max(12px, env(safe-area-inset-left, 0px));
        padding-right: max(12px, env(safe-area-inset-right, 0px));
    }

    /* WCAG 2.5.5 / Apple HIG / Material Design — 44px minimum touch target.
       Counter buttons were 36px, risking mis-taps on adjacent +/- controls. */
    .hnl-bf-pax-counter-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    .hnl-bf-pax-counter-val {
        min-width: 28px;
        font-size: 18px;
    }

    /* Modal/popover close buttons: ensure 44px hit area */
    .hnl-bf-pax-close,
    .hnl-bf-loc-modal-close,
    .hnl-bf-cal-close-btn {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Landscape phones (short viewport, wide screen): keep modal/calendar usable. */
@media (max-height: 480px) and (orientation: landscape) {
    .hnl-bf-cal-modal {
        max-height: 96dvh;
    }
    .hnl-bf-loc-modal-panel {
        max-height: 96dvh;
    }
    .hnl-bf-pax-popover,
    .hnl-bf-bag-popover {
        max-height: 90dvh;
        overflow-y: auto;
    }
}

@media (min-width: 1280px) {
    .hnl-bf {
        max-width: 56rem;
        margin-inline: auto;
    }
}
