/*
Theme Name: ExperienceAgadir
Theme URI: https://experienceagadir.com/
Author: Antigravity
Description: A modern, SEO-optimized WordPress theme for Agadir activities.
Version: 1.0.0
Text Domain: experienceagadir
*/

html {
    scroll-behavior: smooth;
}

:root {
    --primary: #006994; /* Ocean Blue */
    --primary-dark: #004b6e;
    --secondary: #F7F2E8; /* Sand Beige */
    --accent: #FF9F1C; /* Sunset */
    --text: #1e293b;
    --text-light: #475569;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 12px;
    --container: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--white);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Navbar */
.navbar {
    background: var(--white);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    width: 100%;
}
.navbar-brand {
    font-weight: 700;
    font-size: 24px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.navbar-brand img, .custom-logo-link img {
    max-height: 50px;
    width: auto;
    display: block;
}
.navbar-menu {
    display: flex;
}
.navbar-menu ul {
    display: flex;
    gap: 30px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.navbar-menu li {
    position: relative;
    list-style: none;
}
.navbar-menu a {
    font-weight: 500;
    color: var(--text);
    position: relative;
    padding: 10px 0;
    display: block;
}
.navbar-menu a:hover { color: var(--primary); }

/* Dropdowns */
.navbar-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    z-index: 100;
    flex-direction: column;
    padding: 10px 0;
    margin: 0;
}
.navbar-menu li:hover > .sub-menu {
    display: flex;
}
.navbar-menu .sub-menu li {
    width: 100%;
    margin: 0;
}
.navbar-menu .sub-menu a {
    display: block;
    padding: 10px 20px;
    width: 100%;
}
.navbar-menu .sub-menu a:hover {
    background: var(--secondary);
    color: var(--primary);
}

/* Ensure the dropdown toggle icon is aligned */
.dropdown-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    width: 0.8em;
    height: 0.8em;
    margin-left: 6px;
    transition: transform 0.3s ease;
    pointer-events: none;
}
.sidebar-icon {
    width: 1em;
    height: 1em;
    margin-left: auto;
    padding-left: 10px;
}

.burger { display: none; font-size: 24px; cursor: pointer; color: var(--primary); }

/* Mobile Nav List Styles */
.mobile-nav-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-nav-links li {
    list-style: none;
    margin-bottom: 15px;
}
.mobile-nav-links a {
    font-size: 18px;
    font-weight: 500;
    display: block;
}
.mobile-nav-links .sub-menu {
    padding-left: 20px;
    margin-top: 0;
    display: none;
    list-style: none;
}
.sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    transition: 0.3s ease;
    padding: 20px;
}
.sidebar.active { left: 0; }
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.close-sidebar { cursor: pointer; font-size: 24px; }
.overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
}
.overlay.active { display: block; }

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: -1;
    transition: opacity 1s ease-in-out;
}
.hero-overlay {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    position: absolute;
    inset: 0;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
}
.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,105,148, 0.4);
    border: none;
    cursor: pointer;
}
.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.section-title {
    text-align: center;
    margin: 60px 0 40px;
}
.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}
.section-title p { color: var(--text-light); }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}
.activity-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.3s;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}
.activity-card .card-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 10;
}
.activity-card .card-btn, .activity-card .card-more-link {
    position: relative;
    z-index: 11;
}
.activity-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-image {
    position: relative;
    height: 220px;
}
.card-image img {
    width: 100%; height: 100%; object-fit: cover;
}
.card-price {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    color: var(--primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.card-content { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: 700;
}
.card-excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
    flex: 1;
}
.card-footer {
    margin-top: auto;
    border-top: 1px solid var(--secondary);
    padding-top: 15px;
}
.card-btn {
    width: 100%;
    text-align: center;
    background: var(--secondary);
    color: var(--primary);
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
}
.card-btn:hover { background: var(--primary); color: white; }

.faq-section {
    background: #f1f5f9;
    padding: 80px 0;
    position: relative;
}
.faq-section .section-title p { color: #1e293b; font-weight: 500; }
.faq-item {
    background: white;
    margin-bottom: 10px;
    border-radius: var(--radius);
    overflow: hidden;
}
.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}
.faq-answer {
    padding: 0 20px 20px;
    color: var(--text-light);
    display: none;
}
.faq-item.active .faq-answer { display: block; }
.faq-icon { transition: 0.3s; }
.faq-item.active .faq-icon { transform: rotate(180deg); }

.footer {
    background: linear-gradient(to right, #006a94 5%, #8ED1FC 95%);
    color: white;
    padding: 20px 0 20px;
    text-align: center;
}
.footer-links { 
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}
.footer-links a { 
    color: rgba(255,255,255,0.9); 
    font-weight: 500;
    font-size: 15px;
}
.footer-links a:hover { color: white; transform: translateY(-1px); }

.footer-social-icon { 
    color: white; 
    font-size: 24px; 
    opacity: 0.9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.footer-social-icon:hover { 
    opacity: 1; 
    transform: translateY(-5px) scale(1.1); 
    color: white;
    background: var(--accent);
}

/* WP Specifics */
.post-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin: 60px auto;
}
.post-hero {
    border-radius: var(--radius);
    overflow: hidden;
    height: 400px;
    position: relative;
    margin-bottom: 30px;
}
.post-hero img { width: 100%; height: 100%; object-fit: cover; }
.post-content {
    font-size: 1.1rem;
}
.post-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}
.booking-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.booking-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}
.booking-price span { font-size: 1rem; color: var(--text-light); font-weight: 400; }
.booking-info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-light);
}
.booking-form input, .booking-form select, .booking-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
}

/* Gallery Grid Style */
.activity-gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    height: 400px;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    align-items: stretch;
}
.activity-gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.3s;
    display: block;
}
.activity-gallery-grid img:hover { opacity: 0.9; }
.gallery-main { 
    height: 100%;
    margin: 0;
}
.gallery-side-col { 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    height: 100%;
    margin: 0;
}
.gallery-side { 
    flex: 1; 
    position: relative; 
    overflow: hidden;
    line-height: 0;
    font-size: 0;
}
.gallery-side img { 
    height: 100%; 
    width: 100%; 
    object-fit: cover;
    display: block;
}
.gallery-more-btn {
    position: absolute; 
    bottom: 10px; 
    right: 10px; 
    background: rgba(255, 255, 255, 0.95); 
    color: #000; 
    padding: 6px 14px; 
    border-radius: 8px; 
    font-weight: 700; 
    pointer-events: none; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); 
    font-size: 14px !important;
    line-height: 1.2 !important;
    z-index: 10;
}

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
}
.lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
#lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2002;
    transition: 0.3s;
    background: transparent;
    border: none;
    padding: 0;
    line-height: 1;
}
.lightbox-close:hover { color: #fff; transform: scale(1.1); }
.lightbox-prev, .lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    user-select: none;
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-next { right: 20px; }
.lightbox-prev { left: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { background-color: rgba(0,0,0,0.8); }

@media (max-width: 768px) {
    .navbar-menu { display: none; }
    .burger { display: block; }
    .hero h1 { font-size: 2.5rem; }
    .post-container { grid-template-columns: 1fr; }
    .post-sidebar { position: static; margin-top: 30px; }
    
    .activity-gallery-grid { 
        height: auto; 
        grid-template-columns: 1fr; 
        gap: 10px;
    }
    .gallery-main { 
        height: 250px; 
    }
    .gallery-side-col { 
        display: grid; 
        grid-template-columns: 1fr 1fr; 
        height: 120px; 
        gap: 10px;
    }
    .gallery-side { height: 100%; }
    .gallery-more-btn { font-size: 11px !important; padding: 4px 10px !important; bottom: 5px !important; right: 5px !important; }
}
