/* Custom CSS fixes for car image display */

/* Fix for car images being cut off on sides in the landing page */
.car-details-area .product-single-gallery .lazy-container img {
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: auto;
}

/* Ensure proper spacing around the image */
.car-details-area .product-single-gallery {
  padding: 10px;
  margin-bottom: 10px !important;
}

/* Reduce space between gallery and specifications */
.car-details-area .product-single-details.mt-0 {
  margin-top: 0 !important;
  padding-top: 10px;
}

/* Car logo styling in dealer cards - larger by default */
.dealers-section .card .icon img {
  width: 60px !important;
  height: 60px !important;
  object-fit: contain;
  border-radius: 8px;
  background: white;
  padding: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transform: scale(1.2);
}

/* Ensure dealer cards have proper spacing */
.dealers-section .card {
  transition: transform 0.2s ease;
}

.dealers-section .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Improved dealer card styling for spa.html */
.dealers-section #dealersCheckboxes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dealers-section #dealersCheckboxes label {
  margin: 0;
  cursor: pointer;
}

.dealers-section #dealersCheckboxes .card {
  border: 2px solid #e9ecef;
  transition: all 0.2s ease;
  margin: 0;
  background: white;
}

.dealers-section #dealersCheckboxes .card:hover {
  border-color: #007bff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,123,255,0.15);
}

.dealers-section #dealersCheckboxes input[type="checkbox"]:checked ~ div .card {
  border-color: #007bff;
  background-color: #f8f9ff;
}

/* Ensure dealer cards are consistently aligned */
.dealers-section #dealersCheckboxes .dealer-info {
  min-height: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dealers-section #dealersCheckboxes .dealer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Better logo styling for dealer cards with enhanced zoom effects - larger by default */
.dealer-logo img {
  transition: all 0.3s ease;
  cursor: pointer;
  width: 70px !important;
  height: 70px !important;
  object-fit: contain;
  border-radius: 8px;
  background: white;
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transform: scale(1.1);
}

.dealers-section .card:hover .dealer-logo img {
  transform: scale(1.05);
}

/* Enhanced zoom effects for all car logos */
.dealer-logo img:hover,
.card .icon img:hover,
img[alt*="logo"]:hover {
  transform: scale(1.5) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4) !important;
  z-index: 1000 !important;
  position: relative !important;
  border-radius: 8px !important;
  background: white !important;
  padding: 8px !important;
  transition: all 0.3s ease !important;
}

/* Ensure logos are clickable and stand out */
.dealers-section .card .icon img,
.dealers-section .dealer-logo img {
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Add subtle glow effect on hover */
.dealer-logo img:hover,
.card .icon img:hover {
  box-shadow: 0 0 20px rgba(0,123,255,0.5), 0 8px 20px rgba(0,0,0,0.3) !important;
}

/* Feature boxes styling for spa.html */
.feature-box {
  background: #f8f9fa;
  border: 1px solid #e9ecef !important;
  transition: all 0.2s ease;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-box:hover {
  background: #e9ecef;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.feature-box i {
  font-size: 18px;
  display: block;
}

.feature-box .font-sm {
  font-size: 12px;
  font-weight: 500;
  color: #495057;
}

/* Leadform dealers styling */
.dealers-selection {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 10px;
  background: #f8f9fa;
}

.dealers-selection .card {
  margin-bottom: 10px !important;
  border: 1px solid #dee2e6;
  transition: all 0.2s ease;
}

.dealers-selection .card:hover {
  border-color: #007bff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,123,255,0.15);
}

.dealers-selection input[type="checkbox"]:checked + label .card {
  border-color: #007bff;
  background-color: #f0f8ff;
}

.dealers-selection .card-text {
  padding: 8px 12px;
}

.dealers-selection .card-text input[type="checkbox"] {
  margin-right: 8px;
}

/* Responsive dealers on mobile */
@media (max-width: 768px) {
  .dealers-selection {
    max-height: 200px;
  }
  
  .dealers-selection .card-text {
    padding: 6px 8px;
    font-size: 14px;
  }
} 