/**
 * Ferry Booking - Public Styles
 * Camellia Line - 세련된 색상 팔레트
 * 
 * Main: #33cc00 - 주요 버튼, 활성 상태
 * Point: #E60012 - 최종 결제, 강조 뱃지 (최소 사용)
 * Sub (Deep): #1F3A52 - 헤더, 푸터, 강조선
 * Bg (Wide): #FFFFFF - 전체 배경
 * Bg (Narrow): #F3F6F8 - 박스, 섹션 배경
 * Line: #E0E0E0 - 구분선
 * Text (Main): #333333 - 본문 텍스트
 */

:root {
    /* Main - 주요 버튼, 활성 상태 */
    --main: #33cc00;
    --main-dark: #2db800;
    
    /* Point - 최종 결제, 강조 뱃지 (최소 사용) */
    --point: #E60012;
    --point-dark: #cc0010;
    
    /* Sub (Deep) - 헤더, 푸터, 강조선 */
    --sub-deep: #1F3A52;
    --sub-light: #2C4A66;
    
    /* Bg - 배경 */
    --bg-wide: #FFFFFF;
    --bg-narrow: #F3F6F8;
    
    /* Line - 구분선 */
    --line: #E0E0E0;
    
    /* Text */
    --text-main: #333333;
    --text-sub: #666666;
    --text-muted: #999999;
    
    /* 기능성 */
    --success: #33cc00;
    --warning: #F5A623;
    --danger: #E60012;
    --info: #3182CE;
    
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.ferry-booking-container {
    font-family: 'Noto Sans KR', -apple-system, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: var(--text-main);
    background: var(--bg-wide);
}

/* ===========================
   Progress Steps
   =========================== */
.booking-steps {
    display: flex;
    background: var(--bg-narrow);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.booking-steps .step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    color: var(--text-muted);
    position: relative;
    background: var(--bg-narrow);
    transition: all 0.3s ease;
}

.booking-steps .step::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40%;
    background: var(--line);
}
.booking-steps .step:last-child::after { display: none; }

/* 활성 단계 - 메인 그린 */
.booking-steps .step.active { 
    color: white; 
    background: var(--main);
}

/* 완료된 단계 */
.booking-steps .step.completed { 
    color: var(--text-main);
    background: white;
}

.step-number {
    width: 36px; 
    height: 36px;
    border-radius: 50%;
    background: var(--line);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 15px;
}

.step.active .step-number { 
    background: white; 
    color: var(--main); 
}

.step.completed .step-number {
    background: var(--main);
    color: white;
}

.step-label { font-size: 13px; text-align: center; font-weight: 500; }

/* ===========================
   Cards
   =========================== */
.booking-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 28px;
    margin-bottom: 24px;
    border: 1px solid var(--line);
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--sub-deep);
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--main);
    text-align: center;
}

/* ===========================
   Forms
   =========================== */
.form-group { margin-bottom: 20px; }
.form-group label { 
    display: block; 
    font-weight: 600; 
    margin-bottom: 8px; 
    color: var(--text-main);
}
.form-group label.required::after { 
    content: '*'; 
    color: var(--point); 
    margin-left: 4px; 
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 15px;
    color: var(--text-main);
    background: white;
    transition: all 0.2s ease;
    min-height: 48px;
    line-height: 1.4;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--main);
    box-shadow: 0 0 0 3px rgba(51, 204, 0, 0.15);
}

.hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; display: block; }
.form-hint { font-size: 12px; color: var(--point); margin-top: 4px; }

/* ===========================
   Trip Type Buttons
   =========================== */
.trip-type-buttons { display: flex; gap: 12px; }
.trip-btn {
    flex: 1; 
    padding: 14px;
    border: 2px solid var(--line);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    background: white;
    font-weight: 500;
    color: var(--text-sub);
    transition: all 0.2s ease;
}
.trip-btn input { display: none; }
.trip-btn:hover { border-color: var(--text-muted); }
.trip-btn.active, .trip-btn:has(input:checked) {
    border-color: var(--main);
    background: white;
    color: var(--main);
}

/* ===========================
   Passenger Grid
   =========================== */
.passenger-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.passenger-item { display: flex; flex-direction: column; gap: 4px; }
.pax-label { font-weight: 500; font-size: 14px; color: var(--text-main); }
.pax-desc { font-size: 11px; color: var(--text-muted); }

.age-calc-btn {
    margin-top: 12px; 
    padding: 10px 16px;
    background: var(--bg-narrow);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text-sub);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}
.age-calc-btn:hover {
    background: var(--main);
    border-color: var(--main);
    color: white;
}

/* Route */
.route-select { display: flex; gap: 12px; }
.route-select select, .route-select input { flex: 1; }

/* ===========================
   Custom Calendar (커스텀 달력)
   =========================== */
.date-input-display {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 15px;
    color: var(--text-main);
    background: white 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='%23888' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") no-repeat right 12px center;
    background-size: 18px;
    cursor: pointer;
}

.date-input-display:focus,
.date-input-display.active {
    outline: none;
    border-color: var(--main);
    box-shadow: 0 0 0 3px rgba(51, 204, 0, 0.15);
}

/* 달력 오버레이 */
.ferry-calendar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
}

.ferry-calendar-popup {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    animation: ferryCalFadeIn 0.2s ease;
}

@keyframes ferryCalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.ferry-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--sub-deep);
    color: white;
}

.ferry-cal-title {
    font-size: 18px;
    font-weight: 600;
}

.ferry-cal-nav {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.ferry-cal-nav:hover {
    background: rgba(255,255,255,0.2);
}

/* 달력 월 컨테이너 */
.ferry-calendar-months {
    display: flex;
    gap: 0;
    padding: 16px;
    overflow-x: auto;
    background: white;
}

.ferry-cal-month {
    flex: 1;
    min-width: 260px;
    padding: 0 8px;
    border-right: 1px solid var(--line);
}

.ferry-cal-month:last-child {
    border-right: none;
}

.ferry-month-title {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    padding: 8px 0 12px;
}

.ferry-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 4px;
}

.ferry-weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 6px 0;
}

.ferry-weekday.sun { color: var(--point); }
.ferry-weekday.sat { color: #2196F3; }

.ferry-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.ferry-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.ferry-day:hover:not(.disabled):not(.empty) {
    background: var(--bg-narrow);
}

.ferry-day.empty {
    cursor: default;
}

.ferry-day.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.ferry-day.today {
    border: 2px solid var(--main);
}

.ferry-day.sun { color: var(--point); }
.ferry-day.sat { color: #2196F3; }

.ferry-day.start,
.ferry-day.end {
    background: var(--main) !important;
    color: white !important;
    border-radius: 6px;
}

.ferry-day.in-range {
    background: rgba(51, 204, 0, 0.15);
    border-radius: 0;
}

.ferry-day.start {
    border-radius: 6px 0 0 6px;
}

.ferry-day.end {
    border-radius: 0 6px 6px 0;
}

.ferry-day.start.end {
    border-radius: 6px;
}

/* 달력 푸터 */
.ferry-calendar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-narrow);
    border-top: 1px solid var(--line);
}

.ferry-selected-dates {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-sub);
}

.ferry-selected-dates strong {
    color: var(--main);
    font-weight: 600;
}

.ferry-cal-actions {
    display: flex;
    gap: 10px;
}

.ferry-cal-cancel {
    padding: 10px 20px;
    border: 1px solid var(--line);
    background: white;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-sub);
    cursor: pointer;
}

.ferry-cal-cancel:hover {
    background: var(--bg-narrow);
}

.ferry-cal-confirm {
    padding: 10px 24px;
    border: none;
    background: var(--main);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    color: white;
    cursor: pointer;
}

.ferry-cal-confirm:hover {
    background: var(--main-dark);
}

/* 모바일 달력 */
@media (max-width: 768px) {
    .ferry-calendar-overlay {
        padding: 0;
        align-items: flex-end;
    }
    
    .ferry-calendar-popup {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-height: 85vh;
    }
    
    .ferry-calendar-months {
        flex-direction: column;
        max-height: 50vh;
        overflow-y: auto;
    }
    
    .ferry-cal-month {
        min-width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--line);
        padding-bottom: 16px;
        margin-bottom: 16px;
    }
    
    .ferry-cal-month:last-child {
        border-bottom: none;
    }
    
    .ferry-calendar-footer {
        flex-direction: column;
        gap: 12px;
    }
    
    .ferry-selected-dates {
        width: 100%;
        justify-content: center;
    }
    
    .ferry-cal-actions {
        width: 100%;
    }
    
    .ferry-cal-cancel, .ferry-cal-confirm {
        flex: 1;
    }
}

/* ===========================
   Buttons
   =========================== */
.btn-search {
    width: 100%; 
    padding: 16px;
    background: var(--main);
    color: white; 
    border: none;
    border-radius: var(--radius);
    font-size: 16px; 
    font-weight: 600;
    cursor: pointer;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px;
    transition: all 0.2s;
}
.btn-search:hover { 
    background: var(--main-dark); 
}

.btn-next {
    padding: 16px 32px;
    background: var(--main);
    color: white; 
    border: none;
    border-radius: var(--radius);
    font-size: 16px; 
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-next:hover:not(:disabled) { 
    background: var(--main-dark);
}
.btn-next:disabled { 
    background: var(--line); 
    cursor: not-allowed; 
}

/* ===========================
   Info Box
   =========================== */
.info-box {
    background: var(--bg-narrow);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 20px;
}
.info-box h4 { margin: 0 0 12px; font-size: 15px; color: var(--text-main); }
.info-box ul { margin: 0; padding-left: 20px; }
.info-box li { margin-bottom: 6px; font-size: 13px; color: var(--text-sub); }
.info-box.warning { 
    background: var(--bg-narrow); 
    border-color: var(--line);
    border-left: 4px solid var(--main);
}
.info-box.notice { 
    background: var(--bg-narrow); 
    border-color: var(--line);
    border-left: 4px solid var(--main);
}

.text-danger { color: var(--point) !important; }
.text-primary { color: var(--main) !important; }
.text-success { color: var(--main) !important; }

/* ===========================
   Schedule Section
   =========================== */
.schedule-section {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-narrow);
    border-bottom: 1px solid var(--line);
}
.section-header h3 { 
    margin: 0; 
    font-size: 18px; 
    color: var(--sub-deep);
}

.date-nav { display: flex; align-items: center; gap: 12px; }
.nav-btn { 
    padding: 6px 12px; 
    background: white; 
    border: 1px solid var(--line); 
    border-radius: 4px; 
    cursor: pointer; 
    transition: all 0.2s;
    color: var(--text-sub);
}
.nav-btn:hover {
    border-color: var(--main);
    color: var(--main);
}
.current-date { font-weight: 600; color: var(--main); }
.selected-date { 
    font-size: 14px; 
    color: var(--main); 
    font-weight: 600;
    background: white;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--main);
}

.schedule-table-wrap { overflow-x: auto; }
.schedule-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.schedule-table th, .schedule-table td { 
    padding: 12px 8px; 
    text-align: center; 
    border-bottom: 1px solid var(--line); 
}
.schedule-table th { 
    background: var(--bg-narrow); 
    font-weight: 600; 
    font-size: 12px; 
    color: var(--text-sub);
}
.schedule-table tbody tr:hover { background: var(--bg-narrow); }
.schedule-table tbody tr.selected { 
    background: var(--bg-narrow); 
    border-left: 3px solid var(--main);
}
.price-original { text-decoration: line-through; color: var(--text-muted); }
.price-discount { color: var(--point); font-weight: 700; }

/* ===========================
   Price Summary
   =========================== */
.price-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: sticky;
    bottom: 20px;
}
.summary-item { text-align: center; }
.summary-item .label { display: block; font-size: 12px; color: var(--text-muted); }
.summary-item .value { font-size: 24px; font-weight: 700; color: var(--text-main); }
.summary-item.total .value { font-size: 32px; color: var(--point); }
.plus, .equals { font-size: 24px; color: var(--text-muted); font-weight: 700; }

/* ===========================
   Search Summary Bar
   =========================== */
.search-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    color: var(--text-main);
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    border-left: 4px solid var(--main);
}
.summary-info { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.summary-info span { font-size: 15px; color: var(--text-sub); }
.route-info { 
    font-weight: 700; 
    font-size: 18px !important; 
    color: var(--sub-deep) !important;
    background: var(--bg-narrow);
    padding: 6px 14px;
    border-radius: 6px;
}
.btn-modify {
    padding: 10px 18px;
    background: var(--sub-deep);
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}
.btn-modify:hover {
    background: var(--sub-light);
}

/* ===========================
   Schedule Cards
   =========================== */
.schedule-cards { 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
    padding: 16px;
    background: white;
}
.schedule-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: white;
    border: 2px solid var(--line);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-wrap: wrap;
}
.schedule-card:hover { 
    border-color: var(--main); 
    box-shadow: var(--shadow);
}
.schedule-card.selected { 
    border-color: var(--main); 
    border-width: 2px;
    box-shadow: 0 0 0 3px rgba(51, 204, 0, 0.15);
    background: white;
}

.schedule-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 140px;
}

.schedule-time { display: flex; align-items: center; gap: 8px; }
.schedule-time .time { font-size: 20px; font-weight: 700; color: var(--text-main); }
.schedule-time .arrow { color: var(--main); font-size: 18px; }

.schedule-info { }
.schedule-info .route { display: block; font-weight: 600; color: var(--text-main); font-size: 15px; }
.schedule-info .class { font-size: 12px; color: var(--text-muted); }
.schedule-info .fare-type { 
    display: inline-block; 
    background: var(--bg-narrow); 
    color: var(--text-sub); 
    font-size: 11px; 
    padding: 3px 10px; 
    border-radius: 20px; 
    margin-left: 6px;
    font-weight: 600;
    border: 1px solid var(--line);
}

.schedule-price { text-align: right; min-width: 100px; margin-left: auto; }
.schedule-price .original-price { 
    text-decoration: line-through; 
    color: var(--text-muted); 
    font-size: 13px; 
    display: block; 
}
.schedule-price .discount-price { 
    font-size: 22px; 
    font-weight: 700; 
    color: var(--point); 
}
.schedule-price .discount-badge { 
    display: inline-block; 
    background: var(--point); 
    color: white; 
    font-size: 11px; 
    padding: 2px 8px; 
    border-radius: 4px; 
    margin-left: 4px; 
}

.schedule-seats { min-width: 80px; text-align: center; }
.seats-available { 
    font-size: 13px; 
    color: var(--main); 
    font-weight: 600;
    background: var(--bg-narrow);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--line);
}

.schedule-select { min-width: 80px; text-align: center; }
.btn-select {
    padding: 12px 22px;
    background: var(--sub-deep);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-select:hover { 
    background: var(--sub-light);
}
.schedule-card.selected .btn-select { 
    background: var(--main); 
}

/* ===========================
   Admin Notice - 연회색 + 그린 강조선
   =========================== */
.admin-notice {
    background: var(--bg-narrow);
    color: var(--text-sub);
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-weight: 600;
    border: 1px solid var(--line);
    border-left: 4px solid var(--main);
}

.admin-prices {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 12px;
}

.admin-prices .price-item {
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.admin-prices .price-item.general { background: var(--bg-narrow); color: var(--text-sub); }
.admin-prices .price-item.gold { background: #FFF8E7; color: #8B6914; }
.admin-prices .price-item.diamond { background: #E8F4FD; color: #1565C0; }
.admin-prices .price-item.agency { background: #E8F8E8; color: #2E7D32; }

/* ===========================
   Grade Notice
   =========================== */
.grade-notice {
    background: var(--bg-narrow);
    color: var(--text-main);
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 14px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--main);
}
.grade-badge {
    display: inline-block;
    background: var(--main);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 600;
    margin-right: 8px;
}
.discount-badge.grade {
    background: var(--point);
}
.discount-price.grade-price {
    color: var(--point);
}
.discount-price.oneway-price {
    color: var(--point);
    font-weight: 700;
}
.price-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.no-schedule, .loading, .error { 
    padding: 40px; 
    text-align: center; 
    color: var(--text-muted); 
}

/* ===========================
   Price Summary Bar
   =========================== */
.price-summary-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-top: 24px;
    position: sticky;
    bottom: 20px;
    border: 1px solid var(--line);
}
.price-detail { display: flex; gap: 32px; }
.price-item { text-align: center; }
.price-item .label { 
    display: block; 
    font-size: 12px; 
    color: var(--text-muted); 
    margin-bottom: 4px; 
}
.price-item .value { 
    font-size: 18px; 
    font-weight: 600; 
    color: var(--text-main); 
}
.price-item.total .value { 
    font-size: 28px; 
    color: var(--point); 
}

/* ===========================
   Passenger Form
   =========================== */
.passenger-form-item {
    background: var(--bg-narrow);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}
.pax-header { 
    display: flex; 
    justify-content: flex-start;
    align-items: center; 
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}
.pax-number { 
    font-weight: 700; 
    color: var(--sub-deep);
    font-size: 16px;
    min-width: 80px;
    white-space: nowrap;
}
.pax-type-select { 
    padding: 12px 16px; 
    border: 1px solid var(--line); 
    border-radius: 6px;
    font-weight: 500;
    min-width: 160px;
    min-height: 44px;
    font-size: 14px;
}
.same-as-booker {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-sub);
    cursor: pointer;
    margin-left: auto;
}
.same-as-booker input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--main);
}
.passenger-form-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); 
    gap: 14px; 
}
.passenger-form-grid .form-group select {
    min-height: 44px;
    padding: 12px 14px;
}
.form-group-birth {
    grid-column: span 2;
}
.birth-selects {
    display: flex;
    gap: 8px;
}
.birth-selects select {
    flex: 1;
    padding: 12px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 14px;
    min-width: 0;
    min-height: 44px;
}
.birth-selects .birth-year {
    flex: 1.2;
}
.birth-selects .birth-month,
.birth-selects .birth-day {
    flex: 0.9;
}
.passenger-type-info { 
    background: var(--bg-narrow); 
    padding: 14px 18px; 
    border-radius: var(--radius); 
    margin-bottom: 16px; 
    font-size: 13px;
    color: var(--text-sub);
    border: 1px solid var(--line);
}

/* 모바일 승선자 폼 */
@media (max-width: 768px) {
    .pax-header {
        flex-wrap: wrap;
    }
    .pax-number {
        min-width: 50%;
        flex: 0 0 auto;
    }
    .pax-type-select {
        min-width: calc(50% - 8px);
        flex: 1;
    }
    .same-as-booker {
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
        justify-content: flex-start;
    }
    .passenger-form-grid {
        grid-template-columns: 1fr;
    }
    .form-group-birth {
        grid-column: span 1;
    }
    .birth-selects {
        flex-wrap: nowrap;
    }
    .birth-selects select {
        padding: 12px 6px;
        font-size: 13px;
        min-height: 44px;
    }
}

/* ===========================
   Payment Info - 연회색 + 그린 강조선
   =========================== */
.payment-info-box { 
    background: var(--bg-narrow); 
    border: 1px solid var(--line); 
    border-left: 4px solid var(--main);
    border-radius: var(--radius); 
    padding: 18px; 
}
.bank-info { 
    font-size: 18px; 
    font-weight: 700; 
    color: var(--text-main); 
    margin: 10px 0; 
}

/* ===========================
   Final Payment Section
   =========================== */
.final-payment { 
    text-align: center; 
    padding: 28px; 
    background: var(--bg-narrow);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg); 
    margin-top: 24px; 
}
.payment-amount { 
    color: var(--text-main); 
    font-size: 20px; 
    margin-bottom: 20px; 
}
.payment-amount .amount { 
    font-size: 40px; 
    font-weight: 700; 
    color: var(--point); 
}

.btn-submit {
    padding: 16px 48px;
    background: var(--main);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(51, 204, 0, 0.3);
}
.btn-submit:hover {
    background: var(--main-dark);
}

/* Form Rows */
.form-row { display: flex; gap: 16px; margin-bottom: 16px; }
.form-row .form-group { flex: 1; margin-bottom: 0; }
.form-note { font-size: 13px; color: var(--point); margin-top: 12px; }

/* ===========================
   Complete Page
   =========================== */
.booking-complete-container { max-width: 800px; margin: 0 auto; }
.complete-icon { font-size: 64px; margin-bottom: 16px; }
.complete-title { 
    font-size: 28px; 
    color: var(--main); 
    margin-bottom: 8px; 
}
.booking-number-display { 
    font-size: 32px; 
    font-weight: 700; 
    color: var(--point); 
    margin: 16px 0; 
}

.detail-section { margin-bottom: 24px; }
.detail-section h3 { 
    font-size: 16px; 
    margin-bottom: 12px; 
    color: var(--sub-deep);
    padding-left: 12px;
    border-left: 3px solid var(--main);
}
.detail-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.detail-table th, .detail-table td { 
    padding: 12px 10px; 
    border: 1px solid var(--line); 
    text-align: center; 
}
.detail-table th { background: var(--bg-narrow); color: var(--text-main); }

.info-table { width: 100%; }
.info-table th, .info-table td { 
    padding: 12px 0; 
    border-bottom: 1px solid var(--line); 
}
.info-table th { 
    width: 120px; 
    color: var(--text-muted); 
    text-align: left; 
}

.payment-status-bar { 
    background: var(--bg-narrow); 
    border: 1px solid var(--line); 
    border-left: 4px solid var(--main);
    border-radius: var(--radius); 
    padding: 18px; 
    margin: 24px 0; 
}
.status-row { display: flex; justify-content: space-between; padding: 8px 0; }
.status-row .paid { color: var(--main); font-weight: 700; }
.status-row.outstanding { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; }
.status-row .unpaid { color: var(--point); font-weight: 700; font-size: 18px; }

.complete-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }
.btn-primary { 
    padding: 14px 28px; 
    background: var(--main); 
    color: white; 
    border: none; 
    border-radius: var(--radius); 
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-primary:hover { background: var(--main-dark); }
.btn-secondary { 
    padding: 14px 28px; 
    background: white; 
    color: var(--text-main); 
    border: 1px solid var(--line); 
    border-radius: var(--radius); 
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--main); color: var(--main); }
.btn-cancel { 
    padding: 12px 24px; 
    background: var(--point); 
    color: white; 
    border: none; 
    border-radius: var(--radius); 
    cursor: pointer; 
}
.btn-back { 
    display: inline-block; 
    margin-top: 24px; 
    color: var(--main); 
    text-decoration: none; 
}
.btn-back:hover { text-decoration: underline; }

/* ===========================
   Modal
   =========================== */
.modal { 
    display: none; 
    position: fixed; 
    top: 0; left: 0; right: 0; bottom: 0; 
    background: rgba(0,0,0,0.5); 
    z-index: 9999; 
    align-items: center; 
    justify-content: center; 
}
.modal.show { display: flex; }
.modal-content { 
    background: white; 
    padding: 28px; 
    border-radius: var(--radius-lg); 
    max-width: 500px; 
    width: 90%; 
}
.age-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 13px; }
.age-table th, .age-table td { padding: 10px; border: 1px solid var(--line); }
.age-table th { background: var(--bg-narrow); }
.calc-form { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.date-inputs { display: flex; gap: 8px; margin: 12px 0; }
.date-inputs input { flex: 1; padding: 10px; border: 1px solid var(--line); border-radius: 4px; }
.btn-close { 
    width: 100%; 
    padding: 14px; 
    background: var(--sub-deep); 
    color: white; 
    border: none; 
    border-radius: var(--radius); 
    cursor: pointer; 
    margin-top: 16px;
    font-weight: 600;
}

/* Status Badges */
.status-badge { 
    display: inline-block; 
    padding: 5px 14px; 
    border-radius: 20px; 
    font-size: 12px; 
    font-weight: 600; 
}
.status-pending { background: #FFF8E7; color: #8B6914; }
.status-paid, .status-completed { background: #E8F8E8; color: #2E7D32; }
.status-cancelled { background: #FCEAEA; color: var(--point); }

/* ===========================
   Form Grid
   =========================== */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.form-grid .full-width {
    grid-column: 1 / -1;
}

/* Form Section */
.form-section {
    margin-bottom: 32px;
}
.form-section h3 {
    font-size: 18px;
    color: var(--sub-deep);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--line);
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
    .booking-steps { flex-direction: column; }
    .booking-steps .step { 
        flex-direction: row; 
        gap: 12px; 
        padding: 12px 16px; 
    }
    .booking-steps .step::after {
        display: none;
    }
    
    .form-grid, .passenger-grid { grid-template-columns: 1fr; }
    .route-select { flex-direction: column; }
    
    .price-summary { flex-direction: column; position: static; }
    .summary-item .value { font-size: 20px; }
    .summary-item.total .value { font-size: 28px; }
    
    .complete-actions { flex-direction: column; }
    .btn-primary, .btn-secondary { width: 100%; text-align: center; }
    
    .search-summary { flex-direction: column; gap: 12px; text-align: center; }
    .summary-info { justify-content: center; }
    
    .schedule-card { flex-wrap: wrap; }
    .schedule-main { min-width: 100%; text-align: center; }
    .schedule-time { justify-content: center; }
    .schedule-info { justify-content: center; }
    .schedule-price { min-width: 100%; text-align: center; margin-top: 8px; }
    .schedule-price .discount-price { display: block; }
    .schedule-seats { min-width: 100%; text-align: center; margin-top: 8px; }
    .schedule-select { min-width: 100%; margin-top: 12px; }
    
    .price-summary-bar { 
        flex-direction: column; 
        gap: 16px; 
        position: static; 
    }
    .price-detail { flex-wrap: wrap; justify-content: center; }
    
    .form-row { flex-direction: column; }
    
    .final-payment {
        padding: 20px;
    }
    .payment-amount .amount {
        font-size: 32px;
    }
}

/* ===========================
   Animations
   =========================== */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===========================
   Date Navigator (날짜 네비게이터)
   =========================== */
.date-navigator {
    display: flex;
    align-items: center;
    margin: 12px 0 16px 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 6px;
    width: 100%;
}

.date-navigator .nav-btn {
    width: 24px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 16px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    padding: 0;
}

.date-navigator .nav-btn:hover {
    color: var(--main);
}

.date-navigator .date-list {
    display: flex;
    flex: 1;
    gap: 4px;
}

.date-navigator .date-item {
    flex: 1;
    padding: 8px 4px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.date-navigator .date-item:hover {
    border-color: var(--main);
    background: rgba(51, 204, 0, 0.05);
}

.date-navigator .date-item.active {
    background: var(--sub-deep);
    border-color: var(--sub-deep);
    color: #fff;
}

.date-navigator .date-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f5f5f5;
}

.date-navigator .date-item .date-day {
    font-size: 15px;
    font-weight: 600;
    display: block;
}

.date-navigator .date-item .date-weekday {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-top: 1px;
}

.date-navigator .date-item.active .date-weekday {
    color: rgba(255,255,255,0.8);
}

.date-navigator .date-item.sunday .date-day,
.date-navigator .date-item.sunday .date-weekday {
    color: #E60012;
}

.date-navigator .date-item.saturday .date-day,
.date-navigator .date-item.saturday .date-weekday {
    color: #3182CE;
}

.date-navigator .date-item.active.sunday .date-day,
.date-navigator .date-item.active.sunday .date-weekday,
.date-navigator .date-item.active.saturday .date-day,
.date-navigator .date-item.active.saturday .date-weekday {
    color: #fff;
}

/* 날짜별 잔여좌석 표시 */
.date-navigator .date-item .date-seats {
    font-size: 10px;
    color: #22c55e;
    display: block;
    margin-top: 2px;
    font-weight: 500;
}

.date-navigator .date-item .date-seats.few {
    color: #f59e0b;
}

.date-navigator .date-item .date-seats.soldout {
    color: #ef4444;
}

.date-navigator .date-item.active .date-seats {
    color: rgba(255,255,255,0.9);
}

/* 스케줄 카드 잔여석 표시 */
.schedule-info .seats-info {
    background: #e0f2fe;
    color: #0369a1;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* 잔여좌석 부족 경고 */
.seats-warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    text-align: center;
}

/* 출발편과 동일한 조건 버튼 */
.btn-same-condition {
    background: #fff;
    border: 1px solid #E60012;
    color: #E60012;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-same-condition:hover {
    background: #E60012;
    color: #fff;
}

/* 섹션 헤더 수정 */
.schedule-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.schedule-section .section-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-main);
}

/* ===========================
   PC 전용 스타일
   =========================== */
.is-desktop .date-navigator {
    padding: 8px 6px;
}

.is-desktop .date-navigator .nav-btn {
    width: 28px;
    height: 40px;
    font-size: 18px;
}

.is-desktop .date-navigator .date-list {
    gap: 6px;
}

.is-desktop .date-navigator .date-item {
    padding: 10px 6px;
}

.is-desktop .date-navigator .date-item .date-day {
    font-size: 16px;
}

.is-desktop .date-navigator .date-item .date-weekday {
    font-size: 12px;
}

/* ===========================
   모바일 전용 스타일
   =========================== */
.is-mobile .date-navigator {
    padding: 4px;
    overflow: hidden;
}

.is-mobile .date-navigator .nav-btn {
    display: none;
}

.is-mobile .date-navigator .date-list {
    gap: 3px;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0;
    transition: transform 0.3s ease-out;
    justify-content: center;
}

.is-mobile .date-navigator .date-list::-webkit-scrollbar {
    display: none;
}

.is-mobile .date-navigator .date-item {
    padding: 8px 6px;
    min-width: calc((100% - 12px) / 5);
    max-width: calc((100% - 12px) / 5);
    flex-shrink: 0;
    scroll-snap-align: center;
    transition: all 0.2s ease;
}

/* 모바일: 7개 중 첫째/마지막 숨김 → 5개 표시, 선택된 날짜가 중간 */
.is-mobile .date-navigator .date-item:first-child,
.is-mobile .date-navigator .date-item:last-child {
    display: none;
}

.is-mobile .date-navigator .date-item .date-day {
    font-size: 14px;
}

.is-mobile .date-navigator .date-item .date-weekday {
    font-size: 10px;
}

/* 모바일 승선비/유류세 상세 패널 세로 배치 */
.is-mobile .schedule-details-wrapper {
    flex-direction: column;
    flex-wrap: wrap;
}

.is-mobile .schedule-card .schedule-fare-detail,
.is-mobile .schedule-card .schedule-fuel-detail {
    width: 100%;
    max-width: 100%;
}

/* 스와이프 피드백 애니메이션 */
.is-mobile .date-navigator.swiping .date-list {
    opacity: 0.7;
}

.is-mobile .date-navigator .date-list.slide-left {
    animation: slideLeft 0.25s ease-out;
}

.is-mobile .date-navigator .date-list.slide-right {
    animation: slideRight 0.25s ease-out;
}

@keyframes slideLeft {
    0% { transform: translateX(30px); opacity: 0.5; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideRight {
    0% { transform: translateX(-30px); opacity: 0.5; }
    100% { transform: translateX(0); opacity: 1; }
}

.is-mobile .schedule-section .section-header {
    flex-wrap: wrap;
    gap: 8px;
}

.is-mobile .schedule-section .section-header h3 {
    font-size: 15px;
}

.is-mobile .btn-same-condition {
    font-size: 11px;
    padding: 4px 8px;
}

/* ===========================
   조건 변경 모달
   =========================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-main);
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-narrow);
    border-radius: 50%;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--line);
    color: var(--text-main);
}

.modal-body {
    padding: 24px;
}

.modal-form-group {
    margin-bottom: 20px;
}

.modal-form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    font-size: 14px;
}

.modal-form-group input[type="date"],
.modal-form-group input[type="text"],
.modal-form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 15px;
    color: var(--text-main);
    background: white;
}

.modal-form-group .date-input-display {
    cursor: pointer;
    pointer-events: auto;
}

.modal-form-group input[type="date"]:focus,
.modal-form-group select:focus {
    outline: none;
    border-color: var(--main);
    box-shadow: 0 0 0 3px rgba(51, 204, 0, 0.15);
}

.modal-form-row {
    display: flex;
    gap: 16px;
}

.modal-form-row .modal-form-group {
    flex: 1;
}

.modal-body .trip-type-toggle {
    display: flex;
    gap: 12px;
}

.modal-body .trip-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 2px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.modal-body .trip-option input {
    display: none;
}

.modal-body .trip-option:has(input:checked) {
    border-color: var(--main);
    background: rgba(51, 204, 0, 0.05);
    color: var(--main);
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--line);
    background: var(--bg-narrow);
}

.btn-modal-cancel {
    flex: 1;
    padding: 14px;
    border: 1px solid var(--line);
    background: white;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-sub);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-modal-cancel:hover {
    background: var(--bg-narrow);
}

.btn-modal-search {
    flex: 2;
    padding: 14px;
    border: none;
    background: var(--main);
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-modal-search:hover {
    background: var(--main-hover);
}

/* 모바일 모달 */
@media (max-width: 600px) {
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
    
    .modal-content {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-height: 85vh;
    }
    
    .modal-form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* ========================================
   인원 상세 선택 UI
   ======================================== */
.pax-selector {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pax-selector .pax-label {
    font-size: 13px;
    color: var(--text-sub);
    white-space: nowrap;
}

.pax-selector select {
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
    min-width: 50px;
}

.pax-detail-selector {
    background: var(--bg-narrow);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 16px;
}

.pax-detail-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: center;
}

.pax-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 10px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.pax-type-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    min-width: 70px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.pax-type-label small {
    display: block;
    font-size: 10px;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 0;
    margin-top: 2px;
}

.pax-counter {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.pax-btn {
    width: 32px;
    height: 36px;
    border: none;
    background: var(--bg-narrow);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-sub);
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.pax-btn:hover {
    background: var(--line);
}

.pax-btn:active {
    background: var(--main);
    color: white;
}

.pax-count {
    min-width: 28px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    background: white;
    padding: 0 4px;
    line-height: 36px;
}

/* ========================================
   승선비 상세 표시
   ======================================== */
.schedule-fare-detail {
    background: #F0FFF0;
    border: 1px solid #C8E8C8;
    border-radius: var(--radius);
    padding: 12px;
}

.schedule-card.selected .schedule-fare-detail {
    display: block;
}

/* 승선비/유류세 상세 패널 컨테이너 */
.schedule-details-wrapper {
    display: none;
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: 10px;
}

.schedule-card.selected .schedule-details-wrapper {
    display: flex;
}

.schedule-card .schedule-fare-detail,
.schedule-card .schedule-fuel-detail {
    flex: 0 0 auto;
    width: 280px;
    margin-top: 0;
}

.fare-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--sub-deep);
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #C8E8C8;
}

.fare-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fare-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-sub);
}

.fare-item .fare-type {
    min-width: 40px;
    color: var(--main);
}

.fare-item .fare-calc {
    flex: 1;
    text-align: center;
    color: var(--text-muted);
}

.fare-item .fare-calc em {
    font-style: normal;
    color: var(--main);
    font-weight: 600;
}

.fare-subtotal {
    min-width: 70px;
    text-align: right;
    font-weight: 500;
}

.fare-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #C8E8C8;
    font-size: 13px;
    font-weight: 600;
    color: var(--sub-deep);
}

.fare-total-amount {
    color: var(--main);
}

/* ========================================
   유류세 상세 표시
   ======================================== */
.schedule-fuel-detail {
    background: #FFFEF0;
    border: 1px solid #E8E4C8;
    border-radius: var(--radius);
    padding: 12px;
}

.schedule-card.selected .schedule-fuel-detail {
    display: block;
}

.fuel-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--sub-deep);
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #E8E4C8;
}

.fuel-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fuel-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-sub);
}

.fuel-item span:first-child {
    min-width: 40px;
}

.fuel-item span:nth-child(2) {
    flex: 1;
    text-align: center;
    color: var(--text-muted);
}

.fuel-item span:nth-child(2) em {
    font-style: normal;
    color: var(--main);
    font-weight: 600;
}

.fuel-subtotal {
    min-width: 70px;
    text-align: right;
    font-weight: 500;
}

.fuel-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #E8E4C8;
    font-size: 13px;
    font-weight: 600;
    color: var(--sub-deep);
}

.fuel-total-amount {
    color: var(--point);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .search-summary {
        flex-direction: column;
        gap: 10px;
    }
    
    .pax-selector {
        margin-left: 0;
        justify-content: center;
    }
    
    .pax-detail-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .pax-detail-item {
        justify-content: space-between;
        padding: 12px 16px;
    }
    
    /* 모바일 인원 선택 버튼 크게 */
    .pax-btn {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    
    .pax-count {
        min-width: 36px;
        font-size: 18px;
        line-height: 44px;
    }
    
    .pax-type-label {
        font-size: 17px;
    }
    
    .pax-type-label small {
        font-size: 11px;
    }
    
    .schedule-fuel-detail {
        padding: 10px;
    }
    
    .fuel-item {
        font-size: 11px;
    }
}

/* ===========================
   가중치/할인 표시 스타일
   =========================== */
.surcharge-info {
    display: block;
    font-size: 11px;
    color: #E60012;
    margin-top: 2px;
}

.surcharge-info.discount {
    color: var(--main);
}

.text-success {
    color: var(--main) !important;
    font-weight: 600;
}

#discount-row td {
    background: #F0FFF4;
    border-left: 3px solid var(--main);
}

.price-summary-discount {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--line);
    color: var(--main);
    font-weight: 500;
}
