/*
Theme Name: Centraal Exclusief
Description: Custom WordPress theme for Centraal Exclusief premium car dealership
Version: 1.0
Author: Custom Development

Z-Index Hierarchy:
- 1050: Mobile menu button (highest - always accessible)
- 1040: Contact/social icons (high - always visible)
- 1030: Navigation overlay (medium-high)
- 1020: Site header (medium)
- 1010: Scroll to top button (low-medium)
- 1000 and below: Other elements
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Ensure all elements inherit Open Sans */
*, *::before, *::after {
    font-family: inherit;
}

/* Explicit Open Sans for all headings and important elements */
h1, h2, h3, h4, h5, h6,
.hero-title, .hero-subtitle, .section-title,
.occasion-title, .car-title, .page-title,
button, input, textarea, select,
.nav-menu, .footer-content {
    font-family: 'Open Sans', sans-serif !important;
}

body.menu-open {
    overflow: hidden;
    padding-right: var(--scrollbar-width, 0px);
}

/* Custom Scrollbar Styling - Global */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #dc2626;
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #b91c1c;
}

::-webkit-scrollbar-corner {
    background: #f1f1f1;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #dc2626 #f1f1f1;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background: transparent;
    padding: 20px 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1020;
    width: 100%;
}

.mobile-menu-button {
    position: fixed !important;
    top: 20px !important;
    left: 20px !important;
    z-index: 10000 !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

.menu-toggle {
    width: 50px;
    height: 50px;
    background: #dc3545;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.menu-toggle:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1021;
    background: rgba(0, 0, 0, 0.7);
       padding: 95px 25px 15px 25px;
    border-radius: 0;
}

.logo img {
    max-height: 80px;
    width: auto;
    filter: none;
}

.social-icons {
    position: fixed !important;
    z-index: 9999 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Desktop */
@media (min-width: 769px) {
    .social-icons {
        top: 50% !important;
        right: 0 !important;
        transform: translateY(-50%) !important;
        flex-direction: column !important;
        gap: 15px !important;
        padding: 20px 10px !important;
        background: rgba(0, 0, 0, 1) !important;
        backdrop-filter: blur(10px) !important;
        border-radius: 20px 0 0 20px !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-right: none !important;
        bottom: auto !important;
        left: auto !important;
    }

    /* Contact bar animation states */
    .social-icons.slide-out {
        transform: translateY(-50%) translateX(100%) !important;
    }

    .social-icons.slide-in {
        transform: translateY(-50%) translateX(0) !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .social-icons {
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        flex-direction: row !important;
        justify-content: space-around !important;
        padding: 10px 15px !important;
        background: rgba(0, 0, 0, 1) !important;
        backdrop-filter: blur(8px) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15) !important;
        top: auto !important;
        transform: none !important;
    }
}

.social-icons a {
    color: #fff;
    font-size: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15); /* Fallback for browsers without backdrop-filter */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
}

/* Fallback for browsers that support backdrop-filter */
@supports (backdrop-filter: blur(5px)) {
    .social-icons a {
        background: rgba(255, 255, 255, 0.05);
    }
}

/* Ensure contact icons are interactive and always visible */

.social-icons a {
    pointer-events: auto !important;
}

/* Force visibility for critical navigation elements */
.mobile-menu-button,
.social-icons,
.site-header {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

.social-icons {
    display: flex !important;
}

.social-icons a:hover,
.social-icons a:focus {
    color: #fff;
    background: rgba(220, 53, 69, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Phone icon pulse animation */
.social-icons a[href^="tel"] {
    background: rgba(220, 53, 69, 0.2);
    animation: phonePulse 2s ease-in-out infinite;
}

.social-icons a[href^="tel"]:hover {
    animation: none;
    background: rgba(220, 53, 69, 0.9);
}

/* Navigation Slide-out - Below menu button and contact icons */
.main-navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1030;
    pointer-events: none;
}

.nav-overlay {
    position: absolute;
    top: 0;
    left: -100%;
    width: 400px;
    height: 100%;
    background: rgba(20, 20, 20, 0.85); /* Fallback for browsers without backdrop-filter */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

/* Fallback for browsers that support backdrop-filter */
@supports (backdrop-filter: blur(12px)) {
    .nav-overlay {
        background: rgba(20, 20, 20, 0.65);
    }
}

.nav-overlay.active {
    left: 0;
    pointer-events: all;
}

/* Dark overlay behind the slide-out */
.nav-overlay::before {
    content: '';
    position: fixed;
    top: 0;
    left: 400px;
    width: calc(100vw - 400px);
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.nav-overlay.active::before {
    opacity: 1;
    pointer-events: all;
}

.nav-content {
    padding: 100px 40px 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
    position: relative;
}

.nav-menu li:last-child {
    border-bottom: none;
}

.nav-menu a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 400;
    padding: 20px 0;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
    /* Shine effect setup */
    background: #fff -webkit-gradient(linear, left top, right top, from(#fff), to(#fff), color-stop(0.5, #fff)) 0 0 no-repeat;
    background-image: -webkit-linear-gradient(-40deg, transparent 0%, transparent 35%, rgba(255,255,255,0.8) 50%, transparent 65%, transparent 100%);
    background-size: 300px;
    -webkit-background-size: 300px;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Red line indicator */
.nav-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 2px;
    background: #dc3545;
    transition: width 0.3s ease;
    transform: translateY(-50%);
    z-index: 2;
}

.nav-menu a:hover::before {
    width: 30px;
}

.nav-menu a:hover {
    color: #dc3545;
    padding-left: 40px;
    /* Activate shine effect on hover */
    -webkit-animation: menuShine 6s ease-in-out infinite;
    animation: menuShine 6s ease-in-out infinite;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 75px 20px;
}

.hero-background {
    position: absolute;
    top: -10%; /* Extend beyond container for parallax effect */
    left: 0;
    width: 100%;
    height: 120%; /* Larger height for parallax movement */
    z-index: 1;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    overflow: hidden;
}

.hero-bg-image {
    width: 100%;
    height: 120%; /* Slightly larger to accommodate parallax movement */
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    animation: subtleZoom 20s ease-in-out infinite alternate;
    will-change: transform; /* Optimize for transform animations */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    height: 100%;
    color: #fff;
    width: 100%;
}

.hero-left {
    flex: 1;
    padding-right: 40px;
}

.hero-brand {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 15px;
    opacity: 0.9;
    text-transform: uppercase;
}

.hero-brand .brand-highlight {
    color: #dc3545;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 40px;
    font-family: 'Open Sans', sans-serif;
}

.hero-cta {
    display: inline-block;
    background: #dc3545;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
}

.hero-cta:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.hero-divider {
    width: 4px;
    height: 120px;
    background: #dc3545;
    margin: 0 60px;
    flex-shrink: 0;
}

.hero-right {
    flex: 1;
    padding-left: 40px;
}

.hero-subtitle {
    font-size: 2.2rem;
    font-weight: 300;
    line-height: 1.3;
    margin: 0;
    font-family: 'Open Sans', sans-serif;
}

.cta-button {
    display: inline-block;
    background: #dc3545;
    color: #fff;
    padding: 18px 35px;
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease-out 0.6s both;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: #b02a37;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.occasions-cta-container {
    text-align: center;
    margin-top: 40px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtleZoom {
    0% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1.25);
    }
}

@keyframes phonePulse {
    0% {
        background: rgba(220, 53, 69, 0.2);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
    }
    50% {
        background: rgba(220, 53, 69, 0.4);
        box-shadow: 0 0 0 8px rgba(220, 53, 69, 0);
    }
    100% {
        background: rgba(220, 53, 69, 0.2);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Performance optimizations for smooth animations */
.hero-section {
    transform: translateZ(0); /* Create new stacking context for better performance */
}

.hero-bg-image {
    backface-visibility: hidden; /* Prevent flickering during animations */
    perspective: 1000px; /* Enable 3D acceleration */
}

.search-section {
    transform: translateZ(0); /* Create new stacking context for better performance */
}

.search-bg-image {
    backface-visibility: hidden; /* Prevent flickering during animations */
    perspective: 1000px; /* Enable 3D acceleration */
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Header Scroll Effect */
.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(6px);
}

/* Scroll to Top Button */
#scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: none;
    z-index: 1010;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

@media (max-width: 768px) {
    #scroll-to-top {
        bottom: 100px; /* Position above mobile contact bar */
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

#scroll-to-top:hover {
    background: #c82333;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

/* Loading States */
.loading {
    position: relative;
    color: transparent !important;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Content Sections */
.content-section {
    padding: 60px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 40px;
    color: #666;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Exclusivity Section */
.exclusivity-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.exclusivity-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 500px;
}

.exclusivity-left {
    padding-right: 40px;
}

.exclusivity-mini-payoff {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #dc3545;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.exclusivity-title {
    font-size: 2.8rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 25px;
    color: #333;
    font-family: 'Open Sans', sans-serif;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.exclusivity-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 35px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Brand Highlight with Shine Animation - Updated to use Centraal Exclusief styling */
.brand-highlight {
    color: #dc3545 !important;
    font-weight: 700 !important;
    position: relative;
    display: inline;
    text-transform: uppercase;
    letter-spacing: 1px;
    /* Fallback for browsers that don't support background-clip: text */
    background: #dc3545;
    /* Modern browsers with whoosh effect */
    background: #dc3545 -webkit-gradient(linear, left top, right top, from(#dc3545), to(#dc3545), color-stop(0.5, #fff)) 0 0 no-repeat;
    background-image: -webkit-linear-gradient(-40deg, transparent 0%, transparent 35%, rgba(255,255,255,0.9) 50%, transparent 65%, transparent 100%);
    background-size: 400px;
    -webkit-background-size: 400px;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0px 0px rgba(220, 53, 69, 0.5);
    -webkit-animation: centraalExclusiefWhoosh 3s ease-in-out infinite;
    animation: centraalExclusiefWhoosh 3s ease-in-out infinite;
}

.brand-highlight:hover {
    -webkit-animation: brandShineHover 6s ease-in-out infinite;
    animation: brandShineHover 6s ease-in-out infinite;
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (-webkit-background-clip: text) {
    .brand-highlight {
        color: #dc3545 !important;
        -webkit-text-fill-color: #dc3545 !important;
        background: none !important;
        font-weight: 700 !important;
        text-shadow: 0 0 10px rgba(220, 53, 69, 0.3);
        animation: none !important;
    }

    .nav-menu a {
        color: #fff;
        -webkit-text-fill-color: #fff;
        background: none;
    }

    .nav-menu a:hover {
        color: #dc3545;
        -webkit-text-fill-color: #dc3545;
    }
}

@keyframes brandShine {
    0% {
        background-position: -300px;
    }
    15% {
        background-position: -300px;
    }
    25% {
        background-position: -150px;
    }
    35% {
        background-position: 0px;
    }
    45% {
        background-position: 150px;
    }
    55% {
        background-position: 300px;
    }
    65% {
        background-position: 300px;
    }
    100% {
        background-position: 300px;
    }
}

/* Webkit specific keyframes for better browser support */
@-webkit-keyframes brandShine {
    0% {
        background-position: -300px;
    }
    15% {
        background-position: -300px;
    }
    25% {
        background-position: -150px;
    }
    35% {
        background-position: 0px;
    }
    45% {
        background-position: 150px;
    }
    55% {
        background-position: 300px;
    }
    65% {
        background-position: 300px;
    }
    100% {
        background-position: 300px;
    }
}

/* Hover animation - same effect but continuous */
@keyframes brandShineHover {
    0% {
        background-position: -300px;
    }
    15% {
        background-position: -300px;
    }
    25% {
        background-position: -150px;
    }
    35% {
        background-position: 0px;
    }
    45% {
        background-position: 150px;
    }
    55% {
        background-position: 300px;
    }
    65% {
        background-position: 300px;
    }
    100% {
        background-position: 300px;
    }
}

@-webkit-keyframes brandShineHover {
    0% {
        background-position: -300px;
    }
    15% {
        background-position: -300px;
    }
    25% {
        background-position: -150px;
    }
    35% {
        background-position: 0px;
    }
    45% {
        background-position: 150px;
    }
    55% {
        background-position: 300px;
    }
    65% {
        background-position: 300px;
    }
    100% {
        background-position: 300px;
    }
}

/* Menu shine effect - same as brand highlight */
@keyframes menuShine {
    0% {
        background-position: -300px;
    }
    15% {
        background-position: -300px;
    }
    25% {
        background-position: -150px;
    }
    35% {
        background-position: 0px;
    }
    45% {
        background-position: 150px;
    }
    55% {
        background-position: 300px;
    }
    65% {
        background-position: 300px;
    }
    100% {
        background-position: 300px;
    }
}

@-webkit-keyframes menuShine {
    0% {
        background-position: -300px;
    }
    15% {
        background-position: -300px;
    }
    25% {
        background-position: -150px;
    }
    35% {
        background-position: 0px;
    }
    45% {
        background-position: 150px;
    }
    55% {
        background-position: 300px;
    }
    65% {
        background-position: 300px;
    }
    100% {
        background-position: 300px;
    }
}

/* Masonry Gallery */
.masonry-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 15px;
    height: 400px;
    width: 100%;
}

.masonry-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.masonry-item:hover img {
    transform: scale(1.05);
}

/* Masonry Layout Positioning */
.masonry-item-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.masonry-item-2 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.masonry-item-3 {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
}

.masonry-item-4 {
    grid-column: 2 / 3;
    grid-row: 2 / 4;
}

.masonry-item-5 {
    grid-column: 1 / 2;
    grid-row: 3 / 5;
}

/* Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Prevent body scroll when lightbox is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: -50px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 15px 20px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}





.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #dc3545;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
    color: #dc3545;
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

/* Occasions Section */
.occasions-section {
    padding: 75px 20px;
    background: #f8f9fa;
    overflow: hidden; /* Hide cards that slide from bottom */
    position: relative;
}

.occasions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
    overflow: hidden; /* Hide cards that start below viewport */
}

/* Occasion Card */
.occasion-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    border-bottom: 3px solid #dc2626;
}



/* New Simplified Slide-up Animation */
.occasion-slide-up {
    transform: translateY(50px);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.occasion-slide-up.animate-in {
    transform: translateY(0);
    opacity: 1;
}

/* Ensure grid stability during animations */
.occasions-grid {
    min-height: 400px;
}

/* Loading state styling */
.loading-occasions {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 1.1rem;
    color: #666;
}

.occasion-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* Image Container with Hover Effect */
.occasion-image-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
}

.occasion-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.occasion-image-hover {
    opacity: 0;
}

.occasion-card:hover .occasion-image-primary {
    opacity: 0;
}

.occasion-card:hover .occasion-image-hover {
    opacity: 1;
}

/* Occasion Details */
.occasion-details {
    padding: 20px;
}

.occasion-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #000;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.occasion-specs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    color: #666;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    border: 1px solid rgba(220, 38, 38, 0.1);
    border-radius: 6px;
    padding: 12px 15px;
    width: 100%;
    box-sizing: border-box;
}

.spec-item {
    font-weight: 500;
    font-size: 1rem;
}

.spec-price {
    color: #dc2626;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Animation for scroll-triggered elements */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Legacy Car Listings (for archive pages) */
.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.car-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    border-bottom: 3px solid #dc2626;
}

.car-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.car-image {
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* 4:3 aspect ratio zoals occasion cards */
    object-fit: cover;
    position: relative;
}

.car-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.car-details {
    padding: 20px;
}

.car-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 18px;
    line-height: 1.4;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.car-specs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.car-specs .spec-item {
    font-weight: 500;
}

.car-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #dc3545;
    text-align: right;
}

/* Pagination */
.pagination {
    text-align: center;
    margin: 50px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 12px 18px;
    margin: 0 8px;
    text-decoration: none;
    color: #333;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 45px;
    text-align: center;
}

.pagination a:hover {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.pagination .current {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Search Section */
.search-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 75px 20px;
}

.search-background {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    z-index: 1;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    overflow: hidden;
}

.search-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.2);
    animation: subtleZoom 20s ease-in-out infinite alternate;
    will-change: transform;
}

.search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.7) 100%);
    z-index: 2;
}

.search-section .container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.search-content {
    display: flex;
    align-items: center;
    height: 100%;
    color: #fff;
    min-height: 70vh;
}

.search-left {
    flex: 0 0 400px;
    max-width: 400px;
    padding: 60px 60px 60px 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 70vh;
    text-align: left;
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInFromLeft 1s ease-out 0.3s both;
}

.search-glass-overlay {
    position: absolute;
    top: 0;
    left: -20px;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    border-radius: 0;
    border: none;
    z-index: -1;
}

.search-section .section-title {
    color: #fff;
    margin-bottom: 25px;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: left;
}

.search-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: left;
}

.search-tagline {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 35px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
}

.search-cta {
    display: inline-block;
    background: #dc3545;
    color: #fff;
    padding: 18px 35px;
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.search-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.search-cta:hover::before {
    left: 100%;
}

.search-cta:hover {
    background: #b02a37;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.search-right {
    flex: 1;
    /* Right side is for the car image - no content needed */
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: #fff;
    padding: 60px 0 30px;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc3545, #e74c3c, #dc3545);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    padding: 20px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #dc3545;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    line-height: 1.8;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #dc3545;
}

.footer-section img {
    filter: brightness(0.8);
    transition: filter 0.3s ease;
}

.footer-section img:hover {
    filter: brightness(1);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #999;
}

.footer-bottom a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #dc3545;
}

/* New Footer Styles */
.footer-logo-section {
    max-width: 350px;
}

.footer-logo {
    max-height: 60px;
    width: auto;
    margin-bottom: 20px;
    display: block;
}

.footer-intro {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ccc;
    margin: 0;
}

.footer-occasions {
    max-width: 400px;
}

.footer-occasions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-occasion-item {
    border-bottom: 1px solid #444;
    padding-bottom: 15px;
}

.footer-occasion-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.footer-occasion-link {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.footer-occasion-link:hover {
    color: #dc3545;
}

.footer-occasion-image {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
}

.footer-occasion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-occasion-details {
    flex: 1;
    min-width: 0;
}

.footer-occasion-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.footer-occasion-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2px;
}

.footer-occasion-year {
    font-size: 0.8rem;
    color: #999;
}

.footer-occasion-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: #dc3545;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #999;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-separator {
    color: #666;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    color: #ccc;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-socials a:hover {
    color: #dc3545;
}

/* Centraal Exclusief Brand Styling - Always Red, Bold, with Whoosh Effect */
.centraal-exclusief-brand {
    color: #dc3545 !important;
    font-weight: 700 !important;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    /* Whoosh effect setup */
    background: #dc3545 -webkit-gradient(linear, left top, right top, from(#dc3545), to(#dc3545), color-stop(0.5, #fff)) 0 0 no-repeat;
    background-image: -webkit-linear-gradient(-40deg, transparent 0%, transparent 35%, rgba(255,255,255,0.9) 50%, transparent 65%, transparent 100%);
    background-size: 400px;
    -webkit-background-size: 400px;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: centraalExclusiefWhoosh 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.centraal-exclusief-brand:hover {
    animation: centraalExclusiefWhooshFast 1.5s ease-in-out infinite;
    text-shadow: 0 0 15px rgba(220, 53, 69, 0.5);
}

/* Whoosh animation keyframes */
@keyframes centraalExclusiefWhoosh {
    0% {
        background-position: -400px;
    }
    20% {
        background-position: -400px;
    }
    40% {
        background-position: -200px;
    }
    60% {
        background-position: 0px;
    }
    80% {
        background-position: 200px;
    }
    100% {
        background-position: 400px;
    }
}

@-webkit-keyframes centraalExclusiefWhoosh {
    0% {
        background-position: -400px;
    }
    20% {
        background-position: -400px;
    }
    40% {
        background-position: -200px;
    }
    60% {
        background-position: 0px;
    }
    80% {
        background-position: 200px;
    }
    100% {
        background-position: 400px;
    }
}

/* Faster whoosh animation for hover */
@keyframes centraalExclusiefWhooshFast {
    0% {
        background-position: -400px;
    }
    25% {
        background-position: -200px;
    }
    50% {
        background-position: 0px;
    }
    75% {
        background-position: 200px;
    }
    100% {
        background-position: 400px;
    }
}

@-webkit-keyframes centraalExclusiefWhooshFast {
    0% {
        background-position: -400px;
    }
    25% {
        background-position: -200px;
    }
    50% {
        background-position: 0px;
    }
    75% {
        background-position: 200px;
    }
    100% {
        background-position: 400px;
    }
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (-webkit-background-clip: text) {
    .centraal-exclusief-brand {
        color: #dc3545 !important;
        -webkit-text-fill-color: #dc3545 !important;
        background: none !important;
        font-weight: 700 !important;
        text-shadow: 0 0 10px rgba(220, 53, 69, 0.3);
        animation: none !important;
    }

    .centraal-exclusief-brand:hover {
        text-shadow: 0 0 20px rgba(220, 53, 69, 0.6);
        transform: scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .occasions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .car-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    /* Tablet adjustments handled by main rules */

    .social-icons a {
        width: 42px;
        height: 42px;
        font-size: 19px;
    }

    /* Footer tablet adjustments */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-logo-section {
        grid-column: 1 / -1;
        text-align: center;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    /* Add bottom padding to body to account for fixed contact bar */
    body {
        padding-bottom: 65px;
    }

    .hero-section {
        height: 80vh;
        min-height: 500px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 40px 0;
    }

    .hero-left {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-divider {
        width: 80px;
        height: 4px;
        margin: 20px auto;
    }

    .hero-right {
        padding-left: 0;
    }

    .hero-subtitle {
        font-size: 1.8rem;
    }

    /* Mobile styling handled by main rules */

    .social-icons a {
        width: 45px;
        height: 45px;
        font-size: 17px;
        margin: 0;
        background: rgba(255, 255, 255, 0.08);
    }

    .mobile-menu-button {
        top: 15px;
        left: 15px;
    }

    .menu-toggle {
        width: 45px;
        height: 45px;
    }

    .nav-overlay {
        width: 300px;
    }

    .nav-overlay::before {
        left: 300px;
        width: calc(100vw - 300px);
    }

    .nav-content {
        padding: 80px 30px 30px;
    }

    .nav-menu a {
        font-size: 1.1rem;
        padding: 18px 0;
    }

    .logo img {
        max-height: 60px;
    }

    .occasions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .occasion-specs {
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        padding: 10px 12px;
        width: 100%;
        text-align: center;
    }

    .occasion-specs .spec-item {
        font-size: 0.9rem;
        flex: 1;
        text-align: center;
    }

    .car-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .car-specs {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-logo-section {
        max-width: 100%;
    }

    .footer-occasions {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .content-section {
        padding: 50px 15px;
    }

    .occasions-section {
        padding: 50px 15px;
    }

    .hero-section {
        padding: 50px 15px;
    }

    .search-section {
        height: 60vh;
        min-height: 450px;
        padding: 50px 15px;
    }

    .search-content {
        flex-direction: column;
        text-align: left;
        padding: 40px 0;
        min-height: 60vh;
    }

    .search-left {
        flex: none;
        max-width: 100%;
        padding: 40px 20px 40px 0;
        margin-bottom: 30px;
        width: 100%;
        min-height: 60vh;
        text-align: left;
    }

    .search-glass-overlay {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    .search-section .section-title {
        font-size: 2rem;
    }

    .search-section .section-subtitle {
        font-size: 1.1rem;
    }

    /* Exclusivity Section Responsive */
    .exclusivity-section {
        padding: 60px 0;
    }

    .exclusivity-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .exclusivity-left {
        padding-right: 0;
        text-align: center;
    }

    .exclusivity-title {
        font-size: 2.2rem;
    }

    /* Masonry Gallery Responsive */
    .masonry-gallery {
        height: 300px;
        gap: 10px;
    }

    .masonry-item {
        border-radius: 10px;
    }

    /* Lightbox responsive */
    .lightbox-overlay {
        padding: 20px;
        -webkit-overflow-scrolling: touch;
    }

    .lightbox-content {
        max-width: 100%;
        max-height: 100%;
        transform: none;
    }

    /* Prevent zoom on mobile */
    body.menu-open {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        overflow: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 50%;
    }

    .lightbox-nav {
        font-size: 1.5rem;
        padding: 12px 15px;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 50%;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-section {
        height: 70vh;
        min-height: 450px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-cta {
        padding: 12px 25px;
        font-size: 0.8rem;
    }

    .nav-overlay {
        width: 280px;
    }

    .nav-overlay::before {
        left: 280px;
        width: calc(100vw - 280px);
    }

    .nav-content {
        padding: 70px 25px 25px;
    }

    .nav-menu a {
        font-size: 1rem;
        padding: 16px 0;
    }

    .logo img {
        max-height: 50px;
    }

    .content-section {
        padding: 40px 10px;
    }

    .occasions-section {
        padding: 40px 10px;
    }

    .hero-section {
        padding: 40px 10px;
    }

    .search-section {
        height: 50vh;
        min-height: 400px;
        padding: 40px 10px;
    }

    .search-content {
        min-height: 50vh;
    }

    .search-left {
        min-height: 50vh;
        padding: 30px 15px 30px 0;
        max-width: 100%;
    }

    .search-section .section-title {
        font-size: 1.8rem;
    }

    .search-section .section-subtitle {
        font-size: 1rem;
    }

    .search-cta {
        padding: 15px 30px;
        font-size: 1rem;
    }

    .cta-button {
        padding: 15px 25px;
        font-size: 1rem;
    }

    .car-details {
        padding: 20px;
    }

    .car-title {
        font-size: 1rem;
    }

    .car-price {
        font-size: 1.2rem;
    }

    .pagination a,
    .pagination span {
        padding: 10px 12px;
        margin: 0 3px;
        font-size: 0.9rem;
    }

    /* Mobile Exclusivity Section */
    .exclusivity-section {
        padding: 40px 0;
    }

    .exclusivity-title {
        font-size: 1.8rem;
    }

    .exclusivity-text {
        font-size: 1rem;
    }

    /* Mobile Masonry Gallery */
    .masonry-gallery {
        height: 250px;
        gap: 8px;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }

    .masonry-item {
        border-radius: 8px;
    }

    /* Simplified mobile layout */
    .masonry-item-1 {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }

    .masonry-item-2 {
        grid-column: 2 / 3;
        grid-row: 1 / 3;
    }

    .masonry-item-3 {
        grid-column: 1 / 2;
        grid-row: 2 / 4;
    }

    .masonry-item-4 {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
    }

    .masonry-item-5 {
        display: none; /* Hide 5th image on mobile for cleaner layout */
    }

    /* Mobile Lightbox */
    .lightbox-overlay {
        padding: 10px;
    }

    .lightbox-close {
        top: 5px;
        right: 5px;
        font-size: 1.2rem;
        width: 30px;
        height: 30px;
        background: rgba(0, 0, 0, 0.8);
        border-radius: 50%;
    }

    .lightbox-nav {
        font-size: 1.2rem;
        padding: 8px 12px;
        background: rgba(0, 0, 0, 0.8);
        border-radius: 50%;
    }

    .lightbox-prev {
        left: 5px;
    }

    .lightbox-next {
        right: 5px;
    }

    /* Small mobile styling handled by main rules */

    .social-icons a {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .footer-content {
        gap: 25px;
    }

    .footer-section {
        padding: 15px;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
    }

    .footer-separator {
        display: none;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    body {
        padding-bottom: 55px; /* Reduce padding for landscape */
    }

    /* Landscape styling handled by main rules */

    .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .social-icons a {
        border-width: 0.5px;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        /* iOS Safari handled by main rules */

        body {
            /* Adjust body padding for iOS safe area */
            padding-bottom: calc(65px + env(safe-area-inset-bottom, 0));
        }
    }
}

/* All positioning handled by main rules above */
