/* Customer Website Animation Enhancements */
/* Preserves all existing styles and adds modern animations */

/* === FLOATING TEXT STYLING === */
.floating-text {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  animation: floatPulse 3s ease-in-out infinite;
}

.floating-text:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

@keyframes floatPulse {
  0%, 100% {
    transform: translateY(0px) scale(1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  }
  50% {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
  }
}

/* Different colors for each floating element */
.floating-car-1 .floating-text {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  animation-delay: 0s;
}

.floating-car-2 .floating-text {
  background: linear-gradient(135deg, #059669, #10b981);
  animation-delay: 1s;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.floating-car-2 .floating-text:hover {
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

.floating-car-3 .floating-text {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  animation-delay: 2s;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.floating-car-3 .floating-text:hover {
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

/* === CTA SECTION STYLING === */
.cta-section {
  border: 2px solid #dee2e6 !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  background: rgba(255, 255, 255, 0.95) !important;
}

.cta-section h2,
.cta-section p,
.cta-section .lead {
  color: #1a1a1a !important;
}

.cta-stat .small {
  color: #1a1a1a !important;
}

/* === HOW IT WORKS AND FEATURES SECTIONS STYLING === */
.py-5.bg-light,
.py-5.bg-white {
  border: 2px solid #dee2e6 !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  margin: 10px 0 !important;
}

/* === ENHANCED HORIZONTAL SCROLLABLE VEHICLE CARDS === */
.vehicle-scroll-container {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 15px 0 25px 0;
  position: relative;
}

.vehicle-scroll-wrapper {
  width: max-content;
  padding: 0 10px;
}

/* Restore full-container width only when 3+ cards are present so the
   horizontal scroll fills the row; fewer cards shrink-wrap instead. */
.vehicle-scroll-wrapper:has(.vehicle-card-scroll:nth-child(3)) {
  min-width: 100%;
}

.vehicle-card-scroll {
  width: 360px;
  min-width: 360px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vehicle-card-scroll:hover {
  transform: translateY(-10px);
  z-index: 2;
}

/* Professional Vehicle Card Styling */
.vehicle-card {
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.3s ease !important;
  overflow: hidden !important;
  background: #ffffff !important;
  height: 100% !important;
}

.vehicle-card:hover {
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15) !important;
  border-color: #2563eb !important;
  transform: translateY(-4px) !important;
}

.vehicle-card .card-header {
  position: relative;
  padding: 1rem 1.25rem 0.5rem !important;
}

.vehicle-card .card-body {
  padding: 0.5rem 1.25rem !important;
}

.vehicle-card .card-footer {
  padding: 0.5rem 1.25rem 1rem !important;
}

/* Task #492: tighter inner padding on the public Available Vehicles cards
   (homepage Featured strip and /vehicles grid) so each row of text reaches
   noticeably closer to the left and right card edges and rows sit closer
   together top-to-bottom. Scoped to elements carrying BOTH
   .vehicle-card AND .vehicle-card-enhanced so the rule only matches actual
   vehicle-listing cards. The driver/customer dashboard vehicle cards have
   .vehicle-card alone (no -enhanced) and the public-page "no vehicles"
   empty-state CTA cards have .vehicle-card-enhanced alone (no .vehicle-card),
   so both surfaces are intentionally unaffected. */
.vehicle-card.vehicle-card-enhanced .card-body {
  padding: 0.4rem 0.6rem !important;
}

.vehicle-image-placeholder {
  height: 120px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
  border: 2px dashed #cbd5e1 !important;
}

.vehicle-card .card-title {
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin-bottom: 0 !important;
}

.vehicle-details {
  text-align: left !important;
}

.detail-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 0.9rem !important;
  color: #64748b !important;
}

.detail-item i {
  color: #2563eb !important;
  width: 16px !important;
  text-align: center !important;
}

.detail-item span {
  font-weight: 500 !important;
}

/* Enhanced Price Badge */
.price-badge {
  position: absolute !important;
  top: 15px !important;
  right: 15px !important;
  background: #2563eb !important;
  color: white !important;
  padding: 8px 14px !important;
  border-radius: 20px !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.25) !important;
  z-index: 10 !important;
}

/* Professional Button Styling */
.vehicle-card .btn-primary {
  background: #2563eb !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 12px 20px !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  transition: all 0.3s ease !important;
  width: 100% !important;
  text-transform: none !important;
}

.vehicle-card .btn-primary:hover {
  background: #1d4ed8 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3) !important;
}

/* Custom Scrollbar Styling */
.vehicle-scroll-container::-webkit-scrollbar {
  height: 10px;
}

.vehicle-scroll-container::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
  margin: 0 20px;
}

.vehicle-scroll-container::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border-radius: 10px;
  border: 2px solid #f1f5f9;
}

.vehicle-scroll-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

/* Firefox scrollbar */
.vehicle-scroll-container {
  scrollbar-width: thin;
  scrollbar-color: #2563eb #f1f5f9;
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .vehicle-card-scroll {
    width: 320px;
    min-width: 320px;
  }
  
  .vehicle-scroll-wrapper {
    padding: 0 5px;
  }
}

/* Scroll indicators */
.vehicle-scroll-container::before {
  content: '← Scroll to see more vehicles →';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  padding: 5px 15px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.7;
  pointer-events: none;
}

/* === UNIVERSAL CUSTOMER PAGE SECTION STYLING === */
/* Apply professional borders to all customer page sections */
.customer-section {
  border: 2px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 2rem !important;
  margin-bottom: 2rem !important;
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.3s ease !important;
}

.customer-section:hover {
  border-color: #2563eb !important;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15) !important;
  transform: translateY(-2px) !important;
}

/* Professional card styling for customer pages */
.customer-card {
  border: 2px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 1.5rem !important;
  margin-bottom: 1.5rem !important;
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.3s ease !important;
}

.customer-card:hover {
  border-color: #2563eb !important;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15) !important;
  transform: translateY(-2px) !important;
}

/* Service cards styling */
.service-card {
  border: 2px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 2rem !important;
  margin-bottom: 1.5rem !important;
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.3s ease !important;
  text-align: center !important;
}

.service-card:hover {
  border-color: #2563eb !important;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15) !important;
  transform: translateY(-4px) !important;
}

/* Contact form and info styling */
.contact-section {
  border: 2px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 2rem !important;
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  margin-bottom: 2rem !important;
}

/* Vehicle filter and listing styling */
.vehicle-filter-section,
.vehicle-listing-section {
  border: 2px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 1.5rem !important;
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  margin-bottom: 2rem !important;
}

/* About page team and stats styling */
.stats-card,
.team-card {
  border: 2px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 1.5rem !important;
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.3s ease !important;
}

.stats-card:hover,
.team-card:hover {
  border-color: #2563eb !important;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15) !important;
  transform: translateY(-2px) !important;
}

/* === GLOBAL ANIMATIONS === */
* {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Page load animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-container {
  animation: fadeInUp 0.8s ease-out;
}

/* === HERO SECTION ENHANCEMENTS === */
.hero-section {
  position: relative;
  overflow: hidden;
}

/* Parallax background effect */
.hero-parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Typewriter effect for hero text */
@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blinkCursor {
  from, to {
    border-color: transparent;
  }
  50% {
    border-color: white;
  }
}

.typewriter-text {
  display: inline-block;
  overflow: hidden;
  border-right: 3px solid white;
  white-space: nowrap;
  animation: 
    typewriter 3s steps(40, end),
    blinkCursor 0.75s step-end infinite;
}

/* Floating animation for hero elements */
@keyframes floating {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.floating-element {
  animation: floating 3s ease-in-out infinite;
}

/* Call-to-action pulse animation */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

.pulse-button {
  animation: pulse 2s infinite;
}

/* === NAVIGATION ENHANCEMENTS === */
.navbar {
  transform: translateY(-100%);
  animation: slideDownNavbar 0.6s ease-out forwards;
}

@keyframes slideDownNavbar {
  to {
    transform: translateY(0);
  }
}

/* Navigation link hover effects */
.navbar-nav .nav-link {
  position: relative;
  overflow: hidden;
}

.navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(45deg, #2563eb, #1d4ed8);
  transition: left 0.3s ease;
}

.navbar-nav .nav-link:hover::before {
  left: 0;
}

/* Logo entrance animation */
.navbar-brand {
  opacity: 0;
  animation: logoAppear 1s ease-out 0.3s forwards;
}

@keyframes logoAppear {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* === VEHICLE CARDS ENHANCEMENTS === */
/* Staggered loading animation */
.vehicle-card {
  opacity: 0;
  transform: translateY(50px);
  animation: staggeredFadeIn 0.6s ease-out forwards;
}

.vehicle-card:nth-child(1) { animation-delay: 0.1s; }
.vehicle-card:nth-child(2) { animation-delay: 0.2s; }
.vehicle-card:nth-child(3) { animation-delay: 0.3s; }
.vehicle-card:nth-child(4) { animation-delay: 0.4s; }
.vehicle-card:nth-child(5) { animation-delay: 0.5s; }
.vehicle-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes staggeredFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced hover effects for vehicle cards */
.vehicle-card-enhanced {
  perspective: 1000px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.vehicle-card-enhanced:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 0 20px rgba(37, 99, 235, 0.1);
}

/* Price badge glow effect */
.price-badge-glow {
  position: relative;
  overflow: hidden;
}

.price-badge-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transition: left 0.5s ease;
}

.price-badge-glow:hover::before {
  left: 100%;
}

/* Vehicle image zoom effect */
.vehicle-image-container {
  overflow: hidden;
  border-radius: 8px;
}

.vehicle-image-zoom {
  transition: transform 0.4s ease;
}

.vehicle-card-enhanced:hover .vehicle-image-zoom {
  transform: scale(1.1);
}

/* === FILTER & SEARCH ENHANCEMENTS === */
.filter-section {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease-out 0.2s forwards;
}

/* Smooth accordion for filters */
.filter-accordion {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.filter-accordion.expanded {
  max-height: 500px;
}

/* Real-time results transition */
.results-container {
  transition: all 0.3s ease;
}

.results-fade-out {
  opacity: 0.5;
  transform: scale(0.98);
}

/* Search suggestions dropdown */
.search-suggestions {
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.search-suggestions.show {
  opacity: 1;
  transform: translateY(0);
}

/* Filter tags animation */
.filter-tag {
  opacity: 0;
  transform: scale(0.8);
  animation: tagAppear 0.3s ease-out forwards;
}

@keyframes tagAppear {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.filter-tag-remove {
  animation: tagRemove 0.3s ease-in forwards;
}

@keyframes tagRemove {
  to {
    opacity: 0;
    transform: scale(0.8);
  }
}

/* === FORM ENHANCEMENTS === */
/* Input field focus effects */
.form-control-enhanced {
  transition: all 0.3s ease;
  position: relative;
}

.form-control-enhanced:focus {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(37, 99, 235, 0.15),
    0 0 20px rgba(37, 99, 235, 0.1);
}

/* Floating labels */
.floating-label {
  position: relative;
}

.floating-label label {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  transition: all 0.3s ease;
  pointer-events: none;
  color: #666;
}

.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label {
  top: 0;
  left: 12px;
  font-size: 0.8em;
  color: #2563eb;
  background: white;
  padding: 0 8px;
}

/* Button ripple effect */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-ripple:active::before {
  width: 300px;
  height: 300px;
}

/* === SCROLL EFFECTS === */
/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(45deg, #2563eb, #1d4ed8);
  z-index: 9999;
  transition: width 0.3s ease;
}

/* Scroll reveal animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.scroll-reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}



/* === LOADING STATES === */
/* Loading skeleton for vehicle cards */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-card {
  height: 300px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.skeleton-text {
  height: 20px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.skeleton-text.short {
  width: 60%;
}

/* Loading overlay */
.loading-overlay-customer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.loading-overlay-customer.show {
  opacity: 1;
  visibility: visible;
}

.loading-spinner-customer {
  width: 50px;
  height: 50px;
  border: 3px solid #f0f0f0;
  border-top: 3px solid #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* === IMAGE EFFECTS === */
/* Lightbox for vehicle images */
.image-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.image-lightbox.show {
  opacity: 1;
  visibility: visible;
}

.lightbox-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.image-lightbox.show .lightbox-image {
  transform: scale(1);
}

/* === MOBILE ENHANCEMENTS === */
@media (max-width: 768px) {
  /* Mobile-specific animations */
  .vehicle-card-enhanced:hover {
    transform: translateY(-5px);
  }
  
  .typewriter-text {
    font-size: 1.5rem;
  }
  

}

/* === ADVANCED EFFECTS === */
/* Particle background effect */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0.7;
  }
  33% {
    transform: translateY(-20px) translateX(10px) rotate(120deg);
    opacity: 1;
  }
  66% {
    transform: translateY(-10px) translateX(-10px) rotate(240deg);
    opacity: 1;
  }
}

/* Glassmorphism effects */
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
}

/* Success celebration animation */
@keyframes celebration {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.celebrate {
  animation: celebration 0.6s ease-in-out;
}

/* Footer text color fix */
footer, footer * {
  color: #ffffff !important;
}

footer .text-warning, footer h5.text-warning, footer h6.text-warning {
  color: #2563eb !important;
}

footer .fas {
  color: #2563eb !important;
}

/* Confetti effect */
.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  background: #2563eb;
  animation: confetti-fall 3s linear infinite;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* Tooltip enhancements */
.tooltip-enhanced {
  position: relative;
  display: inline-block;
}

.tooltip-enhanced .tooltip-text {
  visibility: hidden;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  text-align: center;
  border-radius: 8px;
  padding: 8px 12px;
  position: absolute;
  z-index: 1000;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tooltip-enhanced:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
  transform: translateY(-5px);
}

/* === VEHICLE CARD ENHANCEMENTS (vehicles page + home page fleet strip) === */

/* Gradient overlay at the bottom of fleet card photos (scoped to .vehicle-card
   to avoid interfering with the vehicle detail page gallery) */
.vehicle-card .vehicle-image-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.2) 55%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* Matching gradient overlay for placeholder (no-image) state in fleet cards */
.vehicle-card .vehicle-image-placeholder::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* Blue top-border accent strip on enhanced public vehicle cards */
.vehicle-card.vehicle-card-enhanced {
  border-top: 4px solid #2563eb !important;
}

/* Stronger hover lift + blue glow on enhanced cards */
.vehicle-card.vehicle-card-enhanced:hover {
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.28) !important;
  transform: translateY(-8px) !important;
  border-top-color: #1d4ed8 !important;
}

/* Price badge: larger and bolder */
.vehicle-card.vehicle-card-enhanced .price-badge,
.vehicle-card.vehicle-card-enhanced .price-badge-glow {
  font-size: 1.05rem !important;
  padding: 9px 16px !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
  letter-spacing: 0.2px;
}

/* Card title bolder on enhanced cards */
.vehicle-card.vehicle-card-enhanced .card-title {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}