/* ==========================================================================
   AUTOVANTA CAR CARDS, BRANDS, DEALERS & NEWS CARDS
   ========================================================================== */

/* Car Card Component */
/* Car Card Component - Minimalist Luxury (Brand/Model, Fuel, Price) */
.car-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 2px 10px rgba(16, 19, 30, 0.03);
}

.car-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-red);
  box-shadow: 0 12px 28px rgba(16, 19, 30, 0.08), 0 0 0 2px rgba(229, 9, 20, 0.25);
}

.car-card-media {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: #f0f2f8;
}

.car-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.car-card-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

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

.car-card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.car-brand-name {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-red);
}

.car-fuel-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  padding: 2px 9px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  letter-spacing: 0.04em;
}

.car-fuel-badge i {
  color: var(--accent-red);
  font-size: 0.7rem;
}

.car-model-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.25;
}

.car-model-title a {
  color: inherit;
  transition: color var(--transition-fast);
}

.car-model-title a:hover {
  color: var(--accent-red);
}

/* Card Price & Actions */
.car-card-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.car-price-block {
  display: flex;
  flex-direction: column;
}

.car-price-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.car-price-val {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-red);
  line-height: 1.1;
}

.btn-card-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: var(--accent-red);
  color: #ffffff !important;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  transition: all var(--transition-fast);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.25);
}

.btn-card-view:hover {
  background: var(--accent-red-hover);
  transform: translateX(3px);
  box-shadow: 0 4px 14px var(--accent-red-glow);
}

/* Wider Home Cars Grid */
#home-cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 24px;
}

@media (max-width: 768px) {
  #home-cars-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Category Grid Cards */
.category-card {
  position: relative;
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  text-decoration: none;
  transition: all var(--transition-normal);
}

.category-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.category-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.2) 0%, rgba(8, 8, 10, 0.9) 90%);
  z-index: 2;
  transition: background var(--transition-normal);
}

.category-card-content {
  position: relative;
  z-index: 3;
}

.category-card-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  transition: color var(--transition-fast);
}

.category-card-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-red);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 20px var(--accent-red-glow);
}

.category-card:hover .category-card-bg {
  transform: scale(1.1);
}

.category-card:hover .category-card-title {
  color: var(--accent-red);
}

/* Brand Grid Cards */
.brand-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--transition-normal);
  backdrop-filter: blur(8px);
}

.brand-card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 1.5rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.brand-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.brand-card-count {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.brand-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-red);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 28px rgba(16, 19, 30, 0.08);
}

.brand-card:hover .brand-card-icon {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 0 16px var(--accent-red-glow);
}

/* News & Article Card */
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.article-media {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.article-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.article-card:hover .article-img {
  transform: scale(1.08);
}

.article-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.article-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 12px;
}

.article-summary {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-red);
}

.article-card:hover {
  transform: translateY(-6px);
  border-color: rgba(229, 9, 20, 0.4);
  box-shadow: 0 14px 32px rgba(16, 19, 30, 0.08);
}

/* Dealer Card */
.dealer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition-normal);
}

.dealer-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-red);
  box-shadow: 0 12px 30px rgba(16, 19, 30, 0.08);
}

.dealer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.dealer-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.dealer-city {
  font-size: 0.8rem;
  color: var(--accent-red);
  text-transform: uppercase;
  font-weight: 700;
}

.dealer-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.dealer-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.dealer-info-list i {
  color: var(--accent-red);
  margin-top: 4px;
  font-size: 0.9rem;
}

.dealer-facilities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.dealer-facility-tag {
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   NEW FEATURES & LUXURY HOMEPAGE EXTENSIONS
   ========================================================================== */

/* Top Action Icons on Car Media (Wishlist & Compare) */
.car-card-top-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.car-action-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(8, 8, 10, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
  font-size: 0.85rem;
}

.car-action-icon-btn:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 14px var(--accent-red-glow);
}

.car-card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.car-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffd700;
  background: rgba(255, 215, 0, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 215, 0, 0.25);
}

/* Category Tab Bar for Showroom */
.showroom-tab-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.showroom-tab-btn {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(16, 19, 30, 0.04);
}

.showroom-tab-btn:hover {
  border-color: rgba(229, 9, 20, 0.4);
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.showroom-tab-btn.active {
  background: var(--grad-primary);
  border-color: var(--accent-red);
  color: #ffffff;
  box-shadow: 0 4px 18px var(--accent-red-glow);
}

/* SPOTLIGHT / COMING SOON LUXURY CAR SHOWCASE EXHIBIT */
.spotlight-showcase {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(16, 19, 30, 0.08);
  position: relative;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}

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

.spotlight-media-pane {
  position: relative;
  height: 480px;
  background: #090a10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.upcoming-luxury-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.upcoming-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 10, 16, 0.4) 0%, rgba(9, 10, 16, 0.1) 40%, rgba(9, 10, 16, 0.75) 100%);
  pointer-events: none;
  z-index: 2;
}

.upcoming-live-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 5;
  background: rgba(229, 9, 20, 0.9);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.4);
}

.upcoming-live-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  animation: pulseWhite 1.5s infinite;
}

@keyframes pulseWhite {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; box-shadow: 0 0 10px #ffffff; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.spotlight-angles-hud {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}

.upcoming-switcher-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(8, 8, 10, 0.85);
  padding: 5px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
}

.upcoming-switcher-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #cbd5e1;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body), sans-serif;
}

.upcoming-switcher-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.upcoming-switcher-btn.active {
  background: var(--accent-red);
  color: #ffffff;
  border-color: var(--accent-red);
  box-shadow: 0 2px 10px var(--accent-red-glow);
}

.spotlight-info-pane {
  padding: 44px;
}

.spotlight-telemetry-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
}

.telemetry-box {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
}

.telemetry-val {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.telemetry-val.highlight {
  color: var(--accent-red);
}

.telemetry-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* SMART BUDGET TIER CARDS */
.budget-tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(16, 19, 30, 0.04);
}

.budget-tier-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.budget-tier-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-red);
  box-shadow: 0 16px 36px rgba(16, 19, 30, 0.08);
}

.budget-tier-card:hover::before {
  opacity: 1;
}

.budget-tier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.budget-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(229, 9, 20, 0.08);
  border: 1px solid rgba(229, 9, 20, 0.2);
  color: var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.budget-range-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.budget-range-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 18px;
}

.budget-tier-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ENGINE SOUND SIMULATOR STUDIO */
.sound-chamber-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

@media (max-width: 576px) {
  .sound-chamber-grid {
    grid-template-columns: 1fr;
  }
}

.sound-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 16px rgba(16, 19, 30, 0.04);
}

.sound-card:hover,
.sound-card.playing {
  border-color: var(--accent-red);
  box-shadow: 0 12px 30px rgba(16, 19, 30, 0.08);
  transform: translateY(-4px);
}

.sound-play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--grad-primary);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(229, 9, 20, 0.35);
}

.sound-card.playing .sound-play-btn {
  transform: scale(1.1);
  box-shadow: 0 0 25px var(--accent-red-glow);
  animation: pulseRed 1.2s infinite;
}

.sound-engine-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.sound-car-model {
  font-size: 0.8rem;
  color: var(--accent-red);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.sound-spec-pill {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--bg-input);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* VERIFIED PATRON TESTIMONIAL CARDS */
.review-card-modern {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 16px rgba(16, 19, 30, 0.04);
}

.review-card-modern:hover {
  border-color: rgba(229, 9, 20, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(16, 19, 30, 0.08);
}

.review-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.review-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #128807;
  background: rgba(19, 136, 8, 0.1);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(19, 136, 8, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.review-car-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-red);
  margin-bottom: 12px;
  display: block;
}

.review-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 22px;
}

/* ==========================================================================
   THE MOST SEARCHED CARS (EXACT DESIGN AS REQUESTED)
   ========================================================================== */

.searched-cars-section {
  padding: 30px 0 10px;
  background: var(--bg-secondary);
  position: relative;
}

.searched-section-header {
  margin-bottom: 14px;
}

.searched-main-title {
  font-family: var(--font-body), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  margin: 0;
}

/* Category Tabs (Underline Indicator Style) */
.searched-tabs-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.searched-tabs-nav::-webkit-scrollbar {
  display: none;
}

.searched-tab-btn {
  background: transparent;
  border: none;
  font-family: var(--font-body), sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #6b7280;
  padding: 8px 2px 14px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.searched-tab-btn:hover {
  color: #111827;
}

.searched-tab-btn.active {
  color: #111827;
  font-weight: 700;
}

.searched-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #ff5338;
  border-radius: 2px 2px 0 0;
}

/* Carousel Container */
.searched-carousel-wrapper {
  position: relative;
  width: 100%;
}

.searched-carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 20px 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.searched-carousel-track::-webkit-scrollbar {
  display: none;
}

/* Floating Navigation Arrows */
.searched-nav-btn {
  position: absolute;
  top: 48%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  color: #374151;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.searched-nav-btn:hover {
  background: #ffffff;
  color: #ff5338;
  border-color: #ff5338;
  box-shadow: 0 6px 20px rgba(255, 83, 56, 0.2);
  transform: translateY(-50%) scale(1.08);
}

.searched-nav-btn.prev-btn {
  left: -16px;
  display: none; /* JS toggles when scrolled */
}

.searched-nav-btn.next-btn {
  right: -16px;
}

@media (max-width: 768px) {
  .searched-nav-btn {
    display: none !important;
  }
}

/* Searched Car Card (Enlarged & High-Impact Image 1 Style) */
.searched-car-card {
  flex: 0 0 315px;
  min-width: 305px;
  max-width: 345px;
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.searched-car-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e1;
}

.searched-card-media {
  position: relative;
  width: 100%;
  height: 210px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 14px;
}

.searched-launch-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #eef2f6;
  color: #374151;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 2;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Card Favorite Heart Button (Exact Design from Image 1) */
.card-fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(243, 244, 246, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #374151;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.card-fav-btn:hover {
  background: #ffffff;
  color: #ff5338;
  border-color: #ff5338;
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(255, 83, 56, 0.25);
}

.card-fav-btn.active,
.card-fav-btn.active i {
  color: #ff5338 !important;
  background: #ffffff;
  border-color: rgba(255, 83, 56, 0.35);
  box-shadow: 0 4px 12px rgba(255, 83, 56, 0.2);
}

.searched-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.08));
}

.searched-car-card:hover .searched-card-img {
  transform: scale(1.06);
}

/* Searched Card Body */
.searched-card-body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.searched-car-title {
  font-family: var(--font-body), sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 6px 0;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.searched-car-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.searched-car-title a:hover {
  color: #ff5338;
}

.searched-car-price {
  font-family: var(--font-body), sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 16px 0;
}

/* Outline Button */
.searched-offer-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: transparent;
  color: #ff5338;
  border: 1.5px solid #ff5338;
  border-radius: 8px;
  padding: 11px 0;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body), sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.searched-offer-btn:hover {
  background: #ff5338;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(255, 83, 56, 0.35);
}

/* Bottom View All Link */
.searched-view-all-row {
  margin-top: 16px;
}

.searched-view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ff5338;
  font-family: var(--font-body), sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.searched-view-all-link i {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.searched-view-all-link:hover {
  color: #e03b25;
}

.searched-view-all-link:hover i {
  transform: translateX(4px);
}

/* FESTIVE OFFERS MODAL */
.festive-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 19, 30, 0.7);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.festive-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.festive-modal-box {
  background: #ffffff;
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.festive-modal-overlay.active .festive-modal-box {
  transform: translateY(0);
}

.festive-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f3f4f6;
  border: none;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
}

.festive-modal-close:hover {
  background: #e5e7eb;
  color: #111827;
}

/* ==========================================================================
   MULTI-ROW SEARCHED CARS GRID (6 LINES OF CARS BELOW CAROUSEL)
   ========================================================================== */

.searched-cars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
  margin-bottom: 28px;
}

.searched-cars-grid .searched-car-card {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

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

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

@media (max-width: 580px) {
  .searched-cars-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ==========================================================================
   CAR VISUAL STORIES SECTION (SNUG TOP SPACING + 4 RICH VIDEO CARDS)
   ========================================================================== */

.visual-stories-section {
  padding: 10px 0 45px;
  background: #ffffff;
  margin-top: 0;
}

.stories-section-header {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stories-main-title {
  font-family: var(--font-body), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
  margin: 0;
}

/* 4-Column Grid for exactly 4 stories */
.stories-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  width: 100%;
}

.story-card {
  height: 350px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  background: #0f172a;
  user-select: none;
}

.story-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.story-card-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.story-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.story-card:hover .story-card-img {
  transform: scale(1.08);
}

.story-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0.92) 100%);
  z-index: 1;
  pointer-events: none;
}

.story-play-btn {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  z-index: 2;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.story-play-btn i {
  margin-left: 3px;
}

.story-card:hover .story-play-btn {
  background: #ff5338;
  border-color: #ffffff;
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 0 24px rgba(255, 83, 56, 0.7);
}

.story-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  z-index: 2;
}

.story-badge {
  display: inline-block;
  background: rgba(255, 83, 56, 0.9);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.story-card-title {
  font-family: var(--font-body), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.38;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.stories-view-all-row {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.stories-view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ff5338;
  font-family: var(--font-body), sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.stories-view-all-link:hover {
  color: #e03b25;
}

.stories-view-all-link i {
  font-size: 1.05rem;
  transition: transform 0.2s;
}

.stories-view-all-link:hover i {
  transform: translateX(4px);
}

@media (max-width: 1024px) {
  .stories-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 580px) {
  .stories-grid-4 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ==========================================================================
   ENHANCED FULLSCREEN/POPUP VIDEO PLAYER MODAL (100% RELIABLE PLAYBACK)
   ========================================================================== */

.story-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 18, 0.92);
  backdrop-filter: blur(10px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.story-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.story-modal-container {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 85vh;
  max-height: 720px;
  background: #000000;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.story-progress-bar-container {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  z-index: 20;
}

.story-progress-bar-segment {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  overflow: hidden;
}

.story-progress-bar-fill {
  width: 0%;
  height: 100%;
  background: #ff5338;
  transition: width 0.1s linear;
}

.story-progress-bar-fill.completed {
  width: 100%;
}

.story-modal-header {
  position: absolute;
  top: 22px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
}

.story-modal-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-author-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ff5338;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.story-author-meta {
  display: flex;
  flex-direction: column;
}

.story-author-name {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.story-time-stamp {
  color: #e5e7eb;
  font-size: 0.72rem;
}

.story-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.story-icon-btn,
.story-modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(6px);
}

.story-icon-btn:hover,
.story-modal-close-btn:hover {
  background: #ff5338;
  border-color: #ff5338;
  transform: scale(1.08);
}

.story-modal-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  z-index: 5;
}

/* Tap Zones for Quick Navigation */
.story-tap-zone {
  position: absolute;
  top: 70px;
  bottom: 120px;
  width: 35%;
  z-index: 15;
  cursor: pointer;
}

.story-tap-zone.left {
  left: 0;
}

.story-tap-zone.right {
  right: 0;
}

/* Desktop Nav Prev / Next Floating Arrows */
.story-modal-nav-prev,
.story-modal-nav-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  backdrop-filter: blur(8px);
  transition: all 0.2s;
  z-index: 30;
}

.story-modal-nav-prev:hover,
.story-modal-nav-next:hover {
  background: #ff5338;
  border-color: #ff5338;
  transform: translateY(-50%) scale(1.1);
}

.story-modal-nav-prev {
  left: -65px;
}

.story-modal-nav-next {
  right: -65px;
}

@media (max-width: 600px) {
  .story-modal-nav-prev,
  .story-modal-nav-next {
    display: none;
  }
}

.story-modal-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 18px 20px;
  background: linear-gradient(0deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  z-index: 20;
}

.story-modal-caption h4 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 14px 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.story-modal-cta {
  display: flex;
  gap: 10px;
}

.story-cta-btn {
  flex: 1;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.story-cta-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.story-cta-btn.highlight {
  background: #ff5338;
  border-color: #ff5338;
}

.story-cta-btn.highlight:hover {
  background: #e03b25;
}

/* ==========================================================================
   POPULAR BRANDS CAROUSEL SECTION (EXACT DESIGN AS IN USER IMAGE 2)
   ========================================================================== */

.popular-brands-section {
  padding: 20px 0 40px;
  background: #ffffff;
}

.popular-brands-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px 28px 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  position: relative;
}

.popular-brands-header {
  margin-bottom: 20px;
}

.popular-brands-title {
  font-family: var(--font-body), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 700;
  color: #111827;
  margin: 0;
  letter-spacing: -0.01em;
}

.brands-carousel-wrapper {
  position: relative;
  width: 100%;
}

.brands-carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 6px 4px 14px 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.brands-carousel-track::-webkit-scrollbar {
  display: none;
}

.brand-card {
  flex: 0 0 162px;
  min-width: 152px;
  max-width: 175px;
  height: 148px;
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.brand-card:hover {
  border-color: #ff5338;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(255, 83, 56, 0.12);
}

.brand-logo-wrap {
  width: 80px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.brand-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: contrast(1.05);
  transition: transform 0.25s ease;
}

.brand-card:hover .brand-logo-img {
  transform: scale(1.08);
}

.brand-name {
  font-family: var(--font-body), sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  transition: color 0.2s ease;
}

.brand-card:hover .brand-name {
  color: #ff5338;
}

/* Floating Navigation Arrows */
.brand-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  color: #374151;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.brand-nav-btn:hover {
  background: #ffffff;
  color: #ff5338;
  border-color: #ff5338;
  box-shadow: 0 6px 20px rgba(255, 83, 56, 0.25);
  transform: translateY(-50%) scale(1.08);
}

.brand-nav-btn.prev-btn {
  left: -14px;
  display: none;
}

.brand-nav-btn.next-btn {
  right: -14px;
}

@media (max-width: 768px) {
  .brand-nav-btn {
    display: none !important;
  }
}

.brands-view-all-row {
  margin-top: 14px;
  display: flex;
  justify-content: flex-start;
}

.brands-view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ff5338;
  font-family: var(--font-body), sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.brands-view-all-link:hover {
  color: #e03b25;
}

.brands-view-all-link i {
  font-size: 1.05rem;
  transition: transform 0.2s ease;
}

.brands-view-all-link:hover i {
  transform: translateX(4px);
}



