/* Theme Colors - Red and Green */
.text-red {
  color: #dc2626 !important;
}

.text-green {
  color: #22c55e !important;
}

.border-green {
  border-color: #22c55e !important;
}

/* Override Bootstrap Blue Colors */
.text-primary {
  color: #22c55e !important;
}

.bg-primary {
  background-color: #22c55e !important;
}

.border-primary {
  border-color: #22c55e !important;
}

.btn-primary {
  background-color: #22c55e !important;
  border-color: #22c55e !important;
  color: white !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #16a34a !important;
  border-color: #16a34a !important;
  color: white !important;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Header Styles - Exact match with home page */
header {
  border-bottom: 1px solid #e5e5e5;
  background-color: #ffffff !important;
  z-index: 1000;
  position: relative;
}

/* Dropdown Z-index Fix */
.mega-dropdown {
  z-index: 9999 !important;
}

.dropdown-menu {
  z-index: 9999 !important;
}

header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
}

.navbar-nav .nav-link {
  color: #374151;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.dropdown-toggle {
  border: none;
  background: transparent;
  color: #374151;
  font-weight: 500;
}

.dropdown-toggle:hover {
  color: #22c55e;
}

.dropdown-menu {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}

.dropdown-item {
  color: #374151;
  font-weight: 400;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background-color: #f3f4f6;
  color: #22c55e;
}

.btn-outline-secondary {
  border-color: #d1d5db;
  color: #6b7280;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
  border-color: #9ca3af;
  background-color: #f9fafb;
  color: #1f2937;
}

.mega-dropdown {
  min-width: 800px;
  max-width: 900px;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 1.5rem;
}

.mega-dropdown .dropdown-header {
  color: #1f2937;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding: 0;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

.mega-dropdown .dropdown-item {
  color: #6b7280;
  font-size: 13px;
  padding: 0.4rem 0;
  border: none;
  background: none;
  transition: all 0.2s ease;
}

.mega-dropdown .dropdown-item:hover {
  color: #22c55e;
  background-color: transparent;
  padding-left: 0.5rem;
}

/* Main Content */
main {
  background-color: #f4f4f4;
  min-height: 100vh;
}

/* Breadcrumb */
.breadcrumb {
  background: transparent;
  padding: 0;
}

.breadcrumb-item a {
  color: #6b7280;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: #22c55e;
}

.breadcrumb-item.active {
  color: #1f2937;
}

/* Main Car Image Carousel */
.main-carousel {
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.main-car-image {
  width: 100%;
  height: 400px;
  object-fit: contain;
  border-radius: 12px;
}

.save-btn {
  top: 20px;
  right: 20px;
  z-index: 10;
  border-radius: 25px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
  color: #ffffff;
  background: rgba(0, 0, 0, 0.5);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin-top: -22px;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 18px;
}

/* Thumbnail Images */
.thumbnail-carousel {
  margin-top: 16px;
}

.thumbnail-image {
  width: 100%;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.thumbnail-image:hover,
.thumbnail-image.active {
  border-color: #22c55e;
}

/* Car Details Card */
.car-details-card {
  position: sticky;
  top: 20px;
  height: fit-content;
}

.car-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
}

.price-section {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.currency {
  font-size: 1.25rem;
  color: #6b7280;
  font-weight: 500;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
}

/* Quick Info Tags */
.info-tag {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #e9ecef;
}

/* Action Buttons */
.action-buttons .btn {
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
}

/* Create Alert Section */
.create-alert-section {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #e9ecef;
}

.form-check-input:checked {
  background-color: #22c55e;
  border-color: #22c55e;
}

/* Posted By Section */
.dealer-logo img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* Highlights Section */
.highlights-section {
  border: none;
}

.highlight-item {
  background: #f8f9fa;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.highlight-item:hover {
  background: #e9ecef;
  transform: translateY(-2px);
}

.highlight-item i {
  font-size: 1.5rem;
}

/* Specifications Section */
.specifications-section {
  border: none;
  background: #ffffff;
}

.specifications-section h4 {
  color: #1a1a1a;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.spec-item {
  transition: all 0.3s ease;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0 !important;
  margin: 0;
}

.spec-item:last-child {
  border-bottom: none !important;
}

.spec-item:hover {
  background-color: #f8f9fa;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 8px;
  margin: 0 -8px;
}

.spec-icon {
  width: 20px !important;
  height: 20px !important;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.spec-item:hover .spec-icon {
  opacity: 1;
}

.spec-item span.text-muted {
  color: #1a1a1a !important;
  font-size: 0.95rem;
  font-weight: 600;
}

.spec-item strong.text-dark {
  color: #6b7280 !important;
  font-size: 0.95rem;
  font-weight: 400;
}

/* Column spacing */
.specifications-section .col-md-6:first-child {
  border-right: 1px solid #f0f0f0;
}

@media (max-width: 767px) {
  .specifications-section .col-md-6:first-child {
    border-right: none;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }

  .spec-item {
    padding: 12px 0;
  }
}

/* Features Section */
.features-section {
  border: none;
}

.feature-item {
  transition: all 0.3s ease;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.feature-item:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2rem;
  color: #22c55e;
}

.feature-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.feature-item.text-muted .feature-icon {
  color: #6c757d;
}

/* Similar Cars Section */
.similar-cars-section {
  border: none;
}

.similar-car-card {
  transition: all 0.3s ease;
  height: 100%;
  cursor: pointer;
}

.similar-car-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.similar-car-image {
  width: 100%;
  height: 180px;
  object-fit: contain;
}

.similar-cars-navigation {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.similar-next,
.similar-prev {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #22c55e;
  color: #22c55e;
  background: white;
  transition: all 0.3s ease;
}

.similar-next:hover,
.similar-prev:hover {
  background: #22c55e;
  color: white;
  transform: scale(1.1);
}

.similar-next.swiper-button-disabled,
.similar-prev.swiper-button-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Thumbnail carousel improvements */
.thumbnail-carousel .swiper-slide {
  cursor: pointer;
}

.thumbnail-image {
  transition: all 0.3s ease;
  border: 3px solid transparent;
}

.thumbnail-image:hover {
  border-color: #22c55e;
  opacity: 0.8;
}

.thumbnail-image.active {
  border-color: #22c55e;
  opacity: 1;
}

/* Footer Styles - Exact match with home page */
footer {
  background-color: #2c2c2c !important;
}

footer h6 {
  color: #ffffff;
  font-size: 14px;
  margin-bottom: 1rem;
}

footer ul li {
  margin-bottom: 0.5rem;
}

footer ul li a {
  font-size: 13px;
  color: #cccccc !important;
  transition: color 0.3s ease;
}

footer ul li a:hover {
  color: #ffffff !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-car-image {
    height: 300px;
  }

  .car-title {
    font-size: 1.5rem;
  }

  .price {
    font-size: 2rem;
  }

  .car-details-card {
    position: static;
    margin-top: 2rem;
  }

  .mega-dropdown {
    min-width: 300px;
    max-width: 350px;
  }

  .highlight-item {
    margin-bottom: 1rem;
  }

  .feature-item {
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .thumbnail-image {
    height: 60px;
  }

  .action-buttons .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .similar-car-image {
    height: 150px;
  }
}
.five-cols {
  flex: 0 0 20%; /* 100 ÷ 5 */
  max-width: 20%;
}
/* Enhanced Responsive Design */

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
  .main-car-image {
    height: 500px;
  }

  .thumbnail-image {
    height: 90px;
  }

  .car-title {
    font-size: 2.5rem;
  }

  .price {
    font-size: 2.5rem;
  }
}

/* Medium screens (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .main-car-image {
    height: 450px;
  }

  .thumbnail-image {
    height: 85px;
  }

  .car-title {
    font-size: 2.2rem;
  }

  .price {
    font-size: 2.2rem;
  }
}

/* Tablet screens (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .main-car-image {
    height: 350px;
  }

  .thumbnail-image {
    height: 75px;
  }

  .car-title {
    font-size: 2rem;
  }

  .price {
    font-size: 2rem;
  }

  .five-cols {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }

  .action-buttons .btn {
    padding: 12px 20px;
    font-size: 16px;
  }
}

/* Mobile screens (576px to 767px) */
@media (max-width: 767px) {
  .five-cols {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .main-car-image {
    height: 280px;
  }

  .thumbnail-image {
    height: 65px;
  }

  .car-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .price {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .action-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .action-buttons .btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
  }

  .specifications-section .col-md-6:first-child {
    border-right: none;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }

  .feature-item {
    margin-bottom: 1rem;
    padding: 10px;
  }
}

/* Small mobile screens (up to 575px) */
@media (max-width: 575px) {
  .main-car-image {
    height: 250px;
  }

  .thumbnail-image {
    height: 55px;
  }

  .car-title {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
  }

  .price {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
  }

  .five-cols {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 10px;
  }

  .action-buttons .btn {
    padding: 10px;
    font-size: 14px;
  }

  .feature-item {
    padding: 8px;
    font-size: 14px;
  }

  .specifications-section h3 {
    font-size: 1.3rem;
  }

  .specifications-section .row {
    margin: 0;
  }

  .specifications-section .col-md-6 {
    padding: 10px;
  }
}

/* Extra small screens (up to 400px) */
@media (max-width: 400px) {
  .main-car-image {
    height: 200px;
  }

  .thumbnail-image {
    height: 45px;
  }

  .car-title {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
  }

  .price {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
  }

  .action-buttons .btn {
    padding: 8px;
    font-size: 13px;
  }

  .feature-item {
    padding: 6px;
    font-size: 13px;
    margin-bottom: 0.8rem;
  }

  .specifications-section h3 {
    font-size: 1.2rem;
  }

  .specifications-section .col-md-6 {
    padding: 8px;
  }

  .container-fluid {
    padding: 10px;
  }
}

/* Enhanced Similar Cars Carousel Styles */
.similar-cars-swiper {
  overflow: hidden;
  padding: 10px 0;
}

.similar-cars-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.similar-car-card {
  transition: all 0.3s ease;
  cursor: pointer;
  height: 100%;
}

.similar-car-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.similar-cars-navigation .btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.similar-cars-navigation .btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.similar-cars-navigation .btn.swiper-button-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Fix for aspect ratio images */
.similar-car-card img {
  transition: transform 0.3s ease;
}

.similar-car-card:hover img {
  transform: scale(1.05);
}
