@import url('https://fonts.googleapis.com/css2?family=Athiti:wght@200;300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: "Athiti", sans-serif;
}

.background-boby {
    background-image: url(/img/big-beautiful-house.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    font-family: "Athiti", sans-serif;
}


/* header */
.banner {
    width: 100%;
    /* ปรับความสูงตามที่ต้องการ */
    background-size: cover;
    background-position: center;
    z-index: 1;
    position: relative;
}

.logo {
    height: 92px;
    width: 130px;
    margin-top: -10px;
    cursor: pointer;
}

.navbar {
    width: 70%;
    height: 110px;
    padding: 20px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(73, 72, 72, 0.5);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    position: relative;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 15px;
    transition: transform 0.3s ease-in-out;
}

.nav-list li {
    position: relative;
    padding: 20px;
}

.nav-list a {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s;
}

.navbar ul li a:hover {
    background: rgb(109, 109, 109);
    transition: 0.3s;
    color: black;
}

/* Dropdown Menu */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    /* จัด dropdown ให้ติดกับเมนูหลัก */
    left: 0;
    background-color: #474747;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.nav-menu-btn {
    display: none;
}

.nav-close-btn {
    display: none;
    position: absolute;
    top: 20px;
    /* ปรับตามตำแหน่งที่ต้องการ */
    right: 20px;
    font-size: 18px;
    color: #fff;
    z-index: 2001;
    background: none;
    border: none;
    cursor: pointer;
}

#languageSwitcher {
    background: transparent;
    color: #f8f6f6;
    border: none;
}

/* Mobile Styles - ปรับเมนูให้ชัดเจน */
@media screen and (max-width: 1049px) {

    html,
    body {
        font-family: "Athiti", sans-serif;
    }

    .background-boby {
        font-family: "Athiti", sans-serif;
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        /* จัดให้เนื้อหาเริ่มต้นจากด้านซ้าย */
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 50%;
        background-color: rgba(0, 0, 0, 0.9);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        padding: 60px 20px 20px 20px;
        /* เพิ่ม padding เพื่อขยับเนื้อหาด้านบนลงมา */
        overflow-y: auto;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
        z-index: 2000;
    }

    .nav-list.active {
        transform: translateX(0);
        /* margin-top: 40[px]; */
        padding-top: 70px;
    }

    .nav-list li {
        margin: 0px 0;
        /* เพิ่มระยะห่างระหว่างรายการเมนู */
        width: 100%;
        list-style: none;
    }

    #languageSwitcher {
        margin-left: 18px;
        font-size: 15px;
        padding: 10px;
        border: 1px solid #ffffff;
    }
    
    .nav-list a {

        text-decoration: none;
        color: #fff;
        font-size: 1em;
        /* ปรับขนาดฟอนต์ให้ใหญ่ขึ้นเล็กน้อย */
        padding: 0px 0;
        /* เพิ่ม padding บนและล่างเพื่อให้ดูเด่นชัด */
        /* margin-top: 60px; */

        transition: background-color 0.3s, color 0.3s;
        width: 100%;
        /* ให้ครอบคลุมความกว้างของเมนู */
    }

    .nav-menu-btn {
        font-family: "Athiti", sans-serif;
        display: block;
        font-size: 18px;
        /* Adjust font size as needed */
        color: #fff;
        /* White text */
        background: none;
        /* Remove background color */
        border: none;
        /* Remove border */
        cursor: pointer;
        /* Change cursor to pointer to indicate it's clickable */
        z-index: 2001;
        padding: 0;
        /* Remove any padding that may cause a larger clickable area */
        margin-right: 5%;
    }

    .nav-close-btn {
        display: none;
        position: absolute;
        /* top: 20px;
        right: -30px; */
        margin-right: 10%;
        font-size: 18px;
        /* Adjust font size as needed */
        color: #fff;
        z-index: 2001;
        background: none;
        /* Remove any background if applicable */
        border: none;
        /* Remove border */
        cursor: pointer;
        /* Change cursor to pointer */
    }

    .nav-list.active+.nav-close-btn {
        display: block;
    }

    .nav-menu-btn:hover,
    .nav-menu-btn:focus,
    .nav-menu-btn:active {
        background: none;
        /* Remove background on any interactive state */
        border: none;
        /* Remove border */
        outline: none;
        /* Remove any outline that may be causing a border effect */
    }

    .dropdown-content {
        display: none;
        position: absolute;
        top: 100%;
        /* จัด dropdown ให้ติดกับเมนูหลัก */
        left: 0;
        background-color: #474747;
        min-width: 160px;
        box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
        z-index: 1000;
    }

    .dropdown-content a {
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        text-align: left;
    }

    .dropdown-content a:hover {
        background-color: #f1f1f1;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }
}

/* header */


/* ค้นหน้า */
.search-container {
    background-color: #a16922;
    /* สีพื้นหลังของกล่อง */
    padding: 50px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 800px;
    position: absolute;
    /* ใช้ absolute เพื่อจัดตำแหน่ง */
    top: 100%;
    /* ระยะห่างจากด้านบนของหน้าจอ */
    left: 50%;
    /* ระยะห่างจากด้านซ้ายของหน้าจอ */
    transform: translate(-50%, -50%);
    /* ใช้เพื่อจัดกึ่งกลาง */
    z-index: 1000;
    /* ให้อยู่ด้านหน้าสุด */
}

.option-btn {
    background-color: #fff;
    color: #a16922;
    border: 1px solid #a16922;
    padding: 10px 20px;
    margin-right: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.option-btn.active {
    background-color: #f7941d;
    /* สีปุ่มที่ถูกเลือก */
    color: #fff;
}

.option-btn:hover {
    background-color: #f7941d;
    color: #fff;
}

.search-box {
    display: flex;
    width: 100%;
}

.search-box input[type="text"] {
    flex: 4;
    /* เพิ่มความกว้างของฟิลด์ค้นหา */
    padding: 10px;
    border: 1px solid #000000;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-box .search-btn {
    flex: 1;
    /* ลดขนาดปุ่มค้นหาให้สอดคล้องกับฟิลด์ค้นหา */
    background-color: #f7941d;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-box .search-btn:hover {
    background-color: #e6831a;
}

.toggle-container {
    display: flex;
    position: relative;
    width: 450px;
    background-color: #a16922;
    /* สีพื้นหลังกล่อง */
    border-radius: 10px;
    overflow: hidden;
}

.toggle-btn {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

input[type="radio"] {
    display: none;
}

input[type="radio"]:checked+.toggle-btn {
    background-color: #f7941d;
    /* สีปุ่มที่ถูกเลือก */
    color: #fff;
}

input[type="radio"]:not(:checked)+.toggle-btn {
    background-color: #fff;
    /* สีปุ่มที่ไม่ถูกเลือก */
    color: #000;
}

.toggle-container label:first-of-type {
    border-radius: 25px 0 0 25px;
}

.toggle-container label:last-of-type {
    border-radius: 0 25px 25px 0;
}























































.login-container {
    position: fixed;
    /* ทำให้ login-container ทับบน banner */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #A17652;
    border-radius: 10px;
    box-shadow: 0px 2px 1px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-top: 50px;
    padding-bottom: 50px;
    width: 400px;
    z-index: 0;
    /* ทำให้ login-container อยู่เหนือ banner */
}

.login-container {
    background-color: #A17652;
    border-radius: 10px;
    box-shadow: 0px 2px 1px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-top: 50px;
    padding-bottom: 50px;
    width: 400px;
}

.login-container .login-title {
    color: #2D2926;
    margin-bottom: 20px;
    text-shadow: 1px 2px 1px rgba(0, 0, 0, 0.1);
    font-size: 35px;
}

input[type="email"],
input[type="password"] {
    width: 70%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 16px;
    font-family: "Athiti", sans-serif;
}

.forgot-password {
    text-align: right;
    margin-bottom: 20px;
    margin-right: 70px;
}

.forgot-password a {
    color: #2D2926;
    font-size: 15px;
    text-decoration: none;
    text-shadow: 1px 2px 1px rgba(0, 0, 0, 0.1);
}

.button-container {
    display: flex;
    justify-content: space-between;
    margin: 0px 70px;
}

.login-btn,
.signup-btn {
    width: 48%;
    padding: 10px;
    border-radius: 5px;
    border: none;
    color: #372E25;
    font-size: 16px;
    cursor: pointer;
    text-shadow: 1px 2px 1px rgba(0, 0, 0, 0.1);
    font-family: "Athiti", sans-serif;
}

.login-btn {
    background-color: #D37F20;
}

.signup-btn {
    background-color: #D37F20;
}

.login-btn:hover,
.signup-btn:hover {
    background-color: #D9A066;
}

@media screen and (max-width: 375px) {
    .login-container {
        width: 90%;
        /* ทำให้ความกว้าง 90% ของหน้าจอ */
        max-width: 300px;
        /* ตั้งค่าความกว้างสูงสุดเป็น 300px */
        padding-top: 30px;
        /* ลด padding ด้านบน */
        padding-bottom: 30px;
        /* ลด padding ด้านล่าง */
    }

    .login-title {
        font-size: 28px;
        /* ลดขนาดฟอนต์ */
    }

    input[type="email"],
    input[type="password"] {
        width: 90%;
        /* ทำให้ฟิลด์ข้อมูลมีความกว้าง 90% */
    }

    .forgot-password {
        margin-right: 20px;
        /* ปรับระยะห่าง */
    }

    .button-container {
        margin: 0px 20px;
        /* ลดระยะห่าง */
    }

    button {
        padding: 8px;
        /* ลด padding ของปุ่ม */
        font-size: 14px;
        /* ลดขนาดฟอนต์ของปุ่ม */
    }
}