/**
 * Package/airtel.css
 * 에어텔 패키지 페이지 — 흐름 HTML(항공호텔_푸꾸옥_프로세스.html) 기반 셸용 CSS
 */
:root {
    --ap-primary:        #157CED;
    --ap-primary-hover:  #1664D9;
    --ap-bg-main:        #F2F5F8;
    --ap-bg-sub:         #F8F9FA;
    --ap-bg-strip:       #F7F8FB;
    --ap-bg-band:        #F1F5F9;
    --ap-text-main:      #1C1C1E;
    --ap-text-subtitle:  #334155;
    --ap-text-sub:       #64748B;
    --ap-border:         #E0E4EB;
    --ap-border-soft:    #ddd;
    --ap-red:            #FF4E4E;
    --ap-tag-bg:         #E6F2FF;
    --ap-star:           #FF9A03;
}

/* ── 페이지 베이스 ── */
.hero,
.search-card,
.results-section {
    font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    color: var(--ap-text-main);
    box-sizing: border-box;
}
.hero *,
.search-card *,
.results-section * {
    box-sizing: border-box;
}

/* ── 히어로 배너 (airtel_index.html .hero 톤) ── */
 .hero {
    background: url("/images/Package/airtel_bg.webp?v=1") no-repeat center center;
    background-size: cover;
    padding: calc(var(--safeAreaTop2, 0px) + 60px) 20px 100px;
    padding: calc(var(--safeAreaTop1, 0px) + 60px) 20px 100px;
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: left;
}

main.sub .hero {
    padding: calc(var(--safeAreaTop2, 0px) + 116px) 20px 100px;
    padding: calc(var(--safeAreaTop1, 0px) + 116px) 20px 100px;
}
.hero::before { content: none; }
.hero-content {
    max-width: 760px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}
.hero-text {
    max-width: 760px;
    width: 100%;
}
.hero-text h1 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.4;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.hero-text h1 .accent {
    display: block;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-top: 4px;
}
.hero-text p {
    color: #fff;
    font-size: 16px;
    line-height: 1.5;
    margin-top: 12px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}
.hero-text p strong { font-weight: 700; }
.hero-badge,
.hero-route,
.hero-sub { display: none; }

/* ── 검색 카드 (airtel_index.html .search-card 톤) ── */
.search-card {
    max-width: 800px;
    margin: -70px auto 60px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
    padding: 30px;
    position: relative;
    z-index: 1;
}
.search-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ap-text-sub);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0;
}
.search-card-title::before {
    content: '🔍';
    font-size: 16px;
    flex: 0 0 auto;
}

/* 고정 노선 정보 (시안 .route-box: primary 보더 + 가운데 route_icon) */
.fixed-info {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--ap-primary);
    border-radius: 12px;
    padding: 18px 24px;
    margin-bottom: 16px;
}
.fixed-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
}
.fixed-info-item .label { display: none; }
.fixed-info-item .value {
    font-size: 18px;
    font-weight: 700;
    color: var(--ap-primary);
}
.fixed-info-item .sub {
    font-size: 13px;
    color: var(--ap-text-sub);
    margin-top: 2px;
    font-weight: 400;
}
.fixed-divider { display: none; }
.route-arrow-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 24px;
    margin: 0 20px;
    color: transparent;       /* 텍스트(✈) 가림 */
    font-size: 0;
    background: url("/images/Package/route_icon.png") no-repeat center center;
    background-size: contain;
}

/* 날짜·인원 필터박스 */
.date-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    cursor: pointer;
}
.date-input-wrap {
    flex: 1;
    position: relative;
    background: #f4f4f4;
    border: 1px solid var(--ap-border-soft);
    border-radius: 8px;
    padding: 14px 16px 14px 44px;
    transition: border-color .2s, background .2s;
    min-height: 52px;
    display: flex;
    align-items: center;
}
.date-row:hover .date-input-wrap { border-color: var(--ap-primary); }
.date-input-wrap::before {
    content: '';
    position: absolute;
    left: 16px; top: 50%;
    width: 20px; height: 20px;
    transform: translateY(-50%);
    background: url("/images/Package/date_icon.png") no-repeat center center;
    background-size: contain;
    opacity: .9;
}
.date-input-wrap .pb-label { display: none; }
.date-input-wrap .date-display {
    font-size: 16px;
    font-weight: 500;
    color: var(--ap-text-sub);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.date-chevron {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transform-origin: center;
    transition: transform .25s cubic-bezier(0.22, 1, 0.36, 1), color .2s ease;
    font-size: 12px;
    color: #aaa;
    pointer-events: none;
}
.date-input-wrap.is-open .date-chevron {
    transform: translateY(-50%) rotate(180deg);
    color: var(--ap-primary);
}

/* 캘린더 드롭다운 패널 (탑승인원 .pax-panel 과 동일 패턴) */
.date-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: calc(-100% - 12px);
    z-index: 9;
    background: #fff;
    border: 1.5px solid #dde3ee;
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(0, 97, 168, 0.10), 0 4px 12px rgba(0, 0, 0, 0.06);
    padding: 12px;
    cursor: default;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top center;
    pointer-events: none;
    transition:
        opacity .18s ease-out,
        transform .18s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0s linear .18s;
}
.date-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    transition:
        opacity .22s ease-out,
        transform .25s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0s;
}
.date-panel .date-picker-field {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    border: 0;
    clip: rect(0, 0, 0, 0);
    overflow: hidden;
}

/* 패널 내부 Lightpick */
.date-panel section.lightpick {
    position: static !important;
    width: 100% !important;
    box-shadow: none;
    border: none;
    margin: 0;
}
.date-panel section.lightpick .lightpick__month { width: 100%; }

@media (max-width: 840px) {
    .date-panel section.lightpick .lightpick__inner > .lightpick__toolbar { display: none; }
    .date-panel section.lightpick .lightpick__months .lightpick__toolbar  { display: flex; }
    .date-panel .lightpick--2-columns .lightpick__months { grid-template-columns: auto; }
    .date-panel section.lightpick > .lightpick__inner,
    .date-panel section.lightpick > .lightpick__inner > .lightpick__months { width: 100%; }
    .date-panel section.lightpick > .lightpick__inner > .lightpick__months .lightpick__month { width: 100% !important; }
    .date-panel section.lightpick > .lightpick__inner .lightpick__day { height: 40px; }
}

/* 인원 박스 */
.pax-room-row {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}
.pax-box {
    flex: 1;
    position: relative;
    background: #f4f4f4;
    border: 1px solid var(--ap-border-soft);
    border-radius: 8px;
    padding: 14px 16px 14px 44px;
    cursor: pointer;
    transition: border-color .2s;
    min-height: 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.pax-box:hover { border-color: var(--ap-primary); }
/* 좌측 person_icon.png */
.pax-box::before {
    content: '';
    position: absolute;
    left: 16px; top: 50%;
    width: 20px; height: 20px;
    transform: translateY(-50%);
    background: url("/images/Package/person_icon.png") no-repeat center center;
    background-size: contain;
    opacity: .9;
}
.pax-box .pb-label { display: none; }
.pax-summary {
    font-size: 16px;
    font-weight: 500;
    color: var(--ap-text-sub);
}
.pax-detail {
    font-size: 12px;
    color: var(--ap-text-sub);
    margin-top: 2px;
    opacity: .75;
}
.pax-chevron {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transform-origin: center;
    transition: transform .25s cubic-bezier(0.22, 1, 0.36, 1), color .2s ease;
    font-size: 12px;
    color: #aaa;
    pointer-events: none;
}
.pax-box.is-open .pax-chevron {
    transform: translateY(-50%) rotate(180deg);
    color: var(--ap-primary);
}

/* 인원 드롭다운 패널 */
.pax-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    z-index: 9;
    background: #fff;
    border: 1.5px solid #dde3ee;
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(0, 97, 168, 0.10), 0 4px 12px rgba(0, 0, 0, 0.06);
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top center;
    pointer-events: none;
    transition:
        opacity .18s ease-out,
        transform .18s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0s linear .18s;
}
.pax-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    transition:
        opacity .22s ease-out,
        transform .25s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0s;
}

.pax-panel .pax-row {
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .22s ease-out, transform .25s cubic-bezier(0.22, 1, 0.36, 1);
}
.pax-panel.open .pax-row {
    opacity: 1;
    transform: translateY(0);
}
.pax-panel.open .pax-row:nth-child(1) { transition-delay: .04s; }
.pax-panel.open .pax-row:nth-child(2) { transition-delay: .08s; }
.pax-panel.open .pax-row:nth-child(3) { transition-delay: .12s; }
.pax-panel .pax-panel-done {
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .22s ease-out, transform .25s cubic-bezier(0.22, 1, 0.36, 1), background .15s;
}
.pax-panel.open .pax-panel-done {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .16s, .16s, 0s;
}

.pax-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f2f7;
}
.pax-row:last-child { border-bottom: none; }
.pax-row-left .pr-name { font-size: 14px; font-weight: 600; }
.pax-row-left .pr-sub { font-size: 11px; color: #999; margin-top: 1px; }
.pax-counter {
    display: flex;
    align-items: center;
    gap: 12px;
}
.pax-counter button {
    width: 30px; height: 30px;
    border: 1.5px solid #dde3ee;
    border-radius: 50%;
    background: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    color: #444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
}
.pax-counter button:hover:not(:disabled) { border-color: #0096c7; color: #0096c7; }
.pax-counter button:disabled { opacity: 0.3; cursor: default; }
.pax-counter .cnt { font-size: 16px; font-weight: 700; min-width: 18px; text-align: center; }
.pax-panel-done {
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: var(--ap-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.pax-panel-done:hover { background: #0096c7; }

/* 검색 버튼 */
.search-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 8px;
    background: var(--ap-primary);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: none;
    transition: background .2s;
}
.search-btn:hover { background: var(--ap-primary-hover); }
.search-btn:active { background: var(--ap-primary-hover); }

/* ── 결과 섹션 ── */
.results-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.v2-section { margin-bottom: 40px; }
.v2-section-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.v2-step-num {
    width: 28px; height: 28px;
    border-radius: 0;
    background: none;
    color: transparent;
    font-size: 0;
    flex: 0 0 auto;
    display: block;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}
.v2-section:nth-of-type(1) .v2-step-num {
    background-image: url("/images/Package/section_icon_01.png");
}
.v2-section:nth-of-type(2) .v2-step-num {
    background-image: url("/images/Package/section_icon_02.png");
}
.v2-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 20px;
    font-weight: 800;
    color: var(--ap-text-main);
}
.v2-section-title .help {
    width: 16px; height: 16px;
    background: #dde3ee;
    color: #888;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* 호텔 섹션 회색 띠(시안 .section_bg) */
.v2-section:nth-of-type(2) {
    background: var(--ap-bg-band);
    padding: 40px 0;
    margin: 0;
    box-shadow: -50vw 0 0 var(--ap-bg-band), 50vw 0 0 var(--ap-bg-band);
}
.v2-section:nth-of-type(2) * {box-sizing: border-box;}
.v2-section:nth-of-type(2) .v2-section-head {
    padding: 0 20px;
}

/* ── 항공권 카드 ── */
.flight-radio-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 12px;
}
.flight-radio-row::-webkit-scrollbar { display: none; }

.flight-radio {
    box-sizing: border-box;
    width: 300px;
    flex: 0 0 300px;
    border: 1px solid var(--ap-border-soft);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: border-color .2s, box-shadow .2s;
}
.flight-radio:hover { border-color: var(--ap-primary); }
.flight-radio.selected {
    border: 2px solid var(--ap-primary);
}

/* 헤더 */
.fr-head {
    padding: 12px 16px;
    background: var(--ap-bg-sub);
    border-bottom: 1px solid var(--ap-border-soft);
    display: flex; align-items: center; gap: 8px;
    font-size: 15px; font-weight: 700; color: var(--ap-text-main);
    transition: background .15s, color .15s, border-color .15s;
}
.flight-radio.selected .fr-head {
    background: var(--ap-primary);
    color: #fff;
    border-bottom-color: var(--ap-primary);
}

/* 라디오 동그라미 */
.fr-head .fr-radio {
    width: 20px; height: 20px;
    border-radius: 50%;
    border: 1.5px solid #ccc;
    background: #fff;
    flex-shrink: 0;
    position: relative;
}
.flight-radio.selected .fr-head .fr-radio { border-color: #fff; background: #fff; }
.flight-radio.selected .fr-head .fr-radio::after {
    content: '✓';
    position: absolute; inset: 0;
    color: var(--ap-primary);
    font-size: 12px; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
}

/* "3박 5일" 알약 */
.fr-duration-badge {
    margin-left: auto;
    background: #fff;
    border: 1px solid var(--ap-border-soft);
    color: var(--ap-text-main);
    font-size: 12px; font-weight: 700;
    padding: 2px 8px; border-radius: 20px;
    white-space: nowrap;
}
.flight-radio.selected .fr-duration-badge {
    background: #fff;
    border-color: transparent;
    color: var(--ap-primary);
}

/* 바디 */
.fr-body { padding: 16px; flex: 1; background: #fff; }
.fr-leg {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 0;
    border-bottom: none;
}
.fr-leg:last-of-type { margin-bottom: 0; }

/* 좌측 — 시간 + 항공사 */
.fr-leg-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.fr-leg-left .fr-icon-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ap-text-main);
}
/* 햇빛 아이콘 */
.fr-leg-left .fr-icon-line .ico {
    width: 18px;
    height: 18px;
    background: url("/images/Package/fc-icon_01.png") no-repeat center center;
    background-size: contain;
    flex: 0 0 auto;
    display: inline-block;
    font-size: 0;
}
.fr-leg-left .fr-airline {
    font-size: 13px;
    color: var(--ap-text-sub);
    font-weight: 500;
    padding-left: 26px;
    line-height: 1.4;
}

/* 우측 — 직항 + 소요시간 */
.fr-leg-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    text-align: right;
    gap: 8px;
}
.fr-leg-right .fr-direct {
    font-size: 13px;
    font-weight: 700;
    color: var(--ap-text-main);
    white-space: nowrap;
}
.fr-leg-right .fr-dur {
    font-size: 12px;
    color: var(--ap-text-sub);
    white-space: nowrap;
}

/* 푸터 */
.fr-footer {
    padding: 14px 16px;
    border-top: none;
    display: flex; align-items: center;
    background: var(--ap-bg-strip);
}

/* 상품 상세보기 */
.fr-detail-btn {
    flex: 0 0 auto;
    padding: 6px 12px;
    border: 1px solid var(--ap-border-soft);
    border-radius: 24px;
    background: #fff;
    font-size: 11px; font-weight: 500;
    color: var(--ap-text-sub);
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background .18s, border-color .18s, color .18s;
}
.fr-detail-btn:hover {
    background: #eef6ff;
    border-color: var(--ap-primary);
    color: var(--ap-primary);
}
.fr-detail-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--ap-primary-rgb, 21, 124, 237), 0.22);
}
.fr-select-btn { display: none; }

.fr-select-btn-legacy-keep {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 18px;
    border: 1.5px solid #dde3ee;
    background: #fff;
    border-radius: 8px;
    font-size: 13px; font-weight: 700;
    color: #555;
    cursor: pointer;
    transition: all .15s;
}
.fr-select-btn-legacy-keep:hover { border-color: #0096c7; color: var(--ap-primary); }
.fr-select-btn-legacy-keep .cb-mark {
    width: 18px; height: 18px;
    border: 1.5px solid #c5c5c5;
    border-radius: 4px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px;
    background: #fff;
}

/* 로딩 / 빈 상태 */
.air-loading,
.air-empty {
    flex: 1 1 100%;
    padding: 40px 20px;
    text-align: center;
    font-size: 14px;
    color: var(--ap-text-sub);
    background: var(--ap-bg-sub);
    border: 1.5px dashed var(--ap-border);
    border-radius: 12px;
}
.air-empty { color: #b06060; }

/* ── 호텔 콤보 카드 ── */
.combo-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.combo-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    overflow: visible;
    border: 1.5px solid transparent;
    transition: box-shadow .2s, border-color .2s;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    gap: 32px;
    padding: 24px;
    min-height: auto;
}
.combo-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--ap-border);
}

/* 좌측 이미지 */
.cmh-img-wrap {
    position: relative;
    width: 296px;
    height: 212px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    align-self: auto;
}
.cmh-img-card {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    background-color: #ccc;
}
.cmh-img-placeholder {
    background: linear-gradient(135deg, var(--ap-primary) 0%, #0096c7 50%, #48cae4 100%);
}
.cmh-img-overlay {
    position: absolute; inset: 0;
    background: none;
    display: flex; flex-direction: column;
    justify-content: space-between;
    padding: 12px;
    pointer-events: none;
}
.cmh-img-overlay > * { pointer-events: auto; }
.cmh-heart-btn { pointer-events: auto; }

/* 좌상단 배지 영역 */
.cmh-top-row {
    display: flex;
    gap: 6px;
    align-items: flex-start;
}
/* 위치 배지 */
.cmh-loc-pill {
    background: #fff;
    color: var(--ap-text-main);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0;
}

/* 하트 (좋아요) */
.cmh-heart-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 36px; height: 36px;
    border: none;
    background: url(/images/Package/choice_default.png) no-repeat center;
    background-size: 32px;
    background-color: transparent;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    font-size: 0; color: transparent;
    transition: transform .15s;
}
@media (hover: hover) {
    .cmh-heart-btn:not(.on):hover { background-image: url(/images/Package/choice_active.png); }
}
.cmh-heart-btn.on { background-image: url(/images/Package/choice_active.png); }
.cmh-heart-btn:active { transform: scale(0.92); }
.cmh-heart-btn:focus { outline: none; }
.cmh-bottom-row {
    display: none;
}
.cmh-overlay-title { display: none; }

/* 가운데 콘텐츠 컬럼 */
.cc-content {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column;
}
.cc-hotel-info {
    padding: 0;
    flex: 1;
}
.cc-hotel-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--ap-text-main);
    margin-bottom: 8px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    padding-right: 36px;
    line-height: 1.3;
}
.cc-hotel-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: var(--ap-text-subtitle);
    margin-bottom: 10px;
}
.cc-hotel-meta .stars {
    color: var(--ap-star);
    font-size: 14px;
}
.cc-hotel-meta .score {
    font-weight: 600;
    color: var(--ap-text-main);
}
.cc-hotel-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.cc-hotel-tag {
    background: var(--ap-tag-bg);
    color: var(--ap-primary);
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 24px;
    border: none;
}

/* 항공 스트립 */
.cc-flight-strip {
    width: 100%;
    padding: 10px 14px;
    background: var(--ap-bg-strip);
    border-radius: 8px;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: var(--ap-text-main);
    margin-top: auto;
}
.cc-fs-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.cc-fs-row-legs {
    justify-content: flex-start;
    gap: 6px;
    color: var(--ap-text-subtitle);
    font-size: 13px;
}
.cc-fs-leg-label {
    color: var(--ap-text-sub);
    font-weight: 600;
    margin-right: 2px;
}
.cc-fs-airline {
    font-weight: 600;
    color: var(--ap-text-main);
    display: flex; align-items: center; gap: 4px;
}
.cc-fs-icon { color: var(--ap-text-sub); }
.cc-fs-badge {
    background: var(--ap-red);
    color: #fff;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    margin: 0 16px 0 6px;
}
.cc-fs-dot { color: #c5c5c5; }
.cc-fs-leg { color: var(--ap-text-main); font-weight: 600; white-space: nowrap; }
.cc-fs-sep { color: #d0d0d0; }
.cc-fs-overnight { font-size: 14px; color: var(--ap-red); font-weight: 600; margin-left: 4px; }

/* 우측 가격/버튼 컬럼 */
.combo-bottom {
    width: 200px;
    flex-shrink: 0;
    padding: 0 0 0 20px;
    background: transparent;
    border-top: none;
    border-left: 1px dashed var(--ap-border);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    text-align: right;
    gap: 4px;
    margin-top: 0;
}
.combo-price-info {
    flex: 0 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.combo-price-label {
    font-size: 13px;
    color: var(--ap-text-sub);
    margin-bottom: 4px;
    white-space: nowrap;
}
.combo-price-total {
    font-size: 22px;
    font-weight: 800;
    color: var(--ap-text-main);
    line-height: 1.1;
    margin-bottom: 4px;
}
.combo-price-total .unit { font-size: 14px; font-weight: 700; }
.combo-price-sub {
    font-size: 13px;
    color: var(--ap-text-sub);
    margin-bottom: 12px;
}
.combo-select-btn {
    width: 100%;
    padding: 12px;
    background: var(--ap-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
    box-shadow: none;
}
.combo-select-btn:hover { background: var(--ap-primary-hover); }

/* 태블릿 구간 */
@media (max-width: 940px) and (min-width: 769px) {
    .combo-card { gap: 20px; padding: 20px; }
    .cmh-img-wrap { width: 220px; height: 180px; }
    .combo-bottom { width: 170px; padding-left: 16px; }
    .cc-hotel-name { font-size: 17px; padding-right: 36px; }
    .cc-flight-strip {
        font-size: 13px;
        gap: 6px;
    }
    .cc-fs-badge { margin: 0 8px 0 4px; font-size: 12px; }
    .combo-price-total { font-size: 20px; }
}

/* ───────────────────────────────────────────── */
/* 호텔 상세 / 항공권 상세 오버레이                */
/* ───────────────────────────────────────────── */
.detail-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10;
    display: none;
    overflow-y: auto;
    scrollbar-gutter: stable;
    animation: dtlFadeIn .25s;
}
.detail-overlay.open { display: block; }
@keyframes dtlFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes dtlSlideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.detail-modal {
    width: 100%;
    max-width: 920px;
    margin: calc(var(--safeAreaTop2, 0px) + 24px) auto 0;
    margin: calc(var(--safeAreaTop1, 0px) + 24px) auto 0;
    min-height: calc(100vh - 24px - var(--safeAreaTop2, 0px));
    min-height: calc(100vh - 24px - var(--safeAreaTop1, 0px));
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: dtlSlideUp .35s cubic-bezier(.2, .8, .2, 1);
    font-size: 14px;
    line-height: 1.55;
    color: #1a1a1a;
}

/* 상세 모달 내부 공통 인라인 SVG 아이콘 */
.detail-modal .ico-svg {
    width: 1.25em;
    height: 1.25em;
    flex: 0 0 auto;
    vertical-align: -0.2em;
    display: inline-block;
}
.detail-modal button .ico-svg,
.detail-modal a .ico-svg { vertical-align: middle; }

.detail-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 5;
    padding: calc(var(--safeAreaTop2, 0px) + 14px) 24px 14px;
    padding: calc(var(--safeAreaTop1, 0px) + 14px) 24px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f2f7;
    border-radius: 20px 20px 0 0;
}
.detail-back {
    display: flex; align-items: center; gap: 8px;
    border: none; background: transparent;
    font-size: 14px; font-weight: 600; color: #444;
    cursor: pointer;
    padding: 6px 10px; border-radius: 8px;
    transition: background .15s;
}
.detail-back:hover { background: #f5f6fa; }
.detail-close {
    width: 32px; height: 32px;
    border-radius: 50%; border: none;
    background: #f5f6fa; cursor: pointer;
    font-size: 16px; color: #666;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.detail-close:hover { background: #e8eaf0; }

/* 갤러리 */
.gallery {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
    height: 380px;
    padding: 0 24px;
    margin-top: 16px;
}
.gallery .g-cell {
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    transition: opacity .15s;
}
.gallery .g-cell:hover { opacity: 0.92; }
.gallery .g-cell.main { grid-row: span 2; }
.gallery.single-image { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.gallery.single-image .g-cell.main { grid-column: 1; grid-row: 1; }
.gallery .g-more {
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700;
    position: absolute; inset: 0;
    border-radius: 8px;
    cursor: pointer;
    z-index: 2;
}
.gallery .g-more.pc-show,
.gallery .g-more.tap-show,
.gallery .g-more.mo-show { display: none; }
.gallery .g-more.mo-show {
    inset: auto 0 12px 0;
    background: rgba(0, 0, 0, 0.6);
    width: fit-content;
    margin: 0 auto;
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 16px;
    z-index: 3;
}
@media (min-width: 1025px) {
    .gallery .g-more.pc-show { display: flex; }
}
@media (min-width: 841px) and (max-width: 1024px) {
    .gallery .g-more.tap-show { display: flex; }
}
@media (max-width: 840px) {
    .gallery .g-more.mo-show { display: flex; }
}

@media (min-width: 841px) and (max-width: 1024px) {
    .gallery {
        grid-template-columns: 2fr 1fr;
        grid-template-rows: 1fr 1fr;
        height: 340px;
    }
    .gallery .g-cell.main { grid-column: 1; grid-row: span 2; }
    .gallery .g-cell.g-img-4,
    .gallery .g-cell.g-img-5 { display: none; }
}

@media (max-width: 840px) {
    .gallery {
        display: block;
        grid-template-columns: none;
        grid-template-rows: none;
        height: auto;
        padding: 0 12px;
    }
    .gallery .g-cell.main {
        grid-column: auto;
        grid-row: auto;
        display: block;
        width: 100%;
        height: 240px;
        min-height: 240px;
    }
    .gallery .g-cell.g-img-2,
    .gallery .g-cell.g-img-3,
    .gallery .g-cell.g-img-4,
    .gallery .g-cell.g-img-5 { display: none; }
}
.g-img-1 { background-image: linear-gradient(135deg, #0096c7 0%, #00b4d8 50%, #90e0ef 100%); }
.g-img-2 { background-image: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #fde68a 100%); }
.g-img-3 { background-image: linear-gradient(135deg, #16a34a 0%, #4ade80 100%); }
.g-img-4 { background-image: linear-gradient(135deg, #6366f1 0%, #818cf8 100%); }
.g-img-5 { background-image: linear-gradient(135deg, #ec4899 0%, #f9a8d4 100%); }
.g-main-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0%, transparent 30%, rgba(0, 0, 0, 0.72) 100%);
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 18px; border-radius: 8px; pointer-events: none;
}
.g-loc-badge {
    background: #f97316; color: #fff;
    font-size: 12px; font-weight: 700;
    padding: 4px 12px; border-radius: 4px; width: fit-content;
    display: inline-flex; align-items: center; gap: 4px;
}
.g-loc-badge .ico-svg { width: 12px; height: 12px; }
.g-overlay-title {
    font-size: 28px; font-weight: 900; color: #fff;
    line-height: 1.25; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* 호텔 헤드라인 */
.hotel-headline-new {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f0f2f7;
}
.hhn-hashtags { font-size: 14px; color: #0096c7; font-weight: 500; margin-bottom: 8px; }
.hhn-name-row { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.hhn-name { font-size: 22px; font-weight: 800; color: #1a1a1a; }
.hhn-grade {
    font-size: 11px; font-weight: 700; color: var(--ap-primary);
    border: 1.5px solid var(--ap-primary); padding: 2px 7px; border-radius: 4px; white-space: nowrap;
}
.hhn-name-en { font-size: 14px; color: #999; font-weight: 500; }

/* 정보 섹션 + 기본정보 테이블 */
.info-section { padding: 24px; border-bottom: 1px solid #f0f2f7; }
.info-section#dtlMapSection {padding: 24px 0px;}
.info-section h3 {
    font-size: 16px; font-weight: 700; margin-bottom: 14px;
    display: flex; align-items: center; gap: 6px;
    padding-top: 16px;
}
.hotel-info-table {
    width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 4px;
    border-top: 2px solid #a9a9a9;
}
.hotel-info-table th,
.hotel-info-table td {
    padding: 11px 14px; border-bottom: 1px solid #f0f2f7;
    vertical-align: top; text-align: left;
}
.hotel-info-table th {
    width: 140px; font-weight: 700; color: #555;
    background: #f8faff; white-space: nowrap;
}
.hotel-info-table td { color: #333; line-height: 1.8; }
.hotel-info-table tr:last-child th,
.hotel-info-table tr:last-child td { border-bottom: none; }
.website-btn {
    padding: 5px 16px; background: #888; color: #fff;
    border: none; border-radius: 4px; font-size: 12px; font-weight: 600; cursor: pointer;
}

/* AI 상품 요약 */
.ai-summary-section {
    margin: 20px 24px 16px !important;
    background: #fafbff; border: 1px solid #e0e4ff;
    border-bottom: 1px solid #e0e4ff !important;
    border-radius: 12px; padding: 18px 20px !important;
}
.ai-summary-header { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.ai-badge {
    background: linear-gradient(135deg, #818cf8, #c084fc);
    color: #fff; font-size: 11px; font-weight: 800;
    padding: 2px 7px; border-radius: 4px;
}
.ai-title { font-size: 15px; font-weight: 800; color: #1a1a1a; }
.ai-sparkle { font-size: 14px; display: inline-flex; align-items: center; color: #f59e0b; }
.ai-sparkle .ico-svg { width: 16px; height: 16px; }
.ai-block { margin-bottom: 14px; }
.ai-block:last-child { margin-bottom: 0; }
.ai-block-title { font-size: 13px; font-weight: 700; color: #1a1a1a; margin-bottom: 6px; }
.ai-list { padding-left: 18px; margin: 0; font-size: 13px; color: #444; line-height: 1.85; }

/* AI 찐 후기 */
.ai-review-section {
    margin: 20px 0px 16px !important;
    background: #fafbff; border: 1px solid #e0e4ff;
    border-bottom: 1px solid #e0e4ff !important;
    border-radius: 12px; padding: 18px 20px !important;
}
.air-highlight {
    font-size: 14px; font-weight: 700; color: #1a1a1a;
    line-height: 1.8; margin-bottom: 12px;
}
.air-body { font-size: 13px; color: #555; line-height: 1.85; margin: 0; }
/* 상품 상세 (intro HTML) */
.intro-body {
    font-size: 13px;
    line-height: 1.75;
    color: #333;
}
.intro-body img,
.intro-body iframe,
.intro-body video { max-width: 100%; height: auto; display: block; margin: 8px 0; }
.intro-body p { margin: 0 0 8px; }
.intro-body table { max-width: 100%; }

.hotel-detail-link-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; margin-top: 16px;
    padding: 12px 0; border-radius: 8px;
    background: #fff; border: 1.5px solid var(--ap-primary); color: var(--ap-primary);
    font-size: 14px; font-weight: 700; cursor: pointer; text-align: center;
    transition: background .15s, color .15s;
}
.hotel-detail-link-btn:hover { background: var(--ap-primary); color: #fff; }

/* 예약 컨텍스트 바 */
.booking-context {
    padding: 16px 24px;
    background: #f8faff;
    border-bottom: 1px solid #f0f2f7;
    display: flex;
    gap: 12px;
    align-items: stretch;
    flex-wrap: wrap;
}
.bc-pill {
    flex: 1 1 220px;
    min-width: 0;
    background: #fff;
    border: 1.5px solid #dde3ee;
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 600;
    line-height: 1.4;
}
.bc-pill .ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ap-primary);
    flex: 0 0 auto;
    line-height: 0;
}
.bc-pill .ico .ico-svg { width: 16px; height: 16px; vertical-align: middle; }
.bc-pill .bc-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}
.bc-pill .sub {
    font-size: 11px;
    color: #888;
    font-weight: 500;
    margin-left: 4px;
    flex: 0 0 auto;
    white-space: nowrap;
}

/* 객실 옵션 */
.room-section { padding: 24px; }
.room-section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
}
.room-section-head h3 { font-size: 16px; font-weight: 700; }

/* 새 객실 카드 */
.room-card-new {
    border: 1.5px solid #e8ecf2; border-radius: 12px;
    margin-bottom: 14px; overflow: hidden; background: #fff;
}
.rcn-info-row {
    display: flex; gap: 16px; padding: 16px;
    border-bottom: 1px solid #f0f2f7;
}
.rcn-thumb {
    width: 130px; height: 100px; border-radius: 8px;
    flex-shrink: 0; position: relative; overflow: hidden;
    background-size: cover; background-position: center;
}
.rcn-thumb-label {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: rgba(0, 0, 0, 0.55); color: #fff;
    font-size: 11px; font-weight: 600; text-align: center; padding: 4px 0;
}
.rcn-thumb.rt-g1 { background: linear-gradient(135deg, #c7d2fe, #818cf8); }
.rcn-thumb.rt-g2 { background: linear-gradient(135deg, #fde68a, #f59e0b); }
.rcn-thumb.rt-g3 { background: linear-gradient(135deg, #bbf7d0, #16a34a); }
.rcn-thumb.rt-g4 { background: linear-gradient(135deg, #bfdbfe, #3b82f6); }
.rcn-thumb.rt-g5 { background: linear-gradient(135deg, #fbcfe8, #ec4899); }

.rcn-detail { flex: 1; min-width: 0; }
.rcn-meta { display: flex; gap: 6px; margin-bottom: 6px; }
.rcn-pill {
    border: 1px solid #c5c5c5; border-radius: 14px;
    font-size: 11px; color: #555; padding: 2px 10px;
}
.rcn-name { font-size: 16px; font-weight: 700; color: #1a1a1a; margin-bottom: 3px; }
.rcn-name-en { font-size: 12px; color: #888; margin-bottom: 8px; }
.rcn-amenities {
    display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
    font-size: 12px; color: #555;
}
.rcn-amenities .a-sep { color: #ccc; }
.rcn-more-btn {
    display: inline-flex; align-items: center; gap: 2px;
    font-size: 12px; color: #0096c7; font-weight: 600;
    background: transparent; border: none; cursor: pointer; padding: 0; margin-left: 4px;
}
.rcn-promo-row {
    display: grid; grid-template-columns: 1fr auto auto auto;
    align-items: center; gap: 16px;
    padding: 14px 16px; background: #fafbfd;
}
.rcn-promo-name { font-size: 13px; font-weight: 700; color: #1a1a1a; }
.rcn-promo-date { font-size: 12px; color: #555; margin-top: 2px; }
.rcn-promo-info-btn {
    background: transparent; border: none;
    font-size: 12px; color: #0096c7; cursor: pointer; padding: 0; margin-top: 3px;
    display: block; text-align: left;
}
.rcn-breakfast {
    font-size: 14px; color: #444; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 6px;
}
.rcn-breakfast-ico { width: 16px; height: 16px; flex: 0 0 auto; }
.rcn-price-wrap { text-align: right; }
.rcn-price-label { font-size: 13px; font-weight: 700; color: #e53e3e; white-space: nowrap; }
.rcn-price-sub { font-size: 11px; color: #888; margin-top: 2px; }
.rcn-book-btn {
    padding: 10px 20px; background: #1a1a1a; color: #fff;
    border: none; border-radius: 8px; font-size: 13px; font-weight: 700;
    cursor: pointer; white-space: nowrap; transition: background .15s;
}
.rcn-book-btn:hover { background: #333; }
.rcn-book-btn.unavailable {
    background: #c8c8c8; cursor: not-allowed; font-size: 12px; letter-spacing: -0.3px;
}
.rcn-book-btn.unavailable:hover { background: #c8c8c8; }

/* ── 정보 팝업 (객실 더보기 / 프로모션정보) — 화면 중앙 작은 모달 ── */
.info-popup-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 12;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: dtlFadeIn .2s;
}
.info-popup-modal {
    width: 100%;
    max-width: 480px;
    max-height: 70vh;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: dtlSlideUp .25s cubic-bezier(.2, .8, .2, 1);
}
.info-popup-header {
    padding: 14px 18px;
    border-bottom: 1px solid #f0f2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
}
.info-popup-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
}
.info-popup-close {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: none;
    background: #f5f6fa;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    display: flex; align-items: center; justify-content: center;
}
.info-popup-close:hover { background: #e8eaf0; }
.info-popup-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 18px;
}

/* 약관 본문 */
.info-popup-body .terms_inner_wrap { max-height: none; overflow: visible; }
.info-popup-body .terms_inner_wrap h3 {
    font-size: 14px; font-weight: bold;
    margin: 20px 0 10px;
    color: #000;
    border-left: 4px solid #0096c7;
    padding-left: 10px;
}
.info-popup-body .terms_inner_wrap h3:first-child { margin-top: 0; }
.info-popup-body .terms_inner_wrap ul { padding-left: 20px; margin-bottom: 15px; }
.info-popup-body .terms_inner_wrap li {
    font-size: 12.5px; color: #444;
    margin-bottom: 6px; line-height: 1.6;
}
.info-popup-body .terms_inner_wrap p { font-size: 12.5px; color: #444; margin: 6px 0; line-height: 1.6; }
.info-popup-body .terms_inner_wrap .note { font-size: 12px; font-weight: 500; margin-bottom: 5px; color: #555; }

.info-popup-body .terms_inner_wrap .table_scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 15px;
}
.info-popup-body .terms_inner_wrap table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #ddd;
}
.info-popup-body .terms_inner_wrap th,
.info-popup-body .terms_inner_wrap td {
    border: 1px solid #ddd;
    padding: 10px;
    font-size: 12px;
    text-align: left;
    line-height: 1.5;
    word-break: keep-all;
}
.info-popup-body .terms_inner_wrap th {
    background: #f2f2f2;
    color: #000;
    font-weight: bold;
}

/* ── 접근성: 모션 감소 선호 시 애니메이션 단축 ── */
@media (prefers-reduced-motion: reduce) {
    .date-panel,
    .pax-panel,
    .pax-panel .pax-row,
    .pax-panel .pax-panel-done,
    .date-chevron,
    .pax-chevron {
        transition-duration: .01ms !important;
        transition-delay: 0s !important;
    }
}

/* ── 모바일/태블릿 반응형 ── */
@media (max-width: 768px) {
    /* 히어로 */
    .hero {
        padding: calc(var(--safeAreaTop2, 0px) + 40px) 16px 80px;
        padding: calc(var(--safeAreaTop1, 0px) + 40px) 16px 80px;
        flex-direction: column;
        text-align: center;
    }
    .hero-content { flex-direction: column; }
    .hero-text p { margin-top: 0; }

    .flight-radio-row { grid-template-columns: 1fr; }
    .search-card { margin: -50px 16px 40px; padding: 20px; }
    .results-section { padding: 0 12px; }
    .fixed-info { padding: 16px; border-radius: 8px; }
    .fixed-info-item .value { font-size: 16px; }
    /* 좁은 폭에서 필터박스 본문 폰트 축소 */
    .date-input-wrap .date-display,
    .pax-summary { font-size: 14px; }
    .fixed-divider { margin: 0 10px; }
    .route-arrow-icon { margin: 0 8px; }
    /* 항공권 카드 */
    .flight-radio-row { flex-direction: column; }
    .flight-radio { width: 100%; flex: 1 1 auto; }
    .fr-footer { padding: 12px 14px; }
    .fr-detail-btn { padding: 6px 11px; }
    /* 호텔 카드 */
    .combo-card {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
        min-height: 0;
    }
    .cmh-img-wrap {
        width: 100%;
        height: 180px;
        border-radius: 12px;
    }
    /* 가운데 콘텐츠 */
    .cc-content { width: 100%; }
    .cc-hotel-name { padding-right: 36px; } 
    .combo-bottom {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        text-align: left;
        padding: 12px 0 0;
        border-left: none;
        border-top: 1px dashed var(--ap-border);
    }
    .combo-price-info {
        flex: 1;
        min-width: 0;
        align-items: flex-start;
    }
    .combo-price-label { display: none; }
    .combo-price-total { font-size: 18px; margin-bottom: 2px; }
    .combo-price-sub { font-size: 12px; margin-bottom: 0; }
    .combo-select-btn {
        width: auto;
        flex: 0 0 auto;
        padding: 10px 20px;
        font-size: 14px;
    }
    /* 하트 */
    .cmh-heart-btn { top: 24px; right: 24px; }

    .info-section { padding: 16px; }
    .booking-context { flex-direction: column; padding: 12px 16px; gap: 8px; }
    .booking-context .bc-pill { flex: 1 1 100%; width: 100%; padding: 10px 12px; }
    .room-section { padding: 16px; }
    /* 룸 카드 */
    .rcn-info-row { flex-direction: column; }
    .rcn-thumb { width: 100%; height: 140px; }
    .rcn-promo-row { grid-template-columns: 1fr; gap: 10px; }
    .rcn-price-wrap { text-align: left; }
    .rcn-book-btn { width: 100%; }

    /* 디테일 모달 기본정보 테이블 */
    .hotel-info-table,
    .hotel-info-table tbody,
    .hotel-info-table tr,
    .hotel-info-table th,
    .hotel-info-table td {
        display: block;
        width: 100%;
    }
    .hotel-info-table tr {
        border-bottom: 1px solid #f0f2f7;
        padding: 10px 0;
    }
    .hotel-info-table tr:last-child { border-bottom: none; }
    .hotel-info-table th {
        background: transparent;
        padding: 0 0 4px;
        border-bottom: none;
        white-space: nowrap;
        font-size: 13px;
        color: var(--ap-text-sub);
    }
    .hotel-info-table td {
        padding: 0;
        border-bottom: none;
        line-height: 1.6;
    }
}

/* ── 매우 좁은 폭(스마트폰 세로) ── */
@media (max-width: 480px) {
    /* 날짜/인원 박스 세로 스택 */
    .date-row { flex-direction: column; gap: 10px; margin-bottom: 10px; }
    .date-input-wrap,
    .pax-box { width: 100%; }
    .date-panel { right: 0; }
    .pax-room-row { flex-direction: column; gap: 10px; }

    /* Lightpick */
    .date-panel { padding: 8px; }
    .date-panel section.lightpick .lightpick__day { height: 34px; font-size: 13px; }
    .date-panel section.lightpick .lightpick__day-of-the-week { font-size: 11px; }
    .date-panel section.lightpick .lightpick__month-title { font-size: 14px; }
}

/* ──────────────────────────────────────────────────
   예약 플로우 모달 (3-Step)
   ────────────────────────────────────────────────── */
.booking-overlay {
    --bk-primary:        #157CED;
    --bk-primary-hover:  #1664D9;
    --bk-bg-sub:         #F8F9FA;
    --bk-text-main:      #1C1C1E;
    --bk-text-subtitle:  #334155;
    --bk-text-sub:       #64748B;
    --bk-border:         #E0E4EB;
    --bk-white:          #FFFFFF;
    --bk-red:            #FF4E4E;
    --bk-info-bg:        #F3F9FF;

    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 11;
    display: none;
    overflow-y: auto;
    scrollbar-gutter: stable;
    animation: fadeIn .25s;
}
.booking-overlay.open { display: block; }

.booking-modal {
    width: 100%;
    max-width: 900px;
    margin: calc(var(--safeAreaTop2, 0px) + 24px) auto 0;
    margin: calc(var(--safeAreaTop1, 0px) + 24px) auto 0;
    min-height: calc(100vh - 24px - var(--safeAreaTop2, 0px));
    min-height: calc(100vh - 24px - var(--safeAreaTop1, 0px));
    background: var(--bk-white);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp .35s cubic-bezier(.2, .8, .2, 1);
}

/* ── 헤더 ── */
.booking-modal .modal-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--bk-white);
    padding: calc(var(--safeAreaTop2, 0px) + 20px) 24px 20px;
    padding: calc(var(--safeAreaTop1, 0px) + 20px) 24px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--bk-border);
    border-radius: 16px 16px 0 0;
}
.booking-modal .modal-header h2 {
    font-size: 20px; font-weight: 700; color: var(--bk-text-main);
}
.booking-modal .btn-close {
    background: none; border: none;
    font-size: 24px; color: var(--bk-text-sub);
    cursor: pointer; padding: 0; line-height: 1;
}

/* ── 진행 스텝 ── */
.booking-modal .modal-steps {
    position: sticky;
    top: calc(var(--safeAreaTop2, 0px) + 65px);
    top: calc(var(--safeAreaTop1, 0px) + 65px);
    z-index: 4;
    background: var(--bk-bg-sub);
    padding: 16px 0;
    display: flex;
    justify-content: center;
    gap: 32px;
    border-bottom: 1px solid var(--bk-border);
}
.booking-modal .modal-steps .step {
    display: flex; align-items: center; gap: 8px;
    font-size: 15px; font-weight: 700; color: #64748B;
}
.booking-modal .modal-steps .step .circle {
    width: 24px; height: 24px; border-radius: 50%;
    background: #e6e6e6; color: white;
    display: flex; justify-content: center; align-items: center;
    font-size: 13px;
}
.booking-modal .modal-steps .step.active { color: var(--bk-text-main); }
.booking-modal .modal-steps .step.active .circle { background: var(--bk-primary); }

/* ── 모달 바디 ── */
.booking-modal .modal-body { 
    padding: 24px; 
    min-height: calc(100vh - (var(--safeAreaTop2, 0px) + 65px + 57px + 89px + 24px));
    min-height: calc(100vh - (var(--safeAreaTop1, 0px) + 65px + 57px + 89px + 24px));
}
.booking-modal .step-content { display: none; }
.booking-modal .step-content.active { display: block; animation: fadeIn .2s; }

/* ── 공통 카드 ── */
.booking-modal .card-section {
    background: var(--bk-white);
    border: 1px solid var(--bk-border);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}
.booking-modal .card-header {
    background: #F1F5F9;
    border-bottom: 1px solid #DDDDDD;
    padding: 16px 20px;
}
.booking-modal .card-title {
    font-size: 16px; font-weight: 700;
    color: var(--bk-text-main);
}
.booking-modal .card-desc {
    font-size: 13px; color: var(--bk-text-sub);
    margin-top: 4px;
}
.booking-modal .card-body { padding: 24px; }

/* ── 카드 헤더 토글 ── */
.booking-modal .card-header-toggle {
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; user-select: none;
}
.booking-modal .card-header-toggle:hover { background: #E2E8F0; }
.booking-modal .card-header-toggle .acc-chev {
    font-size: 12px; color: var(--bk-text-sub);
    transition: transform .2s;
}
.booking-modal .card-header-toggle.open .acc-chev { transform: rotate(180deg); }
.booking-modal .card-body.acc-body { display: none; }
.booking-modal .card-body.acc-body.open { display: block; }

/* ── 공통 폼 ── */
.booking-modal .form-row {
    display: flex; align-items: center;
    margin-bottom: 16px;
}
.booking-modal .form-row:last-child { margin-bottom: 0; }
.booking-modal .form-label {
    width: 140px; font-size: 13px;
    color: var(--bk-text-main); flex-shrink: 0;
}
.booking-modal .form-label .req { color: var(--bk-red); margin-left: 2px; }
.booking-modal .form-input-group { flex: 1; display: flex; gap: 8px; }
.booking-modal .input-text {
    width: 100%; height: 44px;
    border: 1px solid var(--bk-border); border-radius: 6px;
    padding: 0 16px; font-size: 14px;
    color: var(--bk-text-main); outline: none;
    transition: border 0.2s;
    background: var(--bk-white);
    font-family: inherit;
}
.booking-modal .input-text:focus { border-color: var(--bk-primary); }
.booking-modal .input-text::placeholder { color: #A0AABF; }
.booking-modal textarea.input-text {
    height: 100px; padding: 12px 16px; resize: none;
}
.booking-modal .select-box {
    width: 100%; height: 44px;
    border: 1px solid var(--bk-border); border-radius: 6px;
    padding: 0 16px; font-size: 14px;
    color: var(--bk-text-main); outline: none;
    appearance: none; -webkit-appearance: none;
    background-color: var(--bk-white);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%2364748B' d='M6 8L0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px auto;
    cursor: pointer;
    font-family: inherit;
}
.booking-modal .select-box:focus { border-color: var(--bk-primary); }
.booking-modal input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: var(--bk-primary);
    cursor: pointer;
}

/* ── [Step 1] 항공 상품 정보 박스 ── */
.booking-modal .flight-info-box {
    background-color: var(--bk-info-bg);
    border: 1px solid var(--bk-primary);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.booking-modal .flight-info-box .title {
    font-size: 16px; font-weight: 700;
    color: var(--bk-text-main); margin-bottom: 8px;
}
.booking-modal .flight-info-box .date {
    font-size: 13px; color: var(--bk-text-subtitle);
    margin-bottom: 4px;
}
.booking-modal .flight-info-box .desc {
    font-size: 13px; color: var(--bk-text-sub);
}
.booking-modal .flight-info-box .price {
    font-size: 15px; font-weight: 800; color: var(--bk-primary);
}

/* ── [Step 1] 탑승객 카드 ── */
.booking-modal .pax-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px; margin-top: 32px;
}
.booking-modal .pax-header:first-of-type { margin-top: 0; }
.booking-modal .pax-title { font-size: 15px; font-weight: 700; }
.booking-modal .pax-title span {
    font-size: 14px; font-weight: 400; color: var(--bk-text-sub);
}
.booking-modal .pax-check {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; color: var(--bk-text-main); cursor: pointer;
}
.booking-modal .pax-divider {
    height: 1px; background: var(--bk-border); margin: 32px 0;
}

/* ── [Step 1] 약관 ── */
.booking-modal .terms-all {
    background: var(--bk-bg-sub);
    padding: 16px; border-radius: 8px;
    font-weight: 700; margin-bottom: 16px;
    display: flex; align-items: center; gap: 10px;
    cursor: pointer;
}
.booking-modal .terms-list {
    display: flex; flex-direction: column; gap: 12px;
    padding: 0 16px;
}
.booking-modal .term-item {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; color: var(--bk-text-sub);
}
.booking-modal .term-item-label {
    flex: 1;
    display: flex; align-items: center; gap: 10px;
    cursor: pointer;
}
.booking-modal .term-item .req { color: var(--bk-red); font-weight: 700; }
.booking-modal .term-detail-btn {
    flex: 0 0 auto;
    background: transparent;
    border: 0;
    padding: 4px 10px;
    font-size: 20px; line-height: 1;
    color: #bbb;
    cursor: pointer;
    transition: color .2s;
}
.booking-modal .term-detail-btn:hover { color: #0096c7; }

/* ── [Step 2] 호텔 요약 박스 ── */
.booking-modal .hotel-summary-box {
    border: 1px solid var(--bk-primary);
    border-radius: 8px;
    padding: 20px;
    background-color: var(--bk-info-bg);
}
.booking-modal .hotel-summary-box .h-title {
    font-size: 16px; font-weight: 700; margin-bottom: 6px;
}
.booking-modal .hotel-summary-box .h-date {
    font-size: 14px; color: var(--bk-text-sub);
}

/* ── [Step 2] 투숙 정보 그리드 ── */
.booking-modal .stay-info-grid {
    display: grid;
    grid-template-columns: 80px 1fr;
    row-gap: 12px;
    font-size: 14px;
}
.booking-modal .stay-info-grid .label { color: var(--bk-text-sub); }
.booking-modal .stay-info-grid .value { color: var(--bk-text-main); }

/* ── [Step 2] 선택 옵션 (필 토글) ── */
.booking-modal .option-group-title {
    font-size: 14px; font-weight: 700;
    margin: 20px 0 12px;
}
.booking-modal .option-wrap {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 8px;
}
.booking-modal .option-desc {
    font-size: 13px; color: var(--bk-text-sub);
    margin-bottom: 20px;
}
.booking-modal .option-desc:last-child { margin-bottom: 0; }
.booking-modal .pill-checkbox { display: none; }
.booking-modal .pill-label {
    display: inline-block;
    border: 1px solid var(--bk-border); border-radius: 20px;
    padding: 8px 16px; font-size: 14px;
    color: var(--bk-text-subtitle);
    cursor: pointer; transition: all 0.2s;
}
.booking-modal .pill-checkbox:checked + .pill-label {
    background-color: var(--bk-info-bg);
    border-color: var(--bk-primary);
    color: var(--bk-primary);
    font-weight: 600;
}

/* ── [Step 1/2] 취소규정 박스 ── */
.booking-modal .policy-box {
    background: #FAFAFA;
    border-radius: 8px;
    overflow: hidden;
    padding: 20px;
}
.booking-modal .policy-box h4 {
    font-size: 13px; font-weight: 700;
    color: var(--bk-text-subtitle);
    margin-bottom: 8px; margin-top: 16px;
}
.booking-modal .policy-box h4:first-child { margin-top: 0; }
.booking-modal .policy-box ul {
    padding-left: 20px;
    font-size: 13px; color: var(--bk-text-subtitle);
    line-height: 1.6;
}
.booking-modal .policy-box .warn {
    font-size: 13px; color: var(--bk-text-sub);
}

/* ── [Step 3] 최종 요약 박스 ── */
.booking-modal .summary-box {
    background: var(--bk-info-bg);
    border-radius: 8px;
    border: 1px solid var(--bk-primary);
    padding: 24px;
}
.booking-modal .summary-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px;
    font-size: 15px; color: var(--bk-text-main);
}
.booking-modal .summary-row:last-of-type { margin-bottom: 24px; }
.booking-modal .summary-divider {
    height: 1px;
    border-top: 1px dashed #D1D6E0;
    margin-bottom: 24px;
}
.booking-modal .summary-total {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 16px; font-weight: 700;
    color: var(--bk-text-main);
}
.booking-modal .summary-total .val {
    font-size: 24px; color: var(--bk-primary); font-weight: 800;
}

/* ── [Step 3] 확인 리스트 ── */
.booking-modal .confirm-list {
    padding-left: 20px;
    font-size: 14px; color: var(--bk-text-subtitle);
    line-height: 1.8;
}

/* ── 푸터 ── */
.booking-modal .modal-footer {
    position: sticky;
    bottom: var(--safeAreaBottom2, 0px);
    bottom: var(--safeAreaBottom1, 0px);
    z-index: 4;
    padding: 20px 24px;
    background: var(--bk-white);
    border-top: 1px solid var(--bk-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
}
.booking-modal .price-total {
    display: flex; align-items: flex-end; gap: 12px;
}
.booking-modal .price-total .label {
    font-size: 15px; font-weight: 700; color: var(--bk-text-main);
}
.booking-modal .price-total .amount {
    font-size: 20px; font-weight: 700;
    color: var(--bk-primary); line-height: 1;
}
.booking-modal .price-total .per {
    font-size: 13px; color: var(--bk-text-sub);
    margin-bottom: 2px;
}
.booking-modal .btn-group { display: flex; gap: 8px; }
.booking-modal .btn {
    height: 48px; border-radius: 8px;
    font-size: 15px; font-weight: 700;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding: 0 24px;
    transition: 0.2s;
    font-family: inherit;
}
.booking-modal .btn-prev {
    background: var(--bk-white);
    border: 1px solid var(--bk-border);
    color: var(--bk-text-main);
}
.booking-modal .btn-prev:hover { background: var(--bk-bg-sub); }
.booking-modal .btn-next {
    background: var(--bk-primary);
    border: none;
    color: var(--bk-white);
}
.booking-modal .btn-next:hover { background: var(--bk-primary-hover); }
.booking-modal .btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── 모달 반응형 (모바일) ── */
@media (max-width: 768px) {
    .booking-modal {
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
    }
    .booking-modal .modal-header {
        border-radius: 0;
        padding: calc(var(--safeAreaTop2, 0px) + 16px) 16px 16px;
        padding: calc(var(--safeAreaTop1, 0px) + 16px) 16px 16px;
    }
    .booking-modal .modal-steps  { gap: 16px;
        top: calc(var(--safeAreaTop2, 0px) + 56px);
        top: calc(var(--safeAreaTop1, 0px) + 56px); 
    }
    .booking-modal .modal-body   { padding: 16px; }
    .booking-modal .card-header  { padding: 12px 16px; }
    .booking-modal .card-body    { padding: 20px 16px; }
    .booking-modal .card-section { border-radius: 8px; }
    .booking-modal .hotel-summary-box,
    .booking-modal .policy-box,
    .booking-modal .summary-box { padding: 16px; }
    .booking-modal .policy-box h4 { margin: 8px 0 4px; }
    .booking-modal .flight-info-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }
    .booking-modal .form-label { width: 100px; font-size: 13px; }
    .booking-modal .form-row {
        flex-direction: column;
        align-items: baseline;
        gap: 8px;
    }
    .booking-modal .form-input-group { width: 100%; }
    .booking-modal .modal-footer {
        flex-direction: column;
        gap: 16px; padding: 16px;
    }
    .booking-modal .price-total {
        width: 100%;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 0;
    }
    .booking-modal .price-total .per {
        width: 100%; text-align: right; margin-top: 4px;
    }
    .booking-modal .summary-divider { margin-bottom: 16px; }
    .booking-modal .summary-total .val { font-size: 20px; font-weight: 700; }
    .booking-modal .btn-group { width: 100%; display: flex; }
    .booking-modal .btn { flex: 1; }
}

/* 로그인 후 복귀 시 클릭했던 룸 카드 잠깐 강조 (resumeBookingIntent) */
.room-card-new.is-highlight {
    border-color: #0096c7;
    box-shadow: 0 0 0 3px rgba(0, 150, 199, 0.18);
    transition: border-color .25s ease, box-shadow .25s ease;
}
