/* ============================================
   CSS-változók (Designrendszer) - ÚJ VILÁGOS SZÍNSÉMA
   ============================================ */
:root {
  /* Színek – Világos téma kék-narancs */
  --background: hsl(210, 20%, 98%);
  --foreground: hsl(0, 0%, 0%);  /* FEKETE (volt szürke) */
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(0, 0%, 0%);  /* FEKETE (volt szürke) */
  --primary: hsl(215, 85%, 35%);
  --primary-hover: hsl(215, 75%, 45%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(215, 20%, 92%);
  --secondary-foreground: hsl(0, 0%, 0%);  /* FEKETE (volt szürke) */
  --muted: hsl(215, 15%, 94%);
  --muted-foreground: hsl(0, 0%, 0%);  /* FEKETE (volt szürke) */
  --accent: hsl(25, 95%, 55%);
  --border: hsl(215, 15%, 88%);
  --input: hsl(215, 15%, 88%);
  --ring: hsl(215, 85%, 35%);
  --radius: 0.5rem;
  --error: hsl(0, 84%, 60%);
  --success: hsl(142, 76%, 36%);

  /* Átmenetek - Kék-narancs gradientek */
  --gradient-hero: linear-gradient(135deg, hsl(215, 20%, 92%) 0%, hsl(210, 20%, 98%) 50%, hsl(215, 15%, 94%) 100%);
  --gradient-card: linear-gradient(145deg, hsl(0, 0%, 100%) 0%, hsl(215, 20%, 97%) 100%);
  --gradient-primary: linear-gradient(135deg, hsl(215, 85%, 35%) 0%, hsl(215, 75%, 45%) 50%, hsl(25, 95%, 55%) 100%);
  --gradient-text: linear-gradient(135deg, hsl(215, 85%, 35%) 0%, hsl(25, 95%, 55%) 100%);

  /* Fénylések és effektek */
  --glow-primary: 0 10px 40px hsla(215, 85%, 35%, 0.3);
  --glow-intense: 0 20px 60px hsla(215, 85%, 35%, 0.4);

  /* Átmenetek */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--foreground);
    min-height: 100vh;
    font-weight: 700;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

/* Fixed háttérkép wrapper - PROFESSZIONÁLIS MEGOLDÁS (mint főoldal) */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/images/hatter.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: -2;
  /* GPU gyorsítás - smooth rendering */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Tablet háttér */
@media (max-width: 1024px) {
  body::before {
    background-image: url('/images/hatter-tablet.jpg');
    background-position: center top;
  }
}

/* Mobil háttér */
@media (max-width: 768px) {
  body::before {
    background-image: url('/images/hatter-phone.jpg');
  }
}

/* Fehér overlay - ez is fixed marad */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.5); /* 50% mint főoldalon */
  z-index: -1;
  pointer-events: none;
  /* GPU gyorsítás */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}

/* iOS Safari fix - NAGYON fontos mobilra! */
@supports (-webkit-touch-callout: none) {
  body::before,
  body::after {
    position: fixed;
    height: 100vh;
  }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   ÚJ GALLERY NAVIGÁCIÓ - GALLERY PREFIX + STICKY
   ============================================ */
.gallery-navigation {
  position: fixed; /* STICKY - mint a styles.css-ben */
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  transition: var(--transition-smooth);
}

.gallery-nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
}

.gallery-nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-decoration: none;
  display: inline-block;
  flex-shrink: 0;
}

.gallery-logo-highlight {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.5rem; /* Desktop alapértelmezett */
}

/* ============================================
   LOGO MÉRET - MEDIA QUERY-K (HELYES SORREND!)
   ============================================ */

/* Tablet és kisebb (1024px alatt) */
@media (max-width: 1024px) {
  .gallery-logo-highlight {
    font-size: 2rem;
  }
}

/* Közepes mobil és kisebb (768px alatt) */
@media (max-width: 768px) {
  .gallery-logo-highlight {
    font-size: 1.75rem;
  }
  
  .gallery-nav-logo {
    font-size: 1.125rem;
  }
}

/* Kis mobil (480px alatt) */
@media (max-width: 480px) {
  .gallery-logo-highlight {
    font-size: 1.5rem;
  }
  
  .gallery-nav-logo {
    font-size: 1.125rem;
  }
}

/* Desktop Menu */
.gallery-nav-menu {
  display: none;
  flex: 1;
  align-items: center;
  gap: 2rem;
  justify-content: center;
}

@media (min-width: 1400px) {
  .gallery-nav-menu {
    display: flex;
  }
}

.gallery-nav-menu-item {
  font-size: 1.0rem;
  font-weight: 700;
  color: var(--foreground);
  text-decoration: none;
  transition: var(--transition-smooth);
  white-space: nowrap;
  position: relative;
  padding: 0.5rem 0;
}

.gallery-nav-menu-item:hover {
  color: var(--primary);
}

.gallery-nav-menu-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.gallery-nav-menu-item:hover::after {
  width: 100%;
}

/* Dropdown Menu */
.gallery-nav-menu-item.gallery-dropdown {
  position: relative;
}

.gallery-dropdown-toggle {
  font-size: 1.0rem;
  font-weight: 700;
  color: var(--foreground);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  transition: var(--transition-smooth);
}

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

.gallery-dropdown-icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s ease;
}

.gallery-dropdown-toggle:hover .gallery-dropdown-icon {
  transform: rotate(180deg);
}

.gallery-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: var(--glow-primary);
  min-width: 240px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 200;
}

.gallery-dropdown:hover .gallery-dropdown-menu {
  opacity: 1;
  visibility: visible;
  margin-top: 0.5rem;
}

.gallery-dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1.0rem;
  font-weight: 700;
  color: var(--foreground);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: var(--transition-smooth);
}

.gallery-dropdown-item:hover {
  background: var(--secondary);
  color: var(--primary);
}

/* Nav Buttons */
.gallery-nav-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-direction: row-reverse;
}

@media (min-width: 1400px) {
  .gallery-nav-buttons {
    flex-direction: row;
  }
}

/* Hamburger Menu (Mobile) */
.gallery-hamburger-menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 0.35rem;
  transition: var(--transition-smooth);
  order: 2;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .gallery-hamburger-menu {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0.4rem;
    gap: 0.3rem;
  }
}

@media (min-width: 1400px) {
  .gallery-hamburger-menu {
    display: none !important;
  }
}

.gallery-hamburger-line {
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

@media (max-width: 480px) {
  .gallery-hamburger-line {
    height: 1.5px;
  }
}

.gallery-hamburger-menu:hover .gallery-hamburger-line {
  background: var(--primary-hover);
}

.gallery-hamburger-menu.active .gallery-hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.gallery-hamburger-menu.active .gallery-hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.gallery-mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 150;
  display: none;
}

@media (max-width: 1399px) {
  .gallery-mobile-menu-overlay {
    display: block;
  }
}

.gallery-mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu */
.gallery-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 400px;
  height: 100vh;
  background: var(--card);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 200;
  overflow-y: scroll;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: none;
}

@media (max-width: 1399px) {
  .gallery-mobile-menu {
    display: flex;
    flex-direction: column;
  }
}

.gallery-mobile-menu.active {
  right: 0;
}

.gallery-mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--card);
  position: sticky;
  top: 0;
  z-index: 10;
}

.gallery-mobile-menu-title {
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gallery-mobile-menu-close {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.gallery-mobile-menu-close:hover {
  color: var(--primary);
}

.gallery-mobile-menu-close svg {
  width: 1.5rem;
  height: 1.5rem;
}

.gallery-mobile-menu-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  overflow-y: visible;
  padding-bottom: 150px;
}

.gallery-mobile-menu-item {
  display: block;
  padding: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: var(--transition-smooth);
}

.gallery-mobile-menu-item:hover {
  background: var(--secondary);
  color: var(--primary);
}

/* Mobile Expandable Submenu */
.gallery-mobile-menu-item.gallery-expandable {
  padding: 0;
}

.gallery-mobile-submenu-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
  background: transparent;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: left;
}

.gallery-mobile-submenu-toggle:hover {
  background: var(--secondary);
  color: var(--primary);
}

.gallery-mobile-dropdown-icon {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.gallery-mobile-submenu-toggle.active .gallery-mobile-dropdown-icon {
  transform: rotate(180deg);
}

.gallery-mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 1rem;
}

.gallery-mobile-submenu.active {
  max-height: 2000px;
  overflow-y: auto;
}

.gallery-mobile-submenu-item {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted-foreground);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: var(--transition-smooth);
  line-height: 1.4;
}

.gallery-mobile-submenu-item:hover {
  background: var(--secondary);
  color: var(--primary);
}

.gallery-icon-sm {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  background: transparent;
  border: 2px solid var(--primary);
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition-smooth);
  white-space: nowrap;
  order: 1;
  text-decoration: none;
}

.gallery-btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--glow-primary);
}

@media (min-width: 1400px) {
  .gallery-btn-outline {
    order: unset;
  }
}

/* ============================================
   VÉGE ÚJ GALLERY NAVIGÁCIÓ
   ============================================ */

/* Main Content - padding top hozzáadva a sticky nav miatt */
main {
    padding: 140px 0 40px 0;
}

h1 {
    font-size: 32px;
    margin-bottom: 10px;
    text-transform: lowercase;
}

.subtitle {
    font-size: 20px;
    color: var(--foreground);
    margin-bottom: 30px;
    line-height: 1.6;
}

#totalVehicles,
#filteredCount {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

/* Search Reset */
.search-reset {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-reset button {
    max-width: 800px;
    padding: 18px 30px;
    background: var(--card);
    border: 2px solid var(--primary);
    border-radius: 12px;
    color: hsl(0, 0%, 0%);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px hsla(215, 85%, 35%, 0.2);
    text-transform: uppercase;
}

.search-reset button:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
}

.search-reset input:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
}

/* Filters */
.filters {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

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

.filter-group.full-width {
    grid-column: 1 / -1;
}

.filter-group-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.dual-left,
.dual-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label,
.dual-left label,
.dual-right label {
    font-size: 12px;
    color: var(--muted-foreground);
    text-transform: capitalize;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--primary);
    font-size: 10px;
}

select,
.graphical-text input {
    width: 100%;
    padding: 10px 12px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--foreground);
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    transition: border-color 0.3s;
}

select:hover,
.graphical-text input:hover,
select:focus,
.graphical-text input:focus {
    border-color: var(--primary);
    outline: none;
}

.graphical-text input {
    cursor: text;
}

/* Vehicle Types */
.vehicle-types-row {
    margin-top: 30px;
}

.vehicle-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 1200px;
}

.vehicle-type-item {
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vehicle-type-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.vehicle-type-item.active {
    border-color: var(--primary);
    background: var(--secondary);
}

.vehicle-type-item svg {
    width: 150px;
    height: auto;
    fill: var(--muted-foreground);
    transition: fill 0.3s;
}

.vehicle-type-item:hover svg,
.vehicle-type-item.active svg {
    fill: var(--primary);
}

/* Colors */
.colors-row {
    margin-top: 30px;
}

.colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
    gap: 10px;
    max-width: 600px;
}

.color-item {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.color-item:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px hsla(215, 85%, 35%, 0.5);
}

.color-item.active {
    border-color: var(--primary);
    box-shadow: 0 0 15px hsla(215, 85%, 35%, 0.7);
}

.color-item.unavailable {
    opacity: 0.3;
    cursor: not-allowed;
}

.color-item.unavailable:hover {
    transform: none;
    box-shadow: none;
}

/* Results Info */
.results-info {
    text-align: center;
    margin: 30px 0;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--glow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-intense);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 15px 40px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-left: 15px;
}

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

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pagination button {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--muted-foreground);
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    min-width: 40px;
    transition: var(--transition-smooth);
}

.pagination button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination button.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary);
}

.pagination button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Vehicles Grid */
.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.vehicle-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-intense);
    border-color: var(--primary);
}

.vehicle-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--secondary);
}

.vehicle-info {
    padding: 20px;
}

.vehicle-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--foreground);
    text-transform: capitalize;
}

.vehicle-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.spec-item {
    font-size: 13px;
    color: var(--muted-foreground);
    display: flex;
    align-items: center;
    gap: 8px;
}

.spec-item::before {
    content: '•';
    color: var(--primary);
}

.vehicle-price {
    font-size: 20px;
    font-weight: bold;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.vehicle-highlights {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.highlight-tag {
    background: var(--secondary);
    border: 1px solid var(--border);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: var(--muted-foreground);
}

/* Details Page */
.breadcrumb {
    margin-bottom: 30px;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

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

.vehicle-detail {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.detail-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--secondary);
}

.image-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.image-thumbnails img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
}

.image-thumbnails img:hover {
    border-color: var(--primary);
}

.price-box {
    background: var(--secondary);
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 30px;
}

.price-gross {
    font-size: 32px;
    font-weight: bold;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.price-net {
    font-size: 16px;
    color: var(--muted-foreground);
    margin-bottom: 5px;
}

.vat-info {
    font-size: 14px;
    color: var(--muted-foreground);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.info-label {
    color: var(--muted-foreground);
    font-size: 14px;
}

.info-value {
    color: var(--foreground);
    font-size: 14px;
    font-weight: 500;
}

.highlights {
    margin-top: 30px;
    padding: 20px;
    background: var(--secondary);
    border-radius: 8px;
}

.highlights h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary);
}

.highlights ul {
    list-style: none;
}

.highlights li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: var(--muted-foreground);
}

.highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.action-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

/* Loading & Error */
.loading,
.error {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: var(--muted-foreground);
}

.error {
    color: var(--error);
}

/* Footer */
.footer {
  background: var(--card);
  padding: 3rem 0;
  border-top: 2px solid var(--border);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-text {
  color: var(--muted-foreground);
  margin: 0;
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0 0 0.5rem 0;
}

.footer-links,
.footer-info {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

.footer-info li,
.footer-info a {
  color: var(--muted-foreground);
  text-decoration: none;
}

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

.footer-bottom {
  border-top: 2px solid var(--border);
  padding-top: 2rem;
  text-align: center;
  color: var(--muted-foreground);
}

.footer-bottom p {
  margin: 0;
}

.highlight {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    /* Gallery Navigation Mobile */
    .gallery-nav-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }
    
    .gallery-nav-buttons {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
    
    .gallery-btn-outline {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .gallery-icon-sm {
        width: 0.875rem;
        height: 0.875rem;
    }
    
    /* Main content padding adjustment for mobile */
    main {
        padding: 120px 0 40px 0;
    }
    
    /* Search Reset - Mobile */
    .search-reset button {
        max-width: 100%;
        padding: 18px 20px;
        font-size: 15px;
    }
    
    /* Filters reszponzív javítás */
    .filters {
        padding: 15px;
    }

    .filter-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .filter-group-dual {
        grid-template-columns: 1fr;
    }
    
    /* Vehicle types grid - fix 2 oszlop mobilon */
    .vehicle-types-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        max-width: 100%;
    }
    
    .vehicle-type-item {
        padding: 8px;
    }
    
    .vehicle-type-item svg {
        width: 100%;
        max-width: 100px;
        height: auto;
    }
    
    /* Colors grid - NAGYOBB körök mobilon */
    .colors-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 12px;
        max-width: 100%;
        margin: 0 auto;
        justify-items: center;
    }
    
    .color-item {
        width: 45px;
        height: 45px;
        border-radius: 50%;
    }

    .vehicles-grid {
        grid-template-columns: 1fr;
    }

    .detail-content {
        grid-template-columns: 1fr;
    }
    
    /* Details page mobile improvements */
    .main-image-container {
        min-height: 200px !important;
        max-height: 400px !important;
    }
    
    .main-image-container img {
        max-height: 400px !important;
    }
    
    .detail-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .detail-section {
        padding: 15px !important;
        margin-bottom: 15px !important;
    }
    
    .detail-section h2 {
        font-size: 18px !important;
    }
    
    .thumbnails-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)) !important;
        gap: 8px !important;
    }
    
    .price-card {
        padding: 15px !important;
    }
    
    .price-gross {
        font-size: 24px !important;
    }

    .main-image img {
        height: 300px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-secondary {
        margin-left: 0;
    }
}

/* Még kisebb kijelzőkön (pl. iPhone SE) */
@media (max-width: 375px) {
    .colors-grid {
        gap: 8px;
    }
    
    .color-item {
        width: 40px;
        height: 40px;
    }
    
    .gallery-btn-outline {
        padding: 0.35rem 0.6rem;
        font-size: 0.65rem;
        gap: 0.2rem;
    }
    
    .gallery-icon-sm {
        width: 0.75rem;
        height: 0.75rem;
    }
}

/* ============================================
   TOVÁBBI AUTÓK LINK - KIEMELT STÍLUS
   ============================================ */
.additional-cars-link {
  display: inline-block;
  padding: 20px 40px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #FF0000 !important;
  background: white;
  border: 4px solid white;
  border-radius: 12px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 30px rgba(255, 0, 0, 0.3);
}

.additional-cars-link:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(255, 0, 0, 0.5);
  border-color: #FF0000;
  background: rgba(255, 255, 255, 0.95);
}

/* Mobil optimalizálás */
@media (max-width: 768px) {
  .additional-cars-link {
    font-size: 1.25rem;
    padding: 16px 30px;
    border-width: 3px;
  }
}

@media (max-width: 480px) {
  .additional-cars-link {
    font-size: 1.1rem;
    padding: 14px 24px;
    border-width: 3px;
  }
}

/* ============================================
   Floating Phone Button (Mobile Only)
   ============================================ */
.floating-phone-btn {
  display: none;
}

@media (max-width: 768px) {
  .floating-phone-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    box-shadow: var(--glow-primary);
    z-index: 99;
    text-decoration: none;
    animation: phone-pulse 2s ease-in-out infinite;
    transition: var(--transition-smooth);
  }
  
  .floating-phone-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--glow-intense);
  }
  
  .floating-phone-btn svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke: white;
  }
  
  @keyframes phone-pulse {
    0%, 100% {
      box-shadow: 0 0 0 0 hsla(215, 85%, 35%, 0.5), var(--glow-primary);
    }
    50% {
      box-shadow: 0 0 0 12px hsla(215, 85%, 35%, 0), var(--glow-intense);
    }
  }
}

a.vehicle-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Vehicle card - <a> tag kompatibilitás */
a.vehicle-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Pagination - <a> és <span> kompatibilitás */
.pagination a,
.pagination span.disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.pagination a:hover {
    background-color: var(--accent, #f0f0f0);
}

.pagination a.active {
    background-color: var(--primary, #2563EB);
    color: #fff;
    font-weight: 600;
}

.pagination span.disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}
/* Régi sor ha volt: */
.pagination button { ... }

/* Új sor: */
.pagination button,
.pagination a,
.pagination span.disabled { ... }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  background: transparent;
  border: 2px solid var(--primary);
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition-smooth);
  white-space: nowrap;
  order: 1;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--glow-primary);
}

@media (min-width: 1400px) {
  .btn-outline {
    order: unset;
  }
}

@media (max-width: 768px) {

.btn-outline {
    padding: 0.4rem 0.75rem;
    font-size: 0.7rem;
    gap: 0.25rem;
  }

	
}

@media (max-width: 480px) {
	
	.btn-outline {
      padding: 0.35rem 0.6rem;
      font-size: 0.65rem;
      gap: 0.2rem;
    }
	
	
}	