/* ==========================================================================
   منصة سيارات مصر - Cars in Egypt Today
   Modern Automotive Design System for Cloudflare Workers
   ========================================================================== */

:root {
  --primary: #0066FF;
  --primary-hover: #0052cc;
  --primary-active: #004099;
  --primary-subtle: #eff6ff;
  --primary-border: #bfdbfe;
  --accent: #00C2FF;
  --accent-hover: #00a8e0;
  --accent-subtle: #e6f9ff;
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #10b981;
  
  --bg-body: #F8FAFC;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-subtle: #f1f5f9;
  --border-color: #e2e8f0;
  --border-focus: #0066FF;

  --text-main: #0F172A;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-invert: #ffffff;

  --gradient-primary: linear-gradient(135deg, #0066FF 0%, #00C2FF 100%);
  --gradient-hero-text: linear-gradient(135deg, #0066FF 0%, #00C2FF 100%);
  --gradient-hero-bg: linear-gradient(180deg, #edf5ff 0%, #F8FAFC 100%);
  --gradient-dark-banner: linear-gradient(135deg, #0F172A 0%, #003399 55%, #0066FF 100%);
  --gradient-badge: linear-gradient(135deg, rgba(0, 102, 255, 0.08) 0%, rgba(0, 194, 255, 0.12) 100%);

  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 30px -4px rgba(15, 23, 42, 0.1), 0 4px 10px -2px rgba(15, 23, 42, 0.05);
  --shadow-hover: 0 16px 32px -6px rgba(0, 102, 255, 0.18), 0 6px 12px -3px rgba(0, 102, 255, 0.08);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  --font-family: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme='dark'] {
  --primary: #0066FF;
  --primary-hover: #3385ff;
  --primary-active: #0052cc;
  --primary-subtle: rgba(0, 102, 255, 0.15);
  --primary-border: rgba(0, 194, 255, 0.25);
  --accent: #00C2FF;
  --accent-hover: #33ceff;
  --accent-subtle: rgba(0, 194, 255, 0.12);
  
  --bg-body: #0B1120;
  --bg-card: #0F172A;
  --bg-card-hover: #1E293B;
  --bg-subtle: #1E293B;
  --border-color: #1E293B;
  --border-focus: #00C2FF;

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-light: #64748B;
  --text-invert: #0F172A;

  --gradient-hero-bg: linear-gradient(180deg, #0F172A 0%, #0B1120 100%);
  --gradient-dark-banner: linear-gradient(135deg, #090D16 0%, #002266 50%, #0066FF 100%);

  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.6);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 12px 30px -4px rgba(0, 0, 0, 0.8);
  --shadow-hover: 0 16px 32px -6px rgba(0, 102, 255, 0.35);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

button, input, select {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 3.2vw, 60px);
  padding-right: clamp(16px, 3.2vw, 60px);
}

/* ==========================================================================
   Header & Navbar (Modern Search & Quick Nav)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 60px;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

[data-theme='dark'] .site-header {
  background-color: rgba(17, 24, 39, 0.94);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  height: 60px;
  padding: 0;
}

.brand-logo {
  display: flex;
  align-items: flex-start;
  align-self: flex-start;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 12px;
  margin-inline-start: 12px;
  height: auto;
  max-height: 60px;
  margin-top: 0;
  padding-top: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.brand-vector-logo {
  height: 56px;
  max-height: 56px;
  width: auto;
  max-width: 195px;
  object-fit: contain;
  display: block;
  margin-top: 0;
}

.brand-logo:hover {
  opacity: 0.92;
  transform: scale(1.02);
}

[data-theme='dark'] .brand-logo {
  background: #ffffff;
  padding: 0 8px 3px 8px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: flex-start;
  align-self: flex-start;
  max-height: 60px;
}

[data-theme='dark'] .brand-vector-logo {
  height: 56px;
  filter: none !important;
}

.brand-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #ffffff;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
  padding: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

[data-theme='dark'] .brand-icon-box {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.brand-icon-box svg,
.brand-emblem-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 19px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.15;
  white-space: nowrap;
  letter-spacing: -0.3px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.brand-title-accent {
  color: #ef4444 !important;
}

.brand-domain {
  font-size: 0.72em;
  opacity: 0.8;
  font-weight: 700;
  margin-right: 1px;
}

.brand-tagline {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

#brandSection,
#filterToolbar,
#carsCatalogGrid {
  scroll-margin-top: 68px;
}

/* Header Desktop Primary Navigation */
.header-desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 6px;
  margin-left: 10px;
  flex-shrink: 0;
}

.header-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: inherit;
}

.header-nav-link:hover,
.header-nav-link.active {
  color: var(--primary);
  background: var(--primary-subtle);
}

.nav-fav-icon-box {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.header-fav-badge {
  position: absolute;
  top: -7px;
  left: -8px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  height: 15px;
  min-width: 15px;
  border-radius: 999px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--bg-card);
}

/* Header Global Search (Full-Line Design matching Photo 1) */
.header-search-wrap {
  flex: 1;
  max-width: 620px;
  min-width: 240px;
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  padding: 4px 6px 4px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
  position: relative;
  height: 48px;
}

[data-theme="dark"] .header-search-wrap {
  background-color: var(--bg-card);
}

.header-search-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px rgba(29, 78, 216, 0.12), 0 4px 14px rgba(29, 78, 216, 0.08);
}

.header-search-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  margin-left: 10px;
  margin-right: 2px;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.header-search-wrap:focus-within .header-search-icon-box {
  color: var(--primary);
}

.header-search-input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 8px 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
}

.header-search-input::-webkit-search-cancel-button,
.header-search-input::-webkit-search-decoration,
.header-search-input::-webkit-search-results-button,
.header-search-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.header-search-input::placeholder {
  color: #94a3b8;
  font-size: 13.5px;
}

.search-kbd-badge {
  display: none !important;
}

#searchClearBtn {
  background: var(--bg-subtle);
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
  transition: var(--transition);
  flex-shrink: 0;
}

#searchClearBtn:hover {
  background: var(--border-color);
  color: var(--text-main);
}

/* Integrated "الفلاتر" Button inside Search Box (Photo 1) */
.btn-search-filters {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background-color: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
  font-family: inherit;
}

[data-theme="dark"] .btn-search-filters {
  background-color: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border-color: rgba(147, 197, 253, 0.3);
}

.btn-search-filters:hover {
  background-color: #dbeafe;
  border-color: var(--primary);
  color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.15);
}

[data-theme="dark"] .btn-search-filters:hover {
  background-color: rgba(45, 91, 148, 0.4);
  border-color: #60a5fa;
}

.btn-search-filters svg {
  color: currentColor;
  flex-shrink: 0;
}

.btn-search-filters.has-active-filters {
  background-color: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.35) !important;
}

[data-theme="dark"] .btn-search-filters.has-active-filters {
  background-color: #2563eb !important;
  color: #ffffff !important;
  border-color: #60a5fa !important;
}

.filters-active-dot {
  width: 7px;
  height: 7px;
  background-color: #22c55e;
  border-radius: 50%;
  display: inline-block;
  margin-right: 2px;
  box-shadow: 0 0 6px #22c55e;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.header-search-btn {
  display: none;
}

.header-theme-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.header-theme-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-subtle);
}

/* Header Navigation Icons & Actions */
.header-nav-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  position: relative;
  transition: var(--transition);
  cursor: pointer;
}

.nav-icon-link svg {
  width: 18px;
  height: 18px;
}

.nav-icon-link:hover, .nav-icon-link.active {
  color: var(--primary);
}

.nav-icon-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  width: 16px;
  height: 2.5px;
  background-color: var(--primary);
  border-radius: 2px;
}

.fav-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.btn-add-ad {
  background-color: var(--primary);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  transition: var(--transition);
}

.btn-add-ad:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  background-color: var(--bg-subtle);
  border-color: var(--primary);
  color: var(--primary);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 992px) {
  .site-header {
    padding: 6px 0 10px;
    min-height: auto;
  }
  .header-content {
    height: auto !important;
    min-height: auto !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding: 0 4px !important;
  }
  .header-desktop-nav,
  .header-theme-btn,
  .search-kbd-badge {
    display: none !important;
  }
  .brand-logo {
    height: 48px;
    max-height: 50px;
    margin-right: 4px;
    margin-inline-start: 4px;
  }
  .brand-vector-logo {
    height: 46px;
    max-height: 48px;
  }
  .header-nav-group {
    margin-left: 4px;
    gap: 8px;
  }
  .btn-add-ad {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 9999px;
  }
  .header-search-wrap {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    order: 3;
    margin-top: 2px;
    padding: 3px 6px 3px 12px;
    border-radius: 10px;
    height: 46px;
  }
  .header-search-input {
    font-size: 13px;
    padding: 6px 4px;
  }
  .btn-search-filters {
    padding: 5px 11px;
    font-size: 12.5px;
    gap: 5px;
  }
}

@media (max-width: 640px) {
  .brand-logo {
    gap: 8px;
  }
  .brand-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    padding: 3px;
  }
  .brand-title {
    font-size: 15px;
  }
  .brand-tagline {
    font-size: 9.5px;
  }
  .header-nav-group {
    gap: 6px;
  }
  .nav-icon-link {
    padding: 4px 6px;
  }
  .nav-icon-link span {
    display: none;
  }
  .nav-icon-link svg {
    width: 20px;
    height: 20px;
  }
  .btn-add-ad {
    padding: 7px 10px;
    font-size: 12px;
    gap: 4px;
  }
  .btn-add-ad span {
    display: inline;
  }
  .theme-toggle-btn {
    width: 34px;
    height: 34px;
  }
}

/* ==========================================================================
   Brand Carousel Selector (Horizontal Story / Card Row)
   ========================================================================== */
.brand-carousel-section {
  padding: 24px 0 12px;
  position: relative;
}

.brand-carousel-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 48px;
}

@media (max-width: 768px) {
  .brand-carousel-wrapper {
    padding: 0;
  }
}

.brand-carousel-scroll {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center;
  gap: clamp(12px, 1.2vw, 18px);
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 4px 16px;
  width: 100%;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-x pan-y !important;
  overscroll-behavior-x: contain;
  direction: rtl;
}

.brand-carousel-scroll.is-dragging {
  cursor: grabbing !important;
  scroll-behavior: auto !important;
}

.brand-carousel-scroll.is-dragging * {
  user-select: none !important;
  -webkit-user-drag: none !important;
}

.brand-carousel-scroll::-webkit-scrollbar {
  display: none;
}

.brand-carousel-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-color);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  color: var(--text-main);
  transition: var(--transition);
}

.brand-carousel-arrow.arrow-left {
  left: 0;
  right: auto;
}

.brand-carousel-arrow.arrow-right {
  right: 0;
  left: auto;
}

.brand-carousel-arrow:hover {
  background-color: var(--primary-subtle);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.brand-carousel-arrow.disabled {
  opacity: 0.22;
  pointer-events: none;
  cursor: default;
}

.brand-item-card {
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  min-width: clamp(105px, 8.5vw, 126px);
  max-width: clamp(105px, 8.5vw, 126px);
  height: clamp(108px, 9vw, 126px);
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  padding: 0 6px 6px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  user-select: none;
  -webkit-user-drag: none;
}

.brand-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.brand-item-card.active {
  background-color: var(--primary-subtle);
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.18);
}

[data-theme='dark'] .brand-item-card.active {
  background-color: rgba(59, 130, 246, 0.18);
  border-color: #60a5fa;
  box-shadow: 0 4px 16px rgba(96, 165, 250, 0.25);
}

.brand-emblem-box {
  width: clamp(74px, 6.2vw, 86px);
  height: clamp(74px, 6.2vw, 86px);
  border-radius: 50%;
  background-color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  border: 1.5px solid rgba(0,0,0,0.07);
  flex-shrink: 0;
  padding: 6px;
  margin-top: 0;
  transition: transform 0.25s ease;
}

.brand-item-card:hover .brand-emblem-box {
  transform: scale(1.04);
}

[data-theme='dark'] .brand-emblem-box {
  background-color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45) !important;
}

.brand-logo-img {
  width: clamp(54px, 4.6vw, 64px);
  height: clamp(54px, 4.6vw, 64px);
  max-width: 86%;
  max-height: 86%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  filter: none !important;
  -webkit-filter: none !important;
}

.brand-emblem-box > svg {
  width: clamp(40px, 3.4vw, 48px);
  height: clamp(40px, 3.4vw, 48px);
}

[data-theme='dark'] .brand-logo-img {
  filter: none !important;
  -webkit-filter: none !important;
}

.brand-item-card span {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
}

.brand-item-card.active span {
  color: #1d4ed8;
}

[data-theme='dark'] .brand-item-card.active span {
  color: #93c5fd;
}

/* ==========================================================================
   Filter Toolbar (Pill Dropdowns Bar)
   ========================================================================== */
.filter-toolbar {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.1vw, 12px);
  flex-wrap: wrap;
  margin: 10px 0 24px;
  width: 100%;
}

.btn-all-filters {
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-all-filters:hover {
  background-color: var(--primary-hover);
}

.btn-all-filters svg {
  width: 15px;
  height: 15px;
}

.filter-chip-select {
  flex: 1 1 clamp(125px, 11vw, 175px);
  min-width: 110px;
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  outline: none;
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 10px center;
  padding-left: 28px;
}

.filter-chip-select:focus, .filter-chip-select:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ==========================================================================
   Catalog Results & Sorting Toolbar (Matching Screenshot 1)
   ========================================================================== */
.catalog-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: nowrap;
  gap: 14px;
}

.catalog-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.catalog-results-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

/* Two-tone accent indicator bar under the count: half light blue / half deep blue */
.catalog-accent-bar-two-tone {
  width: 36px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(to left, var(--primary) 50%, var(--primary-border) 50%);
  margin-top: 1px;
}

[data-theme='dark'] .catalog-accent-bar-two-tone {
  background: linear-gradient(to left, #60a5fa 50%, rgba(96, 165, 250, 0.25) 50%);
}

.catalog-results-text {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 16px;
  color: var(--text-main);
  line-height: 1.2;
}

.catalog-results-label {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.catalog-results-count-wrap {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  display: inline-flex;
  align-items: baseline;
}

.catalog-results-num {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.2px;
}

.catalog-sort-group {
  display: flex;
  align-items: center;
}

/* Sort dropdown box: [ ∨  تاريخ التحديث (الأحدث أولاً)  ⇅ ] */
.sort-select-wrap {
  display: inline-flex;
  align-items: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 9px;
  padding: 6px 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.sort-select-wrap:hover {
  border-color: var(--primary);
}

.sort-select-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

.sort-icon-end {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  margin-left: 8px;
  flex-shrink: 0;
  order: 1;
}

.sort-select {
  border: none;
  background: transparent;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  font-family: inherit;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 2px 4px;
  order: 2;
}

.sort-chevron-start {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  margin-right: 8px;
  flex-shrink: 0;
  pointer-events: none;
  order: 3;
}

/* ==========================================================================
   Numbered Pagination Component (Matching Screenshot 2)
   ========================================================================== */
.catalog-pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 36px 0 48px;
  direction: rtl;
  user-select: none;
  flex-wrap: wrap;
}

.pagination-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.pagination-btn:hover:not(.active):not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-subtle);
  transform: translateY(-1px);
}

.pagination-btn.active {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(29, 78, 216, 0.28);
  cursor: default;
}

[data-theme='dark'] .pagination-btn.active {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 3px 12px rgba(59, 130, 246, 0.4);
}

.pagination-arrow {
  background-color: var(--primary-subtle);
  border-color: var(--primary-border);
  color: var(--primary);
}

[data-theme='dark'] .pagination-arrow {
  background-color: rgba(59, 130, 246, 0.15);
  border-color: rgba(96, 165, 250, 0.25);
  color: #93c5fd;
}

.pagination-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  background-color: var(--bg-subtle);
  border-color: var(--border-color);
  color: var(--text-muted);
}

.pagination-ellipsis {
  padding: 0 4px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 2px;
  display: inline-flex;
  align-items: center;
}

/* ==========================================================================
   Cars Catalog Grid (Strict 4-Column Modern Cards for All Pages)
   ========================================================================== */
.cars-catalog-grid,
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 1.8vw, 24px);
  margin-bottom: 36px;
  width: 100%;
}

@media (max-width: 1200px) {
  .cars-catalog-grid,
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .cars-catalog-grid,
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 580px) {
  .cars-catalog-grid,
  .catalog-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}

.car-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.car-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.car-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: #0f172a;
  overflow: hidden;
}

.car-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.car-card:hover .car-thumb-img {
  transform: scale(1.05);
}

/* Image Badges (Relative Dates & Highlights) */
.car-badge-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 11px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 800;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.24);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  line-height: 1.3;
}

.badge-today {
  background: linear-gradient(135deg, #16a34a, #15803d);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.badge-yesterday {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.badge-two-days {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.badge-days {
  background: #334155;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.badge-old {
  background: #64748b;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-featured {
  background-color: #10b981;
}

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

.badge-good-price {
  background-color: #ef4444;
}

/* Favorite Heart Button */
.car-fav-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.car-fav-btn:hover {
  background-color: rgba(0, 0, 0, 0.7);
  transform: scale(1.12);
}

.car-fav-btn.active {
  background-color: #ffffff;
  color: #ef4444;
}

.car-fav-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  transition: var(--transition);
}

.car-fav-btn.active svg {
  fill: #ef4444;
  stroke: #ef4444;
}

/* Photo Count Tag */
.photos-count-tag {
  position: absolute;
  bottom: 8px;
  left: 10px;
  z-index: 2;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2.5px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.photos-count-tag svg {
  width: 12px;
  height: 12px;
}

/* Card Body */
.car-card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.car-card-title {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.car-card-price {
  font-size: 18.5px;
  font-weight: 900;
  color: #1d4ed8;
  margin-bottom: 10px;
}

[data-theme='dark'] .car-card-price {
  color: #60a5fa;
}

/* Specs Row (2 Balanced Cells for Model Year & Mileage) */
.car-specs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background-color: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 7px 10px;
  margin-bottom: 10px;
}

.spec-cell {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spec-cell svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
  flex-shrink: 0;
}

/* Meta Bottom Row (Location + Full Date) */
.car-meta-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.car-location-info {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.car-location-info svg {
  width: 13px;
  height: 13px;
  color: var(--primary);
  flex-shrink: 0;
}

.car-date-info {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  background-color: var(--bg-subtle);
  padding: 2.5px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.car-date-info svg {
  width: 12px;
  height: 12px;
  color: #64748b;
  flex-shrink: 0;
}

/* Action Buttons (3 Buttons Row) */
.car-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.btn-card-details {
  flex: 1.25;
  background-color: var(--primary);
  color: #ffffff;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  transition: var(--transition);
}

.btn-card-details:hover {
  background-color: var(--primary-hover);
}

.btn-card-details svg {
  width: 14px;
  height: 14px;
}

.btn-card-wa {
  flex: 1;
  background-color: #10b981;
  color: #ffffff;
  padding: 8px 8px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  transition: var(--transition);
}

.btn-card-wa:hover {
  background-color: #059669;
}

.btn-card-wa svg {
  width: 14px;
  height: 14px;
}

.btn-card-call {
  flex: 1;
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1.5px solid var(--border-color);
  padding: 8px 8px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  transition: var(--transition);
}

.btn-card-call:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-card-call svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   Load More Button
   ========================================================================== */
.load-more-wrap {
  text-align: center;
  margin: 10px 0 40px;
}

.btn-load-more {
  background-color: #dbeafe;
  color: #1d4ed8;
  border: none;
  border-radius: 10px;
  padding: 12px 32px;
  font-size: 14.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

[data-theme='dark'] .btn-load-more {
  background-color: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.btn-load-more:hover {
  background-color: #bfdbfe;
  transform: translateY(-2px);
}

.btn-load-more svg {
  width: 17px;
  height: 17px;
}

/* ==========================================================================
   Trust / Value Proposition Bar (4 Feature Cards)
   ========================================================================== */
.trust-bar-section {
  margin: 40px 0 40px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(230px, 20vw, 300px), 1fr));
  gap: clamp(14px, 1.8vw, 24px);
  width: 100%;
}

.trust-card {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  padding: 20px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.trust-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.trust-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #eff6ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme='dark'] .trust-icon-box {
  background-color: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.trust-icon-box svg {
  width: 22px;
  height: 22px;
}

.trust-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.trust-sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   Car Details Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  padding: 28px;
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background-color: var(--danger);
  color: #ffffff;
  border-color: var(--danger);
}

.modal-hero-img-wrap {
  width: 100%;
  max-height: 440px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: #000;
  margin-bottom: 16px;
}

.modal-hero-img-wrap img {
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

.modal-gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 22px;
}

.modal-thumb {
  width: 100px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 2px solid var(--border-color);
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}

.modal-thumb:hover, .modal-thumb.active {
  border-color: var(--primary);
  transform: scale(1.04);
}

.modal-specs-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-bottom: 22px;
}

.modal-specs-table th {
  background-color: var(--bg-subtle);
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--text-muted);
  width: 35%;
  text-align: right;
  border-bottom: 1px solid var(--border-color);
}

.modal-specs-table td {
  padding: 12px 16px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
}

.modal-desc-box {
  background-color: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 24px;
}

/* ==========================================================================
   Footer (Enhanced Premium Automotive Footer)
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background-color: var(--bg-card);
  border-top: 1.5px solid var(--border-color);
  padding: 48px 0 24px;
  position: relative;
}

/* Pre-Footer Action Banner */
.footer-top-banner {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(16, 185, 129, 0.06) 100%);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

[data-theme='dark'] .footer-top-banner {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(16, 185, 129, 0.08) 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

.footer-top-banner:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.footer-top-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-cta-text {
  flex: 1;
  min-width: 280px;
}

.footer-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-subtle);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.footer-cta-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 4px;
}

.footer-cta-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-cta-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-btn-wa {
  background-color: #10b981;
  color: #ffffff;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.footer-btn-wa:hover {
  background-color: #059669;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.footer-btn-top {
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1.5px solid var(--border-color);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.footer-btn-top:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  background-color: var(--primary-subtle);
}

/* Main Footer Grid */
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr repeat(3, minmax(clamp(160px, 14vw, 240px), 1fr));
  gap: clamp(24px, 3.5vw, 48px);
  margin-bottom: 32px;
  width: 100%;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  display: inline-flex !important;
  align-items: flex-start !important;
  align-self: flex-start !important;
  width: fit-content !important;
  max-width: fit-content !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 0 14px 0 !important;
  padding: 0 14px 6px 14px !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  transition: var(--transition);
}

.footer-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

[data-theme='dark'] .footer-logo {
  background: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  align-self: flex-start !important;
  width: fit-content !important;
  max-width: fit-content !important;
  max-height: none !important;
}

.footer-vector-logo {
  height: 38px !important;
  max-height: 40px !important;
  width: auto !important;
  max-width: 135px !important;
  object-fit: contain;
  display: block;
}

.footer-brand-desc {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.8;
  margin-bottom: 14px;
}

.footer-contact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.footer-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.chip-whatsapp {
  background-color: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

[data-theme='dark'] .chip-whatsapp {
  background-color: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
}

.chip-whatsapp:hover {
  background-color: #10b981;
  color: #ffffff;
}

.chip-hours {
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.footer-social-wrap {
  margin-top: auto;
}

.footer-social-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

.footer-social-links {
  display: flex;
  gap: 10px;
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

[data-theme='dark'] .footer-social-btn {
  background-color: rgba(59, 130, 246, 0.12);
  border-color: rgba(255, 255, 255, 0.08);
  color: #60a5fa;
}

.footer-social-btn:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.footer-social-btn svg {
  width: 17px;
  height: 17px;
}

.footer-col-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--primary-subtle);
}

.footer-col-icon {
  font-size: 16px;
}

.footer-col h3 {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 0;
  margin: 0;
}

.footer-links-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 0;
  transition: var(--transition);
}

.link-arrow {
  font-size: 12px;
  opacity: 0;
  transform: translateX(4px);
  transition: var(--transition);
  color: var(--primary);
}

.footer-links-list li a:hover {
  color: var(--primary);
  padding-right: 4px;
}

.footer-links-list li a:hover .link-arrow {
  opacity: 1;
  transform: translateX(-2px);
}

/* Trust Strip */
.footer-trust-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 12px;
  margin: 28px 0 20px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.footer-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-main);
}

.footer-trust-item svg {
  color: #10b981;
}

.footer-trust-sep {
  color: var(--border-color);
}

/* Bottom Bar */
.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom-copy strong {
  color: var(--text-main);
}

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

.footer-bottom-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

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

.footer-bottom-nav .dot {
  color: var(--border-color);
}

.footer-theme-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
  font-family: inherit;
}

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

@media (max-width: 768px) {
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
  }
  .footer-bottom-nav {
    justify-content: center;
  }
}

/* Mobile Bottom Bar */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme='dark'] .mobile-bottom-nav {
  background-color: rgba(17, 24, 39, 0.96);
  border-top-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
}

@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none !important;
  }
  body {
    padding-bottom: 0 !important;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 74px !important;
  }
}

.m-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 12px;
  transition: all 0.2s ease;
  position: relative;
  user-select: none;
}

.m-nav-item.active, .m-nav-item:hover {
  color: var(--primary);
}

.m-nav-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.m-nav-item svg {
  width: 22px;
  height: 22px;
  transition: transform 0.2s ease;
}

.m-nav-item:active svg {
  transform: scale(0.9);
}

.m-fav-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background-color: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  border-radius: 9px;
  text-align: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.45);
  border: 1.5px solid var(--bg-card);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Static Pages Layout & Dark Mode Compatibility
   ========================================================================== */
:root {
  --fontB: var(--font-family);
  --bodyC: var(--text-main);
  --borderC: var(--border-color);
  --cardBg: var(--bg-card);
  --secBg: var(--bg-subtle);
}

[data-theme='dark'] {
  --bodyC: var(--text-main);
  --borderC: var(--border-color);
  --cardBg: var(--bg-card);
  --secBg: var(--bg-subtle);
}

.breadcrumb-container {
  padding-top: 18px;
  padding-bottom: 8px;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

.breadcrumb-nav a {
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
}

.breadcrumb-nav .sep {
  color: var(--text-light);
}

.breadcrumb-nav .current {
  color: var(--text-main);
}

/* Dark mode overrides for embedded car-page-box elements */
[data-theme='dark'] .car-hero,
[data-theme='dark'] .contact-hero,
[data-theme='dark'] .policy-hero,
[data-theme='dark'] .sitemap-hero {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(14, 165, 233, 0.08) 50%, rgba(16, 185, 129, 0.1) 100%) !important;
  border-color: var(--border-color) !important;
}

[data-theme='dark'] .car-feature-card,
[data-theme='dark'] .contact-card,
[data-theme='dark'] .policy-section,
[data-theme='dark'] .faq-item,
[data-theme='dark'] .contact-form-box,
[data-theme='dark'] .sitemap-card {
  background: var(--bg-card) !important;
  border-color: var(--border-color) !important;
  color: var(--text-main) !important;
}

[data-theme='dark'] .car-feature-card h3,
[data-theme='dark'] .contact-card h3,
[data-theme='dark'] .policy-section h2,
[data-theme='dark'] .faq-question,
[data-theme='dark'] .sitemap-card-title {
  color: var(--text-main) !important;
}

[data-theme='dark'] .car-feature-card p,
[data-theme='dark'] .contact-card p,
[data-theme='dark'] .policy-section p,
[data-theme='dark'] .faq-answer {
  color: var(--text-muted) !important;
}

[data-theme='dark'] .contact-input,
[data-theme='dark'] .contact-textarea,
[data-theme='dark'] .sitemap-search-input {
  background: var(--bg-subtle) !important;
  border-color: var(--border-color) !important;
  color: var(--text-main) !important;
}

[data-theme='dark'] .filter-btn {
  background: var(--bg-card) !important;
  border-color: var(--border-color) !important;
  color: var(--text-muted) !important;
}

[data-theme='dark'] .filter-btn.active,
[data-theme='dark'] .filter-btn:hover {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}

[data-theme='dark'] .sitemap-card-meta {
  color: var(--text-muted) !important;
}

/* ==========================================================================
   Comprehensive Mobile Portrait Compatibility (< 640px)
   Android & iOS Phones (360px - 430px Viewports)
   ========================================================================== */
@media (max-width: 640px) {
  /* 1. Body & Container Fluidity */
  body {
    padding-bottom: 74px !important; /* Avoid overlap with mobile bottom nav */
  }

  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* 2. Brand Carousel Mobile Optimization */
  .brand-carousel-section {
    padding: 10px 0 4px !important;
  }

  .brand-carousel-wrapper {
    position: relative;
    overflow: visible;
  }

  .brand-carousel-arrow {
    display: none !important; /* Hide arrows on touch screens; finger swipe is primary */
  }

  .brand-carousel-scroll {
    gap: 8px !important;
    padding: 4px 2px 8px !important;
    touch-action: pan-x pan-y !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x proximity;
  }

  .brand-item-card {
    min-width: 80px !important;
    max-width: 80px !important;
    height: 90px !important;
    border-radius: 14px !important;
    padding: 0 4px 5px !important;
    justify-content: flex-start !important;
    gap: 3px !important;
    scroll-snap-align: start;
  }

  .brand-emblem-box {
    width: 62px !important;
    height: 62px !important;
    padding: 5px !important;
    border-radius: 50% !important;
    background-color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 0 !important;
  }

  .brand-logo-img {
    width: 46px !important;
    height: 46px !important;
    max-width: 86% !important;
    max-height: 86% !important;
  }

  .brand-emblem-box > svg {
    width: 34px !important;
    height: 34px !important;
  }

  .brand-item-card span {
    font-size: 11px !important;
    font-weight: 800 !important;
  }

  /* 3. Filter Toolbar: 2-Column Clean Grid */
  .filter-toolbar {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin: 8px 0 16px !important;
  }

  .btn-all-filters {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    justify-content: center !important;
    padding: 9px 14px !important;
    font-size: 13px !important;
  }

  .filter-chip-select {
    width: 100% !important;
    min-width: 0 !important;
    padding: 8px 8px 8px 24px !important;
    font-size: 12px !important;
    background-position: left 6px center !important;
  }

  /* 4. Catalog Header & Sort - Single Unified Row ("سطر النتائج") */
  .catalog-section-head {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
    padding-bottom: 10px !important;
    flex-wrap: nowrap !important;
  }

  .catalog-title-group {
    justify-content: flex-start !important;
    width: auto !important;
    flex-shrink: 0 !important;
  }

  .catalog-main-title {
    font-size: 15px !important;
  }

  .catalog-results-box {
    gap: 3px !important;
  }

  .catalog-results-text {
    font-size: 15px !important;
    gap: 5px !important;
  }

  .catalog-results-label {
    font-size: 15px !important;
  }

  .catalog-results-count-wrap {
    font-size: 14.5px !important;
  }

  .catalog-results-num {
    font-size: 15px !important;
  }

  .catalog-accent-bar-two-tone {
    width: 32px !important;
    height: 3px !important;
  }

  .catalog-sort-group {
    width: auto !important;
    justify-content: flex-end !important;
    padding: 0 !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
  }

  .catalog-sort-group .sort-select-wrap {
    padding: 6px 10px !important;
    border-radius: 8px !important;
    gap: 3px !important;
  }

  .catalog-sort-group .sort-select {
    font-size: 12.5px !important;
    padding: 1px 2px !important;
    max-width: 175px !important;
  }

  .catalog-sort-group .sort-icon-end svg,
  .catalog-sort-group .sort-chevron-start svg {
    width: 13.5px !important;
    height: 13.5px !important;
  }

  /* 5. Car Cards Mobile Portrait */
  .cars-catalog-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
  }

  .car-card-body {
    padding: 12px !important;
  }

  .car-title {
    font-size: 15px !important;
    line-height: 1.4 !important;
    margin-bottom: 6px !important;
  }

  .car-price {
    font-size: 16px !important;
  }

  .car-specs-chips {
    padding: 6px 8px !important;
    gap: 4px !important;
    margin-bottom: 8px !important;
  }

  .spec-cell {
    font-size: 11px !important;
  }

  .car-meta-bottom-row {
    margin-bottom: 10px !important;
  }

  .car-location-info, .car-date-info {
    font-size: 11px !important;
  }

  .car-card-actions {
    gap: 4px !important;
  }

  .btn-card-details, .btn-card-wa, .btn-card-call {
    font-size: 11.5px !important;
    padding: 8px 4px !important;
    border-radius: 6px !important;
  }

  /* 6. Car Details Modal Mobile Portrait */
  .modal-overlay {
    padding: 10px !important;
  }

  .modal-card {
    padding: 16px 12px !important;
    border-radius: 16px !important;
    max-height: 94vh !important;
  }

  .modal-close-btn {
    top: 10px !important;
    left: 10px !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 14px !important;
  }

  .modal-hero-img-wrap {
    max-height: 240px !important;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
  }

  .modal-gallery-thumbs {
    gap: 6px !important;
    margin-bottom: 14px !important;
  }

  .modal-thumb {
    width: 68px !important;
    height: 48px !important;
  }

  .modal-specs-table th, .modal-specs-table td {
    padding: 8px 10px !important;
    font-size: 12.5px !important;
  }

  /* 6b. Filters Modal Mobile Portrait */
  .filters-modal-dialog {
    max-height: 94vh !important;
    border-radius: 16px !important;
  }

  .filters-modal-body {
    padding: 14px 16px 20px !important;
    gap: 13px !important;
  }

  .filter-field-group {
    gap: 6px !important;
  }

  /* 7. Footer Mobile Portrait */
  .site-footer {
    padding: 28px 0 20px !important;
  }

  .footer-top-banner {
    padding: 16px 14px !important;
    margin-bottom: 22px !important;
    border-radius: 14px !important;
  }

  .footer-cta-title {
    font-size: 16px !important;
  }

  .footer-cta-sub {
    font-size: 12.5px !important;
  }

  .footer-cta-actions {
    width: 100% !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .footer-btn-wa, .footer-btn-top {
    width: 100% !important;
    justify-content: center !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }

  .footer-trust-strip {
    flex-direction: column !important;
    gap: 8px !important;
    text-align: center !important;
  }

  .footer-trust-sep {
    display: none !important;
  }

  .footer-bottom-bar {
    flex-direction: column !important;
    text-align: center !important;
    gap: 10px !important;
  }
}


/* ===== v3.7 Accessibility & resilience additions ===== */
.skip-link {
  position: absolute;
  top: -100px;
  right: 16px;
  z-index: 10000;
  background: var(--primary, #2563eb);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

:where(a, button, select, input, [tabindex="0"]):focus-visible {
  outline: 3px solid var(--primary, #2563eb);
  outline-offset: 2px;
}

.car-thumb-img.img-fallback { object-fit: contain; background: var(--bg-subtle, #eef2ff); }

button.m-nav-item { font-family: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border-width: 0 !important;
}

/* ========================================================
   Full Filters Modal & Sliders (Matching Photo 2)
   ======================================================== */
.full-filters-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  visibility: visible;
  opacity: 1;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.full-filters-modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.filters-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.filters-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .filters-modal-dialog {
  background: #1e293b;
  border: 1px solid #334155;
  color: #f1f5f9;
}

@keyframes modalSlideUp {
  from {
    transform: translateY(24px) scale(0.96);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.filters-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid #f1f5f9;
}

[data-theme="dark"] .filters-modal-header {
  border-bottom-color: #334155;
}

.filters-modal-title {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

[data-theme="dark"] .filters-modal-title {
  color: #f8fafc;
}

.filters-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="dark"] .filters-modal-close {
  background: #0f172a;
  border-color: #334155;
  color: #94a3b8;
}

.filters-modal-close:hover {
  border-color: #94a3b8;
  color: #0f172a;
  background: #f8fafc;
}

.filters-modal-body {
  padding: 16px 20px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.filters-modal-body::-webkit-scrollbar {
  width: 6px;
}

.filters-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.filters-modal-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

[data-theme="dark"] .filters-modal-body::-webkit-scrollbar-thumb {
  background: #475569;
}

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

.filter-field-label {
  font-size: 14px;
  font-weight: 800;
  color: #1e293b;
}

[data-theme="dark"] .filter-field-label {
  color: #f1f5f9;
}

.filter-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.filter-search-input {
  width: 100%;
  height: 44px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 0 42px 0 14px;
  font-size: 14px;
  font-family: inherit;
  color: #0f172a;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .filter-search-input {
  background: #0f172a;
  border-color: #334155;
  color: #f8fafc;
}

.filter-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.filter-input-icon {
  position: absolute;
  right: 14px;
  color: #64748b;
  display: flex;
  align-items: center;
  pointer-events: none;
}

/* Custom Automotive Brand Autocomplete Dropdown */
.brand-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  max-height: 220px;
  overflow-y: auto;
  z-index: 100;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  direction: rtl;
  scrollbar-width: thin;
}

.brand-autocomplete-dropdown.hidden {
  display: none !important;
}

[data-theme="dark"] .brand-autocomplete-dropdown {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.brand-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  background: transparent;
  width: 100%;
  text-align: right;
  font-family: inherit;
}

[data-theme="dark"] .brand-dropdown-item {
  color: #f8fafc;
}

.brand-dropdown-item:hover,
.brand-dropdown-item:focus,
.brand-dropdown-item.active {
  background: var(--primary-subtle);
  color: var(--primary);
  outline: none;
}

[data-theme="dark"] .brand-dropdown-item:hover,
[data-theme="dark"] .brand-dropdown-item:focus,
[data-theme="dark"] .brand-dropdown-item.active {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.brand-dropdown-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.04));
}

.brand-dropdown-name {
  flex: 1;
}

.brand-dropdown-all {
  font-weight: 800;
  color: var(--primary);
  border-bottom: 1px solid #f1f5f9;
  border-radius: 6px;
  margin-bottom: 2px;
}

[data-theme="dark"] .brand-dropdown-all {
  border-bottom-color: #334155;
  color: #60a5fa;
}

.brand-dropdown-empty {
  padding: 14px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}

/* Dual Range Slider (Photo 2) */
.dual-slider-container {
  position: relative;
  height: 22px;
  display: flex;
  align-items: center;
  margin: 4px 0 8px;
}

.dual-slider-track {
  position: absolute;
  width: 100%;
  height: 4.5px;
  background-color: #e2e8f0;
  border-radius: 999px;
  z-index: 1;
}

[data-theme="dark"] .dual-slider-track {
  background-color: #334155;
}

.dual-slider-highlight {
  position: absolute;
  height: 100%;
  background-color: var(--primary);
  border-radius: 999px;
  left: 0;
  right: 0;
}

.dual-slider-input {
  position: absolute;
  width: 100%;
  height: 4.5px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
  z-index: 2;
  margin: 0;
}

.dual-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid var(--primary);
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease;
}

.dual-slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.dual-slider-input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid var(--primary);
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.filter-min-max-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.filter-num-input {
  width: 100%;
  height: 42px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 13.5px;
  font-family: inherit;
  color: #0f172a;
  background: #ffffff;
  text-align: right;
  transition: border-color 0.2s ease;
}

[data-theme="dark"] .filter-num-input {
  background: #0f172a;
  border-color: #334155;
  color: #f8fafc;
}

.filter-num-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.filter-num-input::-webkit-outer-spin-button,
.filter-num-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.filter-num-input[type="number"] {
  -moz-appearance: textfield;
}

/* City Select Dropdown */
.filter-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.filter-modal-select {
  width: 100%;
  height: 44px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 0 14px 0 36px;
  font-size: 14px;
  font-family: inherit;
  color: #0f172a;
  background: #ffffff;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

[data-theme="dark"] .filter-modal-select {
  background: #0f172a;
  border-color: #334155;
  color: #f8fafc;
}

.filter-modal-select:focus {
  outline: none;
  border-color: var(--primary);
}

.filter-select-chevron {
  position: absolute;
  left: 14px;
  color: #64748b;
  pointer-events: none;
  display: flex;
  align-items: center;
}

/* Condition / Date Pills (Photo 2) */
.filter-pills-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-pill-btn {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

[data-theme="dark"] .filter-pill-btn {
  background: #0f172a;
  border-color: #334155;
  color: #cbd5e1;
}

.filter-pill-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-pill-btn.active {
  border-color: var(--primary);
  background: var(--primary-subtle);
  color: var(--primary);
  font-weight: 800;
}

[data-theme="dark"] .filter-pill-btn.active {
  background: rgba(59, 130, 246, 0.25);
  border-color: #60a5fa;
  color: #93c5fd;
}

/* Modal Actions Footer (Photo 2) */
.filters-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-top: 1px solid #f1f5f9;
  background: #ffffff;
}

[data-theme="dark"] .filters-modal-footer {
  border-top-color: #334155;
  background: #1e293b;
}

.btn-filter-reset {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 12px;
  transition: color 0.2s ease;
  font-family: inherit;
}

.btn-filter-reset:hover {
  color: #ef4444;
}

.btn-filter-apply {
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 11px 30px;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.25);
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-filter-apply:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.35);
}

/* ==========================================================================
   Brand SEO Summary Card (Bottom of Brand Pages)
   ========================================================================== */
.brand-seo-summary-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  padding: 22px 24px;
  margin-top: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.brand-seo-summary-card h2 {
  font-size: 16px;
  font-weight: 900;
  color: var(--text-main);
  margin: 0;
}

.brand-seo-summary-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

/* ==========================================================================
   Brand Category Hero Card (Compact & Balanced Layout)
   ========================================================================== */
.brand-hero-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  padding: 12px 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.brand-hero-start {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.brand-hero-logo {
  width: 48px;
  height: 48px;
  padding: 6px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-hero-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.brand-hero-title {
  font-size: 17px;
  font-weight: 900;
  color: var(--text-main);
  margin: 0;
  line-height: 1.25;
}

.brand-hero-badge-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-hero-badge {
  background: var(--primary-subtle);
  color: var(--primary);
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  width: fit-content;
  white-space: nowrap;
}

.brand-hero-btn {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1.5px solid var(--border-color);
  padding: 7px 13px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.brand-hero-btn:hover {
  background: var(--primary-subtle);
  color: var(--primary);
  border-color: var(--primary);
}

@media (max-width: 640px) {
  .brand-hero-card {
    padding: 10px 12px;
    gap: 8px;
  }
  .brand-hero-start {
    gap: 10px;
  }
  .brand-hero-logo {
    width: 42px;
    height: 42px;
    padding: 5px;
  }
  .brand-hero-title {
    font-size: 14.5px;
  }
  .brand-hero-badge {
    font-size: 10.5px;
    padding: 1.5px 7px;
  }
  .brand-hero-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
}

/* ==========================================================================
   Modern Blue Design System Components (Mockup Exact Match)
   Palette: #0066FF · #00C2FF · #0F172A · #F8FAFC
   ========================================================================== */

/* Hero Section */
.modern-hero {
  position: relative;
  padding: 32px 0 20px 0;
  margin-bottom: 24px;
}

.hero-main-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 24px;
}

.hero-content-col {
  flex: 1;
  max-width: 620px;
}

.hero-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient-badge);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(28px, 4.2vw, 48px);
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.hero-title-gradient {
  background: var(--gradient-hero-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(14.5px, 1.8vw, 17px);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.hero-visual-col {
  flex: 1;
  max-width: 580px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-car-img-wrap {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 36px -10px rgba(0, 102, 255, 0.22);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}

.hero-car-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

/* Floating Badges on Hero Car */
.hero-float-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.15);
}

/* Hero Search Widget Card (Mockup Exact Match) */
.hero-search-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 12px 36px -8px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(0, 102, 255, 0.05);
  position: relative;
  z-index: 10;
  margin-bottom: 24px;
}

.hero-tabs-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 14px;
}

.hero-tab-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 800;
  padding: 7px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-tab-btn:hover {
  color: var(--primary);
  border-color: var(--primary-border);
}

.hero-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.32);
}

/* Form Fields Grid inside Search Card */
.hero-fields-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.hero-field-group {
  display: flex;
  flex-direction: column;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 7px 12px;
  transition: var(--transition);
}

.hero-field-group:focus-within {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
}

.hero-field-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
}

.hero-field-label svg {
  color: var(--primary);
  flex-shrink: 0;
}

.hero-field-select,
.hero-field-input {
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  outline: none;
  width: 100%;
  cursor: pointer;
  padding: 2px 0;
}

.hero-search-submit-btn {
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(0, 102, 255, 0.32);
  transition: var(--transition);
  height: 54px;
  white-space: nowrap;
}

.hero-search-submit-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 102, 255, 0.45);
}

/* 5 Hero Trust Badges Row */
.hero-trust-badges {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #eff6ff;
  color: #0066FF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 102, 255, 0.12);
}

[data-theme='dark'] .trust-icon-box {
  background: rgba(0, 102, 255, 0.18);
  color: #00C2FF;
}

.trust-text-wrap {
  display: flex;
  flex-direction: column;
}

.trust-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.trust-subtitle {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.25;
}

/* Section Header Rows */
.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 32px 0 16px 0;
}

.section-title {
  font-size: clamp(20px, 2.5vw, 25px);
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.3px;
  margin: 0;
}

.section-link-more {
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.section-link-more:hover {
  color: var(--accent);
  transform: translateX(-3px);
}

/* Promotional Sell Your Car Banner */
.sell-banner-section {
  margin: 36px 0 28px 0;
}

.sell-banner-card {
  background: var(--gradient-dark-banner);
  border-radius: 22px;
  padding: 38px 44px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 18px 40px -8px rgba(0, 102, 255, 0.28);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.sell-banner-content {
  flex: 1;
  max-width: 520px;
  z-index: 2;
}

.sell-banner-title {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 10px;
}

.sell-banner-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.65;
  margin-bottom: 22px;
}

.sell-banner-cta-btn {
  background: #ffffff;
  color: #0066FF !important;
  font-size: 15px;
  font-weight: 800;
  padding: 13px 28px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  transition: var(--transition);
  text-decoration: none;
}

.sell-banner-cta-btn:hover {
  background: #f0f7ff;
  color: #0052cc !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.sell-banner-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  z-index: 2;
}

.sell-features-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sell-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
}

.sell-car-thumb {
  max-width: 280px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  display: block;
}

/* Popular Car Types Section */
.popular-types-section {
  margin: 32px 0 24px 0;
}

.car-types-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.car-type-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  padding: 18px 12px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.car-type-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.car-type-card.active {
  border-color: var(--primary);
  background: var(--primary-subtle);
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.2);
}

.car-type-svg-box {
  width: 100%;
  max-width: 110px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.car-type-svg-box svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.car-type-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.car-type-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Why Choose Pizul Section */
.why-choose-section {
  margin: 36px 0 32px 0;
}

.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.why-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 18px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.why-card:hover {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.why-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #eff6ff;
  color: #0066FF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 102, 255, 0.15);
}

[data-theme='dark'] .why-icon-box {
  background: rgba(0, 102, 255, 0.2);
  color: #00C2FF;
}

.why-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.why-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Responsive Breakpoints for Modern Blue Components */
@media (max-width: 1024px) {
  .hero-main-layout {
    flex-direction: column;
    text-align: center;
  }
  .hero-content-col {
    max-width: 100%;
  }
  .hero-visual-col {
    max-width: 100%;
  }
  .hero-fields-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-search-submit-btn {
    grid-column: span 2;
  }
  .hero-trust-badges {
    grid-template-columns: repeat(3, 1fr);
  }
  .why-choose-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sell-banner-card {
    flex-direction: column;
    text-align: center;
    padding: 30px 24px;
  }
  .sell-banner-content {
    max-width: 100%;
  }
  .sell-banner-visual {
    flex-direction: column;
    width: 100%;
  }
  .sell-car-thumb {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .hero-fields-grid {
    grid-template-columns: 1fr;
  }
  .hero-search-submit-btn {
    grid-column: 1 / -1;
    width: 100%;
  }
  .hero-trust-badges {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .car-types-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-choose-grid {
    grid-template-columns: 1fr;
  }
}


