:root {
    /* Brand Colors extracted from Logo */
    --primary-color: #2E5844;
    /* Dark Green */
    --primary-dark: #1e3d2f;
    --secondary-color: #E69A28;
    /* Warm Orange/Gold */
    --secondary-dark: #cc8400;

    /* Neutral Colors */
    --text-color: #333333;
    --bg-light: #f4f7f5;
    /* Slight green tint for harmony */
    --white: #ffffff;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Effects */
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* --- Reset & Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
}

.divider {
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 0 auto 1rem;
    border-radius: 2px;
}

/* --- Layout Utilities --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 5rem 0;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

.btn-primary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* --- Header & Navigation --- */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1001;
    height: 80px;
    width: 120px;
    /* Reserve space for the logo */
}

.logo-img {
    max-height: 140px;
    /* Slight increase for the shape */
    width: auto;
    position: absolute;
    top: 5px;
    /* Adjust top position */
    left: 10px;
    /* Adjust left position */

    /* Moroccan Arch / Seal Style */
    background-color: var(--white);
    /* Ensure it has a background */
    border-radius: 50% 50% 10% 10%;
    /* Arch shape */
    border: 3px solid var(--secondary-color);
    /* Gold border */
    padding: 5px;
    /* Padding between image and border */

    /* Shadow */
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.25));
    object-fit: contain;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list a {
    font-weight: 500;
}

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

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 0;
    /* Override if header wasn't fixed */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Dark overlay for readability */
    z-index: -1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

/* --- About Section --- */
.about {
    background: linear-gradient(to bottom, var(--white), var(--bg-light));
    padding: 5rem 0;
    overflow: hidden;
    /* Ensure content doesn't spill over */
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    padding-right: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.about-features {
    list-style: none;
    margin-top: 2rem;
}

.about-features li {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--primary-dark);
}

.about-features i {
    color: var(--secondary-color);
    margin-right: 1rem;
    font-size: 1.1rem;
    background-color: rgba(230, 154, 40, 0.1);
    /* Light orange bg */
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    transition: var(--transition);
}

.about-features li:hover i {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: scale(1.1);
}

.about-image {
    position: relative;
}

/* Decorative element behind image */
.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--secondary-color);
    border-radius: 20px;
    z-index: 0;
    opacity: 0.6;
}

.about-image img {
    position: relative;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 5px solid var(--white);
    z-index: 1;
    transition: var(--transition);
    width: 100%;
    display: block;
}

.about-image:hover img {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* --- Tours Section --- */
.tours {
    background-color: var(--bg-light);
}

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

.tour-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.tour-image {
    height: 200px;
    overflow: hidden;
}

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

.tour-card:hover .tour-image img {
    transform: scale(1.05);
}

.tour-details {
    padding: 1.5rem;
}

.tour-details h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 1.1rem;
    color: var(--secondary-dark);
    font-weight: 700;
    margin-bottom: 1rem;
}

.description {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
}

.tour-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.tour-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- Gallery Section --- */
.gallery {
    padding-bottom: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
}

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

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

/* --- Contact Section --- */
.contact {
    background-color: var(--primary-color);
    color: var(--white);
}

.contact .section-header h2,
.contact .section-subtitle {
    color: var(--white);
}

.contact .divider {
    background-color: var(--white);
}

.contact .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    /* Vertically center the left and right sides */
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    /* Increase gap for better spacing */
    padding-right: 2rem;
    /* Give breathing room before the form */
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    /* Slightly more space between icon and text */
}

.contact-item i {
    font-size: 1.8rem;
    /* Slightly larger icons */
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.1);
    width: 60px;
    /* Fixed width for perfect circle */
    height: 60px;
    /* Fixed height for perfect circle */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-item h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
}

.contact-item p,
.contact-item a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--secondary-color);
}

.contact-form {
    background-color: var(--white);
    padding: 2.5rem;
    /* Thicker padding for a more substantial card */
    border-radius: 12px;
    /* Softer rounded corners */
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    /* Stronger shadow to pop out */
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 1rem;
    /* Taller inputs for easier touch/typing */
    border: 1px solid #ddd;
    border-radius: 6px;
    /* Match form rounded corners */
    font-family: var(--font-body);
    width: 100%;
    background-color: #fafafa;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(230, 154, 40, 0.2);
    /* Focus ring */
    background-color: var(--white);
}

/* Date Input Styling */
.date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    /* Put start and end date side-by-side */
}

.date-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.date-group label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-dark);
}

.date-group input[type="date"] {
    color: #555;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* reCAPTCHA Alignment */
.g-recaptcha {
    margin: 0.5rem auto;
    /* Center the widget within the form */
    display: flex;
    justify-content: center;
}

.contact-form button {
    margin-top: 1rem;
    padding: 1rem;
    font-size: 1.1rem;
    /* Bolder submit button */
}

/* --- Footer --- */
.footer {
    background-color: #222;
    color: #999;
    padding: 2rem 0;
    text-align: center;
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.social-links a {
    color: var(--white);
    font-size: 1.2rem;
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* --- Itinerary Section --- */
.itinerary {
    background-color: var(--bg-light);
}

.itinerary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.itinerary-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border-top: 4px solid var(--secondary-color);
    display: flex;
    flex-direction: column;
}

.itinerary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.itinerary-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.itinerary-card p {
    color: #666;
    margin-bottom: 1.5rem;
    min-height: 3.5rem;
    /* Ensure consistent height for descriptions */
    display: flex;
    align-items: center;
    justify-content: center;
}

.itinerary-card ul {
    text-align: left;
    /* margin-top: auto; REMOVED to align tops */
    list-style: none;
    flex-grow: 1;
    /* Allow list to take up remaining space */
}

.itinerary-card li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-color);
}

.itinerary-card li::before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.itinerary-footer {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.itinerary-footer .note {
    font-style: italic;
    color: #888;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.pricing-contact {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {

    /* Header/Logo scaling */
    .logo-link {
        width: 90px;
    }

    .logo-img {
        max-height: 100px;
    }

    /* Form scaling */
    .contact-form {
        padding: 1.5rem 1rem;
        /* Reduce padding to save horizontal space */
        overflow-x: hidden;
        /* Ensure nothing breaks the parent width */
    }

    .g-recaptcha {
        transform: scale(0.85);
        /* Default reCAPTCHA width is 304px, scale it down */
        transform-origin: 0 0;
    }

    /* Navigation */
    .header .nav {
        /* Ensure container doesn't hide children */
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }

    .nav-list {
        position: fixed;
        right: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        z-index: 999;
    }

    .nav-list.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 2rem;
    }

    .hamburger {
        display: block;
    }

    .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);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* --- Lightbox --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

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

.close-lightbox:hover,
.close-lightbox:focus {
    color: var(--secondary-color);
    text-decoration: none;
    cursor: pointer;
}

@media only screen and (max-width: 700px) {
    .lightbox-content {
        width: 95%;
    }
}