/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Buttons */
.book-btn, .view-btn, .banner-btn {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.book-btn:hover, .banner-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.view-btn {
    background-color: #3498db;
    padding: 8px 16px;
    font-size: 0.9em;
}

.view-btn:hover {
    background-color: #2980b9;
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #e74c3c;
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #3498db;
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e74c3c;
    transition: width 0.3s;
}

.nav-menu a:hover {
    color: #e74c3c;
}

.nav-menu a:hover:after {
    width: 100%;
}

/* Update for Hero Section with Video Background */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-foreground,
.video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Hide the hero content as requested */
.hero-content {
    display: none;
}

/* Optional: If you want to keep the overlay for a slight darkening effect */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 0%);
    z-index: 1;
}

/* Responsive adjustments for the video */
@media (max-aspect-ratio: 16/9) {
    .video-foreground {
        width: 300%;
        height: 100%;
    }
}

@media (min-aspect-ratio: 16/9) {
    .video-foreground {
        width: 100%;
        height: 300%;
    }
}
/* Rooms Section */
.rooms {
    padding: 100px 0 70px;
    background-color: #f9f9f9;
}

.rooms-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.room-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.room-img {
    height: 220px;
    overflow: hidden;
}

.room-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.room-card:hover .room-img img {
    transform: scale(1.1);
}

.room-details {
    padding: 20px;
}

.room-details h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.room-details p {
    color: #7f8c8d;
    margin-bottom: 15px;
}

/* Features Section */
.features {
    padding: 50px 0;
    background-color: white;
}

.features-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.feature-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #f9f9f9;
    padding: 25px;
    border-radius: 50%;
    width: 180px;
    height: 180px;
    justify-content: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 36px;
    color: #3498db;
    margin-bottom: 15px;
}

/* Welcome Section */
.welcome {
    padding: 100px 0;
    background-color: white;
}

.welcome-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.welcome-img {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.welcome-img img {
    width: 100%;
    height: auto;
    display: block;
}

.welcome-content p {
    margin-bottom: 20px;
    color: #7f8c8d;
}

/* Video Banner */
.video-banner {
    padding: 100px 0;
    text-align: center;
    color: white;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/api/placeholder/1200/800');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.video-banner h2 {
    max-width: 900px;
    margin: 0 auto 30px;
    font-size: 1.8rem;
    line-height: 1.5;
}

.banner-btn {
    background-color: transparent;
    border: 2px solid white;
}

.banner-btn:hover {
    background-color: white;
    color: #333;
}

/* Dual Sections */
.dual-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    padding: 80px 0;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .dual-section {
        padding: 1px;
        grid-template-columns: 1fr; /* optional: stack columns on small screens */
    }
}

.dual-section.reverse {
    direction: rtl;
}

.dual-section.reverse > * {
    direction: ltr;
}

.text-section {
    padding: 20px;
}

.text-section .section-title {
    text-align: left;
}

.text-section .section-title:after {
    left: 0;
    transform: none;
}

.image-section img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Experiences Section */
.experiences {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.experiences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.experience-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s;
}

.experience-item:hover {
    transform: translateY(-10px);
}

.hex-img {
    position: relative;
    width: 180px;
    height: 180px;
    margin-bottom: 20px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    overflow: hidden;
    transition: transform 0.3s;
}

.hex-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.experience-item:hover .hex-img {
    transform: translateY(-5px);
}

.experience-item:hover .hex-img img {
    transform: scale(1.1);
}

.experience-item h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
}

.experience-item .distance {
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 5px;
}

@media (max-width: 991px) {
    .experiences-grid {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    }
    
    .hex-img {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .experiences-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .hex-img {
        width: 130px;
        height: 130px;
    }
    
    .experience-item h3 {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .experiences-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hex-img {
        width: 120px;
        height: 120px;
    }
}

/* Dining Section */
.dining {
    padding: 80px 0;
    background-color: white;
}

.dining-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.dining-img {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Activities Section */
.activities {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.activities .container {
    max-width: 900px;
}

.activities p {
    margin-bottom: 20px;
}

.activities ul {
    list-style: disc;
    margin-left: 20px;
}

.activities li {
    margin-bottom: 10px;
    color: #555;
}

/* Cancellation Section */
.cancellation {
    padding: 80px 0;
    background-color: white;
}

.cancellation-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.cancellation ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.cancellation-img {
    text-align: center;
}

.cancellation-img img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Reviews Section */
.reviews {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.reviewer-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rating {
    color: #f39c12;
    margin-top: 5px;
}

.review-content {
    color: #555;
    font-style: italic;
}

.loading {
    text-align: center;
    padding: 30px;
    font-size: 1.2rem;
    color: #7f8c8d;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 80px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background 0.3s;
}

.social-icon:hover {
    background: #3498db;
}

.footer-contact {
    margin-top: 20px;
}

.footer-contact-item {
    display: flex;
    margin-bottom: 15px;
}

.footer-icon {
    margin-right: 15px;
    min-width: 20px;
}

.footer-map {
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
}

.footer-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 99;
    transition: transform 0.3s;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .welcome-container,
    .dining-container,
    .cancellation-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .dual-section {
        grid-template-columns: 1fr;
    }
    
    .dual-section.reverse {
        direction: ltr;
    }
    
    .feature-box {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding: 15px 0;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .nav-menu {
        margin-bottom: 15px;
    }
    
    .nav-menu li {
        margin: 0 10px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .features-container {
        gap: 15px;
    }
    
    .feature-box {
        width: 130px;
        height: 130px;
        padding: 15px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-menu li {
        margin: 5px 10px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .feature-box {
        width: 120px;
        height: 120px;
    }
    
    .feature-icon {
        font-size: 28px;
    }
}

/* Mobile Menu Icon */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1100; /* Increased z-index to be above all other elements */
    position: relative;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Navigation */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050; /* Must be below menu toggle but above other content */
    display: none;
}



/* Fixed header positioning */
header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040; /* Make sure header is below overlay but above content */
    transition: all 0.3s ease;
}

/* Responsive styles for mobile menu */
@media (max-width: 768px) {
    /* Show hamburger menu */
    .menu-toggle {
        display: flex;
    }
    
    /* Hide desktop button */
    .book-btn.desktop {
        display: none;
    }
    
    /* Show mobile button in menu */
    .book-btn.mobile {
        display: block;
        width: calc(100% - 40px);
        margin: 20px;
        text-align: center;
    }
    
    /* Menu icon animation when active */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    /* Mobile navigation panel */
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
        z-index: 1090; /* Higher than overlay, lower than menu toggle */
        padding-top: 70px;
        overflow-y: auto;
    }
    
    /* Active state for nav panel */
    nav.active {
        right: 0;
    }
    
    /* Nav menu in mobile view */
    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 0;
        padding: 20px;
    }
    
    .nav-menu li {
        margin: 15px 0;
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        font-size: 18px;
    }
    
    /* Keep header container as row */
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        padding: 15px;
        position: relative;
    }
    
    .logo {
        margin-bottom: 0;
        z-index: 1080; /* Make sure logo is above other elements */
    }
}

/* Base button styles */
.book-btn {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
}

.book-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

/* Desktop vs Mobile button visibility */
.book-btn.mobile {
    display: none; /* Hide mobile button by default */
}

.book-btn.desktop {
    display: inline-block; /* Show desktop button by default */
}

/* Media queries for Book Now button */
@media (max-width: 768px) {
    .book-btn.desktop {
        display: none !important; /* Force hide desktop button on mobile */
    }
    
    .book-btn.mobile {
        display: block !important; /* Force show mobile button on mobile */
        width: calc(100% - 40px);
        margin: 20px;
        text-align: center;
    }
}

/* Amenities Section Styles */
.amenities {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.amenities p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #7f8c8d;
}

.amenities-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.amenity-item {
    display: flex;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.amenity-item:hover {
    transform: translateY(-5px);
}

.amenity-icon {
    font-size: 24px;
    color: #3498db;
    margin-right: 20px;
    min-width: 40px;
    text-align: center;
}

.amenity-item h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.amenity-item p {
    text-align: left;
    margin: 0;
    color: #7f8c8d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .amenities-container {
        grid-template-columns: 1fr;
    }
    
    .amenity-item {
        padding: 15px;
    }
    
    .amenity-icon {
        font-size: 20px;
    }
}

/* Responsive Spacing Fixes for Cloud Sea Homestay
   Add this at the end of your style.css file */

/* Fix for unwanted spaces between sections */
@media (max-width: 768px) {
    /* Reduce padding for all sections */
    section {
        padding: 40px 0 !important;
    }
    
    /* Specifically adjust rooms section */
    .rooms {
        padding: 50px 0 40px !important;
    }
    
    /* Reduce margin between feature boxes */
    .features-container {
        gap: 10px;
    }
    
    /* Adjust welcome section spacing */
    .welcome {
        padding: 50px 0 !important;
    }
    
    .welcome-container {
        gap: 20px;
    }
    
    /* Reduce padding in dual sections */
    .dual-section {
        padding: 40px 0 !important;
        gap: 20px;
    }
    
    /* Fix for experiences section */
    .experiences {
        padding: 50px 0 !important;
    }
    
    .experiences-grid {
        margin-top: 30px;
    }
    
    /* Adjust amenities section */
    .amenities {
        padding: 40px 0 !important;
    }
    
    .amenities-container {
        gap: 15px;
    }
    
    /* Fix dining section spacing */
    .dining {
        padding: 40px 0 !important;
    }
    
    .dining-container {
        gap: 20px;
    }
    
    /* Adjust activities section */
    .activities {
        padding: 40px 0 !important;
    }
    
    /* Reduce cancellation section spacing */
    .cancellation {
        padding: 40px 0 !important;
    }
    
    .cancellation-container {
        gap: 20px;
    }
    
    /* Adjust reviews section */
    .reviews {
        padding: 40px 0 !important;
    }
    
    /* Footer adjustments */
    footer {
        padding: 50px 0 20px !important;
    }
    
    .footer-container {
        gap: 30px;
        margin-bottom: 30px;
    }
}

/* Even smaller screens */
@media (max-width: 480px) {
    /* Further reduce padding */
    section {
        padding: 2px 0 !important;
    }
    
    /* Adjust section titles */
    .section-title {
        margin-bottom: 1.5rem;
    }
    
    /* Tighten up gaps */
    .experiences-grid {
        gap: 15px;
    }
    
    /* Remove unwanted margins */
    .welcome-img, .dining-img {
        margin-bottom: 0;
    }
    
    /* Fix for feature boxes */
    .feature-box {
        margin: 0;
        width: 110px;
        height: 110px;
    }
}

/* Fix for video banner */
.video-banner {
    background-attachment: scroll !important; /* Fix for mobile */
}

/* Fix mobile menu alignment */
@media (max-width: 768px) {
    .header-container {
        padding: 10px 15px;
    }
    
    .nav-menu {
        padding: 15px;
    }
    
    .nav-menu li {
        margin: 10px 0;
    }
}

/* Fix unwanted space in hero section */
.hero {
    height: 80vh; /* Adjust as needed */
}

@media (max-width: 576px) {
    .hero {
        height: 50vh; /* Smaller on mobile */
    }
}