/* _assets/css/home.css */

/* --- THEME COLOR PALETTE (TravelGo Inspired) --- */
:root {
    --primary-blue: #29A1E4;        /* Main blue from hero background */
    --secondary-blue: #5BC0DE;      /* Lighter, softer blue (alternative: #80D0F5) */
    --accent-yellow: #FFC107;       /* Yellow from buttons */
    --dark-text: #343a40;           /* Darker grey for text (Bootstrap-like) */
    --light-text: #6c757d;          /* Lighter grey text (Bootstrap-like) */
    --white: #FFFFFF;                /* Pure white */
    --off-white-bg: #f8f9fa;       /* Background for sections (Bootstrap-like) */
    --border-color: #dee2e6;        /* Light border color (Bootstrap-like) */
    --box-shadow-light: 0 4px 15px rgba(0, 0, 0, 0.08);
    --box-shadow-medium: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* --- Global Styles and Resets --- */
body.layout-body {
    font-family: 'Poppins', 'League Spartan', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--white);
    color: var(--dark-text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased; /* Smoother fonts */
    -moz-osx-font-smoothing: grayscale;
}

.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-wrapper {
    flex-grow: 1;
}

a {
    text-decoration: none;
    color: var(--primary-blue); /* Default link color */
    transition: color 0.3s ease;
}
a:hover {
    color: var(--secondary-blue);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}

/* --- Navbar --- */
.navbar {
    background-color: var(--white);
    padding: 12px 25px; /* Slightly adjusted padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--box-shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: padding 0.3s ease; /* Smooth transition for padding */
}

.navbar-logo a {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 1.4em; /* Adjusted */
    color: var(--dark-text);
}

.navbar-logo img.nav-logo-img {
    max-height: 35px; /* Adjusted logo size */
    margin-right: 8px; /* Adjusted margin */
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 25px; /* Adjusted spacing */
}

.nav-links li a {
    color: var(--light-text);
    font-weight: 500;
    font-size: 0.95em; /* Slightly adjusted font size */
    transition: color 0.3s ease;
    padding: 5px 0; /* Add some vertical padding for easier clicking */
    position: relative;
}
.nav-links li a::after { /* Underline effect */
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}
.nav-links li a:hover::after,
.nav-links li a.active::after { /* Assuming you might add an 'active' class */
    width: 100%;
}
.nav-links li a:hover {
    color: var(--primary-blue);
}


.nav-buttons .btn {
    padding: 7px 15px; /* Adjusted padding */
    border-radius: 5px; /* Consistent border-radius */
    font-weight: 500;
    text-decoration: none;
    margin-left: 12px; /* Adjusted margin */
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.1s ease;
    font-size: 0.85em; /* Adjusted font size */
    border: 1px solid transparent;
    cursor: pointer;
    line-height: 1.5; /* Ensure text is vertically centered */
}
.nav-buttons .btn:hover {
    transform: translateY(-1px);
}

.nav-buttons .btn-login {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}
.nav-buttons .btn-login:hover {
    background-color: var(--secondary-blue);
    border-color: var(--secondary-blue);
}

.nav-buttons .btn-signup { /* For Admin, Language Switch */
    background-color: transparent;
    color: var(--dark-text);
    border-color: var(--border-color);
}
.nav-buttons .btn-signup:hover {
    background-color: var(--off-white-bg);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}


/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 65vh; /* Slightly increased */
    min-height: 450px; /* Increased min-height */
    background: url('/_assets/images/lake_mountain_hero.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    padding: 0 20px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.65)); /* Adjusted gradient */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.2em; /* Slightly adjusted */
    font-weight: 700;
    margin-bottom: 20px; /* Increased margin */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6); /* Enhanced shadow */
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25em; /* Slightly increased */
    margin-bottom: 30px;
    color: #f0f8ff; /* AliceBlue - very light blueish white */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    max-width: 600px; /* Limit width of subtitle */
    margin-left: auto;
    margin-right: auto;
}


/* --- Section Styling --- */
.section {
    padding: 70px 20px; /* Increased default padding */
    text-align: center;
}

.section-bg {
    background-color: var(--off-white-bg);
}

.section-title {
    font-size: 2.6em; /* Increased size */
    color: var(--dark-text);
    margin-bottom: 20px; /* Increased margin */
    font-weight: 700; /* Bolder */
    position: relative;
    padding-bottom: 15px; /* Space for underline */
}
.section-title::after { /* Underline for section titles */
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--primary-blue);
}
.section-title.text-left::after { /* For left-aligned titles */
    left: 0;
    transform: translateX(0);
}


.section-subtitle {
    font-size: 1.15em; /* Slightly increased */
    color: var(--light-text);
    max-width: 650px; /* Increased max-width */
    margin: 0 auto 50px auto; /* Increased bottom margin */
    line-height: 1.7;
}

/* General Button Style */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 12px 30px; /* Adjusted padding */
    border-radius: 5px;
    font-weight: 600; /* Bolder */
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.btn-primary:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.btn-primary i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}
.btn-primary:hover i {
    transform: translateX(3px);
}


/* --- Destination Cards (Featured Section) --- */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); /* Slightly adjusted minmax */
    gap: 25px; /* Adjusted gap */
    margin-top: 40px; /* Increased margin */
    text-align: left;
}

.destination-box {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; /* Ensure content pushes price to bottom */
}

.destination-box:hover {
    transform: translateY(-6px); /* Increased hover effect */
    box-shadow: var(--box-shadow-medium);
}

.destination-image { /* Wrapper for image to handle zoom effect better */
    overflow: hidden;
    height: 200px;
}
.destination-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease; /* Smoother zoom */
}
.destination-box:hover .destination-image img {
    transform: scale(1.08); /* Slightly more zoom */
}

.destination-content {
    padding: 18px; /* Adjusted padding */
    flex-grow: 1; /* Allow content to grow */
    display: flex;
    flex-direction: column;
}

.destination-content .location {
    font-size: 0.85em; /* Adjusted size */
    color: var(--light-text);
    margin-bottom: 8px; /* Adjusted margin */
    display: block;
}
.destination-content .location i {
    margin-right: 5px;
    color: var(--primary-blue);
}

.destination-content h3 {
    margin: 0 0 10px 0;
    color: var(--dark-text);
    font-size: 1.25em; /* Adjusted size */
    font-weight: 600;
    line-height: 1.3;
}

.destination-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
    color: var(--light-text);
    margin-bottom: 12px; /* Adjusted margin */
}

.destination-rating .stars {
    color: var(--accent-yellow);
}
.destination-rating i { margin-right: 2px; }

.destination-price {
    font-size: 1.4em; /* Increased price size */
    font-weight: 700; /* Bolder price */
    color: var(--primary-blue);
    margin-top: auto; /* Push price to bottom of content */
    padding-top: 10px; /* Space above price */
}


/* --- Easy Booking Section --- */
.easy-booking-section .section-title { text-align: left; } /* Specific alignment */
.easy-booking-section .section-title::after { left: 0; transform: translateX(0); }

/* --- Cozy Comfort Section --- */
.cozy-destinations-grid .cozy-destination-item img {
    transition: transform 0.4s ease;
}
.cozy-destinations-grid .cozy-destination-item:hover img {
    transform: scale(1.05);
}
.cozy-destinations-grid .cozy-destination-overlay {
    transition: background 0.4s ease;
}
.cozy-destinations-grid .cozy-destination-item:hover .cozy-destination-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent); /* Darker on hover */
}


/* --- Client Reviews Section --- */
.client-reviews-section {
    background-color: var(--off-white-bg);
}
.testimonials-container {
    position: relative;
    padding: 0 45px; /* Increased padding for buttons */
    margin-top: 40px;
}
.testimonials-container .testimonial-nav-btn { display: none; }
.testimonials-container.has-scroll .testimonial-nav-btn { display: flex; }

.testimonials-scroll-wrapper {
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; 
    -ms-overflow-style: none;
}
.testimonials-scroll-wrapper::-webkit-scrollbar { display: none; }

.testimonials-row {
    display: flex;
    width: max-content;
    gap: 25px; /* Adjusted gap */
    padding-bottom: 20px; 
}

.testimonial-card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--box-shadow-light);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 330px; /* Slightly increased width */
    min-height: 230px; /* Ensure consistent height */
    flex: 0 0 auto;
    text-align: left;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-medium);
}

.review-rating {
    margin-bottom: 12px; /* Adjusted margin */
    color: var(--accent-yellow);
    font-size: 1em; /* Adjusted size */
}
.review-rating i { margin-right: 3px; }

.testimonial-card blockquote {
    font-style: normal;
    color: var(--light-text);
    margin: 0 0 15px 0;
    font-size: 0.9rem; /* Adjusted size */
    line-height: 1.65; /* Improved line height */
    flex-grow: 1;
    position: relative; /* For quotes */
    padding-left: 25px; /* Space for quote icon */
}
.testimonial-card blockquote::before { /* Quote icon */
    content: '\f10d'; /* FontAwesome quote-left */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 1.3em;
    color: var(--primary-blue);
    opacity: 0.6;
}

.testimonial-author {
    margin-top: auto;
    padding-top: 12px; /* Adjusted padding */
    border-top: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.9em;
    color: var(--dark-text);
    display: flex;
    align-items: center;
}
/* Placeholder for author image if you add them */
/* .testimonial-author img { width: 40px; height: 40px; border-radius: 50%; margin-right: 10px; object-fit: cover; } */

.testimonial-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--dark-text);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 42px; /* Increased size */
    height: 42px; /* Increased size */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em; /* Increased icon size */
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.testimonial-nav-btn:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.testimonial-nav-btn.prev { left: 8px; } /* Adjusted position */
.testimonial-nav-btn.next { right: 8px; } /* Adjusted position */

.testimonial-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    box-shadow: none;
    background-color: rgba(230, 230, 230, 0.7); /* Dimmed background */
}


/* --- Footer --- */
footer {
    background-color: #151c25; /* Darker, more solid footer */
    color: #aeb7c1; /* Lighter, softer text color */
    padding: 60px 0 25px 0;
    font-size: 0.9em;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-about .nav-logo-img {
    max-height: 40px;
    margin-bottom: 20px;
     filter: brightness(0) invert(1) opacity(0.8); /* White logo for dark bg */
}
.footer-about p {
    margin-top: 0;
    line-height: 1.7;
    font-size: 0.95em;
}
.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 12px; /* Space between icons */
}
.social-icons a {
    color: #7a8896; /* Muted icon color */
    font-size: 1.3em;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block; /* For transform */
}
.social-icons a:hover {
    color: var(--primary-blue);
    transform: scale(1.1);
}


.footer-links h4, .footer-contact h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px; /* More pronounced spacing */
    padding-bottom: 8px; /* Space for potential underline */
    border-bottom: 1px solid #2a394f; /* Subtle underline */
    display: inline-block; /* Make underline fit content */
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #aeb7c1;
    transition: color 0.3s ease, padding-left 0.3s ease;
    position: relative;
}
.footer-links ul li a:hover {
    color: var(--white);
    padding-left: 8px;
}
.footer-links ul li a:hover::before { /* Small arrow on hover */
    content: '\f054'; /* FontAwesome chevron-right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: -5px;
    top: 1px;
    font-size: 0.7em;
    color: var(--primary-blue);
}

.footer-contact p {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    margin-right: 12px;
    color: var(--primary-blue);
    margin-top: 4px;
    width: 18px;
    text-align: center; /* Center icon in its space */
}

.footer-bottom {
    border-top: 1px solid #2a394f;
    margin-top: 40px;
    padding-top: 30px;
    text-align: center;
    font-size: 0.85em;
    color: #7a8896;
}

.atout-france-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.atout-france-info img {
    max-height: 30px;
}

.atout-france-info span {
    font-size: 0.85em;
    color: #7a8896;
}

/* --- Media Queries --- */
@media (max-width: 992px) {
    .navbar { padding: 10px 20px; }
    .nav-links li { margin-left: 20px; }
    .hero-content h1 { font-size: 2.8em; }
    .hero-content p { font-size: 1.15em; }
    .section { padding: 60px 15px; }
    .section-title { font-size: 2.2em; }
    .section-subtitle { font-size: 1.1em; max-width: 90%; }
    .destinations-grid { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
    .testimonial-card { width: 300px; }
    .footer-container { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
    .easy-booking-image .trip-status-card { right: -15px; min-width: 260px; }
    .easy-booking-image .people-going-card { left: -10px; }

}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .navbar-logo {
        margin-bottom: 10px; /* Reduced margin */
    }
    /* --- Mobile Menu (Basic Implementation Idea - requires JS for toggle) --- */
    .nav-links {
        /* display: none; Initially hide for JS toggle */
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        /* background-color: var(--white); */ /* If menu is a dropdown */
        /* padding: 10px 0; */
    }
    .nav-links li {
        margin-left: 0;
        margin-bottom: 8px;
        width: 100%;
    }
    .nav-links li a {
        display: block;
        padding: 8px 0;
        font-size: 1em;
    }
    .nav-buttons {
        margin-top: 10px;
        width: 100%;
        display: flex;
        flex-wrap: wrap; /* Allow buttons to wrap */
        gap: 8px; /* Space between buttons */
        justify-content: flex-start;
    }
    .nav-buttons .btn {
        margin-left: 0; /* Reset margin */
        flex-grow: 1; /* Allow buttons to take space */
        min-width: 120px; /* Minimum width for buttons */
    }
    /* Add a .menu-toggle button if you implement JS toggle */

    .hero-section { height: auto; min-height: 380px; padding: 60px 20px; } /* More flexible height */
    .hero-content h1 { font-size: 2.1em; }
    .hero-content p { font-size: 1.05em; }

    .section-title { font-size: 1.9em; }
    .section-subtitle { font-size: 1em; }
    .destinations-grid { grid-template-columns: 1fr; }

    .easy-booking-section .container { flex-direction: column; }
    .easy-booking-image .trip-status-card,
    .easy-booking-image .people-going-card {
        position: static; /* Stack cards on mobile */
        transform: none;
        margin: 15px auto;
        max-width: 300px;
    }

    .cozy-destinations-grid {
        grid-template-columns: 1fr; /* Stack cozy destinations */
        grid-auto-rows: 200px; /* Adjust row height */
    }
    .cozy-destination-item[style*="grid-column: span 2"],
    .cozy-destination-item[style*="grid-row: span 2"] {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        height: 200px; /* Reset height for spanned items */
    }


    .footer-container { grid-template-columns: 1fr; text-align: left; } /* Left align footer content */
    .footer-about, .footer-links, .footer-contact { margin-bottom: 25px; }
    .social-icons { justify-content: flex-start; }
    .atout-france-info { justify-content: flex-start; }

    .testimonials-container { padding: 0 5px; }
    .testimonial-nav-btn { width: 36px; height: 36px; font-size: 1.1em; }
    .testimonial-nav-btn.prev { left: -5px; }
    .testimonial-nav-btn.next { right: -5px; }
    .testimonial-card { width: calc(100vw - 50px); max-width: 320px; }
}

@media (max-width: 480px) {
    .nav-buttons .btn { min-width: 100px; padding: 6px 12px; font-size: 0.8em; }
    .hero-content h1 { font-size: 1.8em; }
    .hero-content p { font-size: 0.95em; }
    .section-title { font-size: 1.7em; }
    .btn-primary { padding: 10px 20px; font-size: 0.95em; }
    .testimonial-card { width: calc(100vw - 30px); max-width: 280px; }
    .footer-links h4, .footer-contact h4 { font-size: 1em; }
}