

/* --- Root Setup --- */
:root {
    --primary: #2563eb;
    --accent: #6366f1;
    --bg-card: #ffffff;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --radius: 16px;
}

/* Container Modal หลัก */
.bl-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

/* กล่องเนื้อหา Modal */
.bl-modal-content {
    background: #fff;
    width: 90%;
    max-width: 600px; /* เพิ่มความกว้าง */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.bl-modal-header {
    background: #f8f9fa;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title-wrap { display: flex; align-items: center; gap: 10px; }
.bl-close { font-size: 28px; cursor: pointer; color: #aaa; }
.bl-close:hover { color: #333; }

.bl-modal-body { padding: 25px; max-height: 70vh; overflow-y: auto; }

/* การตกแต่ง Info Card ข้างใน */
.info-card {
    background: #fdfdfd;
    border: 1px solid #f0f0f0;
    border-radius: 15px;
    padding: 20px;
    position: relative;
    margin-bottom: 10px;
}
.card-badge {
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 11px;
    padding: 2px 12px;
    border-radius: 20px;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
}
.card-badge.origin { background: #3498db; }
.card-badge.dest { background: #27ae60; }

.info-main { display: flex; gap: 15px; margin-top: 5px; }
.info-icon { font-size: 24px; }
.station-name-big { font-size: 18px; font-weight: bold; color: #2c3e50; margin: 0 0 10px 0; }
.address-box { background: #fff; border-radius: 8px; padding: 12px; border-left: 3px solid #eee; }
.address-box strong { font-size: 12px; color: #999; display: block; margin-bottom: 4px; }
.station-addr-text { font-size: 14px; color: #555; line-height: 1.5; margin: 0; }

.modal-divider { text-align: center; margin: 5px 0; color: #ddd; position: relative; }
.modal-divider .line { height: 1px; background: #eee; width: 100%; }
.modal-divider .icon { background: #fff; width: 30px; margin: -10px auto 0; position: relative; z-index: 1; font-weight: bold; }

.bl-modal-footer { padding: 15px 25px; background: #f8f9fa; text-align: right; }
.bl-modal-close-btn { 
    background: #eee; border: none; padding: 8px 20px; border-radius: 8px; 
    cursor: pointer; font-weight: bold; color: #666; transition: 0.2s;
}
.bl-modal-close-btn:hover { background: #e0e0e0; color: #333; }

/* ปรับแต่งสำหรับมือถือ */
@media (max-width: 480px) {
    .bl-modal-content { width: 95%; }
    .station-name-big { font-size: 16px; }
    .bl-modal-body { padding: 15px; }
}




.book-btn.go { background-color: #e74c3c !important; }
.book-btn.back { background-color: #27ae60 !important; }

        .tt-search-form { display: flex; gap: 15px; background: #f1f5f9; padding: 20px; border-radius: 12px; align-items: flex-end; flex-wrap: wrap; }
        .tt-field { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 150px; }
        .tt-field label { font-size: 12px; font-weight: bold; color: #475569; }
        .tt-field input { padding: 10px; border: 1px solid #cbd5e1; border-radius: 6px; }
        .tt-submit { background: #ef4444; color: #fff; border: none; padding: 11px 25px; border-radius: 6px; font-weight: bold; cursor: pointer; }
        @media (max-width: 600px) { .tt-field { min-width: 100%; } .tt-submit { width: 100%; } }

        .tt-swap-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 15px; /* ปรับให้ตรงกับระดับช่อง Input */
}

.tt-swap-btn {
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #475569;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 18px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tt-swap-btn:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
    transform: rotate(180deg); /* เพิ่มลูกเล่นหมุนเวลาเอาเมาส์วาง */
}

/* ปรับแต่งสำหรับมือถือ */
@media (max-width: 600px) {
    .tt-swap-container {
        padding-top: 0;
        margin: -10px 0; /* ดึงให้ปุ่มเข้ามาใกล้ช่องบน-ล่างมากขึ้น */
        z-index: 1;
    }
}

.tt-search-section {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    max-width: 1100px;
    margin: 30px auto;
}

.tt-search-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 15px;
    align-items: flex-end;
}

.tt-input-field label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.tt-input-field input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
}

.tt-search-submit {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 0 35px;
    height: 48px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.tt-search-submit:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

/* Responsive สำหรับมือถือ */
@media (max-width: 768px) {
    .tt-search-form {
        grid-template-columns: 1fr;
    }
    .tt-search-submit {
        width: 100%;
        margin-top: 10px;
    }
}



/* กล่องรายการแนะนำ */
.tt-autocomplete-items {
    position: absolute;
    border: 1px solid #ddd;
    border-top: none;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tt-autocomplete-items div {
    padding: 12px 15px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #f8f8f8;
}

.tt-autocomplete-items div:last-child {
    border-bottom: none;
}

.tt-autocomplete-items div:hover {
    background-color: #f1f1f1;
    color: #e74c3c;
}

.tt-autocomplete-items strong {
    color: #e74c3c;
    font-weight: bold;
}


.tt-input-group { position: relative; }
.tt-autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    z-index: 9999; /* ต้องสูงกว่าชาวบ้าน */
    max-height: 250px;
    overflow-y: auto;
}
.tt-suggest-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}
.tt-suggest-item:hover { background: #f0f0f0; color: #e74c3c; }











        /* CSS ส่วนตัวของคุณคงไว้เหมือนเดิม */
        .baolau-card { transition: all 0.3s ease-in-out !important; cursor: pointer; border: 1px solid #eee !important; margin-bottom: 12px; padding: 12px !important; }
        .baolau-card:hover { background-color: #fffafb !important; border-color: #ff4d4f !important; box-shadow: 0 6px 16px rgba(255, 77, 79, 0.12) !important; transform: translateY(-3px); }
        .price-val { color: #ff4d4f !important; font-size: 22px !important; font-weight: 800 !important; }
        .currency { color: #ff4d4f !important; font-size: 13px !important; opacity: 0.9; margin-left: 2px; }
        .baolau-card:hover .book-btn { background-color: #d32f2f !important; }
        .baolau-tip-btn { background: #f1f3f5 !important; color: #666 !important; border: none !important; border-radius: 4px !important; padding: 4px 10px !important; font-size: 11px !important; cursor: pointer; display: inline-block; margin-top: 8px; transition: background 0.2s; }
        .route-info { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0; }
        .time-block { flex: 1; }
        .time-val { font-size: 18px !important; font-weight: 700; line-height: 1.2; }
        .date-sub { font-size: 11px; color: #888; }
        .station-val { font-size: 12px !important; color: #555; line-height: 1.3; margin-top: 2px; }
        .timeline-wrapper { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 60px; padding-top: 5px; }
        .duration-label { font-size: 11px; color: #999; margin-bottom: 2px; }
        .transport-icon-wrap { font-size: 16px; opacity: 0.7; }
        .op-logo { max-height: 30px; width: auto; margin-right: 8px; vertical-align: middle; }
        .op-name { font-weight: bold; font-size: 14px; }

 
        .bl-c-tabs-wrapper { margin: 20px 0; border: 1px solid #eef0f2; border-radius: 12px; background: #fff; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.08); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
        
        /* เพิ่มสไตล์หัวข้อเส้นทาง */
        .bl-c-route-header { background: #f8f9fa; padding: 12px 18px; border-bottom: 1px solid #eee; display: flex; align-items: center; gap: 8px; }
        .bl-c-route-title { font-size: 15px; font-weight: 800; color: #2c3e50; }
        .bl-c-route-icon { color: #ff4d4f; font-size: 14px; }

        .bl-c-tab-header { display: flex; background: #fff; border-bottom: 1px solid #f0f0f0; }
        .bl-c-tab-btn { flex: 1; padding: 12px 5px; border: none; background: #fdfdfd; cursor: pointer; text-align: center; border-right: 1px solid #f0f0f0; transition: all 0.3s; }
        .bl-c-tab-btn:last-child { border-right: none; }
        .bl-c-tab-btn.active { background: #fff; border-bottom: 3px solid #ff4d4f; }
        .bl-c-tab-btn .d-label { display: block; font-size: 10px; color: #aaa; text-transform: uppercase; margin-bottom: 2px; }
        .bl-c-tab-btn .v-label { display: block; font-size: 13px; font-weight: 700; color: #444; }

        .bl-c-list { display: none; animation: fadeIn 0.3s; }
        .bl-c-list.active { display: block; }
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

        .bl-c-item { display: flex; align-items: center; padding: 16px 18px; border-bottom: 1px solid #f8f8f8; text-decoration: none !important; color: inherit !important; transition: background 0.2s; }
        .bl-c-item:last-child { border-bottom: none; }
        .bl-c-item:hover { background: #fffafb; }
        
        .bl-c-logo-box { width: 50px; margin-right: 15px; flex-shrink: 0; }
        .bl-c-logo { width: 100%; height: auto; display: block; }
        
        .bl-c-main { flex: 1; min-width: 0; }
        .bl-c-op-name { display: block; font-weight: 700; font-size: 14px; color: #333; margin-bottom: 2px; }
        .bl-c-vessel-info { display: block; font-size: 11px; color: #888; }
        
        .bl-c-side { text-align: right; min-width: 110px; }
        .bl-c-price { display: block; font-weight: 800; color: #ff4d4f; font-size: 17px; margin-bottom: 4px; }
        .bl-c-time-range { display: inline-block; font-size: 12px; color: #333; font-weight: 700; background: #f1f2f6; padding: 3px 8px; border-radius: 6px; letter-spacing: 0.5px; }

        @media (max-width: 480px) {
            .bl-c-item { padding: 14px 15px; }
            .bl-c-logo-box { width: 45px; margin-right: 12px; }
            .bl-c-side { min-width: 100px; }
            .bl-c-price { font-size: 16px; }
            .bl-c-time-range { font-size: 11px; padding: 2px 6px; }
        }
   
   
        .baolau-operator-container { margin: 25px 0; border: 1px solid #eef0f2; border-radius: 16px; background: #fff; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.08); font-family: -apple-system, sans-serif; }
        .op-header-bar { padding: 15px 20px; background: linear-gradient(90deg, #fffafb 0%, #ffffff 100%); border-bottom: 2px solid #fdf2f2; display: flex; align-items: center; gap: 12px; }
        .op-header-bar img { height: 28px; width: auto; }
        
        .bl-c-tab-header { display: flex; background: #fcfcfc; border-bottom: 1px solid #f0f0f0; }
        .bl-c-tab-btn { flex: 1; padding: 14px 5px; border: none; background: none; cursor: pointer; text-align: center; border-right: 1px solid #f0f0f0; transition: all 0.3s; }
        .bl-c-tab-btn.active { background: #fff; border-bottom: 3px solid #ff4d4f; }
        .bl-c-tab-btn .d-label { display: block; font-size: 10px; color: #aaa; text-transform: uppercase; }
        .bl-c-tab-btn .v-label { display: block; font-size: 13px; font-weight: 700; color: #444; }

        .bl-c-list { display: none; }
        .bl-c-list.active { display: block; animation: fadeIn 0.3s; }
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

        .bl-c-item { display: flex; align-items: center; padding: 18px 20px; border-bottom: 1px solid #f9f9f9; text-decoration: none !important; color: inherit !important; }
        .bl-c-item:hover { background: #fff8f8; }
        
        .bl-c-main { flex: 1; min-width: 0; }
        .bl-c-name { display: block; font-weight: 700; font-size: 14px; color: #2c3e50; margin-bottom: 4px; }
        .vessel-badge { font-size: 11px; color: #95a5a6; }
        
        .bl-c-side { text-align: right; min-width: 115px; }
        .bl-c-price { display: block; font-weight: 800; color: #ff4d4f; font-size: 18px; margin-bottom: 5px; }
        .bl-c-time-range { display: inline-block; font-size: 12px; color: #333; font-weight: 700; background: #f1f2f6; padding: 3px 8px; border-radius: 6px; letter-spacing: 0.2px; }

        @media (max-width: 480px) {
            .bl-c-item { padding: 15px; }
            .bl-c-side { min-width: 100px; }
            .bl-c-price { font-size: 16px; }
        }
    

///
/* การจัดวางสไตล์ตั๋วแบบภาพตัวอย่าง */
.route-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 0;
}

.time-block {
    flex: 1;
}

.time-val {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

/* สไตล์วันที่ข้างใต้เวลา */
.date-sub {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
    font-weight: 400;
}

.city-name {
    font-size: 16px;
    text-transform: uppercase;
    color: #475569;
    margin-top: 15px; /* เว้นระยะจากวันที่ */
    letter-spacing: 0.5px;
}

.station-val {
    font-size: 13px;
    color: #94a3b8;
}

/* ส่วนกลาง: ระยะเวลาและไอคอน */
.timeline-wrapper {
    flex: 0 0 100px;
    text-align: center;
    padding-top: 5px;
}

.duration-label {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
}

.transport-icon-wrap {
    font-size: 24px;
    color: #059669; /* สีเขียวเหมือนในรูป */
    opacity: 0.8;
}

/* ปรับการแสดงผลในมือถือให้ยังดูดี */
@media (max-width: 600px) {
    .route-info {
        flex-wrap: wrap;
    }
    .timeline-wrapper {
        order: -1;
        flex: 1 0 100%;
        margin-bottom: 10px;
        border-bottom: 1px dashed #eee;
        padding-bottom: 10px;
    }
}
///

.baolau-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Inter', 'Kanit', sans-serif;
    padding: 10px;
    background: #f1f5f9;
}

/* --- Tab Header (เลื่อนซ้ายขวาได้) --- */
.baolau-tab-head {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 5px;
    -webkit-overflow-scrolling: touch;
}

.baolau-tab-btn {
    flex: 0 0 75px;
    padding: 12px 10px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #deb449;
    text-align: center;
    transition: 0.3s;
}

.baolau-tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* --- Card Design (Ticket Style) --- */
.baolau-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}

/* หัวใจหลัก: ปรับ Layout ในมือถือ */
.route-info {
    display: grid;
    grid-template-columns: 1fr; /* แนวตั้งในมือถือ */
    gap: 15px;
    position: relative;
    padding-left: 25px; /* เผื่อที่ให้เส้นประ */
}

/* เส้นประแนวตั้งข้างๆ (Vertical Timeline) */
.route-info::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    border-left: 2px dashed #cbd5e1;
}

.time-block {
    position: relative;
}

/* จุดวงกลมตรงเส้นประ */
.time-block::after {
    content: '';
    position: absolute;
    left: -21px;
    top: 6px;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #cbd5e1;
}

.time-val {
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    color: var(--text-dark);
}

.city-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 4px;
}

.station-val {
    font-size: 13px;
    color: var(--accent);
    margin-top: 2px;
    display: block;
}

/* ระยะเวลา (ลอยอยู่ข้างๆ) */
.timeline {
    position: absolute;
    right: 0;
    top: 45%;
    transform: translateY(-50%);
    background: #f8fafc;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-light);
    border: 1px solid #f1f5f9;
}

/* --- Operator & Footer --- */
.op-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.op-logo {
    max-height: 20px;
    width: auto;
}

.op-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}


        .price-val {
            color: #d9534f !important; /* สีแดง */
            font-size: 24px !important;
            font-weight: 800 !important;
        }

 
.book-btn {
    background: var(--primary);
    color: white !important;
    padding: 10px 25px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
}

/* --- Desktop & Tablet Adjustment --- */
@media (min-width: 640px) {
    .route-info {
        grid-template-columns: 1fr 100px 1fr; /* แนวนอนในจอใหญ่ */
        padding-left: 0;
        text-align: left;
    }
    
    .route-info::before { display: none; } /* ปิดเส้นแนวตั้ง */
    .time-block::after { display: none; }
    
    .time-block.destination { text-align: right; }
    
    .timeline {
        position: relative;
        top: 0;
        right: 0;
        transform: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        background: transparent;
        border: none;
    }

    .timeline::after {
        content: '→';
        font-size: 20px;
        color: #cbd5e1;
    }


    /* Modal Container */
.bl-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    padding: 20px;
}

.bl-modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 0;
    border-radius: 16px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    overflow: hidden;
    animation: blSlideUp 0.3s ease-out;
}

@keyframes blSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.bl-modal-header {
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bl-modal-header h3 { margin: 0; font-size: 18px; color: #1e293b; }

.bl-close { font-size: 24px; cursor: pointer; color: #94a3b8; }

.bl-modal-body { padding: 20px; }

.info-group { display: flex; gap: 15px; }

.info-icon { font-size: 20px; }

.info-text strong { display: block; font-size: 13px; margin-bottom: 4px; }
.t-blue { color: #2563eb; }
.t-green { color: #059669; }

.m-0 { margin: 0; }
.font-bold { font-weight: 700; font-size: 15px; color: #1e293b; }
.text-muted { font-size: 13px; color: #64748b; margin-top: 4px !important; }

.info-divider {
    height: 30px;
    border-left: 2px dashed #e2e8f0;
    margin: 5px 0 5px 10px;
}

.baolau-tip-btn {
    background: #eff6ff;
    border: 1px solid #dbeafe;
    color: #2563eb;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: 0.2s;
}

.baolau-tip-btn:hover { background: #dbeafe; }
}

.bl-modal {
    z-index: 999999 !important; /* เพิ่มเลขให้เยอะที่สุด */
}

.baolau-tip-btn {
    cursor: pointer !important;
    pointer-events: auto !important; /* ยืนยันว่าปุ่มกดได้ */
}


/* คอนเทนเนอร์หลักของ Modal */
.bl-modal {
    display: none; 
    position: fixed; /* ล็อกตำแหน่งให้ลอยทับหน้าจอ */
    z-index: 999999; /* ให้ลอยอยู่ชั้นบนสุดเสมอ */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.6); /* พื้นหลังมืดโปร่งแสง */
    backdrop-filter: blur(4px); /* ทำให้พื้นหลังเบลอ (ถ้าบราวเซอร์รองรับ) */
}

/* ตัวกล่องข้อความ Modal */
.bl-modal-content {
    background-color: #ffffff;
    margin: 15% auto; /* เว้นระยะจากขอบบน 15% และจัดกลางซ้ายขวา */
    padding: 0;
    border: none;
    width: 90%; /* ขนาดกว้าง 90% ของจอมือถือ */
    max-width: 450px; /* กว้างสุดไม่เกิน 450px บนจอคอม */
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: blFadeUp 0.3s ease-out; /* เพิ่มเอฟเฟกต์เด้งขึ้น */
}

/* เอฟเฟกต์ตอนเปิด Modal */
@keyframes blFadeUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ส่วนหัวของ Modal */
.bl-modal-header {
    padding: 15px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bl-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #1e293b;
}

/* ปุ่มปิด Modal (X) */
.bl-close {
    color: #94a3b8;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.bl-close:hover { color: #ef4444; }

/* ส่วนเนื้อหาใน Modal */
.bl-modal-body {
    padding: 25px 20px;
}

/* สำหรับมือถือโดยเฉพาะ (Responsive) */
@media screen and (max-width: 600px) {
    .bl-modal-content {
        margin: 25% auto; /* ปรับตำแหน่งให้เหมาะกับนิ้วโป้งกดถึง */
        width: 92%;
    }
}

/* สไตล์สีตัวหนังสือ */
.t-blue { color: #2563eb; }
.t-green { color: #10b981; }
.info-group { display: flex; gap: 12px; margin-bottom: 10px; }
.info-icon { font-size: 20px; }


.op-info {
    display: flex;
    justify-content: space-between; /* แยกชื่อแบรนด์กับเลขขบวนไว้คนละฝั่ง */
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.op-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vessel-info {
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
}

.vessel-label {
    color: #64748b;
}

.vessel-value {
    font-weight: 700;
    color: #1e293b;
}

/* ปรับแต่งสำหรับมือถือ */
@media screen and (max-width: 480px) {
    .op-info {
        flex-direction: row; /* หรือเปลี่ยนเป็น column ถ้าเนื้อหาแน่นเกินไป */
        font-size: 11px;
    }
    .vessel-info {
        padding: 2px 6px;
        font-size: 11px;
    }
}

.vessel-badge {
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    max-width: 180px; /* จำกัดความกว้างไม่ให้เบียดชื่อบริษัท */
    white-space: nowrap;
    overflow: hidden;
}

.vessel-no {
    font-weight: 700;
    color: #0f172a;
    text-overflow: ellipsis; /* เพิ่ม ... ถ้าข้อความยาวเกิน */
    overflow: hidden;
}

/* ปรับสีแยกตามประเภท (Optional) */
.baolau-transport-group[data-type="train"] .vessel-badge { border-left: 3px solid #f59e0b; }
.baolau-transport-group[data-type="plane"] .vessel-badge { border-left: 3px solid #3b82f6; }
.baolau-transport-group[data-type="bus"] .vessel-badge { border-left: 3px solid #10b981; }


/* ปรับแต่งกรอบนอกให้ดูมีมิติ */
.bl-c-tabs-wrapper.baolau-operator-container {
    margin: 25px 0;
    border: 1px solid #eee;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    background: #fff;
    overflow: hidden;
}

/* ส่วนหัวบริษัท (Branding) */
.baolau-operator-container .op-header-bar {
    padding: 15px 20px;
    background: linear-gradient(90deg, #fffafb 0%, #ffffff 100%);
    border-bottom: 2px solid #fdf2f2;
    display: flex;
    align-items: center;
    gap: 12px;
}

.baolau-operator-container .op-header-bar img {
    height: 28px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}

/* ปรับแต่ง Tab วันที่ (Date Tabs) */
.baolau-operator-container .bl-c-tab-header {
    background: #fcfcfc;
    border-bottom: 1px solid #f0f0f0;
}

.baolau-operator-container .bl-c-tab-btn {
    padding: 15px 10px;
    border-bottom: 3px solid transparent;
}

.baolau-operator-container .bl-c-tab-btn.active {
    background: #fff;
    border-bottom-color: #ff4d4f;
    color: #ff4d4f;
}

/* รายการเที่ยววิ่ง (List Item) */
.baolau-operator-container .bl-c-item {
    padding: 18px 20px;
    border-bottom: 1px solid #f9f9f9;
    transition: all 0.2s ease;
}

.baolau-operator-container .bl-c-item:hover {
    background: #fff8f8;
    transform: scale(1.005);
}

/* จัดการชื่อเส้นทางและไอคอน */
.baolau-operator-container .bl-c-name {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #2c3e50;
    margin-bottom: 4px;
}

.baolau-operator-container .bl-c-vessel {
    font-size: 12px;
    color: #95a5a6;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ตกแต่งราคาและเวลา */
.baolau-operator-container .bl-c-price {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #ff4d4f;
}

.baolau-operator-container .bl-c-time {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    background: #f1f2f6;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* สำหรับมือถือ */
@media (max-width: 480px) {
    .baolau-operator-container .bl-c-item {
        padding: 15px;
    }
    .baolau-operator-container .bl-c-name {
        font-size: 14px !important;
    }
}





/* ปรับแต่งสำหรับมือถือเท่านั้น */
@media (max-width: 768px) {
    /* 1. ซ่อนสัญลักษณ์รูปรถ (Icon) */
    .baolau-route-item .transport-icon, 
    .baolau-route-item img[src*="bus"], 
    .baolau-route-item .baolau-icon-wrapper { 
        display: none !important; 
    }

    /* 2. ลดความสูงของแต่ละแถวและช่องว่าง */
    .baolau-route-item {
        padding: 10px 15px !important; /* ลด Padding บน-ล่าง */
        margin-bottom: 8px !important;  /* ลดระยะห่างระหว่างการ์ด */
    }

    /* 3. ปรับระยะห่างของเวลาและชื่อสถานีให้ชิดกันขึ้น */
    .baolau-route-item .time-info {
        margin-bottom: 5px !important;
    }

    .baolau-route-item .station-name {
        font-size: 14px !important; /* ปรับขนาดตัวอักษรให้เล็กลงนิดนึงเพื่อให้พอดี */
        line-height: 1.2 !important;
    }

    /* 4. ปรับขนาดปุ่ม Book Now ให้เล็กลงแต่ยังกดง่าย */
    .baolau-route-item .book-button {
        padding: 8px 15px !important;
        font-size: 14px !important;
    }
}


