/**
 * GJ-3673: Suggested Flights Section Styles
 * 
 * UX: Desktop dense rows like tour 航班時間; mobile stacked cards
 * Features: trip chip, multi-option tabs, open-jaw banner, overnight indicator, disclaimer
 */

/* Section Container - matches other cruise page sections like Terms & Conditions */
.suggested-flights-section {
    margin: 16px 0;
}

/* Open-Jaw Banner */
.suggested-flights-open-jaw-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
    font-size: 14px;
    margin: 0 0 8px 0;
}

.suggested-flights-open-jaw-banner .material-icons {
    font-size: 20px;
    transform: rotate(90deg);
}

/* Multi-Option Tabs */
.suggested-flights-tabs {
    display: flex;
    gap: 0;
    padding: 0 8px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.suggested-flights-tab {
    padding: 12px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.suggested-flights-tab:hover {
    color: #1c2352;
    background: rgba(28, 35, 82, 0.05);
}

.suggested-flights-tab.is-active {
    color: #1c2352;
    border-bottom-color: #1c2352;
    background: white;
}

/* Option Panels */
.suggested-flights-option {
    display: none;
    padding: 0;
}

.suggested-flights-option.is-active {
    display: block;
}

/* Trip Chip */
.suggested-flights-trip-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 12px 16px 8px;
    padding: 6px 14px 6px 10px;
    background: #e8eaf6;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    color: #1c2352;
}

.trip-chip-icon {
    display: flex;
    align-items: center;
}

.trip-chip-icon .material-icons {
    font-size: 18px;
}

/* Desktop Table Styles */
.suggested-flights-table-wrapper {
    overflow-x: auto;
    padding: 8px 16px 16px;
}

.suggested-flights-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: white;
}

.suggested-flights-table thead {
    background: #f8f9fa;
}

.suggested-flights-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    white-space: nowrap;
}

.suggested-flights-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.suggested-flights-table tbody tr:hover {
    background: #f8f9fa;
}

.suggested-flights-table .sft-col-idx {
    width: 40px;
    text-align: center;
    font-weight: 600;
    color: #1c2352;
}

.suggested-flights-table .sft-col-airline {
    min-width: 120px;
}

/* Airline Logo in Table */
.sft-airline-logo {
    height: 24px;
    width: auto;
    vertical-align: middle;
    margin-right: 8px;
}

.sft-airline-name {
    vertical-align: middle;
}

.suggested-flights-table .sft-col-flight {
    font-weight: 500;
    white-space: nowrap;
}

.suggested-flights-table .sft-col-from,
.suggested-flights-table .sft-col-to {
    min-width: 80px;
}

.suggested-flights-table .sft-col-date {
    white-space: nowrap;
}

.suggested-flights-table .sft-col-time {
    white-space: nowrap;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Overnight Indicator */
.overnight-indicator {
    display: inline-block;
    padding: 1px 5px;
    margin-left: 4px;
    background: #ff9800;
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 3px;
    vertical-align: middle;
}

/* Mobile Card Styles */
.suggested-flights-mobile {
    padding: 8px 12px 16px;
}

.suggested-flight-card {
    background: white;
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
    overflow: hidden;
}

.suggested-flight-card:last-child {
    border-bottom: none;
}

.sfc-row {
    padding: 10px 14px;
}

.sfc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.sfc-idx {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #1c2352;
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 13px;
}

.sfc-flight-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sfc-flight-info strong {
    font-size: 15px;
    color: #1c2352;
}

.sfc-date {
    font-size: 12px;
    color: #666;
}

.sfc-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    gap: 8px;
}

.sfc-endpoint {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 0;
}

.sfc-origin {
    align-items: flex-start;
    text-align: left;
}

.sfc-destination {
    align-items: flex-end;
    text-align: right;
}

.sfc-endpoint strong {
    font-size: 18px;
    color: #1c2352;
    letter-spacing: 0.5px;
}

.sfc-time {
    font-size: 14px;
    color: #333;
    margin-top: 4px;
}

.sfc-arrow {
    display: flex;
    align-items: center;
    padding: 0 8px;
    color: #1c2352;
}

.sfc-arrow .material-icons {
    font-size: 24px;
    transform: rotate(90deg);
}

.sfc-details {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fafafa;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #666;
}

/* Airline Logo in Mobile Card */
.sfc-airline-logo {
    height: 24px;
    width: auto;
}

.sfc-airline {
    display: inline;
}

/* Disclaimer */
.suggested-flights-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.suggested-flights-disclaimer .material-icons {
    font-size: 16px;
    color: #999;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Remark Fallback Styles */
.suggested-flights-remark .suggested-flights-content {
    padding: 16px;
    background: white;
}

.suggested-flights-remark ul {
    margin: 0;
    padding-left: 24px;
}

.suggested-flights-remark li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .suggested-flights-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .suggested-flights-tab {
        padding: 10px 16px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    .suggested-flights-trip-chip {
        margin: 8px 12px;
    }
    
    .suggested-flights-disclaimer {
        padding: 10px 12px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .suggested-flights-table {
        font-size: 12px;
    }
    
    .suggested-flights-table th,
    .suggested-flights-table td {
        padding: 8px 10px;
    }
}

/* Print Styles */
@media print {
    .suggested-flights-section {
        page-break-inside: avoid;
    }
    
    .suggested-flights-tabs {
        display: none;
    }
    
    .suggested-flights-option {
        display: block !important;
    }
    
    .suggested-flights-option[hidden] {
        display: block !important;
    }
    
    .suggested-flights-table {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .suggested-flights-mobile {
        display: none !important;
    }
    
    .suggested-flights-table-wrapper {
        display: block !important;
    }
}
