/* General Styles */
html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    background-color: #f8f8f8;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: #5b1619 !important;
    color: white !important;
}

::-moz-selection {
    background: #5b1619 !important;
    color: white !important;
}

img {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}


/* Navigation Bar */
.nav-bar {
    background-color: #FFF;
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    color: #091864;
    margin: 0 15px;
    transition: color 0.3s;
}

#nav-links.show {
    display: flex;
    animation: slideDown 0.3s ease-in-out;
}

.nav-link:hover {
    color: #FFFFFF;
}

.book-now-btn {
    border: 2px solid #ffffff;
    padding: 10px 20px;
    background: #ffffff;
    color: #5b1619;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.book-now-btn:hover {
    background-color: #5b1619;
    color: #FFFFFF;
}

/* Main Video Section */
.video-section {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Main Content Overlay */
.content-overlay {
    text-align: center;
    color: #FFFFFF;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 800px;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

p {
    font-size: 1.5rem;
    color: #FFFFFF;
    margin-bottom: 2rem;
}

.cta-btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    color: #5b1619;
    background-color: #FFFFFF;
    border-radius: 30px;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.3s ease;
}



.menu-btn svg {
    stroke: #5b1619;
    /* Change the color to white */
    transition: transform 0.3s ease;
}

.menu-btn.active {
    transform: rotate(90deg);
}

.cta-btn:hover {
    background-color: #5b1619;
    color: #FFFFFF;
    transform: scale(1.05);
}

/* Scroll Down Arrow */
.arrow {
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: 20px;
    width: 100%;
    z-index: 2;
}

.arrow svg {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Hotel Info Section */
.hotel-info {
    height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px;
    background-color: #ffffff;
    text-align: center;
}

.hotel-info-text {
    max-width: 800px;
}

.hotel-info-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #1b1b1b;
    margin-bottom: 1rem;
}

.hotel-info-text p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: #555;
    margin-top: 10px;
}

.footer {
    background-color: #5b1619;
    padding: 3rem;
    color: #FFFFFF;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.announcement-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Sarabun', sans-serif;
    background-color: #5b1619;
    color: #FFFFFF;
    padding: 10px 0;
    position: relative;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.announcement-bar.show {
    max-height: 50px;
}

.announcement-text {
    white-space: nowrap;
    animation: scrollText 10s linear infinite;
}

@keyframes scrollText {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(-100%);
    }
}

.footer a {
    color: #FFFFFF;
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (min-width: 768px) {
    .hotel-info {
        flex-direction: row;
        text-align: left;
    }

    .hotel-info-text {
        width: 60%;
    }
}

.section {
    width: 100%;
    padding: 32px;
    text-align: center;
    background-color: #f8f8f8;
}
.section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #5b1619;
    margin-bottom: 20px;
}
.section img {
    display: block;
    margin: 0 auto;
    max-width: 25%;
    height: auto;
    margin-bottom: 10px;
}



@media (max-width: 768px) {
    .section img {
        max-width: 100%;
    }
}


.product-section {
    width: 100%;
    padding: 32px;
    text-align: center;
    background-color: #f8f8f8;
}

.product-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #5b1619;
    margin-bottom: 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

.product-card {
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}


.product-image-container {
    width: 100%;
    padding-top: 100%;
    position: relative;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

.product-card h3 {
    font-size: 18px;
    color: #5b1619;
    font-weight: bold;
    margin: 10px 0;
}

.product-card p {
    color: #b78b3c;
    font-size: 18px;
    font-weight: 600;
}

.product-button {
    background: transparent;
    color: #000;
    border: 2px solid #000;
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 10px;
    width: 80%;
    transition: all 0.3s ease-in-out;
}

.product-button:hover {
    background: #000;
    color: white;
}

.h3 {
    color: #5b1619;
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* ซ่อน Section ตอนเริ่มต้น */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease-out;
}

/* เมื่อ Section เข้าสู่หน้าจอ */
.fade-in.show {
    opacity: 1;
}



/* Section หลักของ Carousel */
.carousel-container {
    width: 100vw;
    height: 80vh;
    /* ค่าเริ่มต้น: Desktop */
    margin: auto;
    overflow: hidden;
    position: relative;
}

/* แถบแสดงรูปภาพ */
.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
    /* ทำให้รูปภาพเต็มสูง */
}

/* แต่ละรูปภาพ */
.carousel-slide {
    min-width: 100%;
    height: 100%;
    box-sizing: border-box;
    position: relative;
}

/* รูปภาพ */
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* ครอบให้พอดีช่อง */
    display: block;
}

/* จุดแสดงสถานะ */
.carousel-dots {
    text-align: center;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.carousel-dot {
    width: 12px;
    height: 12px;
    background: #ccc;
    border-radius: 50%;
    display: inline-block;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-dot.active {
    background: #5b1619;
}

/* 🎯 RESPONSIVE DESIGN 🎯 */
/* Tablet (ลดความสูงลง) */
@media (max-width: 1024px) {
    .carousel-container {
        height: 60vh;
    }
}

/* Mobile (ลดความสูงลงไปอีก) */
@media (max-width: 768px) {
    .carousel-container {
        height: 50vh;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
        margin: 0 3px;
    }
}


.contact-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px;
    background-color: #f8f8f8;
    height: 50vh;
    /* กำหนดให้ Section สูง 50% ของหน้าจอ */
}

/* Google Map (ฝั่งซ้าย) */
.contact-map {
    flex: 1;
    max-width: 50%;
    height: 100%;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    /* ปรับให้เต็มพื้นที่ของ contact-map */
    border-radius: 8px;
    border: none;
}

/* ข้อมูลร้านค้า (ฝั่งขวา) */
.contact-info {
    flex: 1;
    max-width: 50%;
    font-family: 'Sarabun', sans-serif;
    color: #5b1619;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: 100%;
    /* ให้สูงเท่ากับ Google Map */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* จัดเนื้อหาให้อยู่ตรงกลาง */
}

/* จัดให้หัวข้อและข้อความดูสมดุล */
.contact-info h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.contact-info p,
.contact-info ul {
    font-size: 16px;
    margin: 5px 0;
    color: #5b1619;
}

/* ปรับ Layout สำหรับ Mobile */
@media (max-width: 768px) {
    .contact-section {
        flex-direction: column;
        height: auto;
        /* ให้ความสูงอัตโนมัติ */
    }

    .contact-map,
    .contact-info {
        max-width: 100%;
        height: auto;
    }

    .contact-map iframe {
        height: 250px;
    }
}



