@charset "utf-8";

/***********************************/
        :root { --primary-color: #000000; --secondary-bg: #f7f7f7; }
        body { font-family: 'Sarabun', sans-serif; background-color: #fff; color: #222; }
        .navbar-main { background: #fff; border-bottom: 1px solid #ebebeb; padding: 15px 0; }
        .brand-text { font-weight: 800; color: var(--primary-color); letter-spacing: 1px; }
        .main-img { width: 100%; border-radius: 16px; object-fit: cover; height: 450px; cursor: zoom-in; transition: 0.3s; }
        .thumb-img { width: 100%; height: 80px; object-fit: cover; border-radius: 8px; cursor: pointer; transition: 0.2s; border: 2px solid transparent; }
        .thumb-img:hover { transform: translateY(-3px); border-color: var(--primary-color); }
        .sticky-sidebar { position: sticky; top: 100px; }
        .price-tag { font-size: 2rem; font-weight: 700; color: #222; }
        .btn-contact { border-radius: 12px; padding: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; transition: 0.3s; }
        .btn-call { background: var(--primary-color); color: white; }
        .btn-call:hover { background: #d70466; color: white; }
        .card-custom { border: 1px solid #dddddd; border-radius: 16px; padding: 24px; box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
        .tag-cloud .tag { display: inline-block; padding: 8px 16px; background: var(--secondary-bg); border-radius: 20px; color: #484848; text-decoration: none; margin: 4px; font-size: 0.9rem; transition: 0.2s; }
        .tag-cloud .tag:hover { background: #222; color: #fff; }
        .section-title { position: relative; padding-bottom: 10px; margin-bottom: 20px; font-weight: 700; }
        .section-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 50px; height: 3px; background: var(--primary-color); }

	/* ส่วนของสถานที่แนะนำ (ปรับปรุงใหม่) */
.recommend-section { margin-top: 50px; padding-top: 30px; border-top: 2px solid #eee; }
.place-card { 
    border: none; 
    border-radius: 15px; 
    overflow: hidden; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    background: #fff;
    height: 100%;
}
.place-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
}
.img-wrapper { 
    position: relative; 
    width: 100%; 
    padding-top: 100%; /* อัตราส่วน 1:1 จัตุรัสแบบ  */
    overflow: hidden; 
}
.img-wrapper img { 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    object-fit: cover; 
}
.place-link { text-decoration: none; color: inherit; }
.place-title { 
    font-size: 0.95rem; 
    font-weight: 600; 
    margin-top: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
 



/* 1. ปรับแก้ส่วนคลุมรูปภาพให้คงอัตราส่วน 1:1 หรือจัตุรัสตามสไตล์  */
.img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* จองพื้นที่จัตุรัส */
    overflow: hidden;
    border-radius: 12px; /* ความโค้งมนของขอบรูป */
}

/* 2. ปรับแก้รูปภาพให้แสดงเต็มพื้นที่ที่จองไว้ */
.img-wrapper img {
    position: absolute; /* ต้องเป็น absolute เพื่อให้อยู่ในพื้นที่ padding-top */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* ใช้ 100% แทนการระบุ 150px */
    object-fit: cover;
}

/* 3. ลด margin ของส่วนข้อความลง */
.place-title { 
    font-size: 0.95rem; 
    font-weight: 600; 
    margin-top: 8px; /* ลดระยะห่างจากขอบรูปลงเหลือ 8px */
    display: -webkit-box;
    -webkit-line-clamp: 1; /* ปรับให้เหลือ 1 บรรทัดถ้าชื่อยาวไป (เพื่อความเท่ากัน) */
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2;
}

/* 4. ปรับแต่ง Badge คะแนนให้ลอยทับรูปได้สวยขึ้น */
.rating-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(255, 255, 255, 0.95);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2; /* ให้อยู่บนสุด */
}

	.province-badge {
    display: inline-block;
    background-color: #003366; /* สีชมพู (Hot Pink) */
    color: white;              /* สีตัวอักษรเป็นสีขาว */
    padding: 5px 15px;         /* ระยะห่างภายในปุ่ม */
    border-radius: 50px;       /* ทำให้ขอบโค้งมนแบบ Pill shape */
    text-decoration: none;     /* เอาเส้นใต้ลิงก์ออก */
    border: none;              /* มั่นใจว่าไม่มีเส้นขอบ */
    transition: background-color 0.3s; /* เพิ่มลูกเล่นตอนเอาเมาส์วาง */
}

/* เมื่อเอาเมาส์วาง (Hover) */
.province-badge:hover {
    background-color: #bebebe; /* สีชมพูที่เข้มขึ้นเล็กน้อย */
    color: white;
    text-decoration: none;
}

/* คอนเทนเนอร์หลัก */
.category-tabs-container {
    background-color: #ffffff;
    border-bottom: 1px solid #ebebeb;
    width: 100%;
}

/* แถบเลื่อนเมนู */
.category-tabs-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth; /* บังคับให้เลื่อนแบบนุ่มนวล */
}

/* ซ่อน Scrollbar */
.category-tabs-scroll::-webkit-scrollbar { display: none; }
.category-tabs-scroll { -ms-overflow-style: none; scrollbar-width: none; }

/* ดีไซน์ปุ่มเมนู */
.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background-color: #ffffff;
    color: #495057;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.tag-item:hover {
    background-color: #222222;
    color: #ffffff !important;
    border-color: #222222;
}

/* 🛠️ ดีไซน์ปุ่มลูกศรสำหรับ PC */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    z-index: 5;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #222;
}
.scroll-btn:hover {
    background-color: #f8f9fa;
    transform: translateY(-50%) scale(1.05);
}

/* จัดวางตำแหน่งปุ่มซ้าย-ขวาไว้ขอบคอนเทนเนอร์ */
.scroll-left-btn { left: 15px; }
.scroll-right-btn { right: 15px; }