/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Lato:wght@300;400;700&display=swap');

:root {
    --primary-color: #1a432b; /* Deep Forest Green */
    --secondary-color: #27ae60; /* Vibrant Leaf Green */
    /* Vibrant Green */
    --accent-color: #d4af37;
    /* Gold Accent */
    --bg-light: #f4fbf6;
    --bg-dark: #1a1a1a;
    --text-dark: #333;
    --text-light: #fff;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Lato', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    /* subtle enhancement for photos */
    filter: contrast(1.05) saturate(1.05);
}

/* Header & Nav */
header {
    background: rgba(255, 255, 255, 0.95);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    height: 60px;
    /* Adjust based on logo aspect ratio */
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-text span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/hero.jpg');
    /* User to replace with their exterior photo */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding: 0 1rem;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.5s forwards;
    opacity: 0;
}

.btn {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 12px 30px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    border: 2px solid var(--secondary-color);
    transition: var(--transition);
    animation: fadeInUp 1s ease 1s forwards;
    opacity: 0;
}

.btn:hover {
    background: transparent;
    color: var(--secondary-color);
}

/* Sections */
.section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-title .line {
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 0 auto;
}

/* Featured / About */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
}

/* Amenities/Facilities Preview */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.amenity-card {
    text-align: center;
    padding: 2rem;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    transition: var(--transition);
}

.amenity-card:hover {
    transform: translateY(-10px);
}

.amenity-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.amenity-card h3 {
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h3 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.social-links a {
    color: var(--text-light);
    margin-right: 1rem;
    font-size: 1.2rem;
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Room List (Accommodations) */
.room-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.room-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.room-card:nth-child(even) {
    flex-direction: row-reverse;
}

.room-img {
    flex: 1;
    overflow: hidden;
}

.room-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.room-card:hover .room-img img {
    transform: scale(1.1);
}

.room-info {
    flex: 1;
    padding: 2rem;
}

.room-info h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.room-info ul {
    margin: 1.5rem 0;
}

.room-info ul li {
    margin-bottom: 0.5rem;
    color: #555;
}

.room-info ul li i {
    color: var(--secondary-color);
    margin-right: 10px;
}

/* Contact Page */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.contact-form-container {
    flex: 2;
    min-width: 300px;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* Gallery */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding-bottom: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Mobile Responsiveness updates */

@media (max-width: 768px) {
    .room-card {
        flex-direction: column !important;
        /* Force column on small screens */
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    /* Rest of mobile styles... */


    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        gap: 0;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        height: 100%;
        text-align: center;
        transition: 0.3s;
        padding-top: 5rem;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links a {
        color: white;
        font-size: 1.2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* =========================================================
   NAVBAR SCROLL EFFECT
========================================================= */
header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

header.scrolled .navbar {
    padding: 0.3rem 5%;
}

header.scrolled .nav-logo {
    height: 46px;
}

header, .navbar, .nav-logo {
    transition: all 0.35s ease;
}

/* =========================================================
   HERO FIX — inner page banners keep overlay + custom bg
========================================================= */
.hero[style*="background-image"] {
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45));
    background-size: cover !important;
    background-position: center !important;
}

/* =========================================================
   GALLERY — CAPTION OVERLAY
========================================================= */
.gallery-item {
    cursor: zoom-in;
}

.gallery-item .gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    color: #fff;
    padding: 1.5rem 1rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transform: translateY(100%);
    transition: transform 0.35s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* =========================================================
   LIGHTBOX
========================================================= */
.lightbox {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.lightbox-open {
    opacity: 1;
    pointer-events: all;
}

.lightbox-inner {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.lightbox-img {
    max-width: 88vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transition: opacity 0.2s ease;
    filter: none;
}

.lightbox-caption {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-align: center;
}

.lightbox-close {
    position: fixed;
    top: 1.25rem;
    right: 1.5rem;
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    line-height: 1;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.25);
}

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    font-size: 1.6rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.25);
}

@media (max-width: 600px) {
    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
}

/* =========================================================
   TOAST NOTIFICATIONS
========================================================= */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: #1a1a1a;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    z-index: 99999;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    opacity: 0;
    white-space: nowrap;
    max-width: 90vw;
    text-align: center;
}

.toast.toast-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.toast-success {
    background: linear-gradient(135deg, #1a432b, #27ae60);
}

.toast.toast-error {
    background: linear-gradient(135deg, #7b1a1a, #c0392b);
}

/* =========================================================
   SCROLL-REVEAL FADE-IN ANIMATIONS
========================================================= */
.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger cards in a grid */
.amenities-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.amenities-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.amenities-grid .fade-in:nth-child(4) { transition-delay: 0.3s; }

.gallery-grid .fade-in:nth-child(2)  { transition-delay: 0.07s; }
.gallery-grid .fade-in:nth-child(3)  { transition-delay: 0.14s; }
.gallery-grid .fade-in:nth-child(4)  { transition-delay: 0.21s; }
.gallery-grid .fade-in:nth-child(5)  { transition-delay: 0.28s; }
.gallery-grid .fade-in:nth-child(6)  { transition-delay: 0.35s; }
.gallery-grid .fade-in:nth-child(7)  { transition-delay: 0.42s; }
.gallery-grid .fade-in:nth-child(8)  { transition-delay: 0.49s; }

/* =========================================================
   WHATSAPP BUTTON
========================================================= */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border: 2px solid #25d366;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-whatsapp:hover {
    background: transparent;
    color: #25d366 !important;
}

/* Fix footer WhatsApp link */
.footer-col a {
    color: var(--text-light);
}

.footer-col a:hover {
    color: var(--secondary-color);
}

/* =========================================================
   BUTTON SUBMIT LOADING STATE
========================================================= */
button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}