@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');

/* ===============================
   1. Variables & Base Setup
   =============================== */
:root {
    /* 🔵 Main Colors */
    --primary-blue: #0066FF;      /* น้ำเงินสดใส (Main Action) */
    --primary-dark: #003da5;      /* น้ำเงินเข้ม (Hover/Text) */
    --sky-blue: #EBF5FF;          /* ฟ้าอ่อน (Backgrounds) */
    --secondary: #00b4d8;         /* ฟ้าสดใส (Sky Blue) */
    
    /* 🟢 Accent Colors */
    --success-green: #00C853;     /* เขียวสด (Line/Call/Price) */
    --success-hover: #009624;
    
    /* ⚪ Neutrals */
    --white: #FFFFFF;
    --text-main: #1A202C;
    --text-gray: #718096;
    --border-color: #E2E8F0;
    
    /* ✨ Effects */
    --shadow-card: 0 4px 20px rgba(0, 102, 255, 0.08);
    --shadow-float: 0 15px 35px rgba(0, 102, 255, 0.12);
    --radius: 16px;
}

body {
    font-family: 'Prompt', sans-serif;
    background-color: #F7FAFC; /* พื้นหลังเทาอมฟ้าจางๆ */
    color: var(--text-main);
    margin: 0;
}

/* ===============================
   2. Utilities & Animations
   =============================== */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(0, 102, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 102, 255, 0); }
}

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

.pulse-anim { animation: pulse 2s infinite; }
.hover-up { transition: transform 0.2s; }
.hover-up:hover { transform: translateY(-5px); }

/* ===============================
   3. Navbar (Modern Glassmorphism)
   =============================== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    height: auto;
    min-height: 80px;
    transition: all 0.3s ease;
}
.navbar-brand {
    color: var(--primary-blue) !important;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.navbar-brand .icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(0, 102, 255, 0.3));
}
.navbar-nav .nav-item { margin: 0 4px; }
.navbar-nav .nav-link { 
    font-weight: 500; 
    color: #4A5568 !important; 
    padding: 10px 16px !important;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active { 
    color: var(--primary-blue) !important; 
    background-color: var(--sky-blue);
    font-weight: 600;
}
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 12px;
    background: #ffffff;
    margin-top: 15px !important;
    animation: fadeUp 0.3s ease forwards;
}
.dropdown-toggle::after {
    vertical-align: middle;
    border-top: 5px solid;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    transition: transform 0.3s ease;
}
.dropdown-toggle.show::after { transform: rotate(180deg); }
.dropdown-item {
    font-weight: 500;
    color: #4A5568;
    border-radius: 10px;
    padding: 10px 16px;
    transition: all 0.2s ease;
}
.dropdown-item:hover, 
.dropdown-item.active {
    background-color: var(--sky-blue);
    color: var(--primary-blue);
    transform: translateX(4px);
}
.navbar-toggler {
    border: none;
    background-color: var(--sky-blue);
    border-radius: 8px;
    padding: 8px 12px;
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.2); }

/* ===============================
   4. Hero & Layout Sections
   =============================== */
.hero-banner {
    background: url('images/hero.jpg'); 
    background-size: cover;
    background-position: center;
    height: 420px;
    width: 100%;
    position: relative;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
}
.section-header { margin-bottom: 30px; display: flex; align-items: center; justify-content: space-between; }
.section-title { font-weight: 700; font-size: 1.5rem; color: var(--text-main); margin: 0; }
.section-link { color: var(--primary-blue); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.section-link:hover { text-decoration: underline; }

/* ===============================
   5. Search & Airline Widgets
   =============================== */
.search-widget-container {
    margin-top: -100px;
    position: relative;
    z-index: 10;
}
.search-widget {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-float);
    border: 1px solid var(--white);
}
.airline-select-card {
    background: #fff;
    transition: all 0.3s ease;
}
.airline-select-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.15) !important;
    border-color: var(--primary-blue) !important;
}

/* ===============================
   6. Flight Cards
   =============================== */
.flight-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid transparent;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    height: 100%;
}
.flight-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
    border-color: var(--sky-blue);
}
.flight-img-top {
    height: 180px;
    width: 100%;
    object-fit: cover;
}
.flight-info { padding: 10px; }
.flight-route { 
    font-size: 1rem; 
    font-weight: 700; 
    margin-bottom: 6px; 
    color: var(--text-main);
}
.flight-meta { font-size: 0.8rem; color: var(--text-gray); margin-bottom: 12px; display: flex; gap: 10px; }
.flight-price {
    color: var(--success-green); 
    font-weight: 700;
    font-size: 1.25rem;
    text-align: right;
}
.flight-price small { font-size: 0.8rem; color: var(--text-gray); font-weight: 400; }
.flight-card .btn-outline-primary:hover {
    background-color: var(--primary-blue);
    color: white;
    transform: translateX(3px);
    transition: all 0.3s ease;
}

/* ===============================
   7. Features & Service Steps
   =============================== */
.feature-box {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}
.feature-box:hover { border-color: var(--primary-blue); box-shadow: var(--shadow-card); }
.feature-icon-circle {
    width: 65px; height: 65px;
    background: var(--sky-blue);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
}
.service-steps .step-card {
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
    border: 1px solid rgba(0, 0, 0, .05);
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
    display: block;
}
.service-steps .step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .10);
}
.service-steps .step-top {
    background: #0d6efd;
    color: #fff;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.service-steps .step-no {
    width: 44px; height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .18);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 18px; flex: 0 0 auto;
}
.service-steps .step-title { font-weight: 700; font-size: 16px; line-height: 1.2; }
.service-steps .step-img { position: relative; background: #f3f5f7; }
.service-steps .step-img img { width: 100%; object-fit: cover; display: block; }
.service-steps .step-badges { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 8px; }

/* ===============================
   8. Buttons & Call to Action
   =============================== */
.btn-call, .navbar .btn-call {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary)) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 86, 210, 0.3);
    position: relative;
    overflow: hidden;
    border-radius: 50px;
    font-weight: 600;
}
.navbar .btn-call { padding: 10px 24px !important; font-size: 1rem; letter-spacing: 0.5px; }
.btn-call:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 86, 210, 0.4); }

.btn-search {
    background: linear-gradient(90deg, var(--primary-blue), #0052CC);
    color: var(--white);
    font-weight: 600;
    border: none;
    border-radius: 10px;
    width: 100%;
    padding: 14px;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
    transition: 0.3s;
}
.btn-search:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 102, 255, 0.4); color: white;}

.cta-section {
    background: linear-gradient(135deg, #00C853 0%, #009624 100%);
    color: var(--white);
    border-radius: 30px;
    padding: 50px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

/* Floating Buttons */
.float-stack {
    position: fixed; bottom: 30px; right: 30px; z-index: 1000;
    display: flex; flex-direction: column; gap: 12px; align-items: flex-end;
}
.float-btn {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 20px; border-radius: 8px; color: white;
    font-weight: 600; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s; text-decoration: none;
}
.float-btn:hover { transform: scale(1.05); color: white; }
.btn-line { background: #06c755; }
.btn-tel { background: var(--primary-blue); }

.sticky-mobile {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(5px);
    padding: 15px; box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
    z-index: 999; border-top: 1px solid #e2e8f0;
}

/* ===============================
   9. Forms & Tabs (Reserved)
   =============================== */
.nav-tabs-custom { border-bottom: 1px solid var(--border-color); margin-bottom: 25px; }
.nav-tabs-custom .nav-link { border: none; color: var(--text-gray); font-weight: 600; background: transparent; padding: 10px 20px; border-bottom: 3px solid transparent; }
.nav-tabs-custom .nav-link.active { color: var(--primary-blue); border-bottom: 3px solid var(--primary-blue); }
.nav-tabs-custom .nav-link i { margin-right: 8px; }
.form-label-custom { font-size: 0.85rem; color: var(--text-gray); font-weight: 500; margin-bottom: 6px; }
.input-group-text { background: var(--sky-blue); color: var(--primary-blue); border: 1px solid var(--border-color); border-right: none; }
.form-control-custom { border: 1px solid var(--border-color); border-left: none; padding: 12px; font-size: 1rem; color: var(--text-main); }
.form-control-custom:focus { box-shadow: none; border-color: var(--primary-blue); }

/* ===============================
   10. Modals (Phone Call)
   =============================== */
#callModal .modal-header { background-color: #fff !important; color: #333 !important; border-bottom: 1px solid #eee; padding: 1.5rem; }
#callModal .modal-title { font-size: 1.4rem; color: #0d6efd; }
#callModal .btn-close { filter: none; }
.phone-btn-modern {
    display: flex; align-items: center; padding: 1rem 1.25rem;
    background-color: #fff; border: 1px solid #e9ecef; border-radius: 16px;
    text-decoration: none; transition: all 0.3s ease; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 12px; position: relative; overflow: hidden;
}
.phone-icon-circle {
    width: 50px; height: 50px; background-color: #e7f1ff; color: #0d6efd;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin-right: 1rem; flex-shrink: 0;
}
.phone-icon-circle svg { width: 24px; height: 24px; }
.phone-info { flex-grow: 1; }
.phone-label { font-size: 0.85rem; color: #6c757d; margin-bottom: 2px; display: block; }
.phone-number { font-size: 1.25rem; font-weight: 700; color: #212529; letter-spacing: 0.5px; }
.phone-arrow { color: #ced4da; transition: all 0.3s ease; }
.phone-btn-modern:hover { background-color: #f8f9fa; border-color: #c5d7f2; box-shadow: 0 8px 15px rgba(13, 110, 253, 0.15); transform: translateY(-3px); }
.phone-btn-modern:hover .phone-icon-circle { background-color: #0d6efd; color: #fff; }
.phone-btn-modern:hover .phone-number { color: #0d6efd; }
.phone-btn-modern:hover .phone-arrow { color: #0d6efd; transform: translateX(5px); }

/* ===============================
   11. Footer
   =============================== */
.footer-modern { background: var(--white); padding-top: 60px; border-top: 1px solid var(--border-color); margin-top: 60px; }
.footer-title { color: var(--primary-blue); font-weight: 700; margin-bottom: 1.2rem; }
.footer-list a { color: var(--text-gray); text-decoration: none; display: block; margin-bottom: 8px; transition: 0.2s; }
.footer-list a:hover { color: var(--success-green); padding-left: 5px; }


/* ===============================
   12. Responsive & Mobile Adjustments
   =============================== */
@media (max-width: 576px) {
    .service-steps .step-img img { height: 170px; }
}

@media (max-width: 768px) {
    /* จัดการ Hero Banner */
    .hero-banner {
        height: auto; 
        padding: 120px 0 160px 0; 
    }
    .hero-banner .container.z-1 { margin-top: 0 !important; }
    
    /* จัดการกล่องค้นหาสายการบิน */
    .search-widget-container {
        margin-top: -80px; 
        padding: 0 15px; 
    }
    .search-widget h4 { font-size: 1.2rem; }

    /* แก้ปัญหาปุ่ม "จองเลย" ล้นในการ์ดตั๋วเครื่องบิน */
    .flight-info .d-flex.justify-content-between.align-items-end {
        flex-direction: column;
        align-items: stretch !important;
        gap: 12px;
        margin-top: 10px !important;
    }
    .flight-info .d-flex.justify-content-between.align-items-end > div {
        display: flex; justify-content: space-between; align-items: center; width: 100%;
    }
    .flight-info .flight-price { font-size: 1.15rem; text-align: left; }
    .flight-info .btn-outline-primary {
        width: 100%; text-align: center; white-space: nowrap; padding: 8px 10px !important;
    }
}



/* ===============================
           5. Promo Section (HOT DEALS)
           =============================== */
        .promo-section {
            background-color: #FDFDFD;
            padding: 80px 0;
        }

        /* --- Panel ราคาตั๋ว (ซ้าย) --- */
        .promo-panel {
            background: #fff;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.08);
            border: 1px solid #f1f5f9;
            overflow: hidden;
            border-top: 5px solid var(--primary-blue);
        }
        .promo-header {
            background: var(--sky-blue);
            color: var(--primary-dark);
            font-weight: 700;
            display: flex;
            justify-content: space-between;
            padding: 16px 20px;
            border-bottom: 1px solid #e2e8f0;
            font-size: 1.05rem;
        }
        .promo-body-scroll {
            height: 1230px;
            overflow-y: auto;
            background-color: #ffffff;
            scrollbar-width: thin;
            scrollbar-color: var(--primary-blue) #f1f5f9;
        }
        .promo-body-scroll::-webkit-scrollbar { width: 6px; }
        .promo-body-scroll::-webkit-scrollbar-track { background: #f1f5f9; }
        .promo-body-scroll::-webkit-scrollbar-thumb { background: var(--primary-blue); border-radius: 10px; }
        .promo-body-scroll::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }
        
        .promo-list-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 14px 20px;
            border-bottom: 1px dashed #e2e8f0;
            font-weight: 500;
            color: #4A5568;
            transition: all 0.2s ease;
            cursor: pointer;
        }
        .promo-list-item:hover {
            background-color: #f8fafc;
            color: var(--primary-blue);
            padding-left: 25px;
        }
        .promo-list-item:last-child { border-bottom: none; }
        .promo-list-item span:last-child { font-weight: 700; font-size: 1.15rem; }

        /* --- รูปสถานที่ (ขวา) --- */
        .promo-grid-item {
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
     
            background-color: #f1f5f9;
            position: relative;
        }
        .promo-grid-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
        }
        .promo-grid-item:hover .promo-grid-img {
            transform: scale(1.1);
        }