/* Basic Reset & Body Styles */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    /* Using a modern, clean font */
    color: #333;
    line-height: 1.6;
    background-color: #f8f8f8;
    /* Light background for the page */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container i {
    color: #3498db; /* Blue for the icon */
    font-size: 2.5em;
    margin-right: 15px;
}

.logo-container h1 {
    margin: 0;
    font-size: 2em;
    font-weight: bold;
}

/***********************************************Navigation Bar Styles*************************************************/
.navbar {
    background-color: #2c3e50;
    color: #fff;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333333;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    /* rounded-md */
    transition: background-color 0.3s ease;
}

.navbar-logo:hover {
    background-color: #f3f4f6;
    /* gray-100 */
}

/* Hamburger Icon Styles */
.hamburger-button {
    display: none;
    /* Hidden by default on desktop */
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 0.375rem;
    /* rounded-md */
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease;
    position: relative;
    /* For animation */
    z-index: 1000;
    /* Ensure it's above other content */
}

.hamburger-button:focus {
    box-shadow: 0 0 0 2px #3b82f6;
    /* blue-500 ring */
}

.hamburger-icon span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.hamburger-icon span:nth-child(2) {
    margin: 5px 0;
}

/* Hamburger Icon Animation for 'open' state */
.hamburger-icon.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Desktop Navigation Links */
.nav-links {
    display: flex;
    /* Always flex on desktop */
    align-items: center;
    gap: 1rem;
    /* space-x-4 */
}

.nav-links a {
    color: #fff;
    /* gray-700 */
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    /* rounded-md */
    transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-links a:hover {
    color: #2563eb;
    /* blue-600 */
    background-color: #eff6ff;
    /* blue-50 */
}

/* Mobile Menu Container */
.mobile-menu-container {
    display: none;
    /* Hidden by default */
    margin-top: 1rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    /* shadow-inner */
    position: absolute;
    /* Position relative to nav */
    width: calc(100% - 2rem);
    /* Full width minus padding */
    left: 1rem;
    right: 1rem;
    top: 60px;
    /* Adjust based on navbar height */
    z-index: 999;
    animation: slideIn 0.3s ease-out forwards;
    /* Add slide-in animation */
}

.mobile-menu-container.show {
    display: block;
    /* Show when 'show' class is added */
}

.mobile-menu-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* space-y-2 */
    padding: 1rem;
}

.mobile-menu-list a {
    display: block;
    color: #4b5563;
    /* gray-700 */
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    /* rounded-md */
    transition: color 0.3s ease, background-color 0.3s ease;
}

.mobile-menu-list a:hover {
    color: #2563eb;
    /* blue-600 */
    background-color: #eff6ff;
    /* blue-50 */
}

/* Media Queries for Responsiveness */
        @media (max-width: 767px) { /* Equivalent to Tailwind's 'md' breakpoint */
            .hamburger-button {
                display: block; /* Show hamburger on mobile */
            }
            .nav-links {
                display: none; /* Hide desktop links on mobile */
            }
            .navbar-container {
                flex-wrap: wrap; /* Allow items to wrap */
            }
        }
/***********************************************Navigation Bar Styles*************************************************/

/* Hero Section Styles */
#hero-section {
    background-image: url('KANISTA-header.png');
    /* Blue background with text */
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    margin: 20px;
    border-radius: 15px;
    /* Rounded corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.hero-content h2 {
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    /* Text shadow for readability */
}

.hero-content p {
    font-size: 1.3em;
    color: #0e544a;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 30px;
    /* More rounded buttons */
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: none;
}

.primary-btn {
    background-color: #3498db;
    /* Blue */
    color: #fff;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.4);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.6);
}

.secondary-btn {
    background-color: #2ecc71;
    /* Green */
    color: #fff;
    box-shadow: 0 4px 8px rgba(46, 204, 113, 0.4);
}

.secondary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(46, 204, 113, 0.6);
}

/* Section Common Styles */
section {
    padding: 20px 0;
    text-align: center;
    margin: 20px;
    border-radius: 15px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

section h3 {
    font-size: 2.8em;
    color: #2c3e50;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

section h3::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #3498db;
    border-radius: 2px;
}

/* About Us Section Styles */
#about-us {
    background-color: #ecf0f1;
    /* Light gray */
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1em;
    color: #555;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 20px;
}

/* Rooms Section Styles */
#rooms-section {
    background-color: #fff;
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Responsive grid */
    gap: 30px;
    padding-top: 20px;
}

.room-card {
    background-color: #fdfdfd;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.room-card img {
    max-width: 100%;
    height: 200px;
    /* Fixed height for images */
    object-fit: cover;
    /* Ensure images cover the area */
    border-radius: 8px;
    margin-bottom: 20px;
}

.room-card h4 {
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.room-card p {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 20px;
}

.btn.secondary-btn a {
    /* สไตล์ที่คุณต้องการสำหรับลิงก์ภายในปุ่ม */
    color: white;
    /* ตัวอย่าง: ให้ข้อความเป็นสีขาว */
    text-decoration: none;
    /* ตัวอย่าง: ลบขีดเส้นใต้ลิงก์ */
    display: block;
    /* ตัวอย่าง: ทำให้ลิงก์ครอบคลุมพื้นที่ปุ่ม */
}

.btn.primary-btn a {
    /* สไตล์ที่คุณต้องการสำหรับลิงก์ภายในปุ่ม */
    color: white;
    /* ตัวอย่าง: ให้ข้อความเป็นสีขาว */
    text-decoration: none;
    /* ตัวอย่าง: ลบขีดเส้นใต้ลิงก์ */
    display: block;
    /* ตัวอย่าง: ทำให้ลิงก์ครอบคลุมพื้นที่ปุ่ม */
}

.features-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
    text-align: left;
    width: 100%;
    max-width: 250px;
}

.features-list li {
    margin-bottom: 8px;
    color: #555;
    font-size: 1em;
}

.features-list li i {
    color: #3498db;
    margin-right: 10px;
    width: 20px;
    /* Align icons */
    text-align: center;
}

/* Amenities Section Styles */
#amenities-section {
    background-color: #ecf0f1;
    /* Light gray */
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    padding-top: 20px;
}

.amenity-item {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.amenity-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.amenity-item i {
    font-size: 3em;
    color: #3498db;
    margin-bottom: 15px;
}

.amenity-item p {
    font-size: 1.1em;
    font-weight: 500;
    color: #444;
}

/* Gallery Section Styles */
#gallery-section {
    background-color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding-top: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    /* Fixed height for gallery images */
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Contact Section Styles */
#contact-section {
    background-color: #ecf0f1;
    /* Light gray */
}

.contact-content {
    /* max-width: 1000px; */
    margin: 0 auto;
}

.contact-info-map {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 50px;
    text-align: left;
}

@media (min-width: 768px) {
    .contact-info-map {
        flex-direction: row;
        justify-content: space-between;
    }

    .contact-details,
    .map-placeholder {
        flex: 1;
    }

    .contact-details {
        padding-right: 30px;
    }
}

.contact-details p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 15px;
}

.contact-details p i {
    color: #3498db;
    margin-right: 10px;
    width: 25px;
}

.map-placeholder {
    background-color: #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    /* Ensure iframe respects border-radius */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.contact-form {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form h4 {
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.contact-form input,
.contact-form textarea {
    width: calc(100% - 20px);
    padding: 12px 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
    /* Allow vertical resizing */
}

.contact-form .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    border-radius: 10px;
}

/* Footer Styles */
#main-footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 60px 0 20px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: left;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.4em;
    color: #3498db;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: #3498db;
    border-radius: 2px;
}

.footer-col p {
    margin-bottom: 10px;
    color: #a0aec0;
}

.footer-col p i {
    margin-right: 10px;
    color: #3498db;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: #a0aec0;
    font-size: 1.8em;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: #3498db;
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    margin-top: 40px;
    font-size: 0.9em;
    color: #a0aec0;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-content h2 {
        font-size: 2.8em;
    }

    .hero-content p {
        font-size: 1.1em;
    }

    section h3 {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .nav-links {
        justify-content: center;
        margin-top: 15px;
    }

    .booking-bar {
        width: 100%;
        margin-top: 15px;
    }

    .booking-bar .btn {
        width: 100%;
    }

    #hero-section {
        padding: 80px 20px;
    }

    section {
        padding: 0px;
    }

    .hero-content h2 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .room-grid,
    .amenities-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
        /* Single column on small screens */
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .contact-info-map {
        flex-direction: column;
        text-align: center;
    }

    .contact-details {
        padding-right: 0;
    }

    .contact-details p i {
        margin-right: 5px;
        /* Adjust icon spacing for smaller screens */
    }
}

@media (max-width: 480px) {

    body {
        line-height: 1.1;
    }

    .logo-container h1 {
        font-size: 1.8em;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
    }

    .nav-links a {
        padding: 6px 10px;
    }

    #hero-section {
        padding: 60px 15px;
    }

    .hero-content h2 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 0.9em;
    }

    section {
        padding: 0px;
    }

    section h3 {
        font-size: 1.8em;
    }

    .room-card h4 {
        font-size: 1.6em;
    }

    .amenity-item i {
        font-size: 2.5em;
    }

    .amenity-item p {
        font-size: 1em;
    }

    .contact-form {
        padding: 25px;
    }

    #main-footer {
        padding: 15px;
    }

    .footer-content {
        gap: 10px;
    }
}