/* ==========================================================================
   LUNEXIA MOTORS - VEHICLES & INVENTORY CSS
   ========================================================================== */

/* Vehicle Card Modern Styling */
.lx-vehicle-card {
  background: var(--lx-bg-card, #141414);
  border-radius: var(--lx-radius-lg, 16px);
  border: 1px solid var(--lx-border-subtle, #242424);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.lx-vehicle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

.lx-vehicle-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000000;
}

.lx-vehicle-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.lx-vehicle-card:hover .lx-vehicle-card-thumb img {
  transform: scale(1.04);
}

.lx-vehicle-badge-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.lx-vehicle-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.lx-vehicle-card-title {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--lx-text-white, #ffffff);
  line-height: 1.35;
  font-family: var(--lx-font-heading);
}

.lx-vehicle-card-title a {
  color: inherit;
}

.lx-vehicle-card-title a:hover {
  color: var(--lx-accent-blue, #3b82f6);
}

.lx-vehicle-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--lx-text-secondary, #9ca3af);
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--lx-border-subtle, #242424);
}

.lx-vehicle-spec-pill {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lx-vehicle-card-price-row {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
}

.lx-vehicle-price-main {
  font-family: var(--lx-font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--lx-text-white, #ffffff);
  line-height: 1;
}

.lx-vehicle-price-label {
  font-size: 0.75rem;
  color: var(--lx-text-muted, #6b7280);
  text-transform: uppercase;
  margin-bottom: 2px;
}

/* Vehicle Inventory Layout */
.lx-inventory-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  margin: 3rem 0;
}

@media (max-width: 992px) {
  .lx-inventory-layout {
    grid-template-columns: 1fr;
  }
}

.lx-filter-sidebar {
  background: var(--lx-color-surface);
  border-radius: var(--lx-radius-lg);
  border: 1px solid var(--lx-color-border);
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 96px;
}

.lx-filter-title {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Comparison Table */
.lx-compare-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--lx-radius-lg);
  border: 1px solid var(--lx-color-border);
  background: var(--lx-color-surface);
}

.lx-compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.lx-compare-table th,
.lx-compare-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--lx-color-border);
  border-right: 1px solid var(--lx-color-border);
  vertical-align: middle;
}

.lx-compare-table th {
  background: var(--lx-color-bg);
  font-family: var(--lx-font-heading);
  font-weight: 700;
  width: 220px;
}

.lx-compare-table tr:last-child th,
.lx-compare-table tr:last-child td {
  border-bottom: none;
}
