/* Modern Enhanced Autohaus Styles */

/* Filter Form */
.autohaus-filter-form {
  background: white;
  padding: 30px;
  border-radius: 16px;
  margin-bottom: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  align-items: end;
}

.autohaus-filter-form select,
.autohaus-filter-form button {
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.autohaus-filter-form select {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.autohaus-filter-form select:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.autohaus-filter-form select:focus {
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.autohaus-filter-form button {
background: linear-gradient(135deg, #00b4a5 0%, #046e68 100%);
    color: #ffffff;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgb(255 255 255 / 40%);
}

.autohaus-filter-form button:hover {
    background: #009488;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgb(0 180 165 / 58%);
}
}

.autohaus-filter-form button:active {
  transform: translateY(0);
}

/* Results Info */
.autohaus-results-info {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  padding: 15px 25px;
  border-radius: 12px;
  margin: 20px 0;
  border-left: 4px solid #667eea;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

.autohaus-results-info p {
  margin: 0;
  color: #2c3e50;
  font-weight: 600;
  font-size: 15px;
}

/* Cars Grid */
.autohaus-cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

/* Car Card */
.autohaus-car-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.autohaus-car-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.autohaus-car-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.autohaus-car-card:hover::before {
  opacity: 1;
}

/* Car Image */
.autohaus-car-img {
  position: relative;
  overflow: hidden;
  height: 240px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.autohaus-car-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.autohaus-car-card:hover .autohaus-car-img img {
  transform: scale(1.1);
}

/* Car Info */
.autohaus-car-info {
  padding: 20px;
  position: relative;
  z-index: 2;
}

.autohaus-car-info h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.3;
}

.autohaus-car-info .meta {
  font-size: 14px;
  color: #7f8c8d;
  margin: 6px 0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.price {
  font-size: 24px;
  color: #27ae60;
  font-weight: 800;
  margin: 15px 0;
  display: block;
  text-shadow: 0 2px 4px rgba(39, 174, 96, 0.2);
}

/* Details Button */
.details-btn {
  display: block;
  text-align: center;
  margin-top: 12px;
  background: linear-gradient(135deg, #00b4a5 0%, #046e68 100%);
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.details-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgb(102 234 202 / 60%);
  background: linear-gradient(135deg, #046e68 0%, #00b4a5 100%);
}

/* Single Car Details Page */
.autohaus-single-car {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.1);
}

.autohaus-single-car h2 {
  font-size: 32px;
  color: #2c3e50;
  margin: 20px 0 10px;
  font-weight: 800;
}

.autohaus-single-car .price {
  font-size: 28px;
  color: #27ae60;
  margin-bottom: 30px;
}

/* Gallery */
.autohaus-single-car .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin: 30px 0;
}

.autohaus-single-car .gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.autohaus-single-car .gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Details Section */
.autohaus-single-car .details {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 25px;
  border-radius: 12px;
  margin: 30px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.autohaus-single-car .details p {
  margin: 0;
  font-size: 15px;
  color: #34495e;
  display: flex;
  align-items: center;
  gap: 8px;
}

.autohaus-single-car .details b {
  color: #2c3e50;
  font-weight: 700;
  min-width: 60px;
}

/* Description */
.autohaus-single-car .desc {
  margin-top: 30px;
  line-height: 1.8;
}

.autohaus-single-car .desc h3 {
  font-size: 24px;
  color: #2c3e50;
  margin-bottom: 15px;
  font-weight: 700;
  border-bottom: 3px solid #667eea;
  padding-bottom: 10px;
  display: inline-block;
}

.autohaus-single-car .desc p {
  color: #555;
  font-size: 16px;
}

/* Back Button */
.back-btn {
  display: inline-block;
  background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(127, 140, 141, 0.3);
}

.back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(127, 140, 141, 0.5);
  background: linear-gradient(135deg, #7f8c8d 0%, #95a5a6 100%);
}

/* No Results Message */
.autohaus-cars-grid > p {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 18px;
  color: #7f8c8d;
  padding: 40px;
  background: #f8f9fa;
  border-radius: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .autohaus-filter-form {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  
  .autohaus-cars-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .autohaus-single-car {
    padding: 20px;
  }
  
  .autohaus-single-car h2 {
    font-size: 24px;
  }
  
  .autohaus-single-car .details {
    grid-template-columns: 1fr;
  }
}

/* Loading Animation */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.loading-placeholder {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
  border-radius: 12px;
}