@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #2d5a27;
    --primary-light: #4a7c44;
    --accent: #d4a373;
    --bg-cream: #faf9f6;
    --text-dark: #1a1c19;
    --text-light: #ffffff;
    --glass: rgba(255, 255, 255, 0.8);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.15);
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- RESET & BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-cream);
    color: var(--text-dark);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 2rem;
    color: var(--primary);
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin-top: 1rem;
    border-radius: 2px;
}

.section {
    padding: 8rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* ---------- NAVIGATION ---------- */
nav {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.8rem 2.5rem;
    border-radius: 100px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 2rem;
    width: max-content;
    max-width: 90vw;
    transition: var(--transition);
}

nav.scrolled {
    top: 1rem;
    padding: 0.6rem 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

nav a:hover {
    color: var(--primary);
}

nav a:hover::after {
    width: 100%;
}

.nav-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary);
    margin-right: 1rem;
}

/* ---------- HERO ---------- */
.hero {
    height: 100vh;
    min-height: 800px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6)),
        url('hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero-content {
    max-width: 1000px;
    animation: fadeInDown 1.2s ease-out;
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    opacity: 0.95;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.8rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(45, 90, 39, 0.3);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(45, 90, 39, 0.4);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
    font-size: 1.1rem;
    padding: 1.2rem 3rem;
    width: 100%;
    justify-content: center;
}

.btn-whatsapp:hover {
    background: #20b858;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3);
}

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

.btn-outline:hover {
    background: white;
    color: var(--text-dark);
    transform: translateY(-5px);
}

/* ---------- ABOUT ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-content p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}



/* ---------- ROOM CARDS ---------- */
.rooms-section {
    background: #f1f3ef;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.room-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.room-image {
    height: 300px;
    background-size: cover;
    background-position: center;
}

.room-info {
    padding: 2.5rem;
}

.room-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.room-info ul {
    list-style: none;
    margin-bottom: 2rem;
}

.room-info li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
    color: #444;
}

.room-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 1.5rem;
    display: block;
}

/* ---------- AMENITIES ---------- */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.amenity-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.amenity-card:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.amenity-card i {
    font-size: 3rem;
    display: block;
    margin-bottom: 1.5rem;
}

/* ---------- GALLERY ---------- */
.masonry-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 250px;
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-item:nth-child(2n) {
    grid-row: span 2;
}

/* ---------- BOOKING FORM ---------- */
.booking-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    background: white;
    padding: 4rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.contact-info h3 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

input,
textarea,
select {
    width: 100%;
    padding: 1.2rem 1.8rem;
    border-radius: 12px;
    border: 1.5px solid #e1e4e8;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: #f8f9fa;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(45, 90, 39, 0.1);
}

/* ---------- FOOTER ---------- */
footer {
    background: #1a1c19;
    /* Darker, more premium background */
    color: white;
    padding: 8rem 2rem 3rem;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 4rem;
}

.footer-brand h2 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

.footer-brand p {
    opacity: 0.7;
    margin-bottom: 2rem;
    max-width: 300px;
}

.footer-column h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.6;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: white;
    font-size: 1.4rem;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px);
    color: white;
}

.footer-bottom {
    max-width: 1300px;
    margin: 6rem auto 0;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

.checklist-tag {
    color: var(--accent);
    text-decoration: none;
    padding: 6px 18px;
    border: 1px solid rgba(212, 163, 115, 0.3);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.checklist-tag:hover {
    background: var(--accent);
    color: white;
    opacity: 1;
}

@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto 2rem;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}


/* ---------- LIGHTBOX ---------- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    border-radius: var(--radius-md);
    animation: zoomIn 0.3s ease-out;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    text-align: center;
    color: #ccc;
    padding: 20px 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
}

.close-lightbox {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-lightbox:hover {
    color: var(--accent);
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- MOBILE RESPONSIVE ---------- */
@media (max-width: 1024px) {

    .about-grid,
    .booking-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    nav {
        display: none;
        /* We will implement a mobile menu toggle in JS */
    }
}

@media (max-width: 768px) {
    .section {
        padding: 5rem 1.5rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .booking-container {
        padding: 2.5rem 1.5rem;
        gap: 2rem;
        margin: 0 -1rem;
        border-radius: 0;
    }

    .contact-info h3 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .contact-info p {
        font-size: 1rem;
    }

    .btn-whatsapp {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Mobile Menu Toggle (to be controlled by JS) */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 2000;
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

@media (max-width: 1024px) {
    .mobile-nav-toggle {
        display: flex;
    }

    nav.mobile-active {
        display: flex;
        flex-direction: column;
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        height: 100vh;
        border-radius: 0;
        justify-content: center;
        padding: 2rem;
        gap: 2.5rem;
    }

    nav.mobile-active a {
        font-size: 1.8rem;
    }
}

/* Flatpickr Custom Styling for Booked Dates */
.flatpickr-day.is-booked {
    background: #ffebeb !important;
    color: #e74c3c !important;
    text-decoration: line-through;
    cursor: not-allowed;
    border-color: #ffdada !important;
}

/* Fix for mobile nav on white background */
#mainNav.mobile-active {
    background: white !important;
}