/* =========================================
   HLP-DIAG HUNGARY AUTO KFT. - REDESIGN
   Premium Light Theme (Decluttered & Breathable)
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  /* Rich Dark Section Palette */
  --bg-cta: linear-gradient(135deg, #162447, #1f4068);
  --bg-footer: #0e1a35;
  
  /* Accent Colors */
  --accent-primary: #2d7dd2; /* Sophisticated blue */
  --accent-secondary: #4a90e2;
  --accent-warm: #e63946;
  --accent-silver: #e2e8f0;
  --accent-gold: #d4a843;
  --success-green: #10b981;
  
  /* Typography Colors */
  --text-primary: #1a1a2e;
  --text-secondary: #555b6e;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: #a0aec0;
  
  /* Shadows - Subtle */
  --shadow-soft: 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.08);
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --max-width: 1200px;
  --section-padding-desktop: 120px;
  --section-padding-mobile: 80px;
  --border-radius: 8px;
  --transition-normal: 0.3s ease;
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* === FORCE LIGHT BACKGROUNDS EVERYWHERE === */
body {
    background-color: #ffffff !important;
    color: #1a1a2e;
    font-family: var(--font-body);
    line-height: 1.8;
    font-weight: 400;
    overflow-x: hidden;
    position: relative;
}

/* Only these specific elements get dark backgrounds: */
.cta-banner { background: var(--bg-cta); }
.footer { background-color: var(--bg-footer); }

/* EVERYTHING ELSE is light: */
section { background-color: #ffffff; color: #1a1a2e; padding: var(--section-padding-desktop) 0; position: relative; z-index: 1; }
section:nth-child(even) { background-color: #f5f7fa; }  /* Alternating light gray */

/* Override dark section class */
.section-dark { background-color: #ffffff; color: #1a1a2e; }

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0; left: 0; width: 0%; height: 3px;
  background: var(--accent-primary);
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 { 
  font-family: var(--font-heading); 
  font-weight: 600; 
  line-height: 1.2; 
  color: var(--text-primary); 
  margin-bottom: 24px;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 48px; }
h3 { font-size: clamp(1.1rem, 2vw, 1.25rem); }

a { color: var(--accent-primary); text-decoration: none; transition: color var(--transition-normal); }
a:hover { color: var(--accent-secondary); }

p { color: var(--text-secondary); margin-bottom: 1.5rem; }

/* Container */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }

/* =========================================
   LOADING SCREEN & TRANSITIONS
   ========================================= */
#loader {
  position: fixed; inset: 0; background: #ffffff; z-index: 10000;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.spinner {
  width: 50px; height: 50px; border: 3px solid #e2e8f0;
  border-top-color: var(--accent-primary); border-radius: 50%;
  animation: spin 1s linear infinite; margin-bottom: 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.page-transition-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: #ffffff; z-index: 9998;
  transform: translateY(-100%); transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}
.page-transition-overlay.active { transform: translateY(0); }

/* =========================================
   NAVIGATION (MINIMALIST DROPDOWN)
   ========================================= */
/* --- NAVBAR BASE (Over dark hero, transparent) --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

/* Even when transparent, add a subtle top gradient so text is always readable */
.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent);
    z-index: -1;
    opacity: 1;
    transition: opacity 0.3s ease;
}
/* Remove the gradient when scrolled (white bg handles visibility) */
.navbar.scrolled::before {
    opacity: 0;
}

.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

.navbar .logo {
    color: #ffffff;               /* White logo on dark hero */
    font-weight: 700;
    font-size: 1.4rem;
    transition: color 0.3s ease;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-decoration: none;
}
.logo-text { font-family: var(--font-heading); font-size: 1.4rem; letter-spacing: 1px; }
.logo-sub { font-family: var(--font-body); font-size: 0.75rem; font-weight: 400; letter-spacing: 0.5px; opacity: 0.8; }

.nav-menu { display: flex; gap: 36px; list-style: none; align-items: center; margin: 0; padding: 0; }

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.85);   /* White links on dark hero */
    transition: color 0.3s ease;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #ffffff;
}

.nav-cta {
    background: var(--accent-primary);
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    transition: background 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}
.nav-cta:hover { background: #1e5ba0; transform: translateY(-2px); }

.hamburger { display: none; cursor: pointer; background: none; border: none; width: 30px; height: 20px; position: relative; z-index: 1001; }
.hamburger span {
    display: block; position: absolute; height: 2px; width: 100%; border-radius: 2px;
    background-color: #ffffff;    /* White hamburger bars */
    transition: background-color 0.3s ease, top 0.3s, transform 0.3s, opacity 0.3s;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }
.hamburger.active span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* --- NAVBAR SCROLLED (White background) --- */
.navbar.scrolled {
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    padding: 12px 0;
}
.navbar.scrolled .logo {
    color: #1a1a2e;               /* DARK logo on white bg */
}
.navbar.scrolled .nav-link {
    color: #555b6e;               /* DARK links on white bg */
}
.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: #2d7dd2;               /* Blue accent on hover */
}
.navbar.scrolled .hamburger span {
    background-color: #1a1a2e;    /* DARK hamburger bars on white bg */
}

/* --- DROPDOWN MENU --- */
.nav-dropdown {
    position: relative;
}
.dropdown-arrow {
    margin-left: 4px;
    transition: transform 0.3s ease;
}
.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    list-style: none;
}
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.dropdown-menu li a {
    display: block;
    padding: 10px 24px;
    color: #1a1a2e;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    text-transform: none;
}
.dropdown-menu li a:hover {
    background: #f5f7fa;
    color: #2d7dd2;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 32px; font-family: var(--font-heading); font-weight: 500; font-size: 1rem;
  border-radius: 4px; cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden;
  border: none; outline: none; text-decoration: none; z-index: 1;
}
.btn-primary { background: var(--accent-primary); color: #fff; }
.btn-primary:hover { background: #1e5ba0; color: #fff; transform: translateY(-2px); }

/* FIX "Hogyan Működik?" button visibility */
.btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); /* Gives it a slight glow to stand out */
}
.btn-secondary:hover {
    background: #ffffff;
    color: #1a1a2e;
}

/* Fix for buttons inside light cards */
.import-card .btn-primary,
.showcase-card .btn-primary,
.card-content .btn-primary,
.car-showcase-card .btn-primary {
    background-color: #2d7dd2;  /* Solid blue background */
    color: #ffffff !important;  /* Force white text */
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    width: auto;
}
.import-card .btn-primary:hover,
.showcase-card .btn-primary:hover,
.card-content .btn-primary:hover,
.car-showcase-card .btn-primary:hover {
    background-color: #1a5ca6; /* Darker blue on hover */
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* =========================================
   CARDS
   ========================================= */
.card-light {
  background: #ffffff; border-radius: var(--border-radius); padding: 40px;
  box-shadow: var(--shadow-soft); border: 1px solid #e2e8f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease; position: relative;
}
.card-light:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-medium);
}

/* =========================================
   HERO SECTION
   ========================================= */
/* Clean, static hero setup */
.hero { z-index: 0; 
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    clip-path: inset(0);
    z-index: 0;
    justify-content: flex-end; /* Text on the right */
    overflow: hidden;
    padding: 0;
    background-color: #0b1120;
}
/* Background image container */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
/* Dark gradient overlay to darken the right side for text */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to right,
        rgba(11, 17, 32, 0.1) 0%,
        rgba(11, 17, 32, 0.4) 40%,
        rgba(11, 17, 32, 0.85) 65%,
        rgba(11, 17, 32, 0.95) 100%
    );
}
/* Text Container */
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 500px;
    padding: 0 6% 0 0;
    margin-left: auto;
    text-align: left;
}

.hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #00a8e8;
    margin-bottom: 16px;
    padding: 6px 16px;
    border: 1px solid rgba(0, 168, 232, 0.3);
    border-radius: 20px;
}
.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 24px;
}
.hero-typed {
    font-weight: 400; 
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 40px;
}
.hero-typed span#typedText {
    font-weight: 600;
}
.hero-buttons {
    display: flex;
    gap: 20px;
}
/* Scroll indicator at bottom center of hero */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.3s ease;
}
.scroll-indicator:hover {
    color: #ffffff;
}
.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin: 12px auto 0;
    animation: bounceDown 2s ease-in-out infinite;
}
@keyframes bounceDown {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(8px); }
}

/* Typed Text (legacy) */
.typed-text { color: var(--accent-secondary); border-right: 2px solid var(--accent-secondary); padding-right: 5px; animation: blink 0.7s infinite; }
@keyframes blink { 50% { border-color: transparent; } }

/* Cursor for new typed */
.typed-cursor { color: var(--accent-secondary); animation: blink 0.7s infinite; }

 100% { transform: translateX(-50%); } }

/* =========================================
   GRIDS & SHOWCASE CARDS
   ========================================= */
.showcase-grid, .services-grid, .pricing-grid, .team-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
  gap: 32px; 
}
@media (min-width: 1024px) {
    .showcase-grid, .services-grid, .pricing-grid, .team-grid { grid-template-columns: repeat(3, 1fr); }
}

.car-showcase-card { background: #ffffff; border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow-soft); transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid #e2e8f0; }
.car-showcase-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-medium); }
.car-visual { height: 250px; position: relative; overflow: hidden; }
.car-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.car-showcase-card:hover .car-visual img { transform: scale(1.05); }

.car-badge { position: absolute; top: 15px; right: 15px; background: rgba(0,0,0,0.7); color: #fff; padding: 4px 12px; border-radius: 4px; font-size: 0.8rem; font-weight: 500; }
.car-details { padding: 32px; }
.car-title { font-size: 1.25rem; margin-bottom: 10px; color: var(--text-primary); }
.car-specs { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 20px; font-size: 0.9rem; color: var(--text-secondary); }
.car-specs span { background-color: transparent !important; padding: 0 !important; }
.car-price { font-size: 1.5rem; font-weight: 600; color: var(--text-primary); margin-bottom: 24px; border-top: 1px solid #f5f7fa; padding-top: 16px; }

/* =========================================
   ROAD JOURNEY ANIMATION
   ========================================= */
.journey-container { position: relative; max-width: 800px; margin: 0 auto; padding-left: 40px; }
.journey-road { position: absolute; top: 0; bottom: 0; left: 19px; width: 2px; background: repeating-linear-gradient(to bottom, #e2e8f0 0, #e2e8f0 8px, transparent 8px, transparent 16px); z-index: 0; }
.journey-car { position: absolute; left: 20px; top: 0; font-size: 1.5rem; z-index: 5; transition: top 0.3s ease-out; transform: translateX(-50%) scaleX(-1); }
.journey-step { position: relative; z-index: 1; padding-bottom: 64px; display: flex; gap: 32px; }
.journey-step:last-child { padding-bottom: 0; }
.step-number { width: 40px; height: 40px; border-radius: 50%; background: #ffffff; border: 2px solid var(--accent-primary); display: flex; align-items: center; justify-content: center; font-weight: 500; font-family: var(--font-heading); color: var(--accent-primary); flex-shrink: 0; position: relative; left: -1px; box-shadow: 0 0 0 8px #ffffff; }
.step-content { background: #ffffff; padding: 32px; border-radius: var(--border-radius); box-shadow: var(--shadow-soft); border: 1px solid #e2e8f0; flex-grow: 1; }
.step-content h3 { color: var(--text-primary); margin-bottom: 12px; }

/* =========================================
   SERVICES GRID (SECONDARY)
   ========================================= */
.service-icon { font-size: 2rem; margin-bottom: 24px; color: var(--text-primary); }
.service-link { display: inline-flex; align-items: center; margin-top: 16px; font-weight: 500; font-family: var(--font-heading); gap: 8px; color: var(--accent-primary); }
.service-link::after { content: '→'; transition: transform 0.3s ease; }
.service-link:hover::after { transform: translateX(4px); }

/* =========================================
   STATS
   ========================================= */
.stats-section { padding: 80px 0; position: relative; z-index: 1; background-color: #f5f7fa; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-item h3 { font-size: 2.5rem; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.stat-item p { font-family: var(--font-body); font-size: 0.9rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; margin: 0; }

/* =========================================
   TESTIMONIALS (INFINITE CAROUSEL)
   ========================================= */
/* Carousel Container */
.testimonial-carousel {
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
    white-space: nowrap; /* Forces everything onto one line */
    position: relative;
    /* Fade edges so cards disappear smoothly */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
/* The infinite track */
.testimonial-track {
    display: flex;
    width: max-content;
    /* Slower speed (50s) and linear movement */
    animation: scrollTestimonials 50s linear infinite;
    /* Force hardware acceleration for zero lag */
    will-change: transform;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}
/* Group wrapper */
.carousel-slide {
    display: flex;
    gap: 32px;
    padding-right: 32px; /* Crucial: same as gap so the loop connects flawlessly */
}
.testimonial-card {
    width: 380px;
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    /* Restore text wrapping since parent has white-space: nowrap */
    white-space: normal; 
}
.testimonial-card p {
    font-size: 0.95rem;
    color: #555b6e;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}
.testimonial-card h4 {
    color: #1a1a2e;
    font-size: 1.05rem;
    font-weight: 700;
}
/* The ultra-smooth keyframe animation */
@keyframes scrollTestimonials {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        /* Translates exactly one slide group width left */
        transform: translate3d(-50%, 0, 0);
    }
}
@media (max-width: 768px) {
    .testimonial-card {
        width: 300px;
    }
    .testimonial-track {
        animation-duration: 35s; /* Slightly faster on smaller screens */
    }
    .carousel-slide {
        gap: 20px;
        padding-right: 20px;
    }
}

/* =========================================
   FAQ ACCORDION
   ========================================= */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: #ffffff; border-bottom: 1px solid #e2e8f0; margin-bottom: 0; overflow: hidden; }
.faq-item:first-child { border-top: 1px solid #e2e8f0; }
.faq-question { padding: 24px 16px; width: 100%; text-align: left; background: none; border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-heading); font-weight: 500; font-size: 1.1rem; color: var(--text-primary); transition: background 0.3s; }
.faq-question:hover { background: #f5f7fa; }
.faq-icon { font-size: 1.2rem; transition: transform 0.3s; color: var(--text-secondary); }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 16px; max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; background: #ffffff; }
.faq-item.active .faq-answer { padding: 0 16px 24px; max-height: 400px; }

/* =========================================
   FORM STYLES
   ========================================= */
.form-group { margin-bottom: 24px; }
.form-label { display: block; font-weight: 500; margin-bottom: 8px; color: var(--text-primary); }
.form-control { width: 100%; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 4px; padding: 14px 16px; color: var(--text-primary); font-family: var(--font-body); font-size: 1rem; transition: border-color 0.3s; }
.form-control:focus { border-color: var(--accent-primary); outline: none; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555b6e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 1em; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-success { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.95); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; z-index: 10; }
.form-success.show { opacity: 1; pointer-events: all; }
.success-icon { width: 64px; height: 64px; border: 2px solid var(--success-green); color: var(--success-green); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin-bottom: 16px; }

/* =========================================
   PAGE HEADERS
   ========================================= */
.page-header { padding: 160px 0 80px; text-align: center; background: #f5f7fa; border-bottom: 1px solid #e2e8f0; position: relative; overflow: hidden; }

/* =========================================
   PRICING
   ========================================= */
/* Pricing Grid Layout */
.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    align-items: stretch; /* THIS FORCES EQUAL HEIGHT */
    max-width: 1200px;
    margin: 0 auto;
}
/* Pricing Card Standardization */
.pricing-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 350px;
    background-color: #ffffff; /* Uniform light mode color */
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
}
/* Push the 'Időpont Foglalás' button to the bottom so cards look uniform */
.pricing-card .btn-primary,
.pricing-card .btn-secondary {
    margin-top: auto; 
    width: 100%;
}
.price-val { font-size: 2rem; font-weight: 600; color: var(--text-primary); margin: 16px 0; }
.price-val span { font-size: 1rem; color: var(--text-secondary); font-weight: 400; }
.pricing-card.featured { border: 2px solid var(--accent-primary); }
.featured-badge { position: absolute; top: -14px; left: 32px; background: var(--accent-primary); color: #fff; padding: 4px 16px; border-radius: 4px; font-size: 0.85rem; font-weight: 500; }

/* =========================================
   GALLERY
   ========================================= */
.gallery-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }
.filter-btn { background: #ffffff; border: 1px solid #e2e8f0; color: var(--text-primary); padding: 8px 24px; border-radius: 30px; cursor: pointer; transition: all 0.3s; font-family: var(--font-heading); font-weight: 500; }
.filter-btn.active, .filter-btn:hover { background: var(--text-primary); border-color: var(--text-primary); color: #ffffff; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; }
.gallery-item { height: 250px; border-radius: 4px; overflow: hidden; position: relative; cursor: pointer; }
.gallery-img { width: 100%; height: 100%; background: #e2e8f0; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: transform 0.5s ease; }
.gallery-img img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item:hover .gallery-img { transform: scale(1.02); }

/* =========================================
   KAPCSOLAT ACTION CARDS
   ========================================= */
.contact-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 24px;
}
.contact-action-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.contact-action-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}
.contact-action-card .action-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}
.contact-action-card h3 {
    margin-bottom: 8px;
    color: var(--text-primary);
}
.contact-action-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.95rem;
}
.contact-action-card button {
    width: 100%;
}

/* =========================================
   FOOTER
   ========================================= */
.footer { background: var(--bg-footer); padding: 80px 0 24px; color: var(--text-on-dark-muted); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 48px; margin-bottom: 64px; }
.footer-col h4 { color: #ffffff; margin-bottom: 24px; font-size: 1.1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-on-dark-muted); transition: color 0.3s; }
.footer-links a:hover { color: #ffffff; }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.85rem; }

/* =========================================
   ANIMATIONS & EFFECTS CLASSES
   ========================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; will-change: opacity, transform; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* === SMART MODAL SYSTEM === */
.smart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.smart-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.smart-modal {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.35s ease;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}
.smart-modal-overlay.active .smart-modal {
    transform: translateY(0) scale(1);
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #555b6e;
    transition: color 0.2s;
    line-height: 1;
}
.modal-close:hover {
    color: #e63946;
}
.modal-header {
    text-align: center;
    margin-bottom: 24px;
}
.modal-header h2 {
    color: #1a1a2e;
    font-size: 1.6rem;
    margin-bottom: 8px;
}
.modal-header p {
    color: #555b6e;
    font-size: 0.95rem;
}
.modal-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: #f0f2f5;
    border-radius: 10px;
    padding: 4px;
}
.modal-tab {
    flex: 1;
    padding: 10px 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #555b6e;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
}
.modal-tab.active {
    background: #ffffff;
    color: #1a1a2e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-weight: 600;
}
.modal-tab:hover:not(.active) {
    color: #2d7dd2;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e6ed;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    background: #f8f9fb;
    color: #1a1a2e;
    transition: border-color 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2d7dd2;
    background: #ffffff;
}
.full-width {
    grid-column: 1 / -1;
}
.modal-submit {
    display: block;
    width: 100%;
    padding: 16px;
    margin-top: 16px;
    background: linear-gradient(135deg, #2d7dd2, #00a8e8);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.modal-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45, 125, 210, 0.35);
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 991px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-menu { display: none; } /* Hide for mobile */
  .nav-cta { display: none; }
  .hamburger { display: block; }
}

@media (max-width: 768px) {
    .section { padding: var(--section-padding-mobile) 0; }
    .nav-menu.active {
      display: flex;
      position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
      background: #ffffff; flex-direction: column; align-items: center; justify-content: center;
      z-index: 999;
    }
    .nav-menu.active .nav-link { color: var(--text-primary) !important; font-size: 1.5rem; margin-bottom: 20px; }
    .nav-menu.active .dropdown-menu { position: static; transform: none; box-shadow: none; opacity: 1; visibility: visible; text-align: center; }
    .hero-buttons { flex-direction: column; }
    .stats-grid { grid-template-columns: 1fr; gap: 40px; }
    .journey-road { left: 19px; }

    /* New Mobile Hero Layout */
    .hero {
        min-height: 90vh;
        flex-direction: column;
        justify-content: center;
    }
    .hero-bg {
        background: #0d1525;
    }
    .hero-overlay {
        background: rgba(10, 15, 30, 0.5);  /* Uniform overlay on mobile */
    }
    .hero-content {
        margin: 0;
        padding: 0 5%;
        text-align: center;
        max-width: 100%;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .testimonial-card {
        width: 280px;
    }
    .testimonial-track {
        animation-duration: 20s; /* Move a bit faster on mobile if desired */
    }
}
@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .smart-modal {
        padding: 24px;
        border-radius: 16px;
    }
    .modal-tabs {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* === THEME TOGGLE BUTTON === */
.nav-right-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.theme-toggle {
    background: transparent;
    border: none;
    color: currentColor;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}
.theme-toggle:hover {
    background-color: rgba(128, 128, 128, 0.15);
}
/* Hide sun in light mode, hide moon in dark mode */
html[data-theme="light"] .icon-sun { display: none; }
html[data-theme="dark"] .icon-moon { display: none; }
/* Ensure navbar text color passes to the SVG */
.navbar .theme-toggle { color: #ffffff; }
.navbar.scrolled .theme-toggle { color: #1a1a2e; }
html[data-theme="dark"] .navbar.scrolled .theme-toggle { color: #f1f5f9; }

/* === DARK THEME OVERRIDES === */

/* 1. Force the absolute base layer of every page to be dark */
html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] main,
html[data-theme="dark"] .page-wrapper,
html[data-theme="dark"] .content-wrapper,
html[data-theme="dark"] section,
html[data-theme="dark"] article,
html[data-theme="dark"] .about-section,
html[data-theme="dark"] .gallery-section,
html[data-theme="dark"] .contact-section,
html[data-theme="dark"] .pricing-section,
html[data-theme="dark"] .services-section,
html[data-theme="dark"] .page-header {
    background-color: #0b1120 !important;
    color: #f1f5f9 !important;
    border-bottom: none !important;
}

/* 2. Alternate section backgrounds for visual separation */
html[data-theme="dark"] section:nth-child(even),
html[data-theme="dark"] .bg-light,
html[data-theme="dark"] .gray-bg,
html[data-theme="dark"] .section-dark {
    background-color: #0b1120 !important;
}

/* 3. EXHAUSTIVE list of ALL possible cards, boxes, and white-background elements */
html[data-theme="dark"] .card,
html[data-theme="dark"] .card-light,
html[data-theme="dark"] .testimonial-card,
html[data-theme="dark"] .pricing-card,
html[data-theme="dark"] .pricing-item,
html[data-theme="dark"] .pricing-table,
html[data-theme="dark"] .import-card,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .service-box,
html[data-theme="dark"] .step-card,
html[data-theme="dark"] .step-box,
html[data-theme="dark"] .info-box,
html[data-theme="dark"] .contact-wrapper,
html[data-theme="dark"] .contact-form,
html[data-theme="dark"] .contact-form-container,
html[data-theme="dark"] .contact-info,
html[data-theme="dark"] .contact-info-box,
html[data-theme="dark"] .form-container,
html[data-theme="dark"] .about-content-box,
html[data-theme="dark"] .about-card,
html[data-theme="dark"] .gallery-item,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .showcase-card,
html[data-theme="dark"] .car-showcase-card,
html[data-theme="dark"] .step-number,
html[data-theme="dark"] .step-content,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .faq-answer,
html[data-theme="dark"] .filter-btn,
html[data-theme="dark"] .smart-modal {
    background-color: #1a243d !important; /* Premium Dark Navy */
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #f1f5f9 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Highlighted/premium pricing card border */
html[data-theme="dark"] .pricing-card.popular,
html[data-theme="dark"] .pricing-card.premium,
html[data-theme="dark"] .pricing-card.featured {
    background-color: #1a243d !important;
    border: 2px solid #2d7dd2 !important; /* Blue border */
}

/* Additional fixes for specific items */
html[data-theme="dark"] .step-number { box-shadow: 0 0 0 8px #0b1120 !important; }

html[data-theme="dark"] section, html[data-theme="dark"] .section { background-color: #0b1120 !important; position: relative; z-index: 1; }

/* NUCLEAR FALLBACK for any missed white backgrounds */
html[data-theme="dark"] div[style*="background: white"],
html[data-theme="dark"] div[style*="background-color: white"],
html[data-theme="dark"] div[style*="background-color: #ffffff"] {
    background-color: #1a243d !important;
}

/* Import Card Pricing in Dark Mode */
html[data-theme="dark"] .import-card .price,
html[data-theme="dark"] .import-card .price-tag,
html[data-theme="dark"] .showcase-card .price,
html[data-theme="dark"] .car-badge {
    background-color: #2d7dd2 !important; /* Premium Blue background */
    color: #ffffff !important; /* Solid white text */
    border: none !important;
}

/* FORCE PRICE VISIBILITY IN DARK MODE */
html[data-theme="dark"] .import-card span[class*="price"],
html[data-theme="dark"] .import-card div[class*="price"] {
    background-color: #2d7dd2 !important;
    color: #ffffff !important;
    border: 1px solid #2d7dd2 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5) !important;
}

html[data-theme="dark"] .car-price {
    border-top-color: rgba(255, 255, 255, 0.05) !important;
}

html[data-theme="dark"] .import-card .badge,
html[data-theme="dark"] .import-card .spec-item {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #f1f5f9 !important;
}

/* Ensure links inside the navbar dropdowns are visible in dark mode */
html[data-theme="dark"] .dropdown-menu li a {
    color: #f1f5f9 !important;
}
html[data-theme="dark"] .dropdown-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* 4. Fix ALL text elements inside dark mode */
html[data-theme="dark"] h1, 
html[data-theme="dark"] h2, 
html[data-theme="dark"] h3, 
html[data-theme="dark"] h4, 
html[data-theme="dark"] h5, 
html[data-theme="dark"] h6, 
html[data-theme="dark"] p, 
html[data-theme="dark"] span, 
html[data-theme="dark"] li,
html[data-theme="dark"] label,
html[data-theme="dark"] td,
html[data-theme="dark"] th,
html[data-theme="dark"] .brand-item,
html[data-theme="dark"] .car-title,
html[data-theme="dark"] .car-price,
html[data-theme="dark"] .price-val,
html[data-theme="dark"] .price-val span {
    color: #f1f5f9 !important;
}

/* Specific text that should be slightly grayed out for contrast */
html[data-theme="dark"] .card p,
html[data-theme="dark"] .service-box p,
html[data-theme="dark"] .pricing-card p,
html[data-theme="dark"] .testimonial-card p,
html[data-theme="dark"] .form-group p,
html[data-theme="dark"] .contact-info p {
    color: #a0aec0 !important;
}

/* 5. Protect Buttons */
html[data-theme="dark"] .btn-primary { 
    background-color: #2d7dd2 !important; 
    color: #ffffff !important; 
    border: none !important;
}
html[data-theme="dark"] .btn-primary:hover {
    background-color: #1a5ca6 !important;
}


/* Dark mode for Scrolled Navbar */
html[data-theme="dark"] .navbar.scrolled {
    background: #0b1120 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
html[data-theme="dark"] .navbar.scrolled .nav-link,
html[data-theme="dark"] .navbar.scrolled .logo {
    color: #f1f5f9 !important;
}
html[data-theme="dark"] .navbar.scrolled .hamburger span {
    background-color: #f1f5f9 !important;
}

/* Dark mode for the Smart Modal elements */
html[data-theme="dark"] .modal-header h2,
html[data-theme="dark"] .form-group label {
    color: #f1f5f9 !important;
}
html[data-theme="dark"] .modal-header p {
    color: #a0aec0 !important;
}
html[data-theme="dark"] .modal-close {
    color: #f1f5f9 !important;
}
html[data-theme="dark"] .modal-tabs {
    background: #0b1120 !important;
}
html[data-theme="dark"] .modal-tab {
    color: #a0aec0 !important;
}
html[data-theme="dark"] .modal-tab.active {
    background: #1a243d !important;
    color: #f1f5f9 !important;
}

/* Forms / Inputs in dark mode */
html[data-theme="dark"] .form-group input,
html[data-theme="dark"] .form-group select,
html[data-theme="dark"] .form-group textarea,
html[data-theme="dark"] .contact-form input,
html[data-theme="dark"] .contact-form textarea {
    background-color: #1a243d !important;
    color: #f1f5f9 !important;
    border-color: #2a344d !important;
}
html[data-theme="dark"] .form-group input:focus,
html[data-theme="dark"] .form-group select:focus,
html[data-theme="dark"] .form-group textarea:focus,
html[data-theme="dark"] .contact-form input:focus,
html[data-theme="dark"] .contact-form textarea:focus {
    border-color: #2d7dd2 !important;
}

/* Loading screen dark mode and button resets */
html[data-theme="dark"] #loader { background: #0b1120 !important; }
html[data-theme="dark"] .hero-badge { 
    color: #00a8e8 !important; 
    border: 1px solid rgba(0, 168, 232, 0.3) !important;
    background: transparent !important;
    backdrop-filter: none !important;
}
html[data-theme="dark"] .btn-secondary { 
    background: transparent !important; 
    color: #ffffff !important; 
    border: 2px solid #ffffff !important; 
}
html[data-theme="dark"] .btn-secondary:hover { 
    background: rgba(255, 255, 255, 0.1) !important; 
    border-color: #ffffff !important; 
    color: #ffffff !important; 
}

html[data-theme="dark"] .hero h1 { color: #ffffff !important; }
html[data-theme="dark"] .hero p { color: rgba(255, 255, 255, 0.75) !important; }
html[data-theme="dark"] .hero-typed span { color: #ffffff !important; }
html[data-theme="dark"] .scroll-indicator { color: rgba(255, 255, 255, 0.6) !important; }
html[data-theme="dark"] .scroll-indicator span { color: rgba(255, 255, 255, 0.6) !important; }



html[data-theme="dark"] .brand-item { color: rgba(255, 255, 255, 0.5) !important; }

/* =========================================
   IMPORT MARKETPLACE PAGE
   ========================================= */

.marketplace-main {
    background-color: var(--bg-alt); /* using a soft background for the page if it exists, otherwise we'll define one */
}

/* Base Light Mode fixes for Marketplace */
html[data-theme="light"] body {
    background-color: #f8fafc;
}

/* Hero Section */
.marketplace-hero {
    background: linear-gradient(135deg, #0b1120, #162447);
    color: #ffffff;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.marketplace-hero h1 {
    font-size: 3rem;
    margin-bottom: 16px;
    color: #ffffff;
}

.marketplace-hero p {
    font-size: 1.15rem;
    color: #cbd5e1;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Search Input */
.hero-search-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 8px;
    padding: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    position: relative;
}

html[data-theme="dark"] .search-input-group {
    background: #1a243d;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.search-icon {
    position: absolute;
    left: 20px;
    color: #94a3b8;
}

#heroSearchInput {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 12px 12px 52px;
    font-size: 1rem;
    color: #1e293b;
    outline: none;
    width: 100%;
}

html[data-theme="dark"] #heroSearchInput {
    color: #f8fafc;
}

#heroSearchInput::placeholder {
    color: #94a3b8;
}

#heroSearchBtn {
    padding: 10px 24px;
    margin: 0;
    white-space: nowrap;
}

/* Layout */
.marketplace-section {
    padding: 40px 0 80px;
}

.marketplace-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}

/* Sidebar */
.marketplace-sidebar {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 100px;
    border: 1px solid #e2e8f0;
}

html[data-theme="dark"] .marketplace-sidebar {
    background: #1a243d;
    border-color: #2a3441;
}

.mobile-only {
    display: none;
}

.mobile-filter-btn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 24px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: #ffffff;
    color: #1e293b;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    outline: none;
}

html[data-theme="dark"] .filter-group select,
html[data-theme="dark"] .filter-group input {
    background-color: #0b1120;
    border-color: #334155;
    color: #f8fafc;
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: var(--accent-primary);
}

.split-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.filter-actions {
    margin-top: 32px;
}

.clear-filters-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: var(--text-secondary);
    text-decoration: underline;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s;
}

.clear-filters-link:hover {
    color: var(--accent-primary);
}

/* Marketplace Content */
.marketplace-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

html[data-theme="dark"] .marketplace-topbar {
    border-bottom-color: #2a3441;
}

.result-count {
    font-weight: 600;
    color: var(--text-primary);
}

.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-wrapper label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.sort-wrapper select {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: #ffffff;
    color: #1e293b;
    font-size: 0.9rem;
    outline: none;
}

html[data-theme="dark"] .sort-wrapper select {
    background-color: #1a243d;
    border-color: #334155;
    color: #f8fafc;
}

/* Car Grid */
.car-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Car Card */
.car-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

html[data-theme="dark"] .car-card {
    background: #1a243d;
    border-color: #2a3441;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.car-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #e2e8f0;
}

html[data-theme="dark"] .car-image-wrapper {
    background-color: #0b1120;
}

.car-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.car-card:hover .car-image-wrapper img {
    transform: scale(1.05);
}

.car-badge-country {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.car-badge-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-available {
    background: var(--success-green);
    color: #ffffff;
}

.status-reserved {
    background: #f59e0b; /* Amber */
    color: #ffffff;
}

.car-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.car-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.car-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.spec-item {
    display: flex;
    align-items: center;
}

.spec-item:not(:last-child)::after {
    content: "•";
    margin-left: 8px;
    opacity: 0.5;
}

.car-pricing {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

html[data-theme="dark"] .car-pricing {
    border-top-color: #2a3441;
}

.price-main {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.price-domestic {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: line-through;
    margin-bottom: 8px;
}

.price-savings {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-green);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .marketplace-layout {
        grid-template-columns: 1fr;
    }
    
    .marketplace-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        max-width: 320px;
        z-index: 1000;
        border-radius: 0;
        box-shadow: 5px 0 25px rgba(0,0,0,0.5);
        overflow-y: auto;
    }
    
    .marketplace-sidebar.open {
        display: block;
    }
    
    .mobile-only {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 24px;
    }
    
    .mobile-filter-btn {
        display: flex;
    }
}

@media (max-width: 768px) {
    .car-grid {
        grid-template-columns: 1fr;
    }
    
    .marketplace-hero h1 {
        font-size: 2rem;
    }
}


/* =========================================
   MARKETPLACE DARK MODE OVERRIDES
   ========================================= */

html[data-theme="dark"] .marketplace-main {
    background-color: #0b1120;
}

html[data-theme="dark"] .search-input-group {
    background: #0e1a35;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] #heroSearchInput {
    color: #f1f5f9;
}

html[data-theme="dark"] #heroSearchInput::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

html[data-theme="dark"] .marketplace-sidebar {
    background: #1a243d;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .filter-group label {
    color: #f1f5f9;
}

html[data-theme="dark"] .filter-group select,
html[data-theme="dark"] .filter-group input {
    background-color: #0e1a35;
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .filter-group select:focus,
html[data-theme="dark"] .filter-group input:focus {
    border-color: var(--accent-primary);
}

html[data-theme="dark"] .clear-filters-link {
    color: #a0aec0;
}

html[data-theme="dark"] .clear-filters-link:hover {
    color: var(--accent-primary);
}

html[data-theme="dark"] .result-count {
    color: #f1f5f9;
}

html[data-theme="dark"] .sort-wrapper label {
    color: rgba(255, 255, 255, 0.5);
}

html[data-theme="dark"] .sort-wrapper select {
    background-color: #0e1a35;
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .car-card {
    background: #1a243d;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .car-title {
    color: #ffffff;
}

html[data-theme="dark"] .car-specs {
    color: rgba(255, 255, 255, 0.6);
}

html[data-theme="dark"] .price-main {
    color: #ffffff;
}

html[data-theme="dark"] .price-domestic {
    color: rgba(255, 255, 255, 0.4);
}

html[data-theme="dark"] .price-savings {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

html[data-theme="dark"] .car-badge-country {
    background: rgba(0, 0, 0, 0.8);
    color: #f1f5f9;
}

html[data-theme="dark"] .car-badge-status {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .sidebar-header h3 {
    color: #ffffff;
}

html[data-theme="dark"] .mobile-filter-btn {
    background-color: #1a243d;
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.1);
}


/* ========================================= */
/* 7. ADMIN PANEL STYLES                     */
/* ========================================= */

.admin-body {
    background: #0b1120;
    color: #f1f5f9;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

/* Admin Login Screen */
.admin-login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.admin-login-card {
    background: #1a243d;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    max-width: 400px;
}

/* Admin Dashboard Header */
.admin-header {
    background: #1a243d;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 32px;
}

.admin-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

/* Stats Row */
.admin-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: #1a243d;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Content Grid */
.admin-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 60px;
}

@media (min-width: 1024px) {
    .admin-content-grid {
        grid-template-columns: 400px 1fr;
    }
}

.admin-panel-card {
    background: #1a243d;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.split-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Admin Table */
.admin-list-container {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.admin-table th, .admin-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.admin-table th {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-table td {
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: rgba(255,255,255,0.02);
}

/* Inputs within Admin panel (Overrides for dark mode) */
.admin-body input, .admin-body select, .admin-body textarea {
    background: #0b1120 !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: #f1f5f9 !important;
}

.admin-body input:focus, .admin-body select:focus, .admin-body textarea:focus {
    border-color: var(--primary) !important;
    outline: none;
}

.helper-text {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 4px;
}

/* Floating Admin Button */
.floating-admin-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1a243d;
    color: #fff;
    padding: 12px 20px;
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.floating-admin-btn:hover {
    transform: translateY(-2px);
    background: var(--primary);
    border-color: var(--primary);
}
