/* ใช้ฟอนต์ Sarabun ทั้งเว็บ */
body {
    font-family: 'Sarabun', sans-serif;
    padding-top: 70px; /* เพิ่ม padding ด้านบนเพื่อไม่ให้เนื้อหาถูก nav บัง */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* ตั้งค่า Hero Section (สำหรับหน้าแรก) */
.hero-section {
    position: relative;
    /*height: 65vh;
    min-height: 450px;*/
	height: 82vh; 
    min-height: 480px;
    background: url('https://images.unsplash.com/photo-1448375240586-882707db888b?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 50, 20, 0.5);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* เพิ่ม animation ให้การ์ด (สำหรับหน้าแรก) */
.tree-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tree-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.15) !important;
}

.card-img-top {
    height: 220px;
    object-fit: cover;
}

/* ปรับปรุงหน้าตาของ DataTables ให้เข้ากับ Bootstrap */
.dataTables_wrapper .dataTables_paginate .page-item.active .page-link {
    background-color: #198754; /* สีเขียว */
    border-color: #198754;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border-radius: 0.375rem; /* ทำให้มุมโค้งมน */
    border: 1px solid #ced4da;
   /* padding: 0.375rem 0.75rem;*/
}

/* --- เพิ่มโค้ดส่วนนี้ต่อท้ายไฟล์ custom-styles.css เดิม --- */

/* Image Gallery Styles */
.gallery-thumb {
    height: 80px;
    width: 80px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s, border-color 0.3s;
}

.gallery-thumb:hover {
    opacity: 1;
    border-color: #198754; /* สีเขียวหลัก */
}

.gallery-thumb.active {
    opacity: 1;
    border-color: #198754;
    border-width: 3px;
}


/* Styles for highlighted attribute badges */
.attribute-badge {
    padding: 0.5em 1em;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* กำหนดความสูงของแผนที่ */
        #map {
            height: 450px;
            width: 100%;
            border-radius: 0 0 0.375rem 0.375rem; /* ทำให้มุมล่างของแผนที่โค้งมนเหมือน Card */
        }

@media (max-width:480px)  {


	.noshowmobile{
		display: none;
	}

@media (max-width:480px)  {

	.noshowmobile{
		display: none;
	}
}