/*
Theme Name: Marbella Charter Boats
Theme URI: https://marbellacharterboats.com
Author: Antigravity
Description: Tema a medida para Marbella Charter Boats. Alto rendimiento y SEO.
Version: 1.0
Text Domain: marbella-charter
*/

/* --- Pega aquí el contenido de tu style.css --- */

:root {
    /* Colors */
    --white: #FFFFFF;
    --navy: #002147;
    --gold: #A68041;
    /* Darkened for accessibility contrast */
    --gold-light: #D4B475;
    --gray-light: #F8F9FA;
    --text-primary: #333333;

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 100px 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--navy);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.container--nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--white);
    letter-spacing: 2px;
}

.navbar.scrolled .logo {
    color: var(--navy);
}

.logo span {
    font-weight: 300;
    font-size: 0.9rem;
    display: block;
    margin-top: -5px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    /* WP Menu fixes */
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.navbar.scrolled .nav-links a {
    color: var(--navy);
}

.nav-links a:hover {
    color: var(--gold);
}

/* Lang Switcher - Adapted for WP widgets if needed, keeping static style for now */
.lang-switcher {
    display: flex;
    gap: 10px;
}

.lang-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.3s;
}

.navbar.scrolled .lang-btn {
    border-color: rgba(0, 33, 71, 0.2);
    color: var(--navy);
}

.lang-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s;
}

.navbar.scrolled .menu-toggle span {
    background: var(--navy);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
    height: 100vh;
    background: url('assets/luxury_yacht_hero.png') center/cover no-repeat;
    /* Path updated for WP */
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 33, 71, 0.4), rgba(0, 33, 71, 0.2));
}

.hero__content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero__title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.hero__subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn--gold {
    background: var(--gold);
    color: var(--white);
}

.btn--gold:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3);
}

.btn--dark {
    background: var(--navy);
    color: var(--white);
}

.btn--outline {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
}

.btn--outline:hover {
    background: var(--gold);
    color: var(--white);
}

/* Search Bar */
.search-bar {
    background: var(--white);
    padding: 40px 0;
    margin-top: -60px;
    position: relative;
    z-index: 20;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.search-bar__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    font-weight: 600;
}

.filter-group select {
    padding: 12px;
    border: 1px solid #eee;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.3s;
}

.filter-group select:focus {
    border-color: var(--gold);
}

/* Fleet Sections */
.fleet-section {
    padding: var(--section-padding);
}

.fleet-section--dark {
    background: var(--navy);
    color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    opacity: 0.7;
    font-weight: 300;
}

.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.boat-card {
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s;
    cursor: pointer;
    text-decoration: none;
    /* For WP Links */
    color: inherit;
    display: block;
}

.boat-card:hover {
    transform: translateY(-10px);
}

.boat-card__img {
    height: 250px;
    overflow: hidden;
}

.boat-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.boat-card:hover .boat-card__img img {
    transform: scale(1.1);
}

.boat-card__info {
    padding: 30px;
    text-align: center;
}

.boat-card__info h3 {
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.boat-card__price {
    color: var(--gold);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.boat-card__info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

/* Showcase */
.fleet-showcase {
    /* height: 600px; removed fixed height to let content grow if needed, or keep it */
    min-height: 600px;
    position: relative;
    overflow: hidden;
    display: grid;
    /* Grid for WP loop items */
    grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
    /* Full width items effectively */
}

/* Modified for WP Loop - typically one showcase item is full width or we have a specialized grid */
.showcase-item {
    height: 600px;
    /* Enforce height */
    position: relative;
    width: 100%;
    display: block;
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px;
    background: linear-gradient(to top, rgba(0, 33, 71, 0.8), transparent);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.showcase-overlay h3 {
    color: white;
    font-size: 2.5rem;
}

.showcase-overlay p {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-icon {
    width: 35px;
    fill: white;
}

/* Footer */
.footer {
    background: #00152e;
    color: var(--white);
    padding: 80px 0 30px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer__col h4 {
    margin-bottom: 25px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1rem;
    color: var(--gold);
}

.footer__col p {
    opacity: 0.6;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.4;
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .hero__content {
    margin-right: 0;
    margin-left: auto;
}

[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 30px;
}

/* FAQ */
/* ... (FAQ styles from original) ... */
.faq-accordion {
    margin-top: 40px;
}

.faq-item {
    border-bottom: 1px solid #eee;
}

.faq-question {
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--gold);
}

.faq-question h4 {
    font-size: 1.1rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.faq-answer.active {
    max-height: 200px;
    padding-bottom: 30px;
}

.faq-answer p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Testimonials */
.testimonials-section {
    background-color: var(--gray-light);
    padding: var(--section-padding);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-rating {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.testimonial-footer {
    display: flex;
    flex-direction: column;
}

.testimonial-footer strong {
    font-size: 1rem;
    color: var(--navy);
}

.testimonial-footer span {
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Single Boat Page Specifics */
.boat-single {
    padding-top: 120px;
    /* Space for fixed navbar */
    padding-bottom: 80px;
}

.boat-single__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.boat-gallery-main {
    height: 400px;
    overflow: hidden;
    margin-bottom: 20px;
}

.boat-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.boat-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.boat-gallery-thumbs img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.3s;
}

.boat-gallery-thumbs img:hover,
.boat-gallery-thumbs img.active {
    opacity: 1;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.price-table th,
.price-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.price-table th {
    color: var(--navy);
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */
/* Responsive Adjustments */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px 0;
    }

    .hero__title {
        font-size: 3.5rem;
    }

    .search-bar__inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--navy);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1050;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        color: var(--white) !important;
    }

    .lang-switcher {
        display: none;
        /* Hide in navbar on mobile, or move to menu */
    }

    .hero__title {
        font-size: 2.8rem;
    }

    .hero__subtitle {
        font-size: 1.2rem;
    }

    .search-bar {
        margin-top: 0;
        padding: 40px 20px;
    }

    .search-bar__inner {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .boat-card__img {
        height: 200px;
    }

    .showcase-overlay {
        padding: 30px;
    }

    .showcase-overlay h3 {
        font-size: 1.8rem;
    }

    .modal__content {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2.22rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .navbar .logo {
        font-size: 1.2rem;
    }
}

/* --- Dynamic Functionality Styles --- */

/* Utility */
.hidden {
    display: none !important;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal__content {
    background: var(--white);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 2001;
    border-radius: 8px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal.active .modal__content {
    transform: translateY(0);
}

.modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    color: var(--navy);
    transition: color 0.3s;
}

.modal__close:hover {
    color: var(--gold);
}

.modal__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
}

@media (max-width: 800px) {
    .modal__grid {
        grid-template-columns: 1fr;
    }
}

.modal__gallery {
    background: #f0f0f0;
    padding: 20px;
}

.gallery__main {
    height: 350px;
    margin-bottom: 10px;
    border-radius: 4px;
    overflow: hidden;
}

.gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.gallery__thumbs img {
    height: 60px;
    width: 100%;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    border-radius: 2px;
    transition: opacity 0.3s;
}

.gallery__thumbs img:hover,
.gallery__thumbs img.active {
    opacity: 1;
}

.modal__info {
    padding: 40px;
}

.modal__info h2 {
    font-size: 2rem;
    margin-bottom: 5px;
    color: var(--navy);
}

.modal__subtitle {
    font-size: 1rem;
    color: #888;
    margin-bottom: 30px;
    font-weight: 300;
}

.modal__details-section {
    margin-bottom: 25px;
}

.modal__details-section h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.specs-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.specs-list li {
    font-size: 0.9rem;
    color: #555;
}

.specs-list li::before {
    content: '•';
    color: var(--gold);
    margin-right: 8px;
}

.modal__text {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

.btn--full {
    width: 100%;
    text-align: center;
}