/* =========================
   1. Base & Typography
   ========================= */
body.electri-car {
  background-color: #111;
  color: #ddd;
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  padding-top: 69px;
}

/* =========================
   2. Layout: Flex, Main, Sections, Grid
   ========================= */
body.electri-car .flex {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
}

body.electri-car main {
  padding: 20px;
}

body.electri-car .homepage-main {
  min-width: 0;
}

@media (min-width: 1024px) {
  body.electri-car .homepage-main {
    width: calc(80% - 300px);
    flex: 1 1 calc(80% - 300px);
  }

  body.electri-car .homepage-sidebar {
    display: block;
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    min-height: 600px;
    flex: 0 0 300px;
  }
}

@media (max-width: 1023px) {
  body.electri-car .homepage-sidebar {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  body.electri-car #skyscraper-slot {
    min-width: 300px;
    max-width: 300px;
    flex: 0 0 300px;
  }
}

body.electri-car section {
  margin-bottom: 40px;
}

body.electri-car section h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: #99d8ff;
}

body.electri-car .grid {
  display: grid;
  gap: 20px;
}

body.electri-car .homepage-horizontal-banner-slot {
  width: 100%;
  max-width: 1600px;
  aspect-ratio: 4 / 1;
  margin: 20px auto;
}

body.electri-car .listing-horizontal-banner-slot,
body.electri-car .results-middle-banner-slot {
  width: 100%;
  max-width: 1600px;
  aspect-ratio: 4 / 1;
  margin: 20px auto;
}

body.electri-car .publicitate-label {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

body.electri-car .results-page-grid {
  min-height: 760px;
}

body.electri-car .homepage-car-grid {
  min-height: 4500px;
}

body.electri-car .homepage-wiki-grid {
  min-height: 2200px;
}

body.electri-car #footer-placeholder {
  min-height: 650px;
}

body.electri-car .popular-wiki-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

body.electri-car .popular-wiki-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

body.electri-car .popular-wiki-card-media {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
}

body.electri-car .popular-wiki-card-logo-placeholder {
  background: #111827;
  padding: 24px;
}

body.electri-car .grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  body.electri-car .results-page-grid {
    min-height: 420px;
  }

  body.electri-car .homepage-car-grid {
    min-height: 1800px;
  }

  body.electri-car .homepage-wiki-grid {
    min-height: 1050px;
  }

  body.electri-car #footer-placeholder {
    min-height: 420px;
  }

  body.electri-car .md\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  body.electri-car .md\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================
   3. Header & Navigation
   ========================= */
body.electri-car header.electri-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  min-height: 69px;
  background-color: #152fa3;
  border-bottom: 1px solid #0d1f6b;
  z-index: 1000;
}

body.electri-car .header-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Logo & nume */
body.electri-car .logo-area {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  gap: 12px;
}

body.electri-car .logo-img {
  height: 48px;
}

body.electri-car .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

body.electri-car .platform-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

body.electri-car .tagline {
  font-size: 0.75rem;
  color: #99d8ff;
}

/* Navigație desktop */
body.electri-car .nav-links {
  display: none;
}

body.electri-car .nav-links a {
  color: #ddd;
  text-decoration: none;
  margin-left: 20px;
  font-size: 0.95rem;
  transition: color 0.2s ease-in-out;
}

body.electri-car .nav-links a:hover {
  color: #99d8ff;
}

body.electri-car .header-search-desktop {
  display: none;
  flex: 0 1 220px;
  min-width: 160px;
}

body.electri-car .header-search-desktop input {
  width: 100%;
}

body.electri-car .header-search-form {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

body.electri-car .header-search-form input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

body.electri-car .header-search-submit {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #99d8ff;
  border-radius: 6px;
  background: #0d1f6b;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

body.electri-car .header-search-submit:hover,
body.electri-car .header-search-submit:focus-visible {
  background: #1c3fd1;
  outline: 2px solid #99d8ff;
  outline-offset: 2px;
}

body.electri-car .header-search-submit-mobile {
  padding: 0 16px;
}

/* Burger */
body.electri-car .burger {
  font-size: 1.5rem;
  color: #99d8ff;
  background: none;
  border: none;
  cursor: pointer;
  display: block;
}

/* Navigație mobilă */
body.electri-car .mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 999;
  background-color: #152fa3;
  flex-direction: column;
  padding: 10px 20px;
}

body.electri-car .mobile-nav a {
  color: #ddd;
  text-decoration: none;
  padding: 8px 0;
  font-size: 0.95rem;
}

body.electri-car .mobile-nav a:hover {
  color: #99d8ff;
}

@media (min-width: 768px) {
  body.electri-car .nav-links {
    display: flex;
  }

  body.electri-car .header-search-desktop {
    display: block;
  }

  body.electri-car .burger {
    display: none;
  }

  body.electri-car .mobile-nav {
    display: none !important;
  }
}

/* =========================
   4. Filters Sidebar
   ========================= */
body.electri-car aside.filters {
  background-color: #1b1b1b;
  padding: 20px;
  border-right: 1px solid #333;
  min-width: 220px;
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  max-width: 100%;
  height: auto !important;
  max-height: none !important;
}

/* Specific targeting for filtersPanel to override any conflicting styles */
body.electri-car #filtersPanel {
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  height: auto !important;
  max-height: none !important;
  align-self: flex-start !important;
}

/* Ensure the parent flex container doesn't constrain the sidebar */
body.electri-car .flex > aside.filters,
body.electri-car .flex > #filtersPanel {
  flex-shrink: 0 !important;
  min-height: 0 !important;
}

/* Main "Filtre" heading */
body.electri-car aside.filters h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: #99d8ff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #152fa3;
  padding-bottom: 8px;
}

/* Filter section headings (Marcă, Tip caroserie, etc.) */
body.electri-car aside.filters h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
  margin-top: 20px;
}

/* Generic label styling */
body.electri-car aside.filters label {
  display: block;
  margin: 4px 0;
  font-size: 0.875rem;
  color: #aaa;
}

/* Checkbox label styling */
body.electri-car .filter-checkbox-label {
  display: flex;
  align-items: center;
  padding: 4px 12px;
  margin: 1px 0;
  font-size: 0.9375rem;
  color: #ddd;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

body.electri-car .filter-checkbox-label:hover {
  background-color: #252525;
  color: #fff;
}

body.electri-car .filter-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-right: 10px;
  cursor: pointer;
  accent-color: #152fa3;
  flex-shrink: 0;
}

body.electri-car .filter-checkbox-label span {
  flex: 1;
  line-height: 1.4;
}

/* Filter containers spacing */
body.electri-car aside.filters .mb-4 {
  margin-bottom: 24px;
}

body.electri-car aside.filters input[type="range"] {
  width: 100%;
  margin-top: 6px;
}

body.electri-car aside.filters > div {
  max-width: 100%;
  overflow: visible;
}

body.electri-car aside.filters #pretSlider,
body.electri-car aside.filters #autonomieSlider,
body.electri-car aside.filters #capacitateSlider {
  max-width: 100%;
  overflow: visible;
}

body.electri-car .filter-options-toggle {
  display: inline-flex;
  margin-top: 8px;
  padding: 4px 8px;
  color: #99d8ff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 4px;
}

body.electri-car .filter-option-extra[hidden] {
  display: none !important;
}

body.electri-car .filter-options-toggle:hover,
body.electri-car .filter-options-toggle:focus-visible {
  color: #fff;
  background: #252525;
  outline: none;
}

body.electri-car .listing-quick-filters,
body.electri-car .listing-active-filters {
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid #404040;
  border-radius: 8px;
  background: #1b1b1b;
}

body.electri-car .listing-filter-label {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
}

body.electri-car .quick-filter-list,
body.electri-car .active-filter-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.electri-car .quick-filter-button,
body.electri-car .active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  color: #e5e7eb;
  font-size: 0.8125rem;
  border: 1px solid #525252;
  border-radius: 999px;
  background: #262626;
}

body.electri-car .quick-filter-button:hover,
body.electri-car .quick-filter-button:focus-visible,
body.electri-car .active-filter-chip:hover,
body.electri-car .active-filter-chip:focus-visible {
  border-color: #99d8ff;
  color: #fff;
  outline: none;
}

body.electri-car .quick-filter-button[aria-pressed="true"],
body.electri-car .active-filter-chip {
  border-color: #99d8ff;
  color: #fff;
  background: #152fa3;
}

body.electri-car .clear-active-filters {
  margin-top: 10px;
  color: #99d8ff;
  font-size: 0.8125rem;
  font-weight: 600;
}

body.electri-car .clear-active-filters:hover,
body.electri-car .clear-active-filters:focus-visible {
  color: #fff;
  text-decoration: underline;
  outline: none;
}

@media (min-width: 1024px) {
  body.electri-car .homepage-car-grid {
    min-height: 720px;
  }

  body.electri-car .homepage-wiki-grid {
    min-height: 620px;
  }

  body.electri-car #footer-placeholder {
    min-height: 300px;
  }

  body.electri-car #filtersPanel {
    position: sticky !important;
    top: 88px;
    max-height: calc(100vh - 104px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;

    /* Hide scrollbar — Firefox */
    scrollbar-width: none;
    /* Hide scrollbar — IE / Edge legacy */
    -ms-overflow-style: none;
  }

  /* Hide scrollbar — Chrome, Safari, Edge (WebKit) */
  body.electri-car #filtersPanel::-webkit-scrollbar {
    display: none;
  }
}

/* =========================
   5. Buttons
   ========================= */
body.electri-car .btn-apply,
body.electri-car .btn-reset {
  width: 100%;
  padding: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin: 10px 0;
  transition: background-color 0.2s ease-in-out;
}

body.electri-car .btn-apply {
  background-color: #152fa3;
  color: #fff;
}

body.electri-car .btn-apply:hover {
  background-color: #0d1f6b;
}

body.electri-car .btn-reset {
  background-color: #444;
  color: #ccc;
}

body.electri-car .btn-reset:hover {
  background-color: #333;
}

/* =========================
   8. Footer
   ========================= */
body.electri-car footer {
  background-color: #111;
  padding: 30px 20px;
}

body.electri-car .footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

body.electri-car .footer-section {
  flex: 0 1 auto;
  text-align: center;
}

body.electri-car .footer-logo {
  max-width: 100px;
  height: auto;
}

body.electri-car .links-section h3,
body.electri-car .contact-section h3,
body.electri-car .social-section h3 {
  color: #99d8ff;
  margin-bottom: 10px;
}

body.electri-car .links-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

body.electri-car .links-section li {
  margin-bottom: 5px;
}

body.electri-car .links-section a,
body.electri-car .contact-section p {
  color: #ccc;
  text-decoration: none;
  display: block;
}

body.electri-car .social-section .social-icons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

body.electri-car .social-section .social-icons a {
  color: #ccc;
  font-size: 1.5em;
  text-decoration: none;
}

body.electri-car .social-section .social-icons a:hover {
  color: #99d8ff;
}

body.electri-car .back-to-top-section {
  flex-basis: 100%;
  text-align: center;
  margin-top: 20px;
}

body.electri-car .back-to-top {
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}

body.electri-car .back-to-top i {
  font-size: 2em;
  color: #ccc;
}

body.electri-car .back-to-top:hover i {
  color: #99d8ff;
}

body.electri-car .footer-bottom {
  color: #666;
  margin-top: 30px;
  padding-top: 10px;
  text-align: center;
  border-top: 1px solid #333;
}
body.electri-car .footer-disclaimer {
  font-size: 11px;
  color: #bbb;
  text-align: center;
  padding: 8px 16px;
  max-width: 960px;
  margin: 0 auto;
  line-height: 1.4;
}


/* =========================
   9. Sliders (noUiSlider)
   ========================= */
/* Stil pentru wrapperul sliderului */
#pretSlider,
#autonomieSlider,
#capacitateSlider
 {
  margin-top: 40px;
  margin-bottom: 20px;
  max-width: 100%;
  box-sizing: border-box;
}

/* Stil pentru track-ul sliderului */
.noUi-target {
  background: #333;
  border: none;
  border-radius: 4px;
  height: 6px;
  box-shadow: none;
}

/* Stil general valabil pentru toate slider-ele */
#pretSlider .noUi-connect,
#autonomieSlider .noUi-connect,
#capacitateSlider .noUi-connect {
  background: #152fa3;
}

/* Thumb-urile (mânerele) sliderului */
#pretSlider .noUi-handle,
#autonomieSlider .noUi-handle,
#capacitateSlider .noUi-handle {
  border: 2px solid #152fa3;
  background: #99d8ff;
  border-radius: 50%;
  height: 10px;
  width: 10px;
  top: -6px;
  box-shadow: none;
  cursor: pointer;
}

/* Elimină săgețile interioare implicite */
.noUi-handle:before,
.noUi-handle:after {
  display: none;
}

/* Tooltips */
#pretSlider .noUi-tooltip,
#autonomieSlider .noUi-tooltip,
#capacitateSlider .noUi-tooltip {
  background: #152fa3;
  color: #fff;
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 3px;
  border: none;
  box-shadow: none;
}

body.electri-car #pretFilterContainer {
  padding-bottom: 16px;
}
/* =========================
   404 Error Page Styles (Centered)
   ========================= */
body.electri-car .error-page {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 160px); /* subtract header+footer approx. */
  text-align: center;
  padding: 20px;
  background-color: #000;
}

body.electri-car .error-page section {
  max-width: 600px;
  width: 100%;
}

body.electri-car .error-page img {
  margin-bottom: 20px;
}

body.electri-car .error-heading {
  font-size: 1.75rem;
  color: #99d8ff;
  margin-bottom: 16px;
  font-weight: 600;
}

body.electri-car .error-message {
  color: #ccc;
  font-size: 1rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

body.electri-car .error-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

body.electri-car .btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 0.95rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease-in-out;
  font-weight: 600;
}

body.electri-car .btn-primary {
  background-color: #152fa3;
  color: #fff;
}

body.electri-car .btn-primary:hover {
  background-color: #0d1f6b;
}

body.electri-car .btn-secondary {
  background-color: #444;
  color: #ccc;
}

body.electri-car .btn-secondary:hover {
  background-color: #333;
}
body.electri-car .error-page img {
  display: block;
  margin: 0 auto 20px auto;
  max-width: 100%;
  height: auto;
}
/* === Social Icons Hover Colors (Electri-Car Footer) === */
.footer-section .social-icons a {
  color: #bfbfbf;
  font-size: 1.4rem;
  margin-right: 12px;
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-section .social-icons a:hover {
  transform: translateY(-3px);
}

/* Individual platform colors */
.footer-section .social-icons a[aria-label="LinkedIn"]:hover {
  color: #0a66c2;
}

.footer-section .social-icons a[aria-label="Reddit"]:hover {
  color: #ff4500;
}

.footer-section .social-icons a[aria-label="YouTube"]:hover {
  color: #ff0000;
}

.footer-section .social-icons a[aria-label="Instagram"]:hover {
  color: #e1306c;
}

.footer-section .social-icons a[aria-label="Threads"]:hover {
  color: #ffffff;
}

.footer-section .social-icons a[aria-label="Medium"]:hover {
  color: #00ab6c;
}

.footer-section .social-icons a[aria-label="Substack"]:hover {
  color: #ff6719;
}
