/* =====================================================
   KOUINI CARAVANE - Premium Design System
   Inspired by Challenger Camping Cars (https://www.challenger-camping-cars.fr/)
   ===================================================== */

/* ===== GLOBAL VARIABLES ===== */
:root {
    --primary-color: #E30613;          /* Challenger crimson red */
    --primary-hover: #B7050E;          /* Darker red for hover states */
    --dark-bg: #1A1A1A;                /* Deep charcoal */
    --dark-accent: #222222;            /* Secondary dark */
    --light-bg: #FAF9F8;               /* Warm ultra-light background */
    --white: #FFFFFF;
    
    --text-dark: #1A1A1A;              /* Charcoal body text */
    --text-light: #5A5A5A;             /* Medium grey for descriptions */
    --text-muted: #8F8F8F;             /* Light grey for small metadata */
    
    --border-color: #E2E0DD;           /* Subtle layout borders */
    
    --font-headings: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    --transition-default: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* ===== BASE RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--light-bg);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-default);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: var(--dark-bg);
}

.page-header h1,
.page-header h2,
.page-header h3 {
    color: #FFFFFF !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Section Header Layout */
.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-header h2 {
    font-size: 34px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--dark-bg);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
}

.section-subtitle {
    font-family: var(--font-headings);
    font-size: 15px;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-headings);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 28px;
    border-radius: 0; /* Flat, premium angular design */
    border: none;
    cursor: pointer;
    transition: var(--transition-default);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--dark-bg);
    border: 2px solid var(--dark-bg);
}

.btn-secondary:hover {
    background-color: var(--dark-bg);
    color: var(--white);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 11px;
}

.btn-large {
    padding: 18px 40px;
    font-size: 14px;
}

/* ===== TOP BAR ===== */
.top-bar {
    background-color: var(--dark-bg);
    color: var(--white);
    font-family: var(--font-headings);
    font-size: 11px;
    font-weight: 600;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1001;
    position: relative;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 20px;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.top-bar-left a:hover {
    color: var(--primary-color);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.top-bar-right > a {
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

.top-bar-right > a:hover {
    color: var(--primary-color);
}

/* Language selector */
.lang-selector {
    position: relative;
    cursor: pointer;
}

.lang-current {
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    padding: 5px 0;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--dark-accent);
    list-style: none;
    min-width: 70px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-default);
    z-index: 100;
}

.lang-selector:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown li a {
    display: block;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.lang-dropdown li a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    background-color: #4b4a52;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-default);
}

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

/* Logo redesign: modern typo */
.logo a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    line-height: 1;
}

.logo-img {
    height: 52px;
    width: 52px;
    object-fit: contain;
}



.logo-text-img {
    height: 38px !important;
    width: auto !important;
    object-fit: contain;
    display: block;
    margin-left: 2px;
}

/* Helper class for responsive display elements */
.mobile-only {
    display: none !important;
}

.lang-dropdown li a.active-lang {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
}

/* Mobile Menu Toggle Button (hidden on desktop) */
.menu-toggle-lbl {
    display: none;
    font-size: 26px;
    color: var(--white);
    cursor: pointer;
    transition: color 0.3s ease;
}
.menu-toggle-lbl:hover {
    color: var(--primary-color);
}

/* Navigation Menu */
.navbar ul {
    list-style: none;
    display: flex;
    gap: 28px;
    align-items: center;
}

.navbar a {
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 13px;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 10px 0;
}

/* Underline animation */
.navbar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-in-out;
}

.navbar a:hover {
    color: var(--primary-color);
}

.navbar a:hover::after,
.navbar a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.navbar a.active {
    color: var(--primary-color);
}

/* Admin button in navbar */
.navbar a.nav-admin-btn {
    background: linear-gradient(135deg, #1A1A1A, #333333);
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.25s;
}

.navbar a.nav-admin-btn::after { display: none; }

.navbar a.nav-admin-btn:hover,
.navbar a.nav-admin-btn.active {
    background: linear-gradient(135deg, #E30613, #FF4D5A) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(227,6,19,0.4);
    transform: translateY(-1px);
}

.navbar a.nav-admin-btn i { font-size: 13px; }

/* ===== HERO SECTION ===== */
.hero {
    background-color: #000;
    height: calc(90vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: var(--white);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(26, 26, 26, 0.6) 100%);
    pointer-events: none;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 20px;
}

.hero-accent-line {
    width: 4px;
    height: 50px;
    background-color: var(--primary-color);
    margin: 0 auto 20px;
}

.hero h2 {
    font-size: 52px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: #FFFFFF !important;
    line-height: 1.2;
}

.hero h2 span {
    display: block;
    color: #FFFFFF !important;
}

.hero h2 .hero-welcome {
    font-size: 0.6em;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.hero h2 .hero-company {
    font-size: 1em;
    font-weight: 900;
}

.hero p {
    font-family: var(--font-headings);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 40px;
    color: #FFFFFF !important;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Special button inside hero */
.hero .btn-secondary {
    color: var(--white);
    border-color: var(--white);
}

.hero .btn-secondary:hover {
    background-color: var(--white);
    color: var(--dark-bg);
}

/* ===== PAGE HEADER ===== */
.page-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
                      url('../images/page-header-contact.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 90px 0;
    position: relative;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.15), transparent);
    pointer-events: none;
}

/* Page-specific header backgrounds */
.page-header.page-header-contact {
    background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
                      url('../images/page-header-contact.jpg');
}

.page-header.page-header-buy {
    background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
                      url('../images/page-header-buy.jpg');
}

.page-header.page-header-rentals {
    background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
                      url('../images/page-header-rentals.jpg');
}

.page-header.page-header-amenagement {
    background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
                      url('../images/page-header-amenagement.jpg');
}

.page-header h1 {
    font-size: 46px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: -1px;
    color: #FFFFFF;
}

.page-header p {
    font-family: var(--font-headings);
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.95);
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 100px 0;
    background-color: var(--white);
}

.about-lead {
    font-family: var(--font-headings);
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-light);
    text-align: center;
    max-width: 850px;
    margin: 0 auto 60px;
    font-weight: 400;
}

/* Stats System */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat {
    text-align: center;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    padding: 40px 20px;
    transition: var(--transition-default);
}

.stat:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.stat-icon-wrapper {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat h3 {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark-bg);
    margin-bottom: 8px;
}

.stat p {
    font-family: var(--font-headings);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 100px 0;
    background-color: var(--light-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition-default);
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: var(--transition-default);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon-wrapper {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark-bg);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.service-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== FEATURED SECTION ===== */
.featured {
    padding: 90px 0;
    background-color: var(--white);
    text-align: center;
}

.featured-text {
    font-family: var(--font-headings);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 35px;
    color: var(--text-light);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    padding: 100px 0;
    background-color: var(--light-bg);
    border-top: 1px solid var(--border-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.testimonial {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    padding: 50px 40px;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-default);
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.quote-icon {
    font-size: 32px;
    color: rgba(227, 6, 19, 0.15);
    position: absolute;
    top: 30px;
    left: 40px;
}

.testimonial p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 30px;
    font-style: italic;
    position: relative;
    z-index: 2;
}

.testimonial strong {
    font-family: var(--font-headings);
    font-size: 13px;
    font-weight: 700;
    color: var(--dark-bg);
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== CTA SECTION ===== */
.cta {
    background-image: linear-gradient(135deg, rgba(227, 6, 19, 0.85) 0%, rgba(26, 26, 26, 0.95) 100%),
                      url('https://images.unsplash.com/photo-1523987355523-c7b5b0dd90a7?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.cta h2 {
    font-size: 42px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.cta p {
    font-family: var(--font-headings);
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 500;
}

.cta .btn-primary {
    background-color: var(--white);
    color: var(--primary-color);
}

.cta .btn-primary:hover {
    background-color: var(--dark-bg);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ===== CARAVAN CARDS (Rentals & Buy) ===== */
.rentals-section,
.buy-section {
    padding: 90px 0;
}

.caravans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.amen-simple-card {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
    min-height: 320px;
}

.amen-simple-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.18);
}

.amen-simple-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.amen-simple-card:hover img {
    transform: scale(1.05);
}

.amen-simple-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.85) 100%);
    padding: 32px 22px 24px;
}

.amen-simple-card-content h3 {
    color: #fff;
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
}

.amen-simple-card-content p {
    color: #d7d7d7;
    font-size: 14px;
    margin: 8px 0 0;
}

.caravan-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: var(--transition-default);
    position: relative;
}

.caravan-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

/* Card Image area */
.caravan-image {
    position: relative;
    height: 250px;
    background: linear-gradient(135deg, #E6E6E6, #D0D0D0);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

.image-placeholder-icon {
    font-size: 72px;
    color: rgba(26, 26, 26, 0.15);
    transition: var(--transition-default);
}

.caravan-card:hover .image-placeholder-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

/* Badges styling */
.caravan-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    font-family: var(--font-headings);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 14px;
    color: var(--white);
    letter-spacing: 1px;
    z-index: 3;
}

.badge-rental {
    background-color: var(--primary-color);
}

.badge-sale {
    background-color: #2E7D32;
}

.condition-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    font-family: var(--font-headings);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 14px;
    color: var(--white);
    letter-spacing: 1px;
    z-index: 3;
}

.condition-badge.neuf {
    background-color: #2E7D32;
}

.condition-badge.bon {
    background-color: #FF9800;
}

.condition-badge.excellent {
    background-color: #1976D2;
}

/* Card details container */
.caravan-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.caravan-info h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark-bg);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.caravan-info h3 a {
    color: #000000;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.caravan-info h3 a:hover {
    color: var(--primary-color);
}

.caravan-image-link {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.caravan-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.caravan-card:hover .caravan-image img {
    transform: scale(1.08);
}

.caravan-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: var(--transition-default);
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.caravan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.16);
    border-color: transparent;
}

.caravan-image {
    position: relative;
    min-height: 280px;
    background: linear-gradient(135deg, #F3F3F3, #E8E8E8);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.caravan-info h3 {
    font-size: 20px;
    font-weight: 900;
    color: #000000;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.caravan-info h3 a {
    color: #000000;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.caravan-info h3 a:hover {
    color: var(--primary-color);
}

.section-header h2 {
    color: #111111;
}

.brand {
    font-family: var(--font-headings);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand .divider {
    color: var(--border-color);
}

.caravan-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    margin-bottom: 20px;
}

.detail {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail i {
    color: var(--primary-color);
}

.description {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Features checklist */
.features {
    margin-bottom: 25px;
}

.features strong {
    font-family: var(--font-headings);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--dark-bg);
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 12px;
}

.features ul {
    list-style: none;
}

.features li {
    font-size: 13px;
    color: var(--text-light);
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features li i {
    color: var(--primary-color);
    font-size: 11px;
}

/* Footer card area */
.caravan-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.price {
    display: flex;
    flex-direction: column;
}

.amount {
    font-family: var(--font-headings);
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1.1;
}

.period, .currency {
    font-family: var(--font-headings);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
}

.no-results {
    text-align: center;
    padding: 80px 20px;
    border: 2px dashed var(--border-color);
    color: var(--text-light);
}

.no-results i {
    font-size: 48px;
    color: var(--border-color);
    margin-bottom: 15px;
}

/* ===== CUSTOM BUILD SECTION ===== */
.custom-build {
    padding: 100px 0;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
}

.build-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.build-option {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    padding: 50px 30px;
    text-align: center;
    transition: var(--transition-default);
}

.build-option:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.build-icon-wrapper {
    font-size: 38px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.build-option h3 {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--dark-bg);
    margin-bottom: 15px;
}

.build-option p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== FINANCING SECTION ===== */
.financing {
    padding: 100px 0;
    background-color: var(--light-bg);
    border-top: 1px solid var(--border-color);
}

.financing-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.option {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    padding: 50px 30px;
    text-align: center;
    transition: var(--transition-default);
}

.option:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.option-icon-wrapper {
    font-size: 38px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.option h3 {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--dark-bg);
    margin-bottom: 15px;
}

.option p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== REASONS GRID (Rentals Page) ===== */
.why-section {
    padding: 100px 0;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.reason {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    padding: 45px 25px;
    text-align: center;
    transition: var(--transition-default);
}

.reason:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.reason-icon-wrapper {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.reason h3 {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--dark-bg);
    margin-bottom: 12px;
}

.reason p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 100px 0;
    background-color: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
}

/* Contact Form Container */
.contact-form-container h2,
.contact-info-container h2 {
    font-size: 26px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--dark-bg);
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-headings);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

/* Modern inputs with FontAwesome icons */
.input-icon-wrapper {
    position: relative;
    width: 100%;
}

.input-icon-wrapper i {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition-default);
}

.input-icon-wrapper input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border: 1px solid var(--border-color);
    font-family: var(--font-body);
    font-size: 14px;
    background-color: var(--light-bg);
    color: var(--text-dark);
    transition: var(--transition-default);
    border-radius: 0;
}

.input-icon-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.08);
}

.input-icon-wrapper input:focus + i {
    color: var(--primary-color);
}

/* Textarea icon adjustments */
.textarea-wrapper i {
    top: 20px;
    transform: none;
}

.textarea-wrapper textarea {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border: 1px solid var(--border-color);
    font-family: var(--font-body);
    font-size: 14px;
    background-color: var(--light-bg);
    color: var(--text-dark);
    transition: var(--transition-default);
    resize: vertical;
    border-radius: 0;
}

.textarea-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.08);
}

.textarea-wrapper textarea:focus + i {
    color: var(--primary-color);
}

/* Alerts and notifications */
.alert {
    padding: 15px 20px;
    font-family: var(--font-headings);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background-color: #E8F5E9;
    color: #2E7D32;
    border-left: 4px solid #4CAF50;
}

.alert-error {
    background-color: #FFEBEE;
    color: #C62828;
    border-left: 4px solid #F44336;
}

/* Contact Info Area */
.contact-info-container {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    padding: 40px;
}

.info-item {
    margin-bottom: 35px;
}

.info-item h3 {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--dark-bg);
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item h3 i {
    color: var(--primary-color);
    font-size: 16px;
}

.info-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.info-item p a:hover {
    color: var(--primary-color);
}

.info-item ul {
    list-style: none;
}

.info-item li {
    font-size: 14px;
    color: var(--text-light);
    padding: 5px 0;
    display: flex;
    justify-content: space-between;
}

.info-item li span {
    font-weight: 500;
}

.info-item li strong {
    color: var(--dark-bg);
}

/* Social media grid list */
.social-links-container {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.social-links-container h3 {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--dark-bg);
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.social-links-grid .social-link {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    padding: 12px 10px;
    text-align: center;
    font-family: var(--font-headings);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.social-links-grid .social-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* ===== SOCIAL CONTACT BUTTONS ===== */
.social-contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-family: var(--font-headings);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn i {
    font-size: 18px;
}

/* WhatsApp */
.whatsapp-btn {
    background-color: #25D366;
    color: #fff;
}
.whatsapp-btn:hover {
    background-color: #1DA851;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Instagram */
.instagram-btn {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
}
.instagram-btn:hover {
    opacity: 0.88;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 39, 67, 0.4);
}

/* Facebook */
.facebook-btn {
    background-color: #1877F2;
    color: #fff;
}
.facebook-btn:hover {
    background-color: #0a5ecb;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
}

/* ===== MAP SECTION ===== */
.map-section {
    padding: 100px 0;
    background-color: var(--light-bg);
    border-top: 1px solid var(--border-color);
}

.map-container {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    background-color: var(--white);
    padding: 10px;
}

.map-container iframe {
    display: block;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 80px 0 0;
    font-family: var(--font-body);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-section h3 {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background-color: var(--primary-color);
}

/* About column special styling */
.footer-about h3::after {
    display: none;
}

.footer-about h3 {
    padding-bottom: 0;
    margin-bottom: 20px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* Social links in footer */
.social-links-footer {
    display: flex;
    gap: 10px;
}

.social-links-footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    transition: var(--transition-default);
}

.social-links-footer a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Links lists */
.footer-section ul {
    list-style: none;
}

.footer-section li {
    padding: 8px 0;
}

.footer-section li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-section li a i {
    font-size: 10px;
    color: var(--primary-color);
    transition: var(--transition-default);
}

.footer-section li a:hover {
    color: var(--white);
}

.footer-section li a:hover i {
    transform: translateX(4px);
}

/* Contact section details */
.footer-contact p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contact p i {
    color: var(--primary-color);
    font-size: 15px;
}

.footer-contact p a {
    color: inherit;
}

.footer-contact p a:hover {
    color: var(--primary-color);
}

/* Newsletter column */
.footer-newsletter p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.newsletter-form .newsletter-input-group {
    display: flex;
    width: 100%;
}

.newsletter-form input {
    flex-grow: 1;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 12px 15px;
    font-family: var(--font-body);
    font-size: 13px;
    border-radius: 0;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.08);
}

.newsletter-form button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 20px;
    cursor: pointer;
    transition: var(--transition-default);
    border-radius: 0;
}

.newsletter-form button:hover {
    background-color: var(--primary-hover);
}

/* Footer Bottom Bar */
.footer-bottom {
    padding: 30px 0;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

/* ===== UTILITY STYLES ===== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }

/* Custom Webkit scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background-color: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border: 2px solid var(--dark-bg);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-hover);
}

/* ===== MOBILE MENU TOGGLE BUTTON ===== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--dark-bg);
    cursor: pointer;
    padding: 5px 10px;
    transition: var(--transition-default);
    line-height: 1;
}

.menu-toggle:hover {
    color: var(--primary-color);
}

/* ===== AMENAGEMENT PAGE STYLES ===== */
.amenagement-selectors {
    padding: 10px 0 85px;
    background-color: var(--white);
}

.selectors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 15px;
}

.selector-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-default);
    aspect-ratio: 16/10;
}

.selector-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(227, 6, 19, 0.3);
}

.selector-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.selector-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.selector-card:hover .selector-image img {
    transform: scale(1.06);
}

.selector-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.95) 0%, rgba(26, 26, 26, 0.3) 60%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    align-items: flex-end;
    padding: 40px;
    transition: var(--transition-default);
}

.selector-card:hover .selector-overlay {
    background: linear-gradient(to top, rgba(26, 26, 26, 0.98) 0%, rgba(26, 26, 26, 0.4) 60%, rgba(0, 0, 0, 0.05) 100%);
}

.selector-content {
    color: var(--white);
}

/* =====================================================
   PRODUCT DETAIL MODAL
   ===================================================== */

.product-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    align-items: flex-start;
    padding-top: 80px;
    background: rgba(0, 0, 0, 0.5);
}

.product-detail-modal.open {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    z-index: 10000;
    background: var(--dark-color);
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
    max-width: 1100px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(227, 6, 19, 0.8);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.modal-gallery {
    position: relative;
}

.gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-count-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
}

.gallery-thumbs .thumb {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.gallery-thumbs .thumb:hover {
    opacity: 1;
}

.gallery-thumbs .thumb.active {
    border-color: var(--primary-color);
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.3);
}

.gallery-controls {
    position: relative;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(227, 6, 19, 0.9);
    border: none;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.nav-btn.prev {
    left: -60px;
}

.nav-btn.next {
    right: -60px;
}

.nav-btn:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.modal-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-header {
    margin-bottom: 20px;
}

.info-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-badge {
    display: inline-block;
    background: rgba(227, 6, 19, 0.2);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(227, 6, 19, 0.4);
}

.info-description {
    margin-bottom: 30px;
}

.info-description p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    white-space: pre-line;
}

.info-price {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.info-actions {
    display: flex;
    gap: 15px;
}

.info-actions .btn {
    flex: 1;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
}

/* Badge for image count on product cards */
.product-image-count-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.admin-item-image-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* Responsive design for modal */
@media (max-width: 1024px) {
    .modal-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px;
        max-width: 90%;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .nav-btn.prev {
        left: 10px;
    }
    
    .nav-btn.next {
        right: 10px;
    }
    
    .info-header h2 {
        font-size: 24px;
    }
    
    .price-value {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .product-detail-modal {
        padding-top: 20px;
    }
    
    .modal-content {
        padding: 20px;
        gap: 20px;
        width: 95%;
        max-height: 90vh;
        border-radius: 8px;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .gallery-thumbs {
        gap: 6px;
    }
    
    .gallery-thumbs .thumb {
        width: 60px;
        height: 60px;
    }
    
    .info-header h2 {
        font-size: 20px;
    }
    
    .info-description p {
        font-size: 14px;
    }
    
    .price-value {
        font-size: 24px;
    }
    
    .info-actions {
        flex-direction: column;
    }
}

/* =====================================================
   PRODUCT DETAIL PAGE
   ===================================================== */

.product-detail-container {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 35px;
    margin: 40px auto;
    max-width: 1100px;
}

.detail-gallery {
    position: relative;
    display: flex;
    flex-direction: column;
}

.gallery-main {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    border: 1px solid rgba(227, 6, 19, 0.1);
}

.gallery-main:hover {
    box-shadow: 0 15px 50px rgba(227, 6, 19, 0.4);
    transform: translateY(-2px);
    border-color: rgba(227, 6, 19, 0.3);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.3s ease;
    display: block;
}

.image-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(227, 6, 19, 0.85);
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.2);
}

.zoom-hint {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(227, 6, 19, 0.85) !important;
    color: white !important;
    padding: 8px 14px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s ease !important;
}

.gallery-main:hover .zoom-hint {
    background: rgba(227, 6, 19, 1) !important;
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.3) !important;
}
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px 0;
    margin-bottom: 20px;
    max-width: 400px;
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(227, 6, 19, 0.6);
    border-radius: 3px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.thumbnail:hover {
    opacity: 0.85;
    transform: scale(1.08);
    border-color: rgba(227, 6, 19, 0.5);
}

.thumbnail.active {
    border-color: var(--primary-color);
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.15);
}

.gallery-nav {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 16px;
    gap: 15px;
    max-width: 400px;
}

.nav-btn {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.85), rgba(227, 6, 19, 0.95));
    border: 1px solid rgba(227, 6, 19, 0.3);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.2);
}

.nav-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), rgba(227, 6, 19, 1));
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(227, 6, 19, 0.4);
    border-color: rgba(227, 6, 19, 0.5);
}

.nav-btn.prev-btn,
.nav-btn.next-btn {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
}

.detail-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px 0;
}

.product-header {
    margin-bottom: 25px;
}

.product-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.detail-badge {
    display: inline-block;
    background: rgba(227, 6, 19, 0.2);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(227, 6, 19, 0.4);
    margin-top: 12px;
}

.product-price {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.product-price .price-value {
    font-size: 38px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.product-description {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 40px;
    white-space: pre-line;
}

.product-actions {
    margin-bottom: 40px;
    display: flex;
    gap: 15px;
}

.product-actions .btn {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    flex: 1;
}

.product-meta {
    display: flex;
    gap: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 14px;
}

.meta-item i {
    color: var(--primary-color);
    font-size: 18px;
}

/* Responsive Product Detail Page */
@media (max-width: 1200px) {
    .product-detail-container {
        gap: 30px;
        max-width: 100%;
    }
}

@media (max-width: 1024px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 35px;
        max-width: 100%;
    }
    
    .gallery-main {
        max-width: 100%;
        aspect-ratio: 16/10;
    }
    
    .gallery-thumbnails {
        max-width: 100%;
    }
    
    .gallery-nav {
        max-width: 100%;
    }
    
    .product-header h1 {
        font-size: 30px;
    }
    
    .product-price .price-value {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 25px;
        margin: 30px auto;
    }
    
    .gallery-main {
        max-width: 100%;
        aspect-ratio: 16/10;
    }
    
    .gallery-thumbnails {
        max-width: 100%;
        gap: 6px;
    }
    
    .thumbnail {
        width: 65px;
        height: 65px;
    }
    
    .gallery-nav {
        max-width: 100%;
        gap: 12px;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .product-header h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .detail-badge {
        display: block;
        margin-top: 10px;
        font-size: 12px;
    }
    
    .product-price {
        margin-bottom: 25px;
        padding-bottom: 20px;
    }
    
    .product-price .price-value {
        font-size: 32px;
    }
    
    .product-description {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .product-actions {
        flex-direction: column;
        margin-bottom: 25px;
        gap: 12px;
    }
    
    .product-actions .btn {
        width: 100%;
        padding: 13px 20px;
        font-size: 14px;
    }
    
    .product-meta {
        flex-direction: column;
        gap: 12px;
        padding-top: 20px;
    }
}

.selector-tag {
    font-family: var(--font-headings);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 8px;
}

.selector-content h3 {
    font-size: 26px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    color: var(--white);
}

.selector-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 15px;
}

.selector-btn {
    font-family: var(--font-headings);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 4px;
    transition: var(--transition-default);
    color: var(--white);
}

.selector-card:hover .selector-btn {
    color: var(--primary-color);
    gap: 12px;
}

.category-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 55px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 25px;
}

.category-header-row h2 {
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--dark-bg);
    margin-bottom: 8px;
    position: relative;
    padding-bottom: 0;
}

.category-header-row h2::after {
    display: none;
}

@media (max-width: 900px) {
    .category-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

.amenagement-intro {
    padding: 80px 0 30px;
    background-color: var(--white);
}

.intro-content {
    max-width: 850px;
    margin: 0 auto;
}

.category-section {
    padding: 90px 0;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
}

.category-light {
    background-color: var(--light-bg);
}

.subcategories-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Subcategory Cards */
.subcategory-card {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    padding: 50px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-default);
}

.subcategory-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(227, 6, 19, 0.15);
}

.subcategory-card.reverse {
    grid-template-columns: 0.9fr 1.1fr;
}

.subcategory-card.reverse .subcategory-info {
    grid-column: 2;
}

.subcategory-card.reverse .subcategory-images {
    grid-column: 1;
    grid-row: 1;
}

.subcategory-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.subcategory-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-headings);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary-color);
    background-color: rgba(227, 6, 19, 0.06);
    padding: 6px 14px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.subcategory-card h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark-bg);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.subcategory-desc {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.7;
}

.features-list {
    list-style: none;
    width: 100%;
}

.features-list li {
    font-size: 14px;
    color: var(--text-light);
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li i {
    color: var(--primary-color);
    font-size: 13px;
    margin-top: 3px;
}

/* Image Placeholders Grid */
.subcategory-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

.image-placeholder-box {
    background-color: var(--light-bg);
    border: 2px dashed var(--border-color);
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    transition: var(--transition-default);
    position: relative;
    overflow: hidden;
}

.image-placeholder-box:hover {
    border-color: var(--primary-color);
    background-color: rgba(227, 6, 19, 0.01);
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.placeholder-content i {
    font-size: 32px;
    color: var(--text-muted);
    transition: var(--transition-default);
}

.image-placeholder-box:hover .placeholder-content i {
    color: var(--primary-color);
    transform: scale(1.1) translateY(-2px);
}

.placeholder-title {
    font-family: var(--font-headings);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.placeholder-status {
    font-family: var(--font-headings);
    font-size: 9px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* CTA page styles */
.cta-amenagement {
    background-image: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(227, 6, 19, 0.8) 100%),
                      url('https://images.unsplash.com/photo-1513313778780-9ae4807465f0?auto=format&fit=crop&w=1920&q=80');
}

/* =====================================================
   IMAGE LIGHTBOX
   ===================================================== */

.image-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.image-lightbox.open {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    cursor: pointer;
    z-index: -1;
}

.lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100001;
}

.lightbox-close:hover {
    background: rgba(227, 6, 19, 0.9);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(227, 6, 19, 0.8);
    border: none;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100001;
}

.lightbox-nav:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.15);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100001;
}

/* Responsive lightbox */
@media (max-width: 768px) {
    .lightbox-close {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .lightbox-nav {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .lightbox-prev {
        left: 15px;
    }
    
    .lightbox-next {
        right: 15px;
    }
    
    .lightbox-counter {
        bottom: 20px;
        padding: 10px 16px;
        font-size: 12px;
    }
}

/* =====================================================
   RESPONSIVE PAGES: Buy, Rentals, Amenagement, Detail
   ===================================================== */

/* --- Tablets (max-width: 1024px) --- */
@media (max-width: 1024px) {
    .caravans-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .amenagement-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .build-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Mobile Phones (max-width: 768px) --- */
@media (max-width: 768px) {
    /* Page headers */
    .page-header {
        padding: 60px 0;
    }
    
    .page-header h1 {
        font-size: 28px;
        letter-spacing: -0.5px;
    }
    
    .page-header p {
        font-size: 13px;
        letter-spacing: 1px;
    }
    
    /* Caravans grid - single column on mobile */
    .caravans-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .caravan-card {
        margin: 0;
    }
    
    .caravan-image {
        height: 200px;
    }
    
    /* Caravan info adjustments */
    .caravan-info {
        padding: 15px;
    }
    
    .caravan-info h3 {
        font-size: 16px;
    }
    
    .caravan-info h3 a {
        white-space: normal;
        overflow: visible;
    }
    
    .caravan-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .caravan-footer .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Price display */
    .caravan-footer .price .amount {
        font-size: 18px;
    }
    
    /* Badges */
    .caravan-badge,
    .condition-badge {
        font-size: 9px;
        padding: 3px 8px;
    }
    
    /* Why section (rentals page) */
    .reasons-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .reason {
        padding: 20px;
    }
    
    /* Custom build section (buy page) */
    .build-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .build-option {
        padding: 25px 20px;
    }
    
    /* Amenagement category page */
    .amen-simple-card {
        height: 280px;
    }
    
    .amen-simple-card h3 {
        font-size: 22px;
    }
    
    .amen-simple-card p {
        font-size: 12px;
    }
    
    /* Amenagement detail grid */
    .amenagement-detail-grid {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }
    
    .amenagement-detail-grid > div:first-child {
        order: 2;
    }
    
    .amenagement-detail-grid > div:last-child {
        order: 1;
    }
    
    /* Gallery grid on mobile */
    .amenagement-detail-grid [style*="grid-template-columns"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    /* Section headers */
    .section-header h2 {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 14px;
    }
    
    /* CTA buttons */
    .btn-large {
        padding: 14px 24px;
        font-size: 13px;
    }
    
    /* Description text truncation */
    .caravan-info .description {
        font-size: 13px;
        line-height: 1.6;
    }
}

/* --- Small Mobile Phones (max-width: 480px) --- */
@media (max-width: 480px) {
    .caravan-image {
        height: 180px;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
    
    .caravan-info h3 {
        font-size: 15px;
    }
    
    /* Gallery 2 columns even on small screens */
    .amenagement-detail-grid [style*="grid-template-columns"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* =====================================================
   RESPONSIVE DETAIL PAGE
   ===================================================== */

/* Desktop layout for product detail */
.product-detail-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
}

/* --- Tablets (max-width: 1024px) --- */
@media (max-width: 1024px) {
    .product-detail-container {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .product-detail-container > div:last-child {
        margin-top: 20px;
    }
    
    .sidebar-form {
        max-width: 600px;
        margin: 0 auto;
    }
}

/* --- Mobile Phones (max-width: 768px) --- */
@media (max-width: 768px) {
    /* Product detail container */
    .product-detail-container {
        gap: 25px !important;
        margin: 20px auto !important;
    }
    
    /* Gallery adjustments */
    .product-gallery {
        margin-bottom: 20px;
    }
    
    .gallery-main {
        border-radius: 8px !important;
        margin-bottom: 15px !important;
    }
    
    .gallery-thumbnails {
        gap: 8px !important;
        margin-bottom: 20px !important;
    }
    
    .gallery-thumb {
        width: 60px !important;
        height: 45px !important;
        border-radius: 4px !important;
    }
    
    /* Product info box */
    .detail-info {
        padding: 20px !important;
        border-radius: 8px !important;
    }
    
    .product-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
        margin-bottom: 15px !important;
    }
    
    .product-header h2 {
        font-size: 20px !important;
        line-height: 1.3;
    }
    
    .detail-badge {
        font-size: 10px !important;
        padding: 3px 10px !important;
    }
    
    .product-price {
        margin-bottom: 20px !important;
    }
    
    .price-value {
        font-size: 22px !important;
    }
    
    .detail-info h3 {
        font-size: 13px !important;
        margin-bottom: 10px !important;
    }
    
    .product-description {
        font-size: 14px !important;
        line-height: 1.7 !important;
    }
    
    /* Sidebar form */
    .sidebar-form {
        padding: 20px !important;
        border-radius: 8px !important;
    }
    
    .sidebar-form h3 {
        font-size: 16px !important;
        padding-bottom: 10px !important;
        margin-bottom: 15px !important;
    }
    
    .modal-form-group label {
        font-size: 10px !important;
    }
    
    .modal-form-group input {
        padding: 10px !important;
        font-size: 13px !important;
    }
    
    /* Date inputs grid */
    .sidebar-form form > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
}

/* --- Small Mobile (max-width: 480px) --- */
@media (max-width: 480px) {
    .product-header h2 {
        font-size: 18px !important;
    }
    
    .price-value {
        font-size: 20px !important;
    }
    
    .gallery-thumb {
        width: 50px !important;
        height: 40px !important;
    }
    
    .detail-info,
    .sidebar-form {
        padding: 15px !important;
    }
}




