@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #A07855; 
    --secondary-color: #D4B996; 
    --dark-color: #333333; 
    --light-color: #FFFFFF;
    --background-color: #F9F5F0; 
    --footer-bg: #222222;
    --danger-color: #e74c3c;
    --success-color: #2ecc71;
    --border-color: #eeeeee;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Kanit', sans-serif;
    line-height: 1.7;
    background-color: var(--background-color);
    color: var(--dark-color);
    font-size: 16px;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { color: var(--primary-color); text-decoration: none; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }

.main-header {
    background: var(--light-color);
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.main-header.sticky {
    padding: 5px 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.logo img {
    height: 60px;
    width: auto;
    display: block;
}
.mobile-nav-toggle {
    display: none;
}
.main-nav {
    flex-grow: 1;
    margin: 0 30px;
}
.main-nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
}
.main-nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    font-size: 1.05rem;
    padding-bottom: 5px;
    position: relative;
}
.main-nav ul li a::after {
    content: '';
    position: absolute; width: 0; height: 2px; bottom: 0; left: 50%;
    transform: translateX(-50%); background-color: var(--primary-color);
    transition: width 0.3s ease-in-out;
}
.main-nav ul li a:hover::after, .main-nav ul li a.active::after {
    width: 100%;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
.user-menu a { color: var(--dark-color); font-size: 0.95rem; }
.btn-login {
    background: var(--primary-color); color: var(--light-color) !important;
    padding: 8px 20px; border-radius: 4px;
}
.btn-login:hover { background: #8a6647; }
.lang-switcher {
    display: flex; align-items: center; gap: 5px; padding-left: 15px; border-left: 1px solid #ddd;
}
.lang-switcher a { font-weight: 500; color: #888; }
.lang-switcher a.active { color: var(--primary-color); font-weight: bold; }


@media screen and (max-width: 991px) {
    
    .header-content {
        padding: 5px 10px;
    }
    .logo img { height: 50px; max-width: 200px; }

    .mobile-nav-toggle {
        display: block;
        font-size: 1.8rem;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--dark-color);
        padding: 5px;
        z-index: 10000; 
    }

    .main-nav {
        display: none; 
        position: absolute; 
        top: 100%; 
        left: 0;
        width: 100%; 
        background-color: #ffffff;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        border-top: 1px solid var(--border-color);
        margin: 0; 
        padding: 0;
        z-index: 99999 !important; 
    }

    .main-nav.active {
        display: block !important;
        animation: fadeInDown 0.3s ease-out;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    .main-nav ul li {
        border-bottom: 1px solid #f9f9f9;
        width: 100%;
        text-align: center;
        margin: 0;
    }
    .main-nav ul li a {
        display: block;
        padding: 15px 0;
        width: 100%;
    }
    .main-nav ul li a::after { display: none; } 

    .header-right {
        display: none; 
    }
    
    @keyframes fadeInDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .booking-form-section .hero-booking-form {
        flex-direction: column; 
        align-items: stretch;
        gap: 15px; 
    }
    
    .booking-page-form {
        display: flex;
        flex-direction: column; 
        gap: 15px; 
    }
    .booking-page-form .form-group {
        flex: 1;
    }
    .booking-page-form .form-group input,
    .booking-page-form .form-group select {
        width: 100%; 
        height: 45px;
        padding: 0 12px;
    }
}


.hero-banner {
    margin-top: 80px;
    height: 60vh; min-height: 400px;
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../images/banner.jpg');
    background-size: cover; background-position: center;
    display: flex; justify-content: center; align-items: center; text-align: center; color: var(--light-color);
}
.hero-content h1 { font-size: 3rem; text-shadow: 2px 2px 8px rgba(0,0,0,0.5); }

.section { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 40px; font-size: 2rem; color: var(--primary-color); }

.form-wrapper {
    max-width: 450px; margin: 100px auto 50px; padding: 30px;
    background: var(--light-color); border-radius: 8px; box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; }
.form-group input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; }

.booking-page-form {
    display: flex;
    flex-direction: column; 
    gap: 15px; 
}
.booking-page-form .form-group {
    flex: 1;
}
.booking-page-form .form-group input,
.booking-page-form .form-group select {
    width: 100%; 
    padding: 0 12px;
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    font-size: 1rem;
}


.btn-submit, .btn-book, .btn-pay, .btn-print {
    background-color: var(--primary-color); color: #fff; border: none;
    padding: 10px 20px; border-radius: 4px; cursor: pointer; display: inline-block;
    font-size: 1rem; text-align: center;
}
.btn-submit:hover, .btn-book:hover { background-color: #8a6647; }

.room-results-grid, .gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px;
}
.room-card, .gallery-item {
    background: #fff; border-radius: 8px; overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: transform 0.3s;
}
.room-card:hover, .gallery-item:hover { transform: translateY(-5px); }
.room-card img, .gallery-item img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.room-card-content { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.room-card-content p { flex-grow: 1; } 
.room-card-footer { padding: 15px 20px; border-top: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; margin-top: auto; }

.lightbox { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.95); }
.lightbox-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); max-width: 90%; max-height: 90%; display: flex; align-items: center; justify-content: center; }
.lightbox-content img { max-width: 100%; max-height: 80vh; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; cursor: pointer; }
.lightbox-next, .lightbox-prev { cursor: pointer; position: absolute; top: 50%; width: auto; padding: 16px; margin-top: -50px; color: white; font-weight: bold; font-size: 24px; transition: 0.6s ease; user-select: none; background-color: rgba(0,0,0,0.3); }
.lightbox-next { right: 0; border-radius: 3px 0 0 3px; } .lightbox-prev { left: 0; border-radius: 0 3px 3px 0; }
.lightbox-next:hover, .lightbox-prev:hover { background-color: rgba(0,0,0,0.8); }

.main-footer { background-color: var(--footer-bg); color: #aaa; padding: 40px 0; text-align: center; margin-top: 50px; }
.main-footer .logo img { filter: brightness(0) invert(0.8); margin: 0 auto 15px; }

.booking-form-section {
    padding-top: 120px; 
    padding-bottom: 40px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.booking-form-section .hero-booking-form-wrapper {
    background: none;
    box-shadow: none;
    padding: 0;
    max-width: 1100px;
    margin: 0 auto;
}

.booking-form-section .hero-booking-form-wrapper h1 {
    text-align: center;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 2rem;
}

.booking-form-section .hero-booking-form {
    display: flex;
    flex-wrap: wrap; 
    gap: 20px;
    align-items: flex-end; 
    justify-content: center; 
}

.booking-form-section .form-group {
    flex: 1 1 180px; 
    margin: 0;
    min-width: 180px;
}

.booking-form-section .form-group-submit {
    flex: 1 1 180px;
    min-width: 180px;
}

.booking-form-section .form-group label {
    display: block;
    margin-bottom: 5px; 
    font-weight: 500;
    color: var(--dark-color);
    font-size: 0.9rem; 
}

.booking-form-section input[type="date"],
.booking-form-section select {
    width: 100%;
    padding: 0 12px; 
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Kanit', sans-serif;
    font-size: 1rem;
    background-color: #fff;
    height: 50px; 
    box-sizing: border-box; 
}

.booking-form-section .btn-submit {
    width: 100%;
    padding: 0 12px;
    font-size: 1.1rem;
    font-weight: 500;
    height: 50px; 
    box-sizing: border-box; 
    border: none;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
}
.booking-form-section .btn-submit:hover {
    background-color: #8a6647;
}

@media screen and (max-width: 991px) {
    .booking-form-section .hero-booking-form {
        flex-direction: column; 
        align-items: stretch;
        gap: 15px; 
    }
    
    .booking-form-section .form-group {
        display: block; 
        flex-basis: auto;
    }

    .booking-form-section .form-group label {
        margin-bottom: 5px; 
        flex-basis: auto;
    }

    .booking-form-section input[type="date"],
    .booking-form-section select {
        flex-basis: auto; 
        width: 100%; 
        height: 45px;
    }

    .booking-form-section .btn-submit {
        height: 50px;
    }
}