@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: Arial, sans-serif;
    background-color: #EDE9D3;
    height: 100;
    width: 100;
}

/* 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 (min-width: 1049px) {

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

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

@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 */

.content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 10px;
    color: rgb(0, 0, 0);
    text-align: center;
    margin-bottom: 5px;
}

.content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

#propertyForm {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

}

#propertyForm label {
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: block;
    color: #333;
}

#propertyForm input,
#propertyForm select,
#propertyForm textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);

}

#propertyForm input:focus,
#propertyForm select:focus,
#propertyForm textarea:focus {
    border-color: #999;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

#propertyForm textarea {
    height: 150px;
    resize: vertical;

}

.pepar-infu h3 {
    color: crimson;
}

.image-upload,
.image-upload1,
.image-upload2,
.image-upload3,
.image-upload4,
.image-upload5,
.image-upload6,
.image-upload7,
.image-upload8,
.image-upload9 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-upload img,
.image-upload1 img,
.image-upload2 img,
.image-upload3 img,
.image-upload4 img,
.image-upload5 img,
.image-upload6 img,
.image-upload7 img,
.image-upload8 img,
.image-upload9 img {
    max-width: 300px;
    height: auto;
    object-fit: cover;
}

.image-upload input[type="file"],
.image-upload1 input[type="file"],
.image-upload2 input[type="file"],
.image-upload3 input[type="file"],
.image-upload4 input[type="file"],
.image-upload5 input[type="file"],
.image-upload6 input[type="file"],
.image-upload7 input[type="file"],
.image-upload8 input[type="file"],
.image-upload9 input[type="file"] {
    display: none;

}

.image-upload label,
.image-upload1 label,
.image-upload2 label,
.image-upload3 label,
.image-upload4 label,
.image-upload5 label,
.image-upload6 label,
.image-upload7 label,
.image-upload8 label,
.image-upload9 label {
    display: inline-block;
    width: 300px;
    height: 300px;
    overflow: hidden;
    cursor: pointer;
}

.image-upload label img,
.image-upload1 label img,
.image-upload2 label img,
.image-upload3 label img,
.image-upload4 label img,
.image-upload5 label img,
.image-upload6 label img,
.image-upload7 label img,
.image-upload8 label img,
.image-upload9 label img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pumsend {
    width: 100%;
    padding: 15px;
    background-color: #dbcebd;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    color: #333;
    transition: background-color 0.3s ease;
}

.pumsend:hover {
    background-color: bisque;
}

/* ---------------------------footer---------------------------------- */

.footer-box1 {
    width: 100%;
    background-color: #EDE9D3;
    color: #000000;
    padding: 40px 0 20px;
    font-size: 14px;
    line-height: 20px;
}

.row {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
}

.col {
    flex-basis: 100%;
    padding: 15px;
    /* width: 50px; */
    box-sizing: border-box;
}


.col:nth-child(2),
.col:nth-child(3) {
    flex-basis: 100%;
    /* Full width on smaller screens */
}


.-footer-logo {
    width: 70%;
    height: auto;
    max-width: 250px;
    margin: 0 auto 20px auto;
}


.col .Texth3 {
    width: fit-content;
    margin: 0 auto 15px auto;
    position: relative;
}


.email-id {
    width: fit-content;
    border-bottom: 1px solid #000000;
    margin: 20px 0;
}


.ul1 .li1 {
    list-style: none;
    margin-bottom: 10px;
}

.ul1 .li1 .a1 {
    text-decoration: none;
    color: #000000;
}

.form-box1 {
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #000000;
    margin-bottom: 20px;
}

.form-box1 .uil {
    font-size: 18px;
    margin-right: 5px;
}

.form-box1 .input-box1 {
    width: 65%;
    max-width: 250px;
    background: transparent;
    color: #030303;
    border: 0;
    outline: none;
    text-align: center;
    margin-bottom: 10px;
    font-family: "Athiti", sans-serif;
}

.form-box1 .button-box1 {
    background: transparent;
    border: 0;
    outline: none;
    cursor: pointer;
}

.form-box1 .button-box1 .uil {
    font-size: 18px;
    color: #000000;
}

.social-icons1 {
    text-align: center;
    margin-top: 15px;
}

.social-icons1 .uil,
.social-icons1 .fa-brands {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    font-size: 20px;
    color: #000;
    margin: 8px;
    cursor: pointer;
}

hr {
    width: 90%;
    border: 0;
    border-bottom: 1px solid #000000;
    margin: 15px auto;
}

.copyright {
    text-align: center;
    font-size: 12px;
    margin-top: 15px;
}


.underline {
    width: 100%;
    height: 5px;
    background: #000000;
    border-radius: 3px;
    position: absolute;
    top: 25px;
    left: 0;
    overflow: hidden;
}

.underline span {
    width: 15px;
    height: 100%;
    background: #fff;
    border-radius: 3px;
    position: absolute;
    top: 0;
    left: 10px;
    animation: moving 2s linear infinite;
}

.popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.popup-content {
    background-color: #A16922;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 60%;
    border-radius: 10px;
    text-align: center;
    color: white;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.popup-image img {
    position: absolute;
    width: 655px;
    left: 210px;
}

.popup-text p {
    margin: 70px 0;
    font-size: 20px;
}

.popup-buttons button {
    padding: 10px 20px;
    margin: 10px;
    border: none;
    border-radius: 5px;
    background-color: #F7941D;
    color: white;
    cursor: pointer;
    font-size: 18px;
    font-family: "Athiti", sans-serif;
}

.popup-buttons button:hover {
    background-color: #E6831A;
}

.popupwechat {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}
.popupline{
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

@keyframes moving {
    0% {
        left: -20px;
    }

    100% {
        left: 100%;
    }
}

@media screen and (min-width: 480px) {
    .col {
        flex-basis: 45%;
    }

    .col:nth-child(2),
    .col:nth-child(3) {
        flex-basis: 45%;
    }

    .form-box1 .input-box1 {
        width: 70%;
        max-width: 250px;
    }
}

@media screen and (min-width: 768px) {
    .col {
        flex-basis: 45%;
        /* Adjust for larger screens */
    }

    .col:nth-child(2),
    .col:nth-child(3) {
        flex-basis: 20%;
        /* Adjust for the 'Links' and 'Newsletter' columns on larger screens */
    }

    .form-box1 .uil {
        font-size: 25px;
    }

    .form-box1 .button-box1 .uil {
        font-size: 25px;
    }
}


@media screen and (min-width: 1024px) {
    .col {
        flex-basis: 22%;
        /* Adjust for desktop */
    }

    .col:nth-child(2),
    .col:nth-child(3) {
        flex-basis: 15%;
    }
}