/*
Theme Name: Transtour Agadir Luxury
Theme URI: https://transtour-agadir.com
Author: Transtour
Author URI: https://transtour-agadir.com
Description: A luxury transport theme for Agadir, Morocco.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: transtour-theme
*/

/* Luxury Agadir Transport Theme */
:root {
    --primary-gold: #C5A059;
    --primary-gold-hover: #b08d4b;
    --text-dark: #111111;
    --text-light: #f5f5f5;
    --bg-dark: #0a0a0a;
    --bg-dark-overlay: rgba(0, 0, 0, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --transition-speed: 0.3s;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-gold);
    color: var(--text-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--primary-gold);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-gold);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-gold);
}

.btn-outline:hover {
    background-color: var(--primary-gold);
    color: var(--text-dark);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    transition: padding 0.3s;
}

header.scrolled {
    padding: 10px 0;
}

nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.logo {
    justify-self: start;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-self: center;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-gold);
}

.nav-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 15px;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.mobile-only {
    display: none;
}

.desktop-only {
    display: inline-block;
}

/* Mobile Menu */
@media (max-width: 900px) {
    nav {
        display: flex;
        justify-content: space-between;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        border-bottom: 1px solid var(--primary-gold);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
        font-size: 1.5rem;
        color: var(--primary-gold);
    }
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-gold);
    margin: 15px auto 0;
}

.text-gold {
    color: var(--primary-gold);
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: #111;
    /* Slightly lighter than main bg */
}

/* Hero Section */
.hero {
    height: 100vh;
    /* Update path to be relative to the CSS file location in the theme */
    background: url('assets/images/hero_bg.png') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
}

/* Note: I'm assuming hero_bg.png is in images/. I will need to correct this path if it's different.
   In the original it was ../images/hero_bg.png.
   In the new structure, style.css is in root, images are in assets/images.
   So path should be assets/images/hero_bg.png.
*/

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #ddd;
    animation: fadeInUp 1.2s ease-out;
}

.hero-btns {
    animation: fadeInUp 1.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, border-color 0.3s;
    border-radius: 5px;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

.service-card h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: #ccc;
    font-size: 0.95rem;
}

/* Fleet Grid */
.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.fleet-item {
    background: #000;
    padding: 30px;
    text-align: center;
    border-top: 3px solid var(--primary-gold);
    border-radius: 4px;
}

.fleet-icon i {
    font-size: 4rem;
    color: #333;
    margin-bottom: 20px;
    transition: color 0.3s;
}

.fleet-item:hover .fleet-icon i {
    color: var(--primary-gold);
}

/* Booking Form */
.booking-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.booking-form .form-group {
    margin-bottom: 20px;
}

.booking-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-gold);
    font-size: 0.9rem;
}

.booking-form input,
.booking-form select {
    width: 100%;
    padding: 12px;
    background: #000;
    border: 1px solid #333;
    color: #fff;
    border-radius: 4px;
    font-family: var(--font-body);
}

.booking-form input:focus,
.booking-form select:focus {
    outline: none;
    border-color: var(--primary-gold);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.form-note {
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    margin-top: 15px;
}

/* Footer */
footer {
    background: #000;
    padding: 60px 0 20px;
    border-top: 1px solid #222;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
    padding-right: 20px;
}

.footer-col h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col p {
    color: #aaa;
    margin-bottom: 10px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #aaa;
}

.footer-col ul li a:hover {
    color: var(--primary-gold);
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #666;
}

/* Tours Page Styles */
.tours-hero {
    height: 60vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)),
        url('assets/images/hero_bg.png') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
}

.tours-hero .hero-content h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 15px;
}

.tours-hero .hero-content p {
    font-size: 1.2rem;
    color: #ddd;
}

/* Tour Filters */
.tour-filters {
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.filter-btn {
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(197, 160, 89, 0.3);
    color: var(--text-light);
    cursor: pointer;
    transition: all var(--transition-speed);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-radius: 4px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-gold);
    color: var(--text-dark);
    border-color: var(--primary-gold);
}

/* Tours Grid */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.tour-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative;
}

.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.2);
    border-color: var(--primary-gold);
}

.tour-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #1a1a1a;
}

.tour-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.tour-card:hover .tour-image img {
    transform: scale(1.1);
}

.tour-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.tour-placeholder i {
    font-size: 4rem;
    color: rgba(197, 160, 89, 0.3);
}

.tour-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
}

.tour-content {
    padding: 25px;
}

.tour-content h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 12px;
    font-family: var(--font-heading);
}

.tour-excerpt {
    color: #bbb;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.tour-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tour-meta span {
    font-size: 0.85rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tour-meta i {
    color: var(--primary-gold);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.no-tours {
    text-align: center;
    font-size: 1.1rem;
    color: #888;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

/* Responsive Tours */
@media (max-width: 768px) {
    .tours-grid {
        grid-template-columns: 1fr;
    }

    .tours-hero .hero-content h1 {
        font-size: 2rem;
    }

    .tours-hero {
        height: 50vh;
    }

    .tour-filters {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 18px;
        font-size: 0.8rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .tours-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Single Tour Styles */
.tour-single-hero {
    height: 70vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    margin-top: 0;
}

.tour-single-hero h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.tour-tagline {
    font-size: 1.5rem;
    color: #e0e0e0;
    font-style: italic;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    max-width: 800px;
    margin: 0 auto;
}

.tour-meta-bar {
    background: #1a1a1a;
    padding: 20px 40px;
    border-radius: 8px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(197, 160, 89, 0.2);
    flex-wrap: wrap;
    gap: 20px;
}

.tour-meta-bar .meta-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.tour-meta-bar .meta-item i {
    font-size: 1.5rem;
}

.tour-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-top: 60px;
}

.format-content h2, .format-content h3 {
    color: var(--primary-gold);
    margin-top: 30px;
}

.format-content p {
    margin-bottom: 20px;
    color: #ccc;
    font-size: 1.05rem;
}

.format-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.format-content ul li {
    list-style-type: none;
    position: relative;
    margin-bottom: 10px;
    color: #ccc;
}

.format-content ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: -25px;
    color: var(--primary-gold);
}

.tour-sidebar .booking-widget {
    background: #111;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(197, 160, 89, 0.3);
    position: sticky;
    top: 100px;
}

.tour-sidebar .booking-widget h3 {
    margin-bottom: 15px;
    text-align: center;
}

.tour-sidebar .booking-widget p {
    color: #888;
    margin-bottom: 25px;
    text-align: center;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .tour-content-grid {
        grid-template-columns: 1fr;
    }
    
    .tour-meta-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}