/* ==========================================================================
   Project: annaithai.com (Tour Section Style)
   Description: Clean, Modern Japanese Design with Services & Timeline
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Base & Layout Container (ลดระยะห่างบน-ล่างให้กระชับ)
-------------------------------------------------------------------------- */
.content-body {
    max-width: 1300px;    
    margin: 0 auto;
    padding: 5px 10px 10px 10px; /* 🎯 ลด padding-top เหลือ 5px ให้ชิด header/breadcrumb */
    font-family: 'Arial Black', 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    box-sizing: border-box;
}

.content-body *, .content-body *::before, .content-body *::after {
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   2. Services Section (ส่วนจุดขาย 4 ด้าน)
-------------------------------------------------------------------------- */
.services-section {
    padding-top: 5px;
    margin-bottom: 10px;
}
.services-section h2 { 
    font-size: clamp(28px, 4vw, 40px);  
    font-weight: bold; 
    background: linear-gradient(to bottom, #11aa44, #ffff00); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    filter: 
    drop-shadow(1px 0px 0px #ff0000) 
    drop-shadow(-1px 0px 0px #ff0000) 
    drop-shadow(0px 1px 0px #ff0000) 
    drop-shadow(0px -1px 0px #ff0000) 
    drop-shadow(2px 2px 0px #000000); }
.section-headline {
    font-size: 26px;
    text-align: center;
    color: #23923d;
    margin-bottom: 5px;
    margin-top: 0; /* 🎯 ลบ margin-top เพื่อให้ชิดขอบบน */
}

.section-subline {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-size: 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* ใช้ Grid สองมิติ */
    gap: 20px;
    margin-bottom: 40px;
}

.service-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    border-bottom: 4px solid #d4af37;
    transition: transform 0.3s ease; /* เพิ่มเอฟเฟกต์เมื่อวางเมาส์ */
    text-align: left;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
    text-align: center;
}

.service-card h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
}

.service-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* --------------------------------------------------------------------------
   3. Booking Process Timeline (ขั้นตอนการจอง)
-------------------------------------------------------------------------- */
.booking-process-wrapper {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    border: 1px solid #eef2ee;
}
.booking-process-wrapper .process-step {
    background-color: #ffffff !important; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.process-title {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-size: 22px;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.process-step {
    padding: 20px;
    border-left: 4px solid #23923d;
    background: #f9fbf9;
}

.step-num {
    font-weight: bold;
    color: #23923d;
    margin-bottom: 5px;
    text-align: center;
}

.process-step h5 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

.process-step p {
    font-size: 13.5px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 10px;
}

.process-step ul {
    font-size: 13px;
    padding-left: 20px;
    color: #555;
    margin: 0;
}
.highlight-step ul li:last-child {
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px dashed #e6cc7e; /* เส้นประคั่นให้ดูเด่นขึ้น */
}
.line-highlight {
    background: #f0fff4; /* สีพื้นหลังเขียวอ่อนสำหรับเน้น LINE */
}

.line-btn {
    display: inline-block;
    background: #06c755;
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    margin-top: 15px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s;
}

.line-btn:hover {
    background: #05a547;
}

/* --------------------------------------------------------------------------
   4. Desktop Table Styling (ปรับปรุงแก้ปัญหาตัวหนังสือตกบรรทัด)
-------------------------------------------------------------------------- */
.tour-section {
    background: #ffffff;
    padding: 50px 15px;
    margin-top: 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 10px;
    margin-bottom: 10px;
}

.tour-section h2 { 
  text-align: center;  
  font-size: clamp(28px, 4vw, 40px);  
  font-weight: bold; 
  background: linear-gradient(to bottom, #11aa44, #ffff00); 
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent; 
  filter: 
    drop-shadow(1px 0px 0px #ff0000) 
    drop-shadow(-1px 0px 0px #ff0000) 
    drop-shadow(0px 1px 0px #ff0000) 
    drop-shadow(0px -1px 0px #ff0000) 
    drop-shadow(2px 2px 0px #000000); 
}
.tour-section table th {
    background-color: #f8faf8; /* สีเขียวอ่อนมากสำหรับหัวตาราง */
}

/* เส้นใต้หัวข้อสไตล์ญี่ปุ่น (ยังคงใช้สีส้มเพื่อความสอดคล้อง) */
/* .tour-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background-color: #ff9900;
    border-radius: 2px; */
}
.tour-section p {
    text-align: center;
    color: #444;
    font-size: 16px;
    line-height: 1.8; /* เพิ่มระยะบรรทัดให้อ่านง่าย */
    margin-bottom: 30px;
}

/* เน้นข้อความ "ยิ่งคนเยอะยิ่งคุ้ม" */
.tour-section p span {
    display: block;
    font-weight: bold;
    font-size: 18px;
    margin-top: 5px;
}
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.table-responsive table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto; 
    min-width: 1000px; /* 🟢 ป้องกันการบีบจอคอมจนตัวหนังสือตกบรรทัด */
}

.table-responsive table th {
    background-color: #f8f9fa;
    white-space: pre-wrap; /* 🟢 ช่วยให้ pseudo-element ที่ใส่ \A สามารถขึ้นบรรทัดใหม่ได้ */
    vertical-align: top;   /* จัดให้หัวข้อหลักอยู่ชิดด้านบน */
    line-height: 1.4;      /* ระยะห่างบรรทัดที่พอเหมาะ */
    text-align: middle;
    color: #333333; 
    font-weight: 700;
    padding: 16px 20px;
    font-size: 15px;
    border-bottom: 2px solid #e0e0e0;   
}

.table-responsive table th:nth-child(4), 
.table-responsive table th:nth-child(5) {
    background-color: #f0f7f0; 
    border-bottom: 2px solid #23923d; 
}
.table-responsive table th::after {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #666666;  
    margin-top: 4px;
}

.table-responsive table th:nth-child(4)::after {
    content: "\A(日本語可能)";
    display: block;          
    font-size: 12px;          
    font-weight: normal;     
    color: #666;             
    margin-top: 2px;         
}

.table-responsive table th:nth-child(5)::after {
    content: "\A(日本語不便)";
    display: block;
    font-size: 12px;     
    font-weight: normal;  
    color: #666;
    margin-top: 2px;
}
.table-responsive table td {
    padding: 15px 20px;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
}

.table-responsive table td.title-col {
    width: 30%; /* ดึงพื้นที่ว่างทั้งหมดมาใช้ */
    min-width: 320px;
}

.table-responsive table td.title-col strong {
    color: #111;
    font-size: 16px; 
    line-height: 1.5;
    word-break: keep-all; 
}

.table-responsive table td.img-col {
    width: 250px;
    text-align: center;
}

.tour-img {
    width: 220px;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.table-responsive table td.detail-col {
    min-width: auto;
    font-size: 14px; 
    color: #555;
}

.price-col {
    width: 1%; 
    white-space: nowrap;
    text-align: center;
}

.price-col a {
    display: inline-block;
    color: #fff;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 14px;
    min-width: 110px;
    font-weight: bold;
}

.table-responsive table tbody tr td.price-col:nth-child(4) a { background-color: #0073e6; }
.table-responsive table tbody tr td.price-col:nth-child(5) a { background-color: #ff9900; }

/* --------------------------------------------------------------------------
   5. Mobile Responsive (จอมือถือ)
-------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
    .services-grid { grid-template-columns: 1fr; }
    .process-timeline { grid-template-columns: 1fr; }
    .line-highlight { grid-column: span 1 !important; }

    .table-responsive { border: none; overflow-x: visible; }
    .table-responsive table, .table-responsive table thead, .table-responsive table tbody, .table-responsive table tr, .table-responsive table td {
        display: block; width: 100% !important; min-width: 0 !important;
    }
    .table-responsive table thead tr { position: absolute; top: -9999px; left: -9999px; }
    .table-responsive table tbody tr {
        background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; margin-bottom: 20px; padding: 15px;
    }
    .table-responsive table td { border: none; padding: 6px 0; }
    .table-responsive table td.price-col {
        display: flex; justify-content: space-between; align-items: center; background: #f8f9fa; padding: 10px 15px; border-radius: 8px; margin-top: 5px;
    }
    .table-responsive table td.price-col:nth-child(4)::before {
        /* ใช้คำสั่งแสดงผลเพื่อแยกความหนาบางของตัวอักษร */
        content: "ガイド運転車"; 
        font-weight: bold; /* ตัวหนาสำหรับส่วนหลัก */
    }

    /* แทรกข้อความต่อท้ายสำหรับคอลัมน์ที่ 4 */
    .table-responsive table td.price-col:nth-child(4)::after {
        font-size: 12px;
        content: " (日本語可能)";
        font-weight: normal; /* ตัวบางสำหรับส่วนเสริม */
        color: #666; /* สีเทาจางลงเล็กน้อยเพื่อให้ดูเป็นตัวบางเสริม */
    }

    /* คอลัมน์ราคาสำหรับบริการมีเฉพาะคนขับ (คอลัมน์ที่ 5) */
    .table-responsive table td.price-col:nth-child(5)::before {
        content: "運転手付車"; 
        font-weight: bold; /* ตัวหนาสำหรับส่วนหลัก */
    }

    /* แทรกข้อความต่อท้ายสำหรับคอลัมน์ที่ 5 */
    .table-responsive table td.price-col:nth-child(5)::after {
        font-size: 12px;
        content: " (日本語不便)";
        font-weight: normal; /* ตัวบางสำหรับส่วนเสริม */
        color: #666;
    }

    /* ปรับแต่งเพื่อให้ป้ายชื่อและราคาจัดวางอย่างสวยงาม */
    .table-responsive table td.price-col {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap; /* รองรับกรณีชื่อยาวเกินไปบนมือถือจอเล็ก */
    }
}

