/*
Theme Name: Sail and Savour
Theme URI: https://www.sailandsavour.com
Description: Premium luxury yacht charter theme for Sail and Savour. Mobile-first, elegant, and fully responsive design for high-end clientele.
Version: 1.0.0
Author: Premium Yachting Experience
Author URI: https://www.sailandsavour.com
Text Domain: sailandsavour
Tags: luxury, yachts, charter, elegant, premium, responsive
License: GPL v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

This theme, like WordPress, is licensed under the GPL.
*/

/* ===================================
   RESET & BASE STYLES
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - Luxury Palette */
    --primary-color: #1a2332;
    --secondary-color: #c9a961;
    --accent-blue: #2c4a6e;
    --light-cream: #f8f6f3;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --border-color: #e0e0e0;
    
    /* Typography */
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;
    
    /* Spacing */
    --section-padding: 100px;
    --container-max: 1400px;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--secondary-color);
}

/* ===================================
   TYPOGRAPHY
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: 1px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.subtitle {
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--secondary-color);
    font-weight: 500;
}

/* ===================================
   CONTAINER & LAYOUT
   =================================== */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header .subtitle {
    display: block;
    margin-bottom: 1rem;
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
    display: inline-block;
    padding: 16px 40px;
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 2px solid;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: var(--transition-smooth);
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn-primary {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    color: var(--white);
}

.btn-secondary {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary::before {
    background: var(--primary-color);
}

.btn-white {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    color: white;
    backdrop-filter: blur(5px);
}

.btn-white:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.4);
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: var(--transition-smooth);
    padding: 20px 0;
}

/* Header con fondo en páginas que NO son Home */
body:not(.page-template-page-home) .site-header {
    background: rgba(26, 35, 50, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.site-header.scrolled {
    background: rgba(26, 35, 50, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    height: 120px;
    max-width: 300px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-fast);
    /* Solo sombra sutil, sin fondo blanco */
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.site-header.scrolled .site-logo img {
    height: 80px;
    max-width: 250px;
    /* Solo sombra sutil */
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

/* Header más delgado en móviles cuando se hace scroll */
@media (max-width: 768px) {
    .site-header.scrolled {
        padding: 8px 0;
    }
    
    .site-header.scrolled .site-logo img {
        height: 50px;
        max-width: 180px;
    }
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

.main-nav a {
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--white);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition-smooth);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 2px;
    background: var(--white);
    transition: var(--transition-fast);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.language-switcher a {
    font-size: 0.875rem;
    color: white;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.language-switcher a:hover {
    opacity: 1;
}

.language-switcher a.active {
    opacity: 1;
    color: white;
    font-weight: 600;
}

.language-switcher span {
    color: white;
    opacity: 0.5;
}

/* Yachts List Button in Header */
.yachts-list-header-btn {
    position: relative;
    background: var(--secondary-color);
    color: var(--white);
    padding: 10px 18px;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1.5rem;
    font-size: 1.1rem;
}

.yachts-list-header-btn:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}

.yachts-list-header-btn .yachts-list-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: var(--white);
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0 5px;
}

/* Yachts List Button in Mobile Menu */
.yachts-list-mobile-btn {
    display: none;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition-smooth);
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1rem;
    margin-top: 2rem;
    position: relative;
}

.yachts-list-mobile-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.yachts-list-mobile-btn .yachts-list-count {
    background: var(--secondary-color);
    color: var(--white);
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0 6px;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.7) 0%, rgba(44, 74, 110, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-quick-links {
    position: absolute;
    bottom: 3rem;
    left: 0;
    right: 0;
    display: flex;
    gap: 1.5rem;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    flex-wrap: wrap;
    z-index: 3;
}

.hero-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hero-quick-link:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-quick-link i {
    font-size: 1.1rem;
}

/* ===================================
   QUICK ACCESS BUTTONS SECTION
   =================================== */

.quick-access-section {
    padding: 4rem 0;
    background-color: var(--light-cream);
}

.quick-access-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.quick-access-btn {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.quick-access-btn:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
    color: inherit;
}

.quick-access-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: var(--transition-smooth);
}

.quick-access-btn:hover .quick-access-icon {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #d4b578 100%);
    transform: scale(1.1);
}

.quick-access-icon i {
    font-size: 2rem;
    color: var(--white);
}

.quick-access-btn h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: var(--font-secondary);
}

.quick-access-btn p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
    font-family: var(--font-body);
}

/* Responsive for Quick Access Buttons */
@media (max-width: 768px) {
    .quick-access-section {
        padding: 3rem 1rem;
    }
    
    .quick-access-buttons {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .quick-access-btn {
        padding: 2rem 1.5rem;
    }
    
    .quick-access-icon {
        width: 70px;
        height: 70px;
    }
    
    .quick-access-icon i {
        font-size: 1.75rem;
    }
    
    .quick-access-btn h3 {
        font-size: 1.3rem;
    }
}

/* ===================================
   YACHT FILTER SECTION
   =================================== */

.yacht-filter-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c4a6e 100%);
    padding: 3rem 0;
    position: relative;
    z-index: 10;
}

.yacht-filter-form {
    display: flex;
    gap: 2rem;
    align-items: flex-end;
    justify-content: center;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 250px;
    flex: 1;
}

.filter-group label {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-group select {
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: var(--white);
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
}

#btn-filter-yachts {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 200px;
    margin-top: 1.5rem;
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.4);
}

#btn-filter-yachts:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.6);
}

/* ===================================
   QUICK ACTIONS (3 Big Buttons)
   =================================== */

.quick-actions {
    background: var(--light-cream);
    padding: 0;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0;
}

.quick-action-card {
    position: relative;
    height: 400px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.quick-action-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.quick-action-card.hide-main-bg .quick-action-bg {
    opacity: 0;
}

.quick-action-card:hover .quick-action-bg {
    transform: scale(1.1);
}

.quick-action-video-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.quick-action-video-hover.active {
    opacity: 1;
    pointer-events: auto;
}

.quick-action-video-hover video,
.quick-action-video-hover iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quick-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 0;
    z-index: 15;
    transition: opacity 0.15s ease;
    pointer-events: none;
}

.quick-action-card.flash::before {
    opacity: 1;
}

.quick-action-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 35, 50, 0.6);
    transition: var(--transition-smooth);
}

.quick-action-card:hover .quick-action-overlay {
    background: rgba(26, 35, 50, 0.75);
}

.quick-action-content {
    position: relative;
    z-index: 2;
    color: var(--primary-color);
    padding: 3rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    max-width: 500px;
}

.quick-action-card:hover .quick-action-content {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.quick-action-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 600;
}

.quick-action-content p {
    color: var(--text-dark);
    opacity: 0.9;
}

.quick-action-content .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

/* ===================================
   EDITORIAL MOSAIC SECTION
   =================================== */

.editorial-section {
    padding: 0;
}

.editorial-mosaic-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 400px;
    gap: 0;
    max-width: 100%;
}

.editorial-block {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
}

/* Width and height combinations */
.editorial-block-small {
    grid-column: span 2;
    grid-row: span 1;
}

.editorial-block-small-tall {
    grid-column: span 2;
    grid-row: span 2;
}

.editorial-block-medium {
    grid-column: span 3;
    grid-row: span 1;
}

.editorial-block-medium-tall {
    grid-column: span 3;
    grid-row: span 2;
}

.editorial-block-large {
    grid-column: span 4;
    grid-row: span 2;
}

.editorial-block-wide {
    grid-column: span 6;
    grid-row: span 1;
}

.editorial-block-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.editorial-block.hide-main-bg .editorial-block-bg {
    opacity: 0;
}

.editorial-block:hover .editorial-block-bg {
    transform: scale(1.05);
}

.editorial-block-video-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.editorial-block-video-hover.active {
    opacity: 1;
    pointer-events: auto;
}

.editorial-block-video-hover video,
.editorial-block-video-hover iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.editorial-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 0;
    z-index: 15;
    transition: opacity 0.15s ease;
    pointer-events: none;
}

.editorial-block.flash::before {
    opacity: 1;
}

.editorial-block-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
    z-index: 1;
}

.editorial-block-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: 1.5rem;
    transition: all 0.3s ease;
    max-width: 500px;
}

.editorial-block:hover .editorial-block-content {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.editorial-block-content h3 {
    color: white !important;
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.2;
    padding-bottom: 1rem;
    border-bottom: 2px solid #D4AF37;
}

.editorial-block-content p {
    color: white !important;
    opacity: 0.95;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    margin-top: 1rem;
}

.editorial-cta {
    display: inline-flex;
    align-items: center;
    color: #D4AF37 !important;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.editorial-block:hover .editorial-cta {
    transform: translateX(5px);
}

@media (max-width: 1024px) {
    .editorial-mosaic-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 350px;
    }
    .editorial-block-small,
    .editorial-block-small-tall {
        grid-column: span 2;
    }
    .editorial-block-medium,
    .editorial-block-medium-tall {
        grid-column: span 2;
    }
    .editorial-block-large {
        grid-column: span 4;
    }
    .editorial-block-wide {
        grid-column: span 4;
    }
}

@media (max-width: 768px) {
    .editorial-mosaic-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 400px;
    }
    .editorial-block-small,
    .editorial-block-small-tall,
    .editorial-block-medium,
    .editorial-block-medium-tall,
    .editorial-block-large,
    .editorial-block-wide {
        grid-column: span 1;
        grid-row: span 1;
    }
    .editorial-block-content {
        margin: 1rem;
        padding: 1.25rem;
    }
}

/* ===================================
   YACHTS GRID
   =================================== */

.yachts-section {
    background: var(--white);
}

.yachts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Featured Yachts Carousel */
.featured-yachts-carousel-wrapper {
    position: relative;
    padding: 0 60px;
}

.featured-yachts-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 0;
}

.featured-yachts-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 35, 50, 0.8);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.carousel-nav:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 0;
}

.carousel-nav.next {
    right: 0;
}

.featured-yacht-card {
    flex: 0 0 calc(50% - 1rem);
    min-width: calc(50% - 1rem);
}

@media (max-width: 768px) {
    .featured-yacht-card {
        flex: 0 0 calc(100% - 1rem);
        min-width: calc(100% - 1rem);
    }
    
    .featured-yachts-carousel-wrapper {
        padding: 0 50px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

.yacht-card {
    background: var(--white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
}

.yacht-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.yacht-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.yacht-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.yacht-card:hover .yacht-image img {
    transform: scale(1.05);
}

/* Featured Yacht Hover Effects */
.yacht-image-wrapper {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.yacht-image-wrapper .yacht-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.6s ease;
}

.yacht-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 0;
    z-index: 15;
    transition: opacity 0.15s ease;
    pointer-events: none;
}

.yacht-image-wrapper.flash::before {
    opacity: 1;
}

.yacht-video-hover,
.yacht-gallery-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 10;
    pointer-events: none;
}

.yacht-video-hover.active,
.yacht-gallery-hover.active {
    opacity: 1;
    pointer-events: auto;
}

.yacht-image-wrapper .main-image {
    opacity: 1;
    transition: opacity 0.6s ease;
}

.yacht-image-wrapper.hide-main-image .main-image {
    opacity: 0;
}

.yacht-video-hover iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yacht-gallery-hover {
    position: relative;
}

.yacht-gallery-hover img.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.yacht-gallery-hover img.gallery-slide.active {
    opacity: 1;
}

.yacht-destination-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 8px 20px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.yacht-content {
    padding: 1.5rem;
}

.yacht-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.yacht-type {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.yacht-specs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.yacht-specs span {
    font-size: 0.875rem;
    color: var(--text-light);
    padding: 0.25rem 0.75rem;
    background: var(--light-cream);
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.yacht-specs span i {
    color: var(--secondary-color);
    font-size: 0.85rem;
}

.yacht-pricing {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border-left: 3px solid var(--secondary-color);
    border-radius: 4px;
}

.yacht-pricing .price-highlight {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.yacht-pricing .price-highlight strong {
    color: var(--secondary-color);
    font-weight: 700;
}

.yacht-pricing .price-period {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 400;
}

.yacht-pricing .price-on-request {
    margin: 0;
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    font-style: italic;
}

.yacht-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.yacht-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.yacht-cta {
    display: flex;
    gap: 0.75rem;
}

.yacht-cta .btn-primary {
    flex: 3;
    font-size: 1rem;
    padding: 0.875rem 2rem;
}

.yacht-cta .btn-secondary,
.yacht-cta .add-to-list {
    flex: 1;
    max-width: 60px;
    padding: 0.875rem 0.75rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.875rem;
}

.btn-add-to-list {
    flex: 1;
    text-align: center;
}

/* ===================================
   YACHTS LIST (Cart Sidebar)
   =================================== */

/* Floating button removed - now in header */

.yachts-list-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: var(--white);
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0 5px;
}

.yachts-list-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: var(--white);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: var(--transition-smooth);
    overflow-y: auto;
}

.yachts-list-sidebar.active {
    right: 0;
}

.yachts-list-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.yachts-list-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.yachts-list-content {
    padding: 2rem;
}

.yachts-list-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.yachts-list-item-image {
    width: 100px;
    height: 80px;
    object-fit: cover;
}

.yachts-list-item-info {
    flex: 1;
}

.yachts-list-item-remove {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.5rem;
}

.yachts-list-actions {
    padding: 2rem;
    border-top: 2px solid var(--border-color);
}

/* ===================================
   DESTINATIONS
   =================================== */

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 0;
}

.destination-card {
    position: relative;
    height: 500px;
    overflow: hidden;
    cursor: pointer;
}

.destination-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.destination-card:hover .destination-card-bg {
    transform: scale(1.1);
}

.destination-card.hide-main-bg .destination-card-bg {
    opacity: 0;
}

.destination-video-hover,
.destination-gallery-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.destination-video-hover.active,
.destination-gallery-hover.active {
    opacity: 1;
    pointer-events: auto;
}

.destination-video-hover video,
.destination-video-hover iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.destination-gallery-hover {
    position: relative;
}

.destination-gallery-hover img.destination-zone-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.destination-gallery-hover img.destination-zone-slide.active {
    opacity: 1;
}

.destination-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 0;
    z-index: 15;
    transition: opacity 0.15s ease;
    pointer-events: none;
}

.destination-card.flash::before {
    opacity: 1;
}

.destination-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(26, 35, 50, 0.9) 0%, rgba(26, 35, 50, 0.2) 100%);
}

.destination-content {
    position: relative;
    z-index: 2;
    padding: 3rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
}

.destination-content h3 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.destination-content p {
    color: white;
    opacity: 0.95;
}

/* ===================================
   FOOTER
   =================================== */

.site-footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 998;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition-smooth);
    animation: pulse 2s infinite;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-button i {
    font-size: 2rem;
    color: var(--white);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 5px 30px rgba(37, 211, 102, 0.7);
    }
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* ===================================
   RESPONSIVE - MOBILE FIRST
   =================================== */

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition-smooth);
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hide desktop yacht list button on mobile */
    .yachts-list-header-btn {
        display: none;
    }
    
    /* Show yacht list button in mobile menu */
    .yachts-list-mobile-btn {
        display: flex;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .yachts-grid {
        grid-template-columns: 1fr;
    }
    
    .destinations-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-button {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===================================
   ZONE GALLERY CAROUSEL
   =================================== */

.zone-gallery-carousel {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.zone-gallery-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.zone-gallery-track {
    display: flex;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.zone-gallery-slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
}

.zone-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.zone-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-color);
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.zone-gallery-nav:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}

.zone-gallery-prev {
    left: 30px;
}

.zone-gallery-next {
    right: 30px;
}

.zone-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.zone-gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(26, 35, 50, 0.2);
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
}

.zone-gallery-dot:hover {
    background: rgba(26, 35, 50, 0.4);
    transform: scale(1.2);
}

.zone-gallery-dot.active {
    background: var(--secondary-color);
    width: 40px;
    border-radius: 6px;
}

/* Responsive Zone Gallery */
@media (max-width: 768px) {
    .zone-gallery-wrapper {
        height: 400px;
        border-radius: 8px;
    }
    
    .zone-gallery-nav {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .zone-gallery-prev {
        left: 15px;
    }
    
    .zone-gallery-next {
        right: 15px;
    }
    
    .zone-gallery-dots {
        gap: 8px;
        margin-top: 20px;
    }
    
    .zone-gallery-dot {
        width: 10px;
        height: 10px;
    }
    
    .zone-gallery-dot.active {
        width: 30px;
    }
}

/* ===================================
   DESTINATION GALLERY CAROUSEL
   =================================== */

.destination-gallery-carousel {
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
}

.destination-gallery-wrapper {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

.destination-gallery-track {
    display: flex;
    height: 100%;
    transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.destination-gallery-slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
}

.destination-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.destination-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.98);
    border: none;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary-color);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.destination-gallery-nav:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 12px 40px rgba(244, 162, 97, 0.4);
}

.destination-gallery-prev {
    left: 40px;
}

.destination-gallery-next {
    right: 40px;
}

.destination-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 35px;
}

.destination-gallery-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(26, 35, 50, 0.25);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.destination-gallery-dot:hover {
    background: rgba(26, 35, 50, 0.5);
    transform: scale(1.3);
}

.destination-gallery-dot.active {
    background: var(--secondary-color);
    width: 50px;
    border-radius: 7px;
    box-shadow: 0 4px 15px rgba(244, 162, 97, 0.4);
}

/* Responsive Destination Gallery */
@media (max-width: 768px) {
    .destination-gallery-wrapper {
        height: 450px;
        border-radius: 10px;
    }
    
    .destination-gallery-nav {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .destination-gallery-prev {
        left: 20px;
    }
    
    .destination-gallery-next {
        right: 20px;
    }
    
    .destination-gallery-dots {
        gap: 10px;
        margin-top: 25px;
    }
    
    .destination-gallery-dot {
        width: 11px;
        height: 11px;
    }
    
    .destination-gallery-dot.active {
        width: 35px;
    }
}

/* ===================================
   DESTINATION YACHTS CAROUSEL
   =================================== */

.yacht-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 2rem;
    border: 2px solid var(--secondary-color);
    background: white;
    color: var(--secondary-color);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1rem;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(244, 162, 97, 0.3);
}

.filter-btn.active {
    background: var(--secondary-color);
    color: white;
}

.destination-yachts-carousel {
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
}

.destination-yachts-wrapper {
    overflow: hidden;
    width: 100%;
}

.destination-yachts-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.yacht-card.featured-yacht-card {
    flex: 0 0 calc(33.333% - 1.35rem);
    max-width: calc(33.333% - 1.35rem);
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.yacht-card.featured-yacht-card.hidden {
    display: none;
}

.yacht-card.featured-yacht-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.yacht-image-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.yacht-image.main-image {
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
}

.yacht-image.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.yacht-card:hover .yacht-image.main-image img {
    transform: scale(1.1);
}

.yacht-destination-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 5;
}

.yacht-video-hover,
.yacht-gallery-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
}

.yacht-card:hover .yacht-video-hover,
.yacht-card:hover .yacht-gallery-hover {
    opacity: 1;
}

.yacht-video-hover video,
.yacht-video-hover iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yacht-gallery-hover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.destination-yachts-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.destination-yachts-nav:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
}

.destination-yachts-nav:hover i {
    color: white;
}

.destination-yachts-prev {
    left: 0;
}

.destination-yachts-next {
    right: 0;
}

/* Responsive Destination Yachts */
@media (max-width: 1200px) {
    .yacht-card.featured-yacht-card {
        flex: 0 0 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .destination-yachts-carousel {
        padding: 0 45px;
    }
    
    .yacht-card.featured-yacht-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .destination-yachts-nav {
        width: 40px;
        height: 40px;
    }
    
    .filter-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ===================================
   MOBILE OPTIMIZATIONS - COMPREHENSIVE
   =================================== */

/* Zones Grid Container - Base styles */
.zones-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Prevent editorial-grid from affecting zones section */
.section .zones-grid-container.editorial-grid,
.zones-grid-container[class*="editorial"] {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
    grid-auto-rows: auto !important;
}

@media (min-width: 769px) {
    .zones-grid-container {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

/* Hero Section - Mobile */
@media (max-width: 768px) {
    .hero-section {
        min-height: 600px;
        height: auto;
    }
    
    .hero-content {
        padding: 2rem 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
}

/* Yacht Filter Section - Mobile */
@media (max-width: 768px) {
    .yacht-filter-section {
        padding: 2rem 0;
    }
    
    .yacht-filter-form {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }
    
    .filter-group {
        min-width: 100%;
        width: 100%;
    }
    
    .filter-group select,
    .filter-group input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    #btn-filter-yachts {
        width: 100%;
    }
}

/* Single Yacht Page - Mobile */
@media (max-width: 992px) {
    .yacht-hero {
        height: 50vh !important;
        min-height: 400px !important;
        margin-top: 60px !important;
    }
    
    .yacht-hero .container {
        padding-bottom: 2rem !important;
    }
    
    .yacht-hero h1 {
        font-size: 2rem !important;
    }
    
    .yacht-hero p {
        font-size: 1rem !important;
    }
    
    .yacht-details-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .yacht-sidebar {
        position: static !important;
    }
}

@media (max-width: 768px) {
    /* Yacht Details Grid - Stack on Mobile */
    .yacht-details-grid {
        display: block !important;
    }
    
    .yacht-main-content,
    .yacht-sidebar {
        margin-bottom: 2rem;
    }
    
    /* Yacht Features Grid */
    .yacht-features-list {
        grid-template-columns: 1fr !important;
    }
    
    /* Yacht Specs Grid */
    .section div[style*="grid-template-columns: repeat(2"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Yacht Gallery */
    .yacht-gallery {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Pricing Table */
    .yacht-pricing-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .yacht-pricing-table table {
        min-width: 500px;
    }
}

/* Featured Yachts Section - Mobile */
@media (max-width: 768px) {
    .featured-yachts-section {
        padding: 3rem 0;
    }
    
    .featured-yachts-carousel-wrapper {
        padding: 0 2rem;
    }
    
    .featured-yachts-carousel {
        gap: 1rem;
    }
    
    .yacht-card {
        min-width: 100%;
        max-width: 100%;
    }
    
    .yacht-card-content h3 {
        font-size: 1.5rem;
    }
    
    .yacht-specs {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
    }
    
    .yacht-spec {
        font-size: 0.85rem;
    }
}

/* Destinations Section - Mobile */
@media (max-width: 768px) {
    .destinations-section {
        padding: 3rem 0;
    }
    
    .destinations-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .destination-card {
        height: 350px;
    }
    
    .destination-card h3 {
        font-size: 1.75rem;
    }
}

/* Single Zone/Destination Page - Mobile */
@media (max-width: 768px) {
    .zone-hero,
    .destination-hero {
        height: 50vh !important;
        min-height: 400px !important;
    }
    
    .zone-content-wrapper,
    .destination-content-wrapper {
        padding: 2rem 1rem;
    }
    
    .zone-content-wrapper h2,
    .destination-content-wrapper h2 {
        font-size: 1.75rem;
    }
    
    .zone-highlights,
    .destination-highlights {
        grid-template-columns: 1fr !important;
    }
    
    .zone-highlights-item,
    .destination-highlights-item {
        padding: 1.5rem;
    }
    
    /* Zone Cards Grid - Force single column on mobile */
    .zones-grid-container,
    #zones .editorial-grid,
    section[id="zones"] .editorial-grid,
    .section .zones-grid-container {
        display: block !important;
        grid-template-columns: none !important;
        grid-auto-rows: auto !important;
        gap: 0 !important;
    }
    
    .zone-card {
        max-width: 100% !important;
        width: 100% !important;
        margin-bottom: 1.5rem !important;
        grid-column: auto !important;
        grid-row: auto !important;
    }
    
    .zone-card > div[style*="height: 250px"] {
        height: 250px !important;
    }
}

@media (max-width: 480px) {
    .zones-grid-container {
        grid-template-columns: 1fr !important;
    }
}

/* Editorial Blocks - Mobile */
@media (max-width: 768px) {
    .editorial-section {
        padding: 2rem 0;
    }
    
    .editorial-mosaic-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .editorial-block {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        min-height: 300px;
    }
    
    .editorial-block-content {
        padding: 1rem;
    }
    
    .editorial-block h3 {
        font-size: 1.5rem;
    }
}

/* Container Padding - Mobile */
@media (max-width: 768px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .section {
        padding: 3rem 0;
    }
}

/* Touch Improvements */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .btn,
    button,
    a.yacht-card,
    a.destination-card {
        min-height: 44px;
    }
    
    /* Remove hover states on touch devices */
    .yacht-card:hover .yacht-card-image,
    .destination-card:hover .destination-image {
        transform: none;
    }
    
    /* Keep basic hover for visibility */
    .yacht-card:active,
    .destination-card:active {
        opacity: 0.9;
    }
}

/* Landscape Mobile Optimizations */
@media (max-width: 992px) and (orientation: landscape) {
    .hero-section {
        height: auto;
        min-height: 500px;
        padding: 4rem 0;
    }
    
    .yacht-hero {
        height: 60vh !important;
        min-height: 450px !important;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .hero-quick-links {
        bottom: 2rem;
        gap: 0.5rem;
        padding: 0 1rem;
        justify-content: center;
    }
    
    .hero-quick-link {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .hero-quick-link i {
        font-size: 1rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ========================================
   YACHT ARCHIVE PAGE STYLES
   ======================================== */

/* Filter Buttons */
.filter-type-btn,
.filter-destination-btn,
.filter-guests-btn,
.filter-price-btn {
    background: var(--light-cream);
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-type-btn:hover,
.filter-destination-btn:hover,
.filter-guests-btn:hover,
.filter-price-btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.filter-type-btn.active,
.filter-destination-btn.active,
.filter-guests-btn.active,
.filter-price-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Yacht Archive Card Hover */
.yacht-archive-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15) !important;
}

.yacht-archive-card:hover .yacht-archive-main-image img {
    transform: scale(1.1);
}

.yacht-archive-card h3 a:hover {
    color: var(--secondary-color);
}

/* Responsive - Yacht Archive */
@media (max-width: 768px) {
    .yachts-filters-wrapper {
        padding: 1.5rem !important;
    }
    
    .filter-type-btn,
    .filter-destination-btn,
    .filter-guests-btn,
    .filter-price-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .yachts-archive-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .yacht-archive-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .filter-type-btn,
    .filter-destination-btn,
    .filter-guests-btn,
    .filter-price-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* ========================================
   MENU/DISHES PAGE STYLES
   ======================================== */

/* Menu Filter Buttons */
.menu-filter-btn {
    background: white;
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-filter-btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.menu-filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Dish Cards */
.dish-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15) !important;
}

.dish-card:hover .dish-image img {
    transform: scale(1.1);
}

.dish-view-more:hover {
    gap: 1rem !important;
}

/* Dish Modal */
.dish-modal {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.dish-modal-content {
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.dish-modal-close:hover {
    background: white !important;
    transform: scale(1.1);
}

/* Responsive - Menu/Dishes */
@media (max-width: 768px) {
    .menu-filters {
        gap: 0.75rem !important;
    }
    
    .menu-filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .dishes-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .dish-modal {
        padding: 1rem !important;
    }
    
    .dish-modal-image {
        height: 250px !important;
    }
    
    .dish-modal-body {
        padding: 2rem 1.5rem !important;
    }
    
    .dish-modal-title {
        font-size: 2rem !important;
    }
}
