/* Google Fonts loaded async from HTML — DO NOT use @import here */

:root {
    --primary: #0f172a;
    /* Deep blue/slate */
    --secondary: #0ea5e9;
    /* Vibrant ocean blue */
    --accent: #f59e0b;
    /* Golden sun */
    --light: #f8fafc;
    --dark: #020617;
    --text-main: #334155;
    --text-muted: #64748b;
    --bg-color: #ffffff;

    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    color: var(--primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: #0369a1;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 3rem;
    font-size: 0.875rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: #0284c7;
    color: white;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
    background-color: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

header.scrolled .logo,
header.scrolled .nav-links a {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.lang-switch {
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.lang-switch a {
    opacity: 0.7;
}

.lang-switch a.active {
    opacity: 1;
    color: var(--accent) !important;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

header.scrolled .mobile-toggle {
    color: var(--primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero_malaga.webp') center/cover no-repeat;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.4), rgba(2, 6, 23, 0.8));
    z-index: -1;
}

.hero-content {
    color: white;
    max-width: 800px;
    padding: 0 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards 0.5s;
}

.hero-subtitle {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}

.hero h1 {
    color: white;
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* About Section */
.about {
    background-color: var(--light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img-wrapper {
    position: relative;
    padding-bottom: 2rem;
    padding-right: 2rem;
}

.about-img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.about-img-bg {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80%;
    height: 80%;
    background-color: var(--accent);
    border-radius: 20px;
    z-index: 1;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.feature-text {
    font-weight: 600;
    color: var(--primary);
}

/* Tours Section */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tour-card {
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    group: tour;
}

.tour-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.tour-img {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.tour-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.tour-card:hover .tour-img img {
    transform: scale(1.1);
}

.tour-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--glass-bg);
    backdrop-filter: blur(4px);
    padding: 0.25rem 0.75rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    z-index: 2;
}

.tour-content {
    padding: 1.5rem;
}

.tour-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.tour-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tour-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.tour-duration {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.tour-link {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.tour-card:hover .tour-link {
    gap: 0.5rem;
}

/* Contact Section */
.contact {
    background-color: var(--primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.2), transparent 50%);
}

.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.contact-info h2 {
    color: white;
}

.contact-info .section-subtitle {
    text-align: left;
}

.contact-details {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Video Section */
.video-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.video-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.15), transparent 50%);
}

.video-section .section-subtitle {
    color: var(--accent);
}

.video-section .section-title {
    color: white;
    margin-bottom: 2rem;
}

.video-section p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
}

.video-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.video-wrapper video {
    width: 100%;
    display: block;
    border-radius: 16px;
}

.video-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    border-radius: 16px;
}

.video-placeholder-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: var(--transition);
}

.video-placeholder:hover .video-placeholder-icon {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: scale(1.1);
}

.video-placeholder-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

/* Landing Page Shared Styles */
.tour-details {
    padding: 4rem 0;
    background-color: white;
}

.tour-info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.itinerary h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.itinerary p {
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.sidebar-card {
    background: var(--light);
    padding: 2rem;
    border-radius: 12px;
    position: sticky;
    top: 100px;
}

.sidebar-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
    font-family: var(--font-serif);
}

.sidebar-list {
    list-style: none;
    margin-bottom: 2rem;
}

.sidebar-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
}

/* Spot Description — more visible text for Malaga cards */
.spot-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Spot card link style */
.spot-link {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    transition: var(--transition);
}

.spot-link:hover {
    gap: 0.5rem;
    color: var(--accent);
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 991px) {

    .about-grid,
    .contact-wrap {
        grid-template-columns: 1fr;
    }

    .about-img-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }

    .tour-info-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        padding: 6rem 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: var(--primary);
        font-size: 1.1rem;
    }

    .mobile-toggle {
        display: block;
        z-index: 1001;
    }

    header.scrolled .mobile-toggle {
        color: var(--primary);
    }

    .mobile-toggle.active {
        color: var(--primary);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    /* Hero buttons — compact, elegant on mobile */
    .hero-btns {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .hero-btns .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
        width: auto;
        min-width: 180px;
        border-radius: 40px;
    }

    /* Trust badges — single row, scrollable on very small screens */
    .trust-badges {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center !important;
    }

    .trust-badge-item {
        font-size: 0.7rem;
        padding: 0.35rem 0.7rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .container {
        padding: 0 1.25rem;
    }

    .tour-details {
        padding: 2rem 0;
    }

    /* Header logo — prevent overlap */
    .logo {
        font-size: 1.15rem;
    }

    /* Reviews grid */
    .reviews-grid-new {
        grid-template-columns: 1fr;
    }

    /* Tours grid */
    .tours-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* About */
    .about-content h2 {
        font-size: 1.75rem;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Contact */
    .contact-form {
        padding: 1.5rem;
    }

    /* FAQ */
    .faq-question {
        font-size: 0.95rem;
        padding: 0.75rem 0;
    }

    /* Footer */
    footer {
        padding: 2rem 0;
    }
}

/* --- PREMIUM DESIGN & SEO COMPONENTS --- */

/* Trust & Booking Layout */
.trust-certification {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    margin-bottom: 2rem;
}

.trust-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 1rem;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--light);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.trust-badge-item i {
    color: var(--accent);
    font-size: 1.1rem;
}

/* Modern Reviews Grid */
.reviews-section {
    background-color: var(--light);
    padding: 6rem 0;
}

.reviews-header-new {
    text-align: center;
    margin-bottom: 3rem;
}

.google-rating-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 1.5rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
}

.google-rating-score {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.google-rating-stars {
    color: #fbbc05;
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin: 0.5rem 0;
}

.google-rating-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.reviews-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.review-card-new {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.review-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
}

.reviewer-info h4 {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    margin: 0;
    color: var(--primary);
}

.reviewer-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.verified-badge {
    color: #1a73e8;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-weight: 500;
}

.review-content {
    font-style: italic;
    color: var(--text-main);
    line-height: 1.6;
    flex-grow: 1;
}

/* FAQ Section */
.faq-section {
    padding: 6rem 0;
    background: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--secondary);
}

.faq-icon {
    font-size: 1.2rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    color: var(--text-muted);
    line-height: 1.6;
}

.faq-answer p {
    padding-bottom: 1rem;
}

/* Glassmorphism utility */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .reviews-grid-new {
        grid-template-columns: 1fr;
    }
}