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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f7f9f7;
    color: #333;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 6%;
    background: #fff;
    box-shadow: 0 3px 15px rgba(0,0,0,.08);
}

header h1 {
    font-size: 1.5rem;
    color: #2d6a4f;
}

nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

nav a {
    color: #333;
    font-weight: 500;
    transition: .3s;
}

nav a:hover {
    color: #2d6a4f;
}

/* Hero */
.hero {
    position: relative;
}

.hero img {
    width: 100%;
    height: 80vh;
    object-fit: cover;
    filter: brightness(.72);
}

.hero-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 20px;
}

.hero-text h2 {
    font-size: 3.2rem;
}

.hero-text p {
    font-size: 1.25rem;
    margin: 15px 0 25px;
}

.hero-btns {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    background: #2d6a4f;
    color: #fff;
    padding: 14px 28px;
    border-radius: 999px;
    margin: 8px;
    transition: .3s;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
}

.btn:hover {
    background: #40916c;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,.15);
}

/* Booking Search Form */
.booking-search {
    background: #fff;
    max-width: 1000px;
    margin: -50px auto 40px;
    position: relative;
    z-index: 10;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.booking-search h3 {
    color: #2d6a4f;
    margin-bottom: 15px;
    font-size: 1.4rem;
    text-align: center;
}

.booking-search form {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.input-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-weight: 500;
    font-size: 0.9rem;
    color: #555;
}

.input-group input, .input-group select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    background: #f9f9f9;
}

.input-group input:focus, .input-group select:focus {
    border-color: #2d6a4f;
}

.search-btn {
    background: #2d6a4f;
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    height: 48px;
}

.search-btn:hover {
    background: #40916c;
}

/* Sections */
.about, .features {
    max-width: 1200px;
    margin: auto;
    padding: 70px 20px;
}

.about {
    text-align: center;
}

.about h2, .features h2 {
    margin-bottom: 20px;
    color: #2d6a4f;
}

/* Facilities */
.features ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.features li {
    background: #fff;
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(0,0,0,.08);
}

/* Rooms */
.rooms-container {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.room-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0,0,0,.08);
    transition: .3s;
    text-align: center;
    padding-bottom: 20px;
}

.room-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,0,0,.12);
}

.room-card h2 {
    margin: 18px 0;
    color: #2d6a4f;
}

.room-card p {
    margin: 6px 20px;
}

.slider {
    position: relative;
}

.room-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,.5);
    color: #fff;
    cursor: pointer;
    font-size: 20px;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover {
    background: #2d6a4f;
}

/* Contact */
iframe {
    width: 100%;
    height: 420px;
    border: 0;
    border-radius: 16px;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 40px 20px;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    padding: 14px 24px;
    border-radius: 999px;
    transition: .3s;
}

.contact-btn:hover {
    transform: translateY(-3px);
}

.call { background: #2ea44f; }
.whatsapp { background: #25D366; }
.messenger { background: #0084ff; }

/* Footer */
footer {
    background: #2d6a4f;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-info, .footer-links {
    flex: 1;
    min-width: 280px;
}

.footer-info h3, .footer-links h3 {
    margin-bottom: 18px;
    font-size: 1.3rem;
    position: relative;
}

.footer-info p {
    margin: 10px 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.footer-info i {
    margin-right: 10px;
    color: #b7e4c7;
}

.footer-links a {
    display: block;
    color: #fff;
    margin: 10px 0;
    transition: 0.3s;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.7;
    width: 100%;
}

/* Tablet Layout */
@media (max-width: 992px) {
    .hero img { height: 60vh; }
    .hero-text h2 { font-size: 2.5rem; }
}

/* Mobile Layout */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    nav {
        justify-content: center;
        gap: 16px;
    }
    .hero img { height: 320px; }
    .hero-text h2 { font-size: 2rem; }
    .hero-text p { font-size: 1rem; }
    .btn {
        display: block;
        width: 230px;
        margin: 10px auto;
    }
    .booking-search {
        margin: 20px;
        padding: 20px;
    }
    .booking-search form {
        flex-direction: column;
        align-items: stretch;
    }
    .search-btn {
        width: 100%;
    }
    .rooms-container {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .room-image { height: 220px; }
    .features ul { grid-template-columns: 1fr; }
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    .contact-btn {
        width: 90%;
        justify-content: center;
    }
    iframe { height: 280px; }
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-links a:hover {
        padding-left: 0;
    }
}

/* Small phones Layout */
@media (max-width: 480px) {
    header h1 { font-size: 1.2rem; }
    .hero-text h2 { font-size: 1.6rem; }
    .hero-text p { font-size: .95rem; }
    nav a { font-size: .95rem; }
}
/* Services Section */
.services {
    max-width: 1200px;
    margin: auto;
    padding: 70px 20px;
    text-align: center;
}
.services h2 {
    margin-bottom: 40px;
    color: #2d6a4f;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}
.service-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,.06);
    transition: 0.3s;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,.1);
}
.service-icon {
    font-size: 2.2rem;
    color: #2d6a4f;
    margin-bottom: 15px;
}
.service-card h3 {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 8px;
}
.service-card .price {
    font-weight: 600;
    color: #40916c;
    font-size: 1.1rem;
    margin-bottom: 12px;
}
.service-card p:not(.price) {
    font-size: 0.95rem;
    color: #666;
}
/* Language Switcher */
/* --- KHU VỰC CHUYỂN ĐỔI NGÔN NGỮ (XẾP DỌC) --- */
.lang-switcher {
    display: flex;
    flex-direction: column; /* Xếp dọc: chữ ở trên, cờ ở dưới */
    align-items: center;    /* Căn giữa chữ và cờ theo trục dọc */
    gap: 6px;               /* Khoảng cách giữa chữ và hàng cờ */
    font-size: 0.9rem;
    font-weight: 500;
}

.lang-label {
    color: #495057;
    margin: 0;
    line-height: 1;         /* Thu nhỏ chiều cao dòng để không bị khoảng trống rộng */
}

.flag-btns {
    display: flex;
    align-items: center;
    gap: 8px;               /* Khoảng cách nằm ngang giữa 2 lá cờ */
}

.flag-btn {
    background: none;
    border: 2px solid transparent; 
    padding: 2px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    opacity: 0.6; 
}

.flag-btn img {
    width: 26px;            /* Giảm nhẹ kích thước cờ một chút cho cân đối với giao diện dọc */
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15); 
}

/* Hiệu ứng khi di chuột vào cờ */
.flag-btn:hover {
    opacity: 1;
    transform: scale(1.08);
}

/* Cờ đang được chọn */
.flag-btn.active {
    opacity: 1;
    border-color: #2d6a4f; 
    background-color: rgba(45, 106, 79, 0.1);
}
@media (max-width: 768px) {
    .lang-switcher {
        margin-left: 0;
        margin-top: 5px;
    }
}