/* ================= BASE & CI COLORS (Auto Dark/Light Theme) ================= */
:root {
    --brand-red: #EA4B2B;
    --brand-red-dark: #C23A1E;
    --brand-red-light: #FF7E52;
    --brand-blue: #155FA8;
    --brand-blue-dark: #0D3E72;
    --brand-blue-light: #3B87D6;
    --accent-gold: #FFC93C;

    --lv1: #FFB020;
    --lv2: #FF7E52;
    --lv3: #EA4B2B;
    --lv4: #C23A1E;
    --lv5: #155FA8;

    /* ================= LIGHT THEME ================= */
    --bg-color: #f4f6f9;
    --bg-pattern: rgba(0,0,0,0.04);
    --text-main: #1a1a1e;
    --text-muted: #666666;
    --card-bg: #ffffff;
    --card-grad: linear-gradient(160deg, #ffffff 0%, #f0f2f5 100%);
    --line-soft: rgba(0,0,0,0.08);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --hero-grad: radial-gradient(ellipse at 75% 30%, #ffe8e3 0%, var(--bg-color) 65%);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-quote: rgba(255, 255, 255, 0.85);
    --img-box-bg: transparent; 
    --charter-bg: linear-gradient(120deg, #ffe8e3 0%, #f4f6f9 45%, #e8f0fe 100%);
    --charter-stat: rgba(0,0,0,0.03);
    --table-th: rgba(0,0,0,0.05);
    --table-hover: rgba(0,0,0,0.02);
    --moto-text-bg: rgba(234, 75, 43, 0.08);
    --icon-bg: rgba(0,0,0,0.05);
    --chip-bg: #ffffff;
    --shadow-soft: 0 15px 35px rgba(0,0,0,0.06);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.12);
    --area-hover: rgba(0,0,0,0.04);
    --text-gray-dim: #888888;
}

/* ================= DARK THEME ================= */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #0c0c0f;
        --bg-pattern: rgba(255,255,255,0.03);
        --text-main: #ffffff;
        --text-muted: #9c9ca3;
        --card-bg: #1a1a1e;
        --card-grad: linear-gradient(160deg, #1c1c1f 0%, #101012 100%);
        --line-soft: rgba(255,255,255,0.07);
        --nav-bg: rgba(12, 12, 15, 0.95);
        --hero-grad: radial-gradient(ellipse at 75% 30%, #3a0f06 0%, var(--bg-color) 65%);
        --glass-bg: rgba(255, 255, 255, 0.02);
        --glass-quote: rgba(20, 20, 25, 0.75);
        --img-box-bg: transparent;
        --charter-bg: linear-gradient(120deg, #241008 0%, #131317 45%, #08192c 100%);
        --charter-stat: rgba(255,255,255,0.05);
        --table-th: rgba(0,0,0,0.3);
        --table-hover: rgba(255,255,255,0.02);
        --moto-text-bg: rgba(234, 75, 43, 0.07);
        --icon-bg: rgba(255,255,255,0.06);
        --chip-bg: #1a1a1e;
        --shadow-soft: 0 15px 35px rgba(0,0,0,0.5);
        --shadow-hover: 0 20px 40px rgba(0,0,0,0.55);
        --area-hover: rgba(255,255,255,0.04);
        --text-gray-dim: #6e6e75;
    }
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(var(--bg-pattern) 1px, transparent 1px);
    background-size: 20px 20px;
    color: var(--text-main); font-family: 'Anuphan', sans-serif; font-weight: 300;
    margin: 0; padding: 0; line-height: 1.6; scroll-behavior: smooth; overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 { font-weight: 600; margin: 0; letter-spacing: 0.2px; }
strong, b { font-weight: 500; }

body.lang-th .lang-en { display: none !important; }
body.lang-en .lang-th { display: none !important; }

.text-brand { color: var(--brand-red); }
.text-blue { color: var(--brand-blue-light); }
.text-center { text-align: center; }

a { color: inherit; }
button { font-family: 'Anuphan', sans-serif; }

/* ================= ICONS ================= */
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; flex-shrink: 0; }
.icon-badge {
    width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    background: var(--icon-bg); color: var(--brand-red-light); flex-shrink: 0; font-size: 1.15rem;
}

/* ================= NAVBAR ================= */
.navbar {
    display: flex; justify-content: space-between; align-items: center; padding: 12px 5%; gap: 15px;
    background-color: var(--nav-bg); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; z-index: 100;
    transition: background-color 0.3s ease;
}
.logo { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo-text-container { display: flex; flex-direction: column; line-height: 1.25; justify-content: center; }
.logo-text-th { color: var(--text-main); font-size: 1.05rem; font-weight: 600; letter-spacing: 0.3px; white-space: nowrap; transition: color 0.3s ease; }
.logo-tagline {
    display: inline-flex; align-items: center; gap: 5px; margin-top: 2px;
    background: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
    color: #fff; font-size: 0.62rem; font-weight: 500; padding: 2px 9px; border-radius: 20px;
    width: fit-content; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 78vw;
}

.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a.nav-link { color: var(--text-muted); text-decoration: none; font-weight: 500; transition: 0.3s; position: relative; font-size: 0.92rem; }
.nav-links a.nav-link:hover { color: var(--brand-red); }
.nav-links a.nav-link::after { content: ''; position: absolute; width: 0; height: 2px; background: var(--brand-red); bottom: -5px; left: 0; transition: 0.3s; }
.nav-links a.nav-link:hover::after { width: 100%; }

.btn-lang { background: transparent; color: var(--text-main); border: 1px solid var(--text-muted); padding: 5px 13px; border-radius: 20px; cursor: pointer; font-family: 'Anuphan'; font-weight: 600; transition: 0.3s; font-size: 0.85rem; }
.btn-lang:hover { background: var(--brand-red); border-color: var(--brand-red); color: white; transform: scale(1.05); }

.nav-call { display: flex; align-items: center; gap: 6px; color: var(--text-main); text-decoration: none; font-size: 0.85rem; font-weight: 500; border: 1px solid var(--line-soft); padding: 6px 14px; border-radius: 20px; transition: 0.25s; }
.nav-call:hover { border-color: var(--brand-red); color: var(--brand-red); }

.btn-primary {
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
    color: white !important; padding: 13px 26px 13px 20px; text-decoration: none; font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex; align-items: center; gap: 9px; cursor: pointer; border: none;
    box-shadow: 0 8px 20px rgba(234, 75, 43, 0.4); font-size: 0.95rem;
    clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
    position: relative;
}
.btn-primary:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 15px 25px rgba(234, 75, 43, 0.55); }
.btn-primary .moto-icon { font-size: 1.25em; }
.btn-primary:hover .moto-icon { animation: revShake 0.5s ease; }
@keyframes revShake {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(3px) rotate(-8deg); }
    50% { transform: translateX(-2px) rotate(5deg); }
    75% { transform: translateX(2px) rotate(-4deg); }
}

.btn-outline {
    background: transparent; border: 1.5px solid var(--text-muted); color: var(--text-main); padding: 11px 26px;
    border-radius: 50px; font-weight: 600; font-size: 0.95rem; cursor: pointer; text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px; transition: 0.3s;
}
.btn-outline:hover { border-color: var(--brand-red); color: var(--brand-red); background: rgba(234, 75, 43, 0.05); }

/* ================= ANIMATIONS ================= */
.reveal { opacity: 0; transform: translateY(26px); transition: all 0.7s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ================= HERO SECTION ================= */
.hero-wrapper {
    position: relative;
    background: var(--hero-grad);
    overflow: hidden; min-height: 68vh; display: flex; align-items: center;
    transition: background 0.3s ease;
}
.speed-lines {
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background-image: repeating-linear-gradient(-45deg, var(--moto-text-bg) 0px, var(--moto-text-bg) 4px, transparent 4px, transparent 20px);
    background-size: 100px 100px;
    animation: moveLines 6s linear infinite; z-index: 1; pointer-events: none;
}
@keyframes moveLines { 0% { background-position: 0 0; } 100% { background-position: 100px 100px; } }

.hero-section { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 50px 5% 30px; max-width: 1250px; margin: 0 auto; width: 100%; position: relative; z-index: 2; }

.hero-content { flex: 1; }
.breadcrumbs {
    display: inline-flex; align-items: center; gap: 8px; color: white; font-weight: 500;
    background: linear-gradient(90deg, var(--brand-red), var(--brand-blue));
    padding: 6px 16px; border-radius: 30px; margin-bottom: 18px; font-size: 0.8rem;
}
.hero-content h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); margin: 0 0 12px 0; line-height: 1.15; font-weight: 700; color: var(--text-main); transition: color 0.3s ease; }
.hero-desc { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 30px; font-weight: 400; line-height: 1.7; max-width: 460px; transition: color 0.3s ease; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-image { flex: 1; position: relative; display: flex; justify-content: center; align-items: center; height: 100%; }
.hero-image img {
    width: 100%; max-width: 520px;
    object-fit: contain; filter: drop-shadow(0 20px 25px rgba(0,0,0,0.5));
    animation: driveBike 4s ease-in-out infinite alternate; z-index: 2;
}
@keyframes driveBike {
    0% { transform: translateX(-12px) translateY(0); }
    100% { transform: translateX(12px) translateY(-5px); }
}

.moto-text-bg { position: absolute; font-size: 7rem; font-weight: 700; color: var(--moto-text-bg); z-index: -1; white-space: nowrap; animation: slideTextBg 16s linear infinite alternate; transition: color 0.3s ease;}
@keyframes slideTextBg { 0% { transform: translateX(-25px); } 100% { transform: translateX(25px); } }

/* ================= 1. QUICK CATEGORY NAV ================= */
.quicknav-wrap { padding: 14px 5% 4px; max-width: 1250px; margin: 0 auto; position: relative; z-index: 3; }
.quicknav-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.quicknav-scroll::-webkit-scrollbar { display: none; }
.quicknav-chip {
    flex: 0 0 auto; display: flex; align-items: center; gap: 7px; background: var(--chip-bg);
    border: 1px solid var(--line-soft); color: var(--text-muted); padding: 8px 16px; border-radius: 30px;
    font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: 0.25s; white-space: nowrap;
}
.quicknav-chip:hover { border-color: var(--chip-color, var(--brand-red)); color: white; background: var(--brand-red); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.2);}
.quicknav-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--chip-color, var(--brand-red)); flex-shrink: 0; }
.quicknav-chip:hover .dot { background: white; }

/* ================= SECTIONS LAYOUT ================= */
section { padding: 70px 5%; max-width: 1250px; margin: 0 auto; position: relative; z-index: 2; }
.section-subtitle { color: #8b8b92; font-weight: 600; letter-spacing: 1px; margin-bottom: 10px; display: inline-block; font-size: 0.85rem; text-transform: uppercase; }

/* ================= HIGHLIGHTS ================= */
.stats-features { background: var(--glass-bg); border-radius: 20px; padding: 34px 5%; border: 1px solid var(--line-soft); backdrop-filter: blur(10px); margin-top: 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 18px; margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px dashed var(--line-soft); text-align: center; }
.stat-item h3 { color: var(--brand-red); font-size: 2.3rem; margin-bottom: 0; font-weight: 700; line-height: 1; }
.stat-item p { color: var(--text-muted); font-size: 0.88rem; margin: 5px 0 0 0; font-weight: 500;}
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 26px; }
.feature-item h4 { font-size: 1rem; display: flex; align-items: center; gap: 8px; margin-bottom: 5px; color: var(--text-main); font-weight: 600; }
.feature-item p { color: var(--text-muted); font-size: 0.85rem; margin: 0; line-height: 1.6; }

/* ================= 2. PROGRESSION RAIL ================= */
.fleet-header-container { margin-bottom: 30px; text-align: center; }
.fleet-header-container h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1.15; color: var(--text-main); }
.fleet-header-container p.fleet-sub { color: var(--text-muted); max-width: 620px; margin: 14px auto 0; font-size: 0.95rem; line-height: 1.7; }

.level-rail {
    display: flex; align-items: center; justify-content: space-between; max-width: 720px; margin: 34px auto 44px;
    position: relative; padding: 0 6px;
}
.level-rail::before {
    content: ''; position: absolute; top: 22px; left: 22px; right: 22px; height: 3px; z-index: 0;
    background: linear-gradient(90deg, var(--lv1), var(--lv2), var(--lv3), var(--lv4), var(--lv5));
    border-radius: 3px; opacity: 0.55;
}
.level-node { display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; position: relative; z-index: 1; flex: 1; }
.level-node .node-circle {
    width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; background: var(--node-color); border: 3px solid var(--bg-color);
    box-shadow: 0 0 0 2px var(--node-color); transition: transform 0.25s ease, border-color 0.3s ease;
}
.level-node:hover .node-circle { transform: scale(1.14) translateY(-2px); }
.level-node span.node-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; white-space: nowrap; }

/* ================= FLEET CARDS ================= */
.fleet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

.fleet-card {
    display: flex; flex-direction: column; position: relative;
    background: var(--card-grad); border-radius: 22px; padding: 0; 
    box-shadow: var(--shadow-soft); border: 1px solid var(--line-soft);
    border-top: 4px solid var(--tier-color, var(--brand-red));
    transition: all 0.4s ease; 
    overflow: hidden !important; 
    backface-visibility: hidden !important; 
    transform: translateZ(0) !important;
}
.fleet-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }

/* ================= 🚀 แก้ไขรูปรถให้เต็มกรอบ ไม่มีขอบดำ และอุดรอยรั่วพิกเซล ================= */
.bike-img-box { 
    width: 100% !important; 
    height: 290px !important; 
    display: block !important; 
    position: relative !important; 
    background-color: var(--card-bg) !important; 
    padding: 0 !important; 
    margin: 0 0 -1px 0 !important; 
    border: none !important;
    border-radius: 0 !important;
    z-index: 1 !important;
}

/* ================= 🚀 แก้ไขรูปรถให้เต็มกรอบ เฟดพุ่งไปข้างหน้า และแยกลูป 2-3 รูป ================= */
/* ================= 🚀 ระบบสไลด์โชว์รูปรถ (รองรับ 1, 2, 3, 4 รูป ลูปเวลาเท่ากัน) ================= */
.bike-slideshow { 
    position: absolute !important; 
    top: 0 !important; left: 0 !important; 
    width: 100% !important; 
    height: calc(100% + 2px) !important; 
    z-index: 1 !important; 
    overflow: hidden !important; 
}

.bike-slideshow img { 
    width: 100% !important; 
    height: 100% !important; 
    object-fit: cover !important; 
    object-position: center !important;
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    filter: none !important; 
    margin: 0 !important; 
    padding: 0 !important;
    backface-visibility: hidden !important; 
    transform-style: preserve-3d !important;
    opacity: 0; 
}

/* 🟢 กรณีมี 1 รูป (โชว์ค้าง ไม่ต้องสไลด์) */
.bike-slideshow.count-1 img {
    opacity: 1;
    transform: scale(1.03);
}

/* 🟢 กรณีมี 2 รูป (ลูปจบใน 8 วินาที / รูปละ 4 วินาที) */
.bike-slideshow.count-2 img { animation: slideCar2 8s infinite ease-in-out; }
.bike-slideshow.count-2 img:nth-child(1) { animation-delay: 0s; }
.bike-slideshow.count-2 img:nth-child(2) { animation-delay: 4s; }

@keyframes slideCar2 {
    0% { opacity: 0; transform: translateX(15px) scale(1.03); }
    6.25% { opacity: 1; transform: translateX(0) scale(1.03); }
    43.75% { opacity: 1; transform: translateX(-5px) scale(1.03); }
    50% { opacity: 0; transform: translateX(-15px) scale(1.03); }
    100% { opacity: 0; transform: translateX(-15px) scale(1.03); }
}

/* 🟢 กรณีมี 3 รูป (ลูปจบใน 12 วินาที / รูปละ 4 วินาที) */
.bike-slideshow.count-3 img { animation: slideCar3 12s infinite ease-in-out; }
.bike-slideshow.count-3 img:nth-child(1) { animation-delay: 0s; }
.bike-slideshow.count-3 img:nth-child(2) { animation-delay: 4s; }
.bike-slideshow.count-3 img:nth-child(3) { animation-delay: 8s; }

@keyframes slideCar3 {
    0% { opacity: 0; transform: translateX(15px) scale(1.03); }
    4.16% { opacity: 1; transform: translateX(0) scale(1.03); }
    29.16% { opacity: 1; transform: translateX(-5px) scale(1.03); }
    33.33% { opacity: 0; transform: translateX(-15px) scale(1.03); }
    100% { opacity: 0; transform: translateX(-15px) scale(1.03); }
}

/* 🟢 กรณีมี 4 รูป (ลูปจบใน 16 วินาที / รูปละ 4 วินาที) */
.bike-slideshow.count-4 img { animation: slideCar4 16s infinite ease-in-out; }
.bike-slideshow.count-4 img:nth-child(1) { animation-delay: 0s; }
.bike-slideshow.count-4 img:nth-child(2) { animation-delay: 4s; }
.bike-slideshow.count-4 img:nth-child(3) { animation-delay: 8s; }
.bike-slideshow.count-4 img:nth-child(4) { animation-delay: 12s; }

@keyframes slideCar4 {
    0% { opacity: 0; transform: translateX(15px) scale(1.03); }
    3.12% { opacity: 1; transform: translateX(0) scale(1.03); }
    21.87% { opacity: 1; transform: translateX(-5px) scale(1.03); }
    25% { opacity: 0; transform: translateX(-15px) scale(1.03); }
    100% { opacity: 0; transform: translateX(-15px) scale(1.03); }
}

/* อุดช่องโหว่ด้านล่าง */
.bike-img-box::after {
    content: '';
    position: absolute !important;
    bottom: -2px !important; 
    left: 0 !important;
    width: 100% !important; 
    height: 35% !important; 
    background: linear-gradient(to top, var(--card-bg) 0%, transparent 100%) !important;
    z-index: 3 !important;
    pointer-events: none !important;
}

@keyframes floatAndFade {
    0% { opacity: 0; transform: translateX(10px) scale(1.03); }
    10% { opacity: 1; transform: translateX(0) scale(1.03); }
    23% { opacity: 1; transform: translateX(0) scale(1.03); }
    33% { opacity: 0; transform: translateX(-10px) scale(1.03); }
    100% { opacity: 0; }
}

/* ================= ป้ายต่างๆ บนรูปรถ ================= */
.promo-badge { 
    position: absolute; top: 0; right: 0; 
    background: var(--accent-gold); color: #2a1900; 
    padding: 6px 16px; font-size: 0.75rem; font-weight: 700; 
    border-bottom-left-radius: 16px; display: inline-flex; align-items: center; gap: 5px;
    z-index: 10 !important; box-shadow: -3px 3px 15px rgba(0,0,0,0.1);
}

.floating-quote {
    position: absolute; 
    bottom: 20px !important; 
    left: 50%; transform: translateX(-50%);
    background: var(--glass-quote); backdrop-filter: blur(8px);
    border: 1px solid var(--line-soft); border-left: 3px solid var(--tier-color);
    color: var(--text-main); padding: 6px 16px; border-radius: 20px; font-size: 0.8rem; font-weight: 500;
    white-space: nowrap; z-index: 10 !important; box-shadow: var(--shadow-soft);
}

.fleet-card-content { display: flex; flex-direction: column; flex-grow: 1; padding: 22px; position: relative; z-index: 4;}
.fleet-card h3 { margin-bottom: 2px; font-size: 1.3rem; color: var(--text-main); line-height: 1.25; }
.fleet-card small { color: var(--text-gray-dim); font-size: 0.78rem; margin-bottom: 8px; display: block; font-weight: 500; }
.fleet-card p.model-desc { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; margin: 0 0 12px 0; }

.prov-tags-container { min-height: 24px; margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 5px; }
.prov-tag { background: var(--line-soft); color: var(--text-muted); padding: 4px 12px; border-radius: 8px; font-size: 0.72rem; border: 1px solid var(--line-soft); font-weight: 500;}

/* ================= BADGE หมวกกันน็อคฟรี ================= */
.helmet-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(46, 204, 113, 0.12) !important;
    border: 1px solid rgba(46, 204, 113, 0.4) !important;
    color: #2ecc71 !important;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    margin-bottom: 12px;
    width: fit-content;
}

.btn-info-small { background: transparent; color: var(--text-muted); border: 1px solid var(--text-muted); padding: 4px 10px; border-radius: 8px; font-size: 0.75rem; font-weight: 500; cursor: pointer; transition: 0.2s; font-family: 'Anuphan'; display: inline-flex; align-items: center; gap: 5px; margin-bottom: 12px; align-self: flex-start; }
.btn-info-small:hover { background: var(--table-hover); color: var(--text-main); border-color: var(--brand-red);}

.fleet-card-divider { border-top: 1px dashed var(--line-soft); margin-bottom: 12px; }
.fleet-card-price-row { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; }
.fleet-card-price { font-size: 1.9rem; color: var(--text-main); font-weight: 700; line-height: 1; }
.fleet-card-price span { font-size: 0.78rem; color: var(--text-muted); font-weight: 400; display: block; margin-top: 4px; }

/* ================= CHARTER PROMO BANNER ================= */
.charter-banner {
    background: var(--charter-bg);
    border-radius: 24px; padding: 44px 5%; border: 1px solid var(--line-soft); position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
    box-shadow: var(--shadow-soft);
}
.charter-banner::after { content: '🛣️'; position: absolute; right: -10px; bottom: -30px; font-size: 9rem; opacity: 0.04; }
.charter-copy { flex: 1; min-width: 260px; position: relative; z-index: 2; }
.charter-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; color: var(--text-main); }
.charter-copy p { color: var(--text-muted); font-size: 0.95rem; max-width: 440px; line-height: 1.7; margin-bottom: 20px; }
.charter-stats { display: flex; gap: 14px; flex-wrap: wrap; position: relative; z-index: 2; }
.charter-stat { background: var(--charter-stat); border: 1px solid var(--line-soft); border-radius: 16px; padding: 16px 22px; text-align: center; min-width: 130px; }
.charter-stat .num { font-size: 1.8rem; font-weight: 700; color: var(--brand-red); line-height: 1; }
.charter-stat .lbl { font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; font-weight: 500;}

/* ================= TABLES ================= */
.table-container { background: var(--card-bg); border-radius: 20px; margin-top: 20px; overflow-x: auto; border: 1px solid var(--line-soft); box-shadow: var(--shadow-soft); }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 16px 22px; text-align: left; border-bottom: 1px solid var(--line-soft); font-size: 0.9rem; color: var(--text-main); }
th { color: var(--text-muted); font-weight: 600; background: var(--table-th); }
tr:hover td { background-color: var(--table-hover); }
tr.popular-row td { background: rgba(234,75,43,0.06); }
.row-tag { background: var(--brand-red); color: white; font-size: 0.65rem; padding: 2px 8px; border-radius: 10px; margin-left: 8px; font-weight: 600; vertical-align: middle; }

/* ================= MODAL & FORMS ================= */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.85); backdrop-filter: blur(8px); align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; padding: 10px; box-sizing: border-box; }
.modal.show { display: flex; opacity: 1; }
.modal-content { background-color: transparent; margin: auto; width: 100%; max-width: 480px; position: relative; transform: scale(0.92) translateY(30px); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); max-height: 95vh; overflow-y: auto; }
.modal-content::-webkit-scrollbar { width: 0; }
.modal.show .modal-content { transform: scale(1) translateY(0); }

.close-modal { position: absolute; top: 14px; right: 18px; color: rgba(255,255,255,0.8); font-size: 30px; font-weight: bold; cursor: pointer; z-index: 10; text-shadow: 0 2px 5px rgba(0,0,0,0.5); line-height: 1; }
.close-modal:hover { color: white; }

.booking-card { padding: 18px 16px !important; border-radius: 18px !important; background-image: linear-gradient(150deg, var(--brand-red) 0%, var(--brand-red-dark) 55%, #7a2411 100%); box-shadow: 0 20px 50px rgba(0,0,0,0.8); position: relative; overflow: hidden; }
.booking-card::after { content: ''; position: absolute; top: 0; right: -50%; width: 100%; height: 100%; background: radial-gradient(circle, rgba(255,255,255,0.14) 0%, transparent 60%); pointer-events: none; }

.booking-card h2 { margin-top: 0; font-size: 1.5rem; line-height: 1.2; margin-bottom: 4px; color: white; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.booking-card p.sub { color: rgba(255,255,255,0.85); font-size: 0.83rem; margin-bottom: 18px; }

.form-row { margin-bottom: 8px !important; gap: 8px !important; display: flex; flex-wrap: wrap; }
.form-group { flex: 1; min-width: 130px; margin-bottom: 0; }
.booking-card label { display: block; margin-bottom: 2px !important; font-size: 0.75rem !important; font-weight: 500; color: rgba(255,255,255,0.95); }

.booking-card input, .booking-card select { width: 100%; padding: 8px 10px !important; font-size: 0.9rem !important; border-radius: 8px !important; height: 38px; border: none; box-sizing: border-box; font-family: 'Anuphan'; background: white; color: #222; box-shadow: 0 4px 10px rgba(0,0,0,0.12); }
.booking-card input:focus, .booking-card select:focus { outline: 2px solid #fff; box-shadow: 0 0 15px rgba(255,255,255,0.5); }

.price-calculator { background: rgba(0,0,0,0.22); padding: 10px 12px !important; margin-top: 8px !important; border-radius: 14px; display: flex; justify-content: space-between; align-items: center; border: 1px solid rgba(255,255,255,0.18); position: relative; }
.total-price { text-align: right; }
.total-price span { display: block; font-size: 0.78rem; color: rgba(255,255,255,0.85); }
.total-price h3 { margin: 0; font-size: 1.9rem; color: white; line-height: 1; text-shadow: 0 2px 5px rgba(0,0,0,0.3); }
.discount-text { color: var(--accent-gold); font-size: 0.74rem; font-weight: 600; margin-top: 5px; display: none; }

/* ================= BOX เงื่อนไขการจอง ================= */
.booking-condition-box {
    background: rgba(0,0,0,0.25);
    border: 1px dashed rgba(255,255,255,0.3);
    border-radius: 12px;
    padding: 14px;
    margin-top: 14px;
    margin-bottom: 6px;
}
.booking-condition-box h4 {
    color: var(--accent-gold);
    font-size: 0.85rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.booking-condition-box ul {
    margin: 0;
    padding-left: 18px;
    color: rgba(255,255,255,0.85);
    font-size: 0.78rem;
    line-height: 1.6;
}
.booking-condition-box ul li {
    margin-bottom: 4px;
}
.booking-condition-box ul li b {
    color: white;
}

.btn-info-modal { background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.4); color: white; padding: 4px 10px; border-radius: 8px; font-size: 0.72rem; cursor: pointer; transition: 0.2s; font-family: 'Anuphan'; display: inline-block; margin-top: 8px; }
.btn-info-modal:hover { background: white; color: var(--brand-red); }

.submit-btn { width: 100%; padding: 12px !important; font-size: 1rem !important; margin-top: 10px !important; background-color: white; color: var(--brand-red-dark); border: none; border-radius: 12px; font-weight: 700; cursor: pointer; transition: 0.3s; font-family: 'Anuphan'; box-shadow: 0 5px 15px rgba(0,0,0,0.2); display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.submit-btn:hover { background: #fff5f2; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.3); }

/* ================= RATE POPUP ================= */
.rate-popup-overlay { display: none; position: fixed; z-index: 3000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); align-items: center; justify-content: center; backdrop-filter: blur(4px); padding: 16px; box-sizing: border-box; opacity: 0; transition: opacity 0.25s ease; }
.rate-popup-box { background: var(--card-bg); border: 1px solid var(--line-soft); padding: 24px 22px; border-radius: 22px; width: 100%; max-width: 330px; text-align: left; box-shadow: var(--shadow-soft); transform: scale(0.85); transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.rate-popup-overlay.show { display: flex; opacity: 1; }
.rate-popup-overlay.show .rate-popup-box { transform: scale(1); }

.rate-popup-box h4 { text-align: center; color: var(--text-main); margin-bottom: 4px; font-size: 1.05rem; }
.rate-popup-box .rate-sub { text-align: center; color: var(--text-muted); font-size: 0.76rem; margin-bottom: 16px; }

.rate-row { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line-soft); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; background: var(--table-hover); }
.rate-row.best { border-color: var(--accent-gold); background: rgba(255,201,60,0.06); }
.rate-row .rate-label { display: flex; flex-direction: column; }
.rate-row .rate-label b { font-size: 0.88rem; color: var(--text-main); font-weight: 500; }
.rate-row .rate-label small { font-size: 0.7rem; color: var(--text-muted); }
.rate-row .rate-amount { text-align: right; }
.rate-row .rate-amount .val { font-size: 1.15rem; font-weight: 700; color: var(--text-main); }
.rate-row .save-tag { display: inline-block; margin-top: 3px; font-size: 0.66rem; font-weight: 600; padding: 1px 8px; border-radius: 10px; background: var(--brand-blue); color: white; }
.rate-row.best .save-tag { background: var(--accent-gold); color: #2a1900; }

.rate-deposit-note { margin-top: 6px; text-align: center; font-size: 0.74rem; color: var(--text-muted); border-top: 1px dashed var(--line-soft); padding-top: 12px; }
.rate-deposit-note b { color: var(--text-main); }

/* ================= FLOATING BOOK BUTTON ================= */
.fab-btn {
    position: fixed; bottom: 22px; right: 20px; z-index: 1000; text-decoration: none;
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
    color: white; padding: 14px 24px; 
    border-radius: 0; 
    font-weight: 600; font-size: 0.95rem;
    display: inline-flex; align-items: center; gap: 9px; 
    filter: drop-shadow(0 10px 15px rgba(234,75,43,0.4)); 
    animation: softPulse 2.6s ease-in-out infinite; transition: transform 0.25s ease;
}
.fab-btn:hover { transform: translateY(-4px) scale(1.03); filter: drop-shadow(0 15px 25px rgba(234,75,43,0.55)); }
.fab-btn .fab-icon { display: inline-block; animation: fabWiggle 1.8s ease-in-out infinite; }
@keyframes fabWiggle { 0%, 100% { transform: translateX(0) rotate(0deg); } 50% { transform: translateX(3px) rotate(-6deg); } }

/* ================= SERVICE AREA ================= */
.area-scroll { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.area-card {
    background: var(--card-grad); border: 1px solid var(--line-soft);
    border-top: 3px solid var(--area-color, var(--brand-red)); border-radius: 18px; padding: 22px 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; position: relative; overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.area-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.area-card .area-icon { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--area-color, var(--brand-red)) 18%, transparent); color: var(--area-color, var(--brand-red)); font-size: 1.3rem; margin-bottom: 14px; }
.area-card h4 { font-size: 1.1rem; margin-bottom: 4px; color: var(--text-main);}
.area-card .area-addr { color: var(--text-muted); font-size: 0.8rem; line-height: 1.55; margin-bottom: 14px; min-height: 42px; }
.area-contact { display: flex; flex-direction: column; gap: 8px; }
.area-contact a { display: flex; align-items: center; gap: 8px; font-size: 0.83rem; color: var(--text-muted); text-decoration: none; padding: 7px 10px; border-radius: 10px; background: var(--area-hover); transition: 0.2s; }
.area-contact a:hover { background: var(--area-color, var(--brand-red)); color: white; }
.area-contact svg.icon { color: var(--area-color, var(--brand-red)); flex-shrink: 0; }
.area-contact a:hover svg.icon { color: white; }

/* ================= CUSTOM ALERT POPUP ================= */
.custom-alert-overlay { display: none; position: fixed; z-index: 4000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.75); backdrop-filter: blur(5px); align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; opacity: 0; transition: opacity 0.25s ease; }
.custom-alert-overlay.show { display: flex; opacity: 1; }
.custom-alert-box { background: var(--card-bg); padding: 28px 24px; border-radius: 22px; width: 100%; max-width: 310px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.4); transform: scale(0.85); transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.custom-alert-overlay.show .custom-alert-box { transform: scale(1); }

.custom-alert-box .alert-icon { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 2.2rem; }
.custom-alert-box .alert-icon.success { background: rgba(46, 204, 113, 0.15); color: #2ecc71; }
.custom-alert-box .alert-icon.error { background: rgba(234, 75, 43, 0.15); color: var(--brand-red); }

.custom-alert-box h3 { color: var(--text-main); font-size: 1.25rem; margin-bottom: 8px; }
.custom-alert-box p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; line-height: 1.6; }
.custom-alert-btn { background: var(--brand-red); color: white; border: none; padding: 11px 24px; border-radius: 50px; font-family: 'Anuphan'; font-weight: 600; font-size: 1rem; cursor: pointer; width: 100%; transition: 0.2s; box-shadow: 0 5px 15px rgba(234,75,43,0.3); }
.custom-alert-btn:hover { background: var(--brand-red-dark); transform: scale(1.03); }


/* ================= 🚀 RESPONSIVE & แบ่ง 2 คอลัมน์ 🚀 ================= */
@media (max-width: 768px) {
    section { padding: 44px 6%; }
    .hero-wrapper { padding: 0 4%; min-height: auto; }
    .hero-section { flex-direction: column-reverse; text-align: center; padding-top: 24px; padding-bottom: 20px; gap: 14px; }
    .breadcrumbs { margin: 0 auto 14px; }
    .hero-content h1 { font-size: 2.3rem; }
    .hero-desc { font-size: 0.95rem; margin: 0 auto 24px; }
    .hero-actions { justify-content: center; }

    .hero-image img { max-width: 78%; width: 78%; }
    .moto-text-bg { font-size: 3.2rem; top: 6%; }

    .stats-features { padding: 24px 5%; border-radius: 18px; margin-top: -6px; }
    .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; padding-bottom: 20px; }
    .stat-item h3 { font-size: 1.5rem; }
    .stat-item p { font-size: 0.68rem; }
    .features-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .feature-item h4 { font-size: 0.88rem; }
    .feature-item p { font-size: 0.76rem; }

    .level-rail { margin: 26px auto 30px; }
    .level-node .node-circle { width: 36px; height: 36px; font-size: 1rem; }
    .level-node span.node-label { font-size: 0.6rem; }

    /* ✅ บังคับแบ่ง 2 คอลัมน์ในมือถือ */
    .fleet-grid { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 12px !important; 
    }
    
    .fleet-card { 
        border-radius: 16px !important; 
    }

    /* ✅ ลดความสูงรูปลง ให้สมดุลกับการ์ด 2 คอลัมน์ */
    .bike-img-box { 
        height: 240px !important; 
        margin-bottom: 0 !important;
    }
    
    /* ✅ ปรับระยะห่างและฟอนต์ภายในการ์ดให้เล็กลง */
    .fleet-card-content { padding: 12px !important; }
    .fleet-card h3 { font-size: 1.1rem !important; }
    .fleet-card p.model-desc { 
        font-size: 0.75rem !important; 
        line-height: 1.4 !important; 
        margin-bottom: 8px !important;
    }
    .fleet-card-price { font-size: 1.3rem !important; }
    
    .btn-info-small {
        font-size: 0.65rem !important;
        padding: 3px 6px !important;
    }
    .btn-primary {
        padding: 6px 12px 6px 10px !important;
        font-size: 0.75rem !important;
    }
    .promo-badge {
         font-size: 0.65rem !important;
         padding: 4px 10px !important;
    }
    
    /* ✅ บังคับป้ายคำพูดให้ขึ้นบรรทัดใหม่ได้ และอยู่ตรงกลาง ไม่ให้โดนตัด */
    .floating-quote {
        font-size: 0.65rem !important;
        padding: 4px 8px !important;
        bottom: 12px !important;
        width: 90% !important; 
        white-space: normal !important; 
        text-align: center !important;
        line-height: 1.3 !important;
    }

    .charter-banner { padding: 30px 6%; flex-direction: column; text-align: center; }
    .charter-copy p { margin-left: auto; margin-right: auto; }
    .charter-stats { justify-content: center; width: 100%; }

    .nav-links .nav-link { display: none; }
    .nav-call span.call-text { display: none; }
    .nav-call { padding: 8px 10px; }

    .fab-btn { bottom: 20px; padding: 12px 18px; font-size: 0.85rem; }

    .area-scroll { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin: 0 -6% 0; padding-left: 6%; padding-right: 6%; scrollbar-width: none; }
    .area-scroll::-webkit-scrollbar { display: none; }
    .area-card { scroll-snap-align: center; }
}

@media (max-width: 380px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    /* มือถือจอเล็กมากๆ กลับมา 1 คอลัมน์ */
    .fleet-grid { grid-template-columns: 1fr !important; }
    .bike-img-box { height: 180px !important; }
}