/* --- General Styling & Variables --- */
:root {
    --primary-color: #2c3e50; /* Midnight Blue */
    --secondary-color: #ffffff;
    --accent-color: #e67e22; /* Carrot Orange */
    --text-color: #34495e; /* Wet Asphalt */
    --light-bg: #f8f9fa;
    --jungle-green: #27ae60;
    --shadow-light: 0 5px 15px rgba(0,0,0,0.05);
    --shadow-medium: 0 8px 30px rgba(0,0,0,0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.7;
}

.page-wrapper {
    position: relative;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary-color);
}

section {
    padding: 60px 20px; /* Mobile-first padding */
    text-align: center;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--accent-color);
    z-index: 2000;
    transition: width 0.1s ease-out;
}

/* --- Floating Action Buttons --- */
.floating-btn {
    position: fixed;
    bottom: 30px; 
    width: 50px;
    height: 50px;
    font-size: 24px;
    border-radius: 50%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-medium);
    z-index: 999;
    text-decoration: none;
    transition: all 0.3s ease;
}
.floating-btn.whatsapp {
    background-color: #25D366;
    right: 20px;
}
.floating-btn.phone {
    background-color: var(--accent-color);
    left: 20px;
}

/* --- Header & Navigation --- */
header {
    display: block; /* Visible on mobile */
    background-color: transparent;
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 10px 0;
}
header.scrolled {
    background-color: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 5px 0;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}
nav .logo {
    color: white;
    text-decoration: none;
    font-size: 1.8em;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    transition: transform 0.3s ease;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
    margin: 0;
}
.nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}
.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}
.nav-links li a:hover::after { width: 100%; }
.hamburger-menu { 
    display: block; 
    cursor: pointer; 
    z-index: 1200; /* Ensure it is higher than the nav-links (1100) */
    position: relative; /* Sometimes helps with z-index stacking */
}
.hamburger-menu .line {
    width: 28px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}
.hamburger-menu.toggle .line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-menu.toggle .line:nth-child(2) { opacity: 0; }
.hamburger-menu.toggle .line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile nav drawer */
@media (max-width: 991.98px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 75vw;
        background: rgba(44, 62, 80, 0.98);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 80px 25px 25px 25px;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.15);
        z-index: 1100;
    }
    .nav-links li a { font-size: 1.05em; }
    .nav-links.nav-active { transform: translateX(0); }
}

/* --- Hero Section --- */
#hero {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
}
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
}
.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
    display: flex; 
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero-content h1 {
    font-size: 2.8em;
    line-height: 1.2;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.5);
}
.hero-content p {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.cta-button {
    background-color: var(--accent-color);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(230, 126, 34, 0.4);
    border: none;
    cursor: pointer;
}
.cta-button.secondary {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

/* --- General Section & Component Styles --- */
#about h2, #accommodations h2, #facilities h2, #activities h2, #nearby-places h2, #gallery h2, #faq h2, #location h2 {
    font-size: 2.2em;
    margin-bottom: 40px;
}
.about-container, .card-container, .facilities-grid, .activities-container, .gallery-grid, .faq-container, .map-container, .contact-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}
#about { background: var(--light-bg); }
.about-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}
.about-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
}
.about-content h3 { font-size: 1.5em; color: var(--accent-color); }
.about-content p { font-size: 1em; }
.card-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.card {
    background-color: white;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    transition: all 0.4s ease;
    position: relative;
}
.card img { width: 100%; height: 220px; object-fit: cover; }
.card-content { padding: 25px; }
.card h3 { font-size: 1.5em; margin-top: 0; margin-bottom: 15px; }
.card-features {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    margin-bottom: 20px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.feature { font-size: 0.9em; font-weight: 600; }
.feature i { color: var(--accent-color); margin-right: 5px; }
.price-badge {
    position: absolute;
    top: 20px;
    right: 0;
    background-color: var(--accent-color);
    color: white;
    padding: 8px 20px;
    font-weight: 700;
    font-size: 1em;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}
.price-badge.popular { background-color: #c0392b; }
.price-badge.premium { background-color: #8e44ad; }
.price-badge.adventure { background-color: var(--jungle-green); }
.book-btn {
    display: inline-block;
    width: calc(100% - 50px);
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}
#facilities { background-color: var(--light-bg); }
.facilities-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.facility-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
}
.facility-item i { font-size: 2.5em; color: var(--accent-color); margin-bottom: 15px; }
.facility-item h3 { font-size: 1.3em; margin-bottom: 10px; }
#activities { background-color: white; }
.activities-container { display: flex; flex-direction: column; gap: 50px; }
.activity-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}
.activity-item img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    object-fit: cover;
    height: 250px;
}
.activity-content h3 { font-size: 1.8em; margin-bottom: 10px; }
#nearby-places { background-color: var(--light-bg); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}
.gallery-item { overflow: hidden; border-radius: 15px; }
.gallery-grid img { width: 100%; height: 250px; object-fit: cover; }
#faq { background: var(--light-bg); }
.faq-container { max-width: 800px; text-align: left; }
.faq-item {
    background: white;
    margin-bottom: 10px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
}
.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 20px;
    font-size: 1.1em;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    position: relative;
    color: var(--primary-color);
}
.faq-question::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    transition: transform 0.4s ease;
}
.faq-item.active .faq-question::after { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-in-out; }
.faq-answer p { padding: 0 20px 20px; margin: 0; }
.map-container { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-medium); }


/* --- Footer / Contact Section --- */
footer#contact {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 60px 20px 20px 20px;
}
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.contact-header h2 {
    color: var(--secondary-color);
    font-size: 2.2em;
    margin-bottom: 15px;
}
.contact-header p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 40px auto;
}
.contact-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
}
.contact-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.contact-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}
.contact-card i {
    font-size: 2.5em;
    color: var(--accent-color);
    margin-bottom: 15px;
}
.contact-card h3 {
    color: var(--secondary-color);
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 10px;
}
.contact-card p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.8;
}
.social-links {
    margin-bottom: 40px;
}
.social-links a {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.3em;
    margin: 0 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
}
.copyright {
    text-align: center;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.6);
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Tablet Styles (min-width: 768px) --- */
@media (min-width: 768px) {
    section { padding: 80px 40px; }
    .hero-content h1 { font-size: 3.8em; }
    #about h2, #accommodations h2, #facilities h2, #activities h2, #nearby-places h2, #gallery h2, #faq h2, #location h2 {
        font-size: 2.8em;
        margin-bottom: 60px;
    }
    .about-container {
        flex-direction: row;
        text-align: left;
        align-items: center;
        gap: 40px;
    }
    .card-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .activity-item {
        flex-direction: row;
        text-align: left;
        gap: 40px;
    }
    .activity-item:nth-child(even) {
        flex-direction: row-reverse;
    }
    .activity-item img { height: 300px; }
    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Desktop Styles (min-width: 992px) --- */
@media (min-width: 992px) {
    header { display: block; } /* Show header on desktop */
    .floating-btn { width: 60px; height: 60px; font-size: 30px; bottom: 25px; }
    section { padding: 100px 20px; }
    .hero-content h1 { font-size: 4.5em; }
    .hero-content p { font-size: 1.4em; }
    #about h2, #accommodations h2, #facilities h2, #activities h2, #nearby-places h2, #gallery h2, #faq h2, #location h2 {
        font-size: 3em;
    }
    .card-container { grid-template-columns: repeat(4, 1fr); }
    .facilities-grid { grid-template-columns: repeat(4, 1fr); }
}
#activity {
    background: var(--light-bg);
}
#activity h2 {
    font-size: 2.8em;
    margin-bottom: 50px;
}
/* Support both historic and current class names */
.activity-grid, .activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}
.activity-card {
    height: 360px;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-light);
    transform: translateZ(0);
    transition: transform 0.4s ease, box-shadow 0.3s ease;
}
.activity-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 60% at 50% 100%, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.activity-card:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-medium);
}
.activity-card:hover::after { opacity: 1; }
.activity-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 32px 20px 18px;
    color: white;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.0));
    text-align: left;
    transform: translateY(10%);
    transition: transform 0.35s ease, opacity 0.35s ease;
    opacity: 0.95;
}
.activity-card:hover .activity-overlay {
    transform: translateY(0%);
    opacity: 1;
}
.activity-overlay h3 {
    color: white;
    font-size: 1.6em;
    margin: 0;
    letter-spacing: 0.3px;
}

/* --- Packages Section UI Improvement --- */
#packages { 
    background-color: var(--light-bg); 
    padding: 60px 20px; /* Reset padding for mobile */
}
#packages h2 { 
    font-size: 2.6em; 
    margin-bottom: 40px; 
    color: var(--primary-color);
}
.packages-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default to single column for mobile */
    gap: 30px; /* Increased gap for better separation */
    max-width: 1200px;
    margin: 0 auto;
}
.package-card {
    display: flex; /* Change to flex for better mobile stack */
    flex-direction: column;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: var(--shadow-medium); /* Slightly stronger shadow */
    overflow: hidden;
    border: none; /* Removed the light border */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}
.package-card:hover { 
    box-shadow: 0 10px 40px rgba(0,0,0,0.15); /* More prominent hover effect */
    transform: translateY(-5px); 
}
.package-media { 
    position: relative;
    /* This makes the image container slightly smaller than the content on desktop */
}
.package-media img { 
    width: 100%; 
    height: 220px; /* Slightly reduced height for better mobile look */
    object-fit: cover; 
    object-position: center; 
    display: block; 
}
.price-strip {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-color);
    color: white;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 1.1em;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    border-radius: 20px;
    z-index: 10;
    text-align: center;
    min-width: 80px;
}
.price-strip.popular { background-color: #c0392b; }
.price-strip.premium { background-color: #8e44ad; }
.price-strip.adventure { background-color: var(--jungle-green); }
.price-strip.couple { background-color: #e91e63; }
.package-content { 
    padding: 26px 28px 15px; /* Adjusted padding */
    text-align: left; 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
    order: 1; /* Position it above the price strip */
}
.package-content h3 { 
    margin-top: 0; 
    font-size: 1.7em; 
    color: var(--primary-color);
    margin-bottom: 5px;
}
.package-content p { 
    margin: 0 0 15px 0; 
    color: var(--text-color); 
    line-height: 1.6; 
}
.package-btn {
    display: inline-block;
    background: var(--accent-color);
    color: #ffffff;
    padding: 14px 25px; /* Slightly larger button */
    border-radius: 10px; /* Slightly more rounded corners */
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9em;
    box-shadow: 0 4px 12px rgba(230,126,34,0.3);
    align-self: flex-start;
    transition: all 0.3s ease;
    border: 2px solid transparent; /* Prepare for hover border effect */
}
.package-btn:hover { 
    filter: none;
    background: #e06d15; /* Slightly darker orange */
    transform: translateY(-2px); 
    box-shadow: 0 8px 20px rgba(230,126,34,0.45);
}
.package-content {
    /* Existing styles here */
    min-height: 250px; /* Adjust this value (e.g., to 250px) to balance the cards */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes the button to the bottom */
}

/* Style for the new inclusions list */
.package-inclusions {
    margin: 10px 0 15px 0;
    padding: 10px;
    border-radius: 8px;
    background-color: var(--light-bg); /* Light background for separation */
    text-align: left;
}

.package-inclusions h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    font-weight: 700;
    color: var(--jungle-green);
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.package-inclusions ul {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 1.4;
}

.package-inclusions li {
    font-size: 0.95em;
    color: var(--text-color);
    margin-bottom: 5px;
}

.package-inclusions li i {
    color: var(--jungle-green);
    margin-right: 8px;
    font-size: 0.9em;
}

/* Tablet Media Query Adjustments */
@media (min-width: 768px) {
    .packages-grid { 
        grid-template-columns: 1fr 1fr; 
        gap: 30px; 
    }
    .package-media img { 
        height: 240px; 
    }
    .package-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
        min-height: 200px;
    }
}

/* Desktop Media Query Adjustments */
@media (min-width: 992px) {
    .packages-grid { 
        grid-template-columns: 1fr 1fr; /* Keep 2-column layout for visual separation */
        gap: 40px; 
    }
    .package-card {
        position: relative;
    }
    .package-media {
        grid-column: 1 / 2;
    }
    .package-media img { 
        height: 100%; /* Fill the card height */
    }
    .package-content {
        grid-column: 2 / 4;
        display: grid;
        grid-template-rows: 1fr auto;
        align-items: start;
    }
    .price-strip { 
        position: absolute; 
        top: 20px; 
        right: 20px; 
        background-color: var(--accent-color); 
        color: white; 
        padding: 10px 20px; 
        font-weight: 700; 
        font-size: 1.1em; 
        box-shadow: 0 4px 15px rgba(0,0,0,0.2); 
        border-radius: 25px; 
        z-index: 10; 
        text-align: center; 
        min-width: 90px; 
    }
    .price-strip::before {
        content: '';
        display: none;
    }
    .package-btn {
        margin-top: 15px;
        align-self: end;
        justify-self: start;
        padding: 12px 24px;
        font-size: 0.9em;
    }
}

/* Tablet */
@media (min-width: 768px) {
    .packages-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .package-media img { height: 260px; }
}

/* Desktop */
@media (min-width: 992px) {
    .activity-card { height: 420px; }
}
/* Small enhancements for motion preference */
@media (prefers-reduced-motion: reduce) {
    .activity-card,
    .activity-overlay { transition: none; }
}

/* Tablet refinements */
@media (min-width: 768px) {
    .activity-card { height: 380px; }
}

/* Desktop refinements */
@media (min-width: 992px) {
    .activity-card { height: 420px; }
}
@media (max-width: 767px) {
    .package-content {
        min-height: 200px; /* Slightly less on very small screens */
    }
}

/* Tablet/Desktop grid fix to align content */
@media (min-width: 768px) {
    .package-card {
        /* Ensure the main grid/flex container is aligned nicely */
        align-items: stretch; 
    }
}