/**
 * carrier-landing.css — หน้า Landing Page ผู้ให้บริการ (/timetable/{compcode})
 *
 * ยกมาจาก <style> ของ carrier_landing_page.php บน production ตรงตัวทุกค่า (1,486 บรรทัด)
 * อัปเดตตาม production 17 ก.ย. 2569: หัวข้อ hero เล็กลง · สีรอง (น้ำเงิน) เปลี่ยนเป็นส้มทั้งหน้า
 *
 * รูปแบนเนอร์เปลี่ยนตามผู้ให้บริการ เว็บเดิมจึงพ่น url() ลง <style> ของแต่ละหน้า
 * ที่นี่อ่านจากตัวแปร --carrier-cover ที่หน้าเพจตั้งไว้บน .bg-header-content แทน
 */

/* ═══════════════════════════════════════════════════════════
   CARRIER LANDING PAGE — MOCKUP ไทยบัสทัวร์ (Thaibus)
   Bobby Style · variable-first · nested CSS · breakpoints 1200/992/768/576
═══════════════════════════════════════════════════════════ */

/* ── Hero — overlay สีดำผ่าน ::before ── */
.bg-header-content {
    position: relative;
    background-size: cover;
    background-image: var(--carrier-cover);
    background-position: center;
}

.bg-header-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.p-t-title {
    padding-top: 80px;
    padding-bottom: 0px;
}

.text-title {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    line-height: 1.5;
    margin-bottom: 0;
    padding-bottom: 12px;
}

@media (max-width: 576px) {
    .p-t-title {
        padding-top: 70px;
        padding-bottom: 16px;
    }

    .text-title {
        font-size: 22px;
        padding-bottom: 5px;
        padding-top: 25px;
    }
}

/* ── หน้าอังกฤษ — เว็บเดิมวาง <style> ของหน้านี้ไว้ก่อน header.inc.php
      ค่า .p-t-title / .text-title ของ header (ชุดเดียวกับ layout.css) จึงทับค่าด้านบน
      ผลบนจอจริงคือชุดนี้ · เรียง max-width ก่อน min-width ให้จอ 576px พอดีได้ค่าของ min-width เหมือนเดิม ── */
@media only screen and (max-width: 576px) {
    html[lang="en"] .p-t-title {
        padding-top: 50px;
    }

    html[lang="en"] .text-title {
        font-size: 24px;
        padding-bottom: 5px;
    }
}

@media only screen and (min-width: 576px) {
    html[lang="en"] .p-t-title {
        padding-top: 100px;
        padding-bottom: 30px;
    }

    html[lang="en"] .text-title {
        font-size: 28px;
        padding-bottom: 15px;
    }
}

#busx-search-form {
    padding-bottom: 10px;
    min-height: 230px;
}

/* ── Carrier LP wrapper — ใช้ชุดสีเดียวกับธีมหลักของ busandvan.com (single source of truth) ── */
.carrier-lp {
    --site-orange: #ff6701;
    /* สีหลักของเว็บ (ตรงกับ btn-primary / color.css) */
    --site-orange-dark: #d95700;
    /* โทนเข้มไว้ hover */
    --site-amber: #f9a825;
    /* โทนอ่อนคู่กับส้ม ใช้ทำ gradient จุดเน้น */
    --site-bg: #f4f5f7;
    --site-text: #1a1a2e;
    --site-text-muted: #999999;
    --site-border: #eaecf0;
    --site-white: #ffffff;

    padding-top: 0;
    background: var(--site-bg);
    min-height: 100vh;

    /* ── Mockup notice ribbon ── */
    .lp-mock-notice {
        background: #2b2b2b;
        color: rgba(255, 255, 255, 0.85);
        font-size: 12.5px;
        text-align: center;
        padding: 8px 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;

        i {
            color: var(--site-orange);
        }

        strong {
            color: #fff;
        }
    }

    /* ── Shared section ── */
    .lp-section {
        max-width: 1240px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .section-header {
        margin-bottom: 18px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--site-border);
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px;

        .title-section {
            h2 {
                font-size: 18px;
                font-weight: 700;
                color: var(--site-text);
                margin: 0;
                display: flex;
                align-items: center;
                gap: 10px;
            }

            p {
                font-size: 12.5px;
                color: var(--site-text-muted);
                margin: 6px 0 0 14px;
            }
        }

        .see-all {
            font-size: 13px;
            color: var(--site-orange);
            text-decoration: none;
            font-weight: 600;
            white-space: nowrap;

            &:hover {
                text-decoration: underline;
            }
        }
    }

    /* ── Popular routes — 4-card grid with image overlay ── */
    .lp-routes {
        padding: 36px 0 0;

        .route-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
        }

        .route-card {
            background: var(--site-white);
            border: 1px solid var(--site-border);
            border-radius: 14px;
            overflow: hidden;
            transition: transform 0.2s, box-shadow 0.2s;

            &:hover {
                transform: translateY(-4px);
                box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
            }

            /* ── Image area with bottom-left label ── */
            .route-img-wrap {
                position: relative;
                height: 155px;
                overflow: hidden;

                img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    display: block;
                    transition: transform 0.35s;
                }

                &:hover img {
                    transform: scale(1.05);
                }

                /* gradient scrim เพื่อให้ label อ่านง่าย */
                &::after {
                    content: '';
                    position: absolute;
                    inset: 0;
                    background: linear-gradient(to top, rgba(0, 0, 0, 0.40) 0%, transparent 55%);
                    pointer-events: none;
                }

                /* label มุมซ้ายล่าง — frosted glass bg อ่อนๆ */
                .route-label {
                    position: absolute;
                    bottom: 10px;
                    left: 10px;
                    z-index: 1;
                    display: flex;
                    align-items: center;
                    gap: 5px;
                    background: rgba(255, 255, 255, 0.88);
                    backdrop-filter: blur(6px);
                    -webkit-backdrop-filter: blur(6px);
                    border-radius: 8px;
                    padding: 5px 10px;
                    font-size: 12.5px;
                    font-weight: 700;
                    color: var(--site-text);

                    i {
                        color: var(--site-orange);
                        font-size: 11px;
                    }
                }
            }

            /* ── Card footer: price + button ── */
            .route-body {
                padding: 12px 14px;
                display: flex;
                align-items: center;
                justify-content: space-between;

                .route-price {
                    font-size: 11.5px;
                    color: var(--site-text-muted);

                    strong {
                        display: block;
                        font-size: 17px;
                        font-weight: 800;
                        color: var(--site-orange);
                        line-height: 1.2;
                    }
                }

                .route-btn {
                    margin-left: auto;
                    font-size: 12px;
                    font-weight: 700;
                    color: #fff;
                    background: var(--site-orange);
                    border-radius: 20px;
                    padding: 6px 16px;
                    text-decoration: none;
                    white-space: nowrap;

                    &:hover {
                        background: var(--site-orange-dark);
                    }
                }
            }
        }

        .price-note {
            font-size: 11.5px;
            color: var(--site-text-muted);
            margin-top: 10px;
        }
    }

    /* ── รายละเอียดผู้ให้บริการ — layout เดียวกับ .lp-timetable (nav ซ้าย + panel ขวา) ── */
    .lp-carrier-info {
        padding: 36px 0 0;

        /* logo ในหัวข้อ — แสดงเฉพาะเมื่อมีค่า (ควบคุมด้วย PHP ไม่ print tag ถ้าไม่มี) */
        .ci-logo {
            width: 40px;
            height: 40px;
            object-fit: contain;
            border-radius: 8px;
            border: 1px solid var(--site-border);
            background: var(--site-white);
            margin-right: 4px;
            flex-shrink: 0;
        }

        .title-section {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .ci-wrap {
            background: var(--site-white);
            border: 1px solid var(--site-border);
            border-radius: 16px;
            overflow: hidden;
            display: grid;
            /* Desktop: สองคอลัมน์เท่ากัน — รายละเอียดซ้าย, ที่อยู่ขวา (ไม่ใช้เมนูแท็บ) */
            grid-template-columns: 1fr 1fr;
            min-height: 320px;
        }

        /* ── ซ้าย: เมนู 2 รายการ — ใช้เฉพาะโหมด tablet/mobile (ซ่อนบน Desktop) ── */
        .ci-nav {
            display: none;
            border-right: 1px solid var(--site-border);
            background: #fafbfc;
            padding: 16px 0;
            flex-direction: column;
            gap: 2px;
        }

        .ci-nav-item {
            padding: 13px 18px;
            font-size: 13.5px;
            font-weight: 500;
            color: var(--site-text);
            cursor: pointer;
            border-left: 3px solid transparent;
            transition: background 0.15s, border-color 0.15s, color 0.15s;
            display: flex;
            align-items: center;
            gap: 10px;
            user-select: none;

            i {
                font-size: 14px;
                color: var(--site-text-muted);
                flex-shrink: 0;
                transition: color 0.15s;
            }

            &:hover {
                background: rgba(255, 103, 1, 0.05);
                border-left-color: var(--site-orange);

                i {
                    color: var(--site-orange);
                }
            }

            &.active {
                background: rgba(255, 103, 1, 0.08);
                border-left-color: var(--site-orange);
                font-weight: 700;
                color: var(--site-orange);

                i {
                    color: var(--site-orange);
                }
            }
        }

        /* ── ขวา: panel — Desktop แสดงทั้งสอง panel พร้อมกัน (ไม่ผูกกับ .active) ── */
        .ci-panel {
            display: flex;
            flex-direction: column;
            padding: 24px 28px;

            &:first-child {
                border-right: 1px solid var(--site-border);
            }
        }

        .ci-panel-title {
            font-size: 16px;
            font-weight: 700;
            color: var(--site-text);
            margin-bottom: 18px;
            display: flex;
            align-items: center;
            gap: 8px;

            i {
                color: var(--site-orange);
            }
        }

        /* ── รายละเอียดผู้ให้บริการ — ข้อความจาก Text Area ฟิลด์เดียว ── */
        .ci-description {
            font-size: 13.5px;
            color: var(--site-text);
            line-height: 1.9;
            white-space: pre-line;
            /* pre-line: เคารพการขึ้นบรรทัดใหม่จาก Text Area แต่ยุบช่องว่างซ้ำเหมือนข้อความปกติ */
        }

        /* ── ที่อยู่บริษัท — iframe แผนที่ + ที่อยู่แบบข้อความกดเปิดแผนที่ได้ ── */
        .ci-map-wrap {
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid var(--site-border);
            margin-bottom: 16px;

            iframe {
                width: 100%;
                height: 280px;
                display: block;
                border: 0;
            }
        }

        .ci-address-line {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            font-size: 13.5px;
            color: var(--site-text);
            line-height: 1.7;
            text-decoration: none;
            transition: color 0.15s;

            i {
                font-size: 16px;
                color: var(--site-orange);
                margin-top: 2px;
                flex-shrink: 0;
            }

            &:hover {
                color: var(--site-orange);
                text-decoration: underline;
            }
        }

        .ci-mock-note {
            font-size: 11.5px;
            color: var(--site-text-muted);
            margin-top: 16px;
        }
    }

    /* ── Timetable — left route list + right schedule + green stop timeline ── */
    .lp-timetable {
        padding: 36px 0 0;

        .tt-wrap {
            background: var(--site-white);
            border: 1px solid var(--site-border);
            border-radius: 16px;
            overflow: hidden;
            display: grid;
            grid-template-columns: 260px 1fr;
            min-height: 480px;
        }

        /* ── Left: route list ── */
        .tt-route-list {
            border-right: 1px solid var(--site-border);
            background: #fafbfc;
            padding: 16px 0;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .tt-route-item {
            padding: 13px 18px;
            font-size: 13.5px;
            font-weight: 500;
            color: var(--site-text);
            cursor: pointer;
            border-left: 3px solid transparent;
            transition: background 0.15s, border-color 0.15s, color 0.15s;
            display: flex;
            align-items: center;
            gap: 10px;
            user-select: none;

            i {
                font-size: 14px;
                color: var(--site-text-muted);
                flex-shrink: 0;
                transition: color 0.15s;
            }

            &:hover {
                background: rgba(255, 103, 1, 0.05);
                border-left-color: var(--site-orange);

                i {
                    color: var(--site-orange);
                }
            }

            &.active {
                background: rgba(255, 103, 1, 0.08);
                border-left-color: var(--site-orange);
                font-weight: 700;
                color: var(--site-orange);

                i {
                    color: var(--site-orange);
                }
            }
        }

        /* ── Right: panel (hidden by default, active shown) ── */
        .tt-panel {
            display: none;
            flex-direction: column;
            padding: 24px 28px;
            overflow-y: auto;

            &.active {
                display: flex;
            }
        }

        .tt-panel-title {
            font-size: 16px;
            font-weight: 700;
            color: var(--site-text);
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;

            i {
                color: var(--site-orange);
            }
        }

        /* ── Timetable table — ไม่จำกัดความสูง/ไม่มี scrollbar (ยกเลิกตามที่ต้องการ) ── */
        .tt-table-wrap {
            margin-bottom: 28px;
            overflow-x: auto;
            border: 1px solid var(--site-border);
            border-radius: 10px;

            table {
                width: 100%;
                border-collapse: collapse;
                font-size: 13px;

                thead tr {
                    background: var(--site-bg);
                }

                th {
                    padding: 9px 14px;
                    text-align: left;
                    font-size: 12px;
                    font-weight: 600;
                    color: var(--site-text-muted);
                    white-space: nowrap;
                    border-bottom: 1px solid var(--site-border);
                    position: sticky;
                    top: 0;
                    z-index: 1;
                }

                td {
                    padding: 11px 14px;
                    border-bottom: 1px solid var(--site-border);
                    vertical-align: middle;
                    white-space: nowrap;
                }

                tbody tr:last-child td {
                    border-bottom: none;
                }

                .td-time {
                    font-size: 15px;
                    font-weight: 700;
                    color: var(--site-text);
                }

                .td-arrive {
                    font-size: 15px;
                    font-weight: 700;
                    color: var(--site-orange);
                }

                .td-price {
                    font-size: 15px;
                    font-weight: 800;
                    color: var(--site-orange);
                }

                .td-type {
                    font-size: 12px;
                    color: var(--site-text-muted);
                    background: var(--site-bg);
                    border-radius: 20px;
                    padding: 3px 10px;
                    display: inline-block;
                }
            }
        }

        /* ── จุดให้บริการ — vertical timeline ── */
        .tt-stops-title {
            font-size: 12px;
            font-weight: 600;
            color: var(--site-text-muted);
            text-transform: uppercase;
            letter-spacing: 0.06em;
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .tt-vline {
            position: relative;
            padding-left: 32px;
            /* ไม่ใช้ ::before เส้นยาวตลอด — ใช้ segment ต่อจุดแทน */
            /* ไม่จำกัดความสูง/ไม่มี scrollbar (ยกเลิกตามที่ต้องการ) */
        }

        .tt-stop {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 0 0 22px;
            position: relative;

            &:last-child {
                padding-bottom: 0;
            }

            /* ── Dot ──
               padding-left:32px → content x=32 from wrap
               line center = 9px from wrap
               dot r=5: left = 9-5-32 = -28px from content */
            &::before {
                content: '';
                position: absolute;
                left: -28px;
                top: 4px;
                width: 10px;
                height: 10px;
                border-radius: 50%;
                background: var(--site-white);
                border: 2.5px solid #22c55e;
                z-index: 2;
            }

            /* ต้นทาง / ปลายทาง — dot ใหญ่ r=7: left = 9-7-32 = -30px */
            &.tt-stop-origin::before,
            &.tt-stop-dest::before {
                width: 14px;
                height: 14px;
                left: -30px;
                top: 2px;
                background: #16a34a;
                border-color: #16a34a;
                box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
            }

            /* ── Segment line: ใต้ dot → ถึงขอบล่างของ padding (ต่อกับ dot ถัดไป) ── */
            &:not(:last-child)::after {
                content: '';
                position: absolute;
                left: -24px;
                /* center of 2px line: -23px, snap to -24px */
                top: 16px;
                /* dot bottom: 4+10=14, +2px gap */
                bottom: 0;
                /* สิ้นสุดที่ขอบล่างของ padding-bottom */
                width: 2px;
                background: linear-gradient(to bottom, #22c55e, #16a34a);
                border-radius: 0 0 2px 2px;
                z-index: 1;
            }

            /* origin dot ใหญ่กว่า → line เริ่มต่ำกว่านิดหน่อย */
            &.tt-stop-origin:not(:last-child)::after {
                top: 18px;
                /* dot bottom: 2+14=16, +2px gap */
            }

            .tt-stop-main {
                display: flex;
                flex-direction: column;
                gap: 3px;
                flex: 1;
                min-width: 0;
            }

            .tt-stop-name {
                font-size: 13px;
                font-weight: 500;
                color: var(--site-text);
                line-height: 1.45;

                .tt-stop-origin &,
                .tt-stop-dest & {
                    font-weight: 700;
                    color: #16a34a;
                }

                /* ลิงก์ไปหน้า station — แสดงเฉพาะจุดที่มีอยู่ในตาราง station (ไอคอนหลังชื่อจุดเหมือนของเดิม) */
                a {
                    color: inherit;
                    text-decoration: none;
                    display: inline-flex;
                    align-items: center;
                    gap: 4px;

                    &:hover {
                        color: var(--site-orange);
                        text-decoration: underline;
                    }

                    .tt-stop-map-icon {
                        height: 16px;
                        width: auto;
                        flex-shrink: 0;
                    }
                }
            }

            .tt-stop-badge {
                display: inline-block;
                font-size: 10px;
                font-weight: 700;
                color: var(--site-white);
                background: #16a34a;
                border-radius: 4px;
                padding: 1px 7px;
                line-height: 1.6;
                width: fit-content;
            }
        }
    }

    /* ── Timetable accordion (mobile only) ── */
    .tt-accordion {
        display: none;
        /* hidden on desktop */
        flex-direction: column;
        gap: 8px;
    }

    .tt-acc-item {
        background: var(--site-white);
        border: 1px solid var(--site-border);
        border-radius: 12px;
        overflow: hidden;

        &[open] {
            .tt-acc-chevron {
                transform: rotate(180deg);
            }

            .tt-acc-summary {
                border-bottom: 1px solid var(--site-border);
                border-radius: 12px 12px 0 0;
            }
        }
    }

    .tt-acc-summary {
        list-style: none;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 16px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 600;
        color: var(--site-text);
        user-select: none;
        background: var(--site-white);
        border-radius: 12px;

        &::-webkit-details-marker {
            display: none;
        }

        i.bi-geo-alt {
            color: var(--site-orange);
            font-size: 15px;
            flex-shrink: 0;
        }

        .tt-acc-label {
            flex: 1;
        }

        .tt-acc-chevron {
            font-size: 13px;
            color: var(--site-text-muted);
            transition: transform 0.22s ease;
            flex-shrink: 0;
        }
    }

    .tt-acc-body {
        padding: 16px;

        /* reuse desktop table styles */
        .tt-table-wrap {
            margin-bottom: 20px;
            overflow-x: auto;

            table {
                width: 100%;
                border-collapse: collapse;
                font-size: 12.5px;

                thead tr {
                    background: var(--site-bg);
                }

                th {
                    padding: 8px 10px;
                    text-align: left;
                    font-size: 11px;
                    font-weight: 600;
                    color: var(--site-text-muted);
                    white-space: nowrap;
                    border-bottom: 1px solid var(--site-border);
                }

                td {
                    padding: 10px 10px;
                    border-bottom: 1px solid var(--site-border);
                    vertical-align: middle;
                    white-space: nowrap;
                }

                tbody tr:last-child td {
                    border-bottom: none;
                }

                .td-time {
                    font-size: 14px;
                    font-weight: 700;
                    color: var(--site-text);
                }

                .td-arrive {
                    font-size: 14px;
                    font-weight: 700;
                    color: var(--site-orange);
                }

                .td-price {
                    font-size: 14px;
                    font-weight: 800;
                    color: var(--site-orange);
                }

                .td-type {
                    font-size: 11px;
                    color: var(--site-text-muted);
                    background: var(--site-bg);
                    border-radius: 20px;
                    padding: 2px 8px;
                    display: inline-block;
                }
            }
        }

        /* reuse stops title + vline — ใช้ padding เดิม 32px เพื่อให้จุดตรงเส้นเหมือน desktop */
        .tt-stops-title {
            margin-bottom: 12px;
        }

        .tt-vline {
            padding-left: 32px;
        }
    }

    /* ── แกลอรี่ภาพผู้ให้บริการ — กดรูปเปิด Modal สไลด์ดูภาพใหญ่ ── */
    .lp-gallery {
        padding: 36px 0 0;

        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 14px;
        }

        .gallery-item {
            aspect-ratio: 4 / 3;
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid var(--site-border);
            cursor: pointer;
            position: relative;

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;
                transition: transform 0.25s;
            }

            &::after {
                content: '\f52a';
                font-family: 'bootstrap-icons';
                position: absolute;
                inset: 0;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 22px;
                color: #fff;
                background: rgba(0, 0, 0, 0.28);
                opacity: 0;
                transition: opacity 0.2s;
            }

            &:hover {
                img {
                    transform: scale(1.05);
                }

                &::after {
                    opacity: 1;
                }
            }
        }
    }

    /* ── Modal แกลอรี่ — สไลด์ดูภาพใหญ่ (vanilla JS, ไม่พึ่ง library) ── */
    .gallery-modal {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(20, 15, 10, 0.92);
        z-index: 3000;
        align-items: center;
        justify-content: center;

        &.active {
            display: flex;
        }

        .gm-stage {
            max-width: 88vw;
            max-height: 82vh;
            display: flex;
            align-items: center;
            justify-content: center;

            img {
                max-width: 88vw;
                max-height: 82vh;
                object-fit: contain;
                border-radius: 8px;
                box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
            }
        }

        .gm-close {
            position: absolute;
            top: 20px;
            right: 24px;
            background: rgba(255, 255, 255, 0.12);
            border: none;
            color: #fff;
            width: 42px;
            height: 42px;
            border-radius: 50%;
            font-size: 18px;
            cursor: pointer;
            transition: background 0.15s;

            &:hover {
                background: var(--site-orange);
            }
        }

        .gm-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.12);
            border: none;
            color: #fff;
            width: 46px;
            height: 46px;
            border-radius: 50%;
            font-size: 20px;
            cursor: pointer;
            transition: background 0.15s;

            &:hover {
                background: var(--site-orange);
            }
        }

        .gm-prev {
            left: 20px;
        }

        .gm-next {
            right: 20px;
        }

        .gm-counter {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            color: rgba(255, 255, 255, 0.85);
            font-size: 13px;
            background: rgba(255, 255, 255, 0.12);
            padding: 6px 16px;
            border-radius: 20px;
        }
    }

    /* ── FAQ — CSS-only accordion (details/summary) ── */
    .lp-faq {
        padding: 36px 0 0;

        .faq-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        details {
            background: var(--site-white);
            border: 1px solid var(--site-border);
            border-radius: 12px;
            overflow: hidden;
            transition: border-color 0.15s;

            &[open] {
                border-color: var(--site-orange);
            }

            summary {
                list-style: none;
                display: flex;
                align-items: center;
                gap: 12px;
                padding: 16px 20px;
                font-size: 14px;
                font-weight: 700;
                color: var(--site-text);
                cursor: pointer;
                user-select: none;

                &::-webkit-details-marker {
                    display: none;
                }

                .faq-q-icon {
                    color: var(--site-orange);
                    font-size: 16px;
                    flex-shrink: 0;
                }

                span {
                    flex: 1;
                }

                .faq-chevron {
                    color: var(--site-orange);
                    font-size: 13px;
                    transition: transform 0.2s;
                    flex-shrink: 0;
                }
            }

            &[open] summary .faq-chevron {
                transform: rotate(180deg);
            }

            .faq-answer {
                padding: 14px 20px 16px 48px;
                font-size: 13.5px;
                color: var(--site-text);
                line-height: 1.75;
                border-top: 1px solid var(--site-border);
            }
        }
    }

    /* ── จุดหมายปลายทางยอดนิยม — ลิงก์ข้อความล้วน (ชื่อเส้นทาง + link) 4 คอลัมน์บน Desktop ── */
    .lp-popular-destinations {
        padding: 36px 0 0;

        .pd-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
        }

        .pd-item {
            display: flex;
            align-items: center;
            gap: 10px;
            /* ให้คอลัมน์ grid หดตามจอได้ — ไม่งั้นชื่อเส้นทางยาว (nowrap) ดันคอลัมน์ให้กว้างเกินจอบนมือถือ
               และ ellipsis ของ span ด้านล่างจะไม่ทำงาน */
            min-width: 0;
            background: var(--site-white);
            border: 1px solid var(--site-border);
            border-radius: 10px;
            padding: 13px 16px;
            font-size: 13.5px;
            font-weight: 600;
            color: var(--site-text);
            text-decoration: none;
            transition: border-color 0.15s, color 0.15s, background 0.15s, transform 0.15s;

            i {
                color: var(--site-orange);
                font-size: 13px;
                flex-shrink: 0;
            }

            span {
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

            &:hover {
                border-color: var(--site-orange);
                color: var(--site-orange);
                background: rgba(255, 103, 1, 0.05);
                transform: translateY(-2px);
            }
        }
    }

    /* ── Attractions along the route ── */
    .lp-attractions {
        padding: 30px 0 0;

        .attraction-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
        }

        /* card ที่มี link จอง — ครอบด้วย <a> โดยไม่กระทบดีไซน์เดิม */
        .attraction-link {
            display: block;
            height: 100%;
            color: inherit;
            text-decoration: none;

            .attraction-card {
                height: 100%;
            }
        }

        .attraction-card {
            background: var(--site-white);
            border-radius: 12px;
            border: 1px solid var(--site-border);
            overflow: hidden;
            transition: transform 0.2s, box-shadow 0.2s;

            &:hover {
                transform: translateY(-3px);
                box-shadow: 0 8px 20px rgba(255, 103, 1, 0.12);
            }

            .attraction-image {
                height: 140px;
                overflow: hidden;

                @media (max-width: 768px) {
                    & {
                        height: 250px;
                    }
                }

                img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    display: block;
                }
            }

            .attraction-body {
                padding: 12px 14px;

                .attraction-name {
                    font-size: 13.5px;
                    font-weight: 700;
                    color: var(--site-text);
                    line-height: 1.4;
                    margin-bottom: 4px;
                }

                .attraction-province {
                    font-size: 11.5px;
                    color: var(--site-orange);
                    display: flex;
                    align-items: center;
                    gap: 4px;

                    i {
                        font-size: 11px;
                    }
                }
            }
        }
    }

    /* ── CTA Promo Card ปิดท้าย ── */
    .lp-cta-promo {
        padding: 36px 0 0;

        .cta-promo-card {
            background: #ff6500;
            border-radius: 18px;
            padding: 40px 48px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 32px;
            position: relative;
            overflow: hidden;

            /* ── ข้อความโปรย ── */
            .cta-promo-text {
                flex: 1;
                position: relative;
                z-index: 1;

                .cta-tag {
                    display: inline-block;
                    background: rgba(255, 255, 255, 0.20);
                    color: #fff;
                    font-size: 11.5px;
                    font-weight: 700;
                    letter-spacing: 0.4px;
                    padding: 4px 12px;
                    border-radius: 20px;
                    margin-bottom: 12px;
                }

                .cta-headline {
                    font-size: 26px;
                    font-weight: 900;
                    color: #fff;
                    line-height: 1.3;
                    margin-bottom: 10px;
                    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
                }

                .cta-desc {
                    font-size: 14px;
                    color: rgba(255, 255, 255, 0.88);
                    line-height: 1.80;
                    max-width: 520px;
                }
            }

            /* ── ปุ่ม CTA ── */
            .cta-promo-action {
                flex-shrink: 0;
                position: relative;
                z-index: 1;

                .cta-promo-btn {
                    display: inline-flex;
                    align-items: center;
                    gap: 8px;
                    background: #fff;
                    color: var(--site-orange);
                    font-size: 15px;
                    font-weight: 800;
                    padding: 15px 34px;
                    border-radius: 30px;
                    text-decoration: none;
                    white-space: nowrap;
                    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
                    transition: background 0.2s, color 0.2s, transform 0.2s;

                    i {
                        font-size: 16px;
                    }

                    &:hover {
                        background: var(--site-text);
                        color: #fff;
                        transform: translateY(-2px);
                    }
                }
            }
        }
    }

    /* ── Back button ── */
    .lp-back {
        padding: 36px 0 52px;

        .btn-back {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--site-orange);
            border: 1px solid var(--site-orange);
            background: #fff;
            font-size: 14px;
            font-weight: 600;
            padding: 10px 22px;
            border-radius: 8px;
            text-decoration: none;
            transition: background 0.2s, color 0.2s;

            &:hover {
                background: var(--site-orange);
                color: #fff;
            }
        }
    }

    /* ── Responsive ── */
    @media (max-width: 992px) {
        & {
            .lp-routes .route-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .lp-carrier-info .ci-info-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .lp-attractions .attraction-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .lp-gallery .gallery-grid {
                grid-template-columns: repeat(3, 1fr);
            }

            .lp-timetable .tt-wrap {
                grid-template-columns: 220px 1fr;
            }

            .lp-carrier-info .ci-wrap {
                grid-template-columns: 220px 1fr;
            }

            /* ต่ำกว่า Desktop: กลับไปใช้เมนูแท็บ + panel เดียว (โครงเดิม) */
            .lp-carrier-info .ci-nav {
                display: flex;
            }

            .lp-carrier-info .ci-panel {
                display: none;
                border-right: none;

                &.active {
                    display: flex;
                }
            }

            .lp-popular-destinations .pd-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }
    }

    @media (max-width: 768px) {
        & {
            .section-header .title-section h2 {
                font-size: 16px;
            }

            .lp-routes .route-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .lp-routes .route-card .route-img-wrap {
                height: 250px;
            }

            .lp-carrier-info .ci-info-grid {
                grid-template-columns: 1fr;
            }

            .lp-gallery .gallery-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }

            .lp-attractions .attraction-grid {
                grid-template-columns: 1fr 1fr;
            }

            .lp-cta-promo .cta-promo-card {
                flex-direction: column;
                padding: 30px 28px;
                text-align: center;
            }

            .lp-cta-promo .cta-promo-text .cta-desc {
                max-width: 100%;
            }

            /* timetable — switch to accordion on mobile */
            .lp-timetable .tt-wrap {
                display: none;
            }

            .lp-timetable .tt-accordion {
                display: flex;
            }

            /* carrier info — nav ซ้าย + panel ขวา อยู่แคบเกินไปบนมือถือ → ซ้อนแนวตั้ง */
            .lp-carrier-info .ci-wrap {
                grid-template-columns: 1fr;
            }

            .lp-carrier-info .ci-nav {
                flex-direction: row;
                border-right: none;
                border-bottom: 1px solid var(--site-border);
                overflow-x: auto;
                padding: 10px 12px;
            }

            .lp-carrier-info .ci-nav-item {
                border-left: none;
                border-bottom: 3px solid transparent;
                white-space: nowrap;

                &.active {
                    border-bottom-color: var(--site-orange);
                }
            }

            .lp-popular-destinations .pd-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
    }

    @media (max-width: 576px) {
        & {
            .lp-routes .route-grid {
                grid-template-columns: 1fr;
            }

            .lp-carrier-info .ci-info-grid {
                grid-template-columns: 1fr;
            }

            .lp-gallery .gallery-grid {
                grid-template-columns: 1fr 1fr;
                gap: 8px;
            }

            .lp-attractions .attraction-grid {
                grid-template-columns: 1fr;
            }

            .lp-popular-destinations .pd-grid {
                grid-template-columns: 1fr;
            }

            .lp-cta-promo .cta-promo-card {
                padding: 24px 20px;
            }

            .lp-cta-promo .cta-promo-text .cta-headline {
                font-size: 20px;
            }

            .lp-section {
                padding: 0 12px;
            }

            .gallery-modal {
                .gm-nav {
                    width: 38px;
                    height: 38px;
                    font-size: 16px;
                }

                .gm-prev {
                    left: 8px;
                }

                .gm-next {
                    right: 8px;
                }

                .gm-close {
                    top: 10px;
                    right: 10px;
                    width: 36px;
                    height: 36px;
                }
            }
        }
    }
}

/* ── ค่าที่เว็บเดิมเขียนเป็น inline style ย้ายมาเป็นคลาส ค่าเท่าเดิมทุกตัว ────── */

.lp-hero-container {
    max-width: 980px;
    padding-top: 15px;
    padding-bottom: 15px;
    position: relative;
}

.lp-hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    margin-bottom: 20px;
}

/* ── แถบแจ้งโหมดพรีวิว (มีเฉพาะตอนเปิดจากปุ่ม "พรีวิวก่อนบันทึก" ในหลังบ้าน) ── */
.lp-preview-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: #1a1a2e;
    color: #fff;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.25);
    font-size: 13px;
    line-height: 1.5;

    .lp-preview-bar-body {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }

    .lp-preview-tag {
        flex-shrink: 0;
        padding: 4px 10px;
        border-radius: 20px;
        background: #ff6701;
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.04em;
    }

    .lp-preview-text span {
        color: rgba(255, 255, 255, 0.7);
    }

    .lp-preview-close {
        flex-shrink: 0;
        padding: 7px 16px;
        border: none;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
        font-size: 13px;
        cursor: pointer;

        &:hover {
            background: #ff6701;
        }
    }

    @media (max-width: 576px) {
        & {
            align-items: flex-start;
            flex-direction: column;
        }

        .lp-preview-text span {
            display: none;
        }
    }
}