/* =========================================
   1. Variables & Global Reset
   ========================================= */
:root {
    --primary-color: #d35400; /* สีส้มอิฐ */
    --secondary-color: #2c3e50; /* สีเทาเข้ม */
    --bg-light: #f9f9f9;
    --text-color: #333;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Prompt', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
}

/* =========================================
   2. Navbar
   ========================================= */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* =========================================
   3. Hero Section
   ========================================= */
.hero {
    background-color: var(--secondary-color);
    color: white;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    margin-top: 60px;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://placehold.co/1200x800/d35400/ffffff?text=Ku+Thong'); 
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #a04000;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    padding: 8px 28px; /* ปรับขนาดให้เท่ากับ btn ปกติ */
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
}

/* =========================================
   4. Generic Section & Layout
   ========================================= */
.section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.bg-light {
    background-color: var(--bg-light);
}

/* =========================================
   5. Menu Grid
   ========================================= */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.menu-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.menu-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.menu-info {
    padding: 20px;
}

.menu-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* =========================================
   6. Branches Section
   ========================================= */
.branches-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.branch-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 350px;
    padding: 0 0 20px 0;
    overflow: hidden;
    transition: transform 0.3s;
}

.branch-cover {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    margin-bottom: 15px;
}

.branch-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.branch-card:hover .branch-cover img {
    transform: scale(1.1);
}

.branch-card h3 {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
    padding-left: 20px;
    padding-right: 20px;
}

.branch-info, 
.branch-more-info {
    padding-left: 20px;
    padding-right: 20px;
}

.branch-info p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.map-btn {
    display: block;
    text-align: center;
    margin: 20px 20px 0 20px;
    padding: 8px;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

/* Accordion Toggle Button */
.btn-toggle {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    margin-right: auto;
}

.btn-toggle:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-toggle i {
    transition: transform 0.3s;
}

.btn-toggle.active i {
    transform: rotate(180deg);
}

.branch-more-info {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.3s ease;
    opacity: 0;
}

.branch-more-info.open {
    max-height: 600px;
    opacity: 1;
    margin-top: 15px;
    padding-bottom: 10px;
    border-top: 1px dashed #ddd;
    padding-top: 10px;
}

.more-desc {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 15px;
}

/* Gallery */
.branch-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
}

.branch-gallery::-webkit-scrollbar {
    height: 6px;
}

.branch-gallery::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.branch-gallery img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s;
    animation: fadeIn 0.5s ease-in;
}

.branch-gallery img:hover {
    transform: scale(1.05);
}

/* =========================================
   7. Booking Form General (ใช้ร่วมกัน)
   ========================================= */
.booking-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-top: 5px solid var(--primary-color);
}

.booking-container h2 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 15px;
}

/* Style Inputs */
input[type="text"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Prompt', sans-serif;
    font-size: 1rem;
    color: #333;
    background-color: #fcfcfc;
    box-sizing: border-box; 
    transition: all 0.3s ease;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 5px rgba(211, 84, 0, 0.2);
}

.form-group-row {
    display: flex;
    gap: 10px;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #a04000;
}

.btn-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    color: #666;
}

/* =========================================
   จัดรูปแบบช่องกรอกข้อมูล (เพิ่ม Textarea)
   ========================================= */

/* ตั้งค่าพื้นฐานให้ input, select และ textarea หน้าตาเหมือนกัน */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px; /* ความโค้งของขอบ */
    font-family: 'Prompt', sans-serif; /* ใช้ฟอนต์ Prompt */
    font-size: 16px;
    color: #333;
    background-color: #fff;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* เอฟเฟกต์ตอนที่ลูกค้ากดคลิกพิมพ์ (Focus) */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #ff9800; /* เปลี่ยนสีส้มตรงนี้เป็นสีธีมร้านของคุณได้ครับ */
    outline: none;
    box-shadow: 0 0 5px rgba(255, 152, 0, 0.3);
}

/* ตั้งค่าเฉพาะช่องหมายเหตุ (Textarea) */
.form-group textarea {
    resize: vertical; /* อนุญาตให้ดึงยืดขนาดได้แค่แนวตั้งเท่านั้น (กันหน้าเว็บพัง) */
    min-height: 100px; /* ความสูงขั้นต่ำ */
    line-height: 1.5;
}

/* จัดสีข้อความตัวอย่าง (Placeholder) ให้ดูจางๆ สบายตา */
.form-group textarea::placeholder,
.form-group input::placeholder {
    color: #999;
    font-size: 14px;
}


/* =========================================
   8. Social Media
   ========================================= */
.social-minimal-section {
    padding: 40px 20px;
    text-align: center;
    background-color: #fff;
}

.social-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #000;
}

.social-icons-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: center;
}

.social-icon {
    font-size: 2.5rem;
    text-decoration: none;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    transform: scale(1.2);
}

.social-icon.fb { color: #1877F2; }
.social-icon.line { color: #06C755; }
.social-icon.tiktok { color: #000000; }
.social-icon.youtube { color: #FF0000; }
.social-icon.ig {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* =========================================
   9. Footer & Responsive
   ========================================= */
footer {
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .nav-links { display: none; } 
    .branches-container { 
        flex-direction: column; 
        align-items: center; 
    }
}

@media (max-width: 480px) {
    .form-group-row {
        flex-direction: column; 
    }
    .booking-container,
    .booking-page-container {
        padding: 20px;
        margin: 20px;
    }
}

/* =========================================
   🔴 10. ส่วนเพิ่มเติมสำหรับหน้า Booking (booking.html)
   ========================================= */

/* กำหนดพื้นหลังหน้าจองให้ดูสะอาดตา */
body.booking-page {
    background-color: #f9f9f9;
}

/* กล่องสีขาวตรงกลาง (สำหรับหน้าแยกจอง) */
.booking-page-container {
    max-width: 600px;
    margin: 120px auto 50px; /* เว้นระยะห่างจากด้านบน (เผื่อ Header) */
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1); /* เงาให้ดูลอยขึ้นมา */
    position: relative;
}

/* ลิงก์ย้อนกลับ */
.back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-link i {
    margin-right: 8px;
}

.back-link:hover {
    color: #d35400; /* สีส้มตามธีม */
    transform: translateX(-5px); /* ขยับซ้ายเล็กน้อยเมื่อเอาเมาส์ชี้ */
}