/* --- Base Styles & Typography --- */
@import url('https://fonts.googleapis.com/css2?family=Georgia&family=Playfair+Display:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

h1 { font-size: 3.5em; margin-bottom: 25px; }
h2 { font-size: 2.8em; margin-bottom: 25px; }
h3 { font-size: 1.8em; margin-bottom: 15px; }

p {
    margin-bottom: 15px;
    text-align: center;
}

.section-description {
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-white { color: #fff; }
.bg-light { background-color: #f0f0f0; }
.bg-primary-dark { background-color: #2c3e50; }
.section-padded { padding: 80px 0; }
.mt-4 { margin-top: 40px; }
.img-fluid { max-width: 100%; height: auto; }

/* --- Buttons --- */
.btn-primary, .btn-hero {
    background-color: #a0522d; /* Sienna/Earthy tone */
    color: #fff;
    padding: 12px 28px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
}

.btn-primary:hover, .btn-hero:hover {
    background-color: #8b4513; /* SaddleBrown */
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #5f9ea0; /* CadetBlue */
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.btn-secondary:hover {
    background-color: #4682b4; /* SteelBlue */
}

.btn-light {
    background-color: #fff;
    color: #a0522d;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
}

.btn-light:hover {
    background-color: #f0f0f0;
    color: #8b4513;
    transform: translateY(-2px);
}

/* --- Header & Navigation (Hero Section) --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden; /* Crucial for background video */
    background: url('../images/hero-nuwara-eliya.jpg') no-repeat center center/cover; /* Fallback for no video */
}

/* Video Styling */
#heroVideo {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1; /* Below overlay and content */
    transform: translate(-50%, -50%); /* Centering trick */
    object-fit: cover; /* Ensures video covers entire area */
    filter: brightness(0.8); /* Slightly darkens video for better text contrast */
}

/* Video Overlay */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45); /* Adjust opacity for desired darkness */
    z-index: 2; /* Above video, below content */
}

.navbar {
    position: absolute; /* Fixed positioning allows scrolling content underneath */
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent background for readability */
    z-index: 100; /* Ensures navbar is always on top */
    transition: background-color 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.85); /* Darker when scrolled */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar .logo a {
    color: #fff;
    font-size: 1.8em;
    font-weight: bold;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 35px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #ffd700; /* Gold accent */
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #ffd700;
}

.hero-content {
    position: relative; /* Positioned above overlay */
    z-index: 3; /* Ensures content is visible */
    padding: 0 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-content h1 {
    font-size: 4.5em;
    color: #fff;
    margin-bottom: 25px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.6em;
    color: #eee;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Image takes slightly less space than text */
    gap: 60px;
    align-items: center;
    margin-top: 50px;
    text-align: left;
}

.about-grid img {
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.about-grid img:hover {
    transform: scale(1.02);
}

.about-grid p {
    text-align: left;
    font-size: 1.05em;
    line-height: 1.7;
    color: #444;
}

/* --- Rooms Section --- */
.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.room-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.room-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.room-card h3 {
    text-align: left;
    padding: 20px 20px 10px;
    margin-bottom: 0;
    color: #a0522d;
}

.room-card p {
    text-align: left;
    padding: 0 20px;
    margin-bottom: 15px;
    color: #666;
    flex-grow: 1; /* Allows paragraph to take up available space */
}

.room-card ul {
    list-style: none;
    padding: 0 20px;
    margin-bottom: 20px;
}

.room-card ul li {
    margin-bottom: 8px;
    color: #555;
    display: flex;
    align-items: center;
}

.room-card ul li i {
    margin-right: 10px;
    color: #5f9ea0;
    font-size: 1.1em;
}

.room-card .btn-secondary {
    margin: 0 20px 20px;
    align-self: flex-start; /* Aligns button to the left */
}

/* --- Gallery Section --- */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 50px;
    margin-bottom: 40px;
}

.image-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* --- Amenities Section --- */
.amenities-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px; /* Increased gap for better spacing */
    margin-top: 50px;
}

.amenities-list li {
    font-size: 1.2em;
    color: #555;
    display: flex;
    flex-direction: column; /* Stack icon and text */
    align-items: center;
    text-align: center;
    width: 180px; /* Fixed width for better grid alignment */
}

.amenities-list li i {
    font-size: 2.5em; /* Larger icons */
    margin-bottom: 15px;
    color: #a0522d;
    transition: color 0.3s ease;
}

.amenities-list li:hover i {
    color: #8b4513;
}

/* --- Testimonials Section (Basic) --- */
.testimonial-slider {
    display: flex;
    overflow-x: auto; /* Enable horizontal scrolling if more testimonials */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 30px;
    padding-bottom: 20px; /* For scrollbar visibility */
    margin-top: 50px;
}

.testimonial-card {
    flex: 0 0 48%; /* Adjust width for 2 cards per row on larger screens */
    scroll-snap-align: start;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    min-width: 300px; /* Ensure cards don't get too small */
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.7;
    color: #444;
}

.testimonial-card span {
    display: block;
    font-weight: bold;
    color: #a0522d;
    font-size: 0.95em;
}

/* --- Booking Section --- */
.booking-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.booking-form .form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align labels to left */
}

.booking-form label {
    font-size: 0.95em;
    margin-bottom: 8px;
    color: #eee;
    font-weight: bold;
}

.booking-form input {
    padding: 12px 15px;
    border: 1px solid #777;
    border-radius: 5px;
    font-size: 1em;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: border-color 0.3s ease;
}

.booking-form input:focus {
    outline: none;
    border-color: #ffd700;
}

/* Style for date input placeholder/text color */
.booking-form input[type="date"] {
    color-scheme: dark; /* For dark mode date picker on some browsers */
}
.booking-form input[type="date"]:not(:valid) {
    color: #ddd; /* Example for browsers that support :not(:valid) */
}


.booking-form button {
    grid-column: 1 / -1; /* Make button span all columns */
    margin-top: 20px;
}

.contact-number {
    font-size: 1.8em;
    font-weight: bold;
    margin-top: 30px;
    color: #fff;
}
.contact-number i {
    margin-right: 15px;
    color: #ffd700;
}

/* --- Contact Section --- */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.contact-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.contact-item i {
    font-size: 2.5em;
    color: #a0522d;
    margin-bottom: 20px;
}

.contact-item h3 {
    margin-bottom: 10px;
    font-size: 1.5em;
    color: #2c3e50;
}

.contact-item p {
    font-size: 1em;
    line-height: 1.6;
    color: #666;
    margin-bottom: 0;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin-top: 30px;
}

.map-container iframe {
    border-radius: 8px; /* Apply border-radius to iframe itself for consistency */
}


/* --- Footer --- */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 40px 0;
    text-align: center;
    font-size: 0.95em;
}

footer .social-links {
    margin: 25px 0;
}

footer .social-links a {
    color: #fff;
    font-size: 1.6em;
    margin: 0 12px;
    transition: color 0.3s ease, transform 0.2s ease;
}

footer .social-links a:hover {
    color: #ffd700;
    transform: translateY(-3px);
}

.privacy-links {
    margin-top: 20px;
}

.privacy-links a {
    color: #ccc;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.privacy-links a:hover {
    color: #fff;
    text-decoration: underline;
}

/* --- Mobile Responsiveness --- */

/* Hamburger menu for small screens */
.hamburger {
    display: none; /* Hidden by default */
    flex-direction: column;
    cursor: pointer;
    z-index: 101; /* Ensure it's above the nav-links */
}

.hamburger span {
    height: 3px;
    width: 28px;
    background: #fff;
    margin-bottom: 6px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Hamburger active state (for animation) */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}


@media (max-width: 992px) {
    .nav-links {
        display: none; /* Hide on smaller screens */
        flex-direction: column;
        width: 100%;
        background: rgba(0, 0, 0, 0.9); /* Darker background for mobile menu */
        position: absolute;
        top: 80px; /* Adjust based on navbar height */
        left: 0;
        padding: 20px 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
        z-index: 99; /* Below hamburger but above content */
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
        text-align: center;
    }

    .nav-links a::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .hamburger {
        display: flex; /* Show hamburger icon */
    }

    .navbar {
        padding: 15px 25px; /* Adjust padding for mobile */
    }

    .hero-content h1 {
        font-size: 3em;
    }

    .hero-content p {
        font-size: 1.3em;
    }

    h1 { font-size: 2.8em; }
    h2 { font-size: 2.2em; }
    h3 { font-size: 1.6em; }

    .section-padded { padding: 60px 0; }

    .about-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
        gap: 30px;
    }
    .about-grid p { text-align: center; } /* Center text when stacked */


    .testimonial-card {
        flex: 0 0 90%; /* One card per row on small screens */
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    /* Hide video on mobile for performance and data-saving */
    #heroVideo {
        display: none;
    }
    .video-overlay {
        display: none;
    }
    .hero-section {
        /* Ensure fallback image is used when video is hidden */
        background: url('../images/hero-nuwara-eliya.jpg') no-repeat center center/cover;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .amenities-list li {
        width: 45%; /* Two items per row */
    }

    .contact-info-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.4em; }

    .btn-primary, .btn-hero, .btn-light {
        padding: 10px 20px;
        font-size: 1em;
    }

    .navbar .logo a {
        font-size: 1.5em;
    }

    .booking-form input {
        min-width: unset; /* Allow inputs to shrink */
    }

    .amenities-list li {
        width: 100%; /* One item per row on very small screens */
    }
}