
/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.history-btn {
  background-color: #3BD29C;
  color: #fff !important;
  font-weight: 600;
  text-transform: uppercase;
  border: none;
  border-radius: 40px;
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.history-btn:hover {
  background-color: #2bb186;
  color: #fff !important;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(59, 210, 156, 0.4);
}
.price-badge {
  background-color: #3BD29C;
  color: white;
  font-size: 1.3rem;
  font-weight: bold;
  padding: 0.4rem 0.9rem;          /* Tighter padding */
  border-radius: 1.75rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  display: inline-block;
}

/* ==========================================================================
   Image Slider & Thumbnails
   ========================================================================== */
.car-slider-img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}
.car-thumb-img {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid #ccc;
  transition: border-color 0.3s;
  border-radius: 2px;
}
.car-thumb-img:hover,
.car-thumb-img.active {
  border-color: #3BD29C;
}
.owl-thumbs {
  display: flex !important;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 10px;
  overflow-x: auto;
  padding: 0 5px;
}
.owl-thumbs .item {
  margin-right: 10px;
}
.owl-thumb-slider .item {
  width: 100px !important;
  height: 100px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  margin: 0 5px;
}
.owl-main-slider .owl-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 15px;
  pointer-events: none;
  z-index: 10;
}
.owl-main-slider .owl-nav button {
  background-color: #3BD29C !important;
  border: none;
  color: white;
  font-size: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.owl-main-slider .owl-nav button:hover {
  background-color: white;
  color: #3BD29C;
  transform: scale(1.1);
}
.main-slider-wrapper:hover .owl-main-slider .owl-nav {
  opacity: 1;
}
.owl-main-slider .owl-nav button span,
.owl-main-slider .owl-nav button i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: white;
  font-size: 24px;
}

/* ==========================================================================
   Cards & Utilities
   ========================================================================== */
.card-box {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background-color: #fff;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: #6c757d;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  line-height: 1.6;
}
button:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 24px rgba(59, 210, 156, 0.5);
}

/* ==========================================================================
   Effects
   ========================================================================== */
.lazy-blur {
  filter: blur(20px);
  transition: filter 0.5s ease;
}
.lazy-blur-loaded {
  filter: blur(0);
}
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(59, 210, 156, 0.4);
  }
  70% {
    transform: scale(1.03);
    box-shadow: 0 0 0 10px rgba(59, 210, 156, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(59, 210, 156, 0);
  }
}
.contact-btn:hover {
  animation: pulse 1.2s ease-out;
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal .btn-close {
  background-color: #fff;
  color: #000;
  border: 2px solid #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  padding: 10px;
}
.modal .btn-close:hover {
  background-color: #fff;
  color: #000;
  transform: scale(1.1);
}
.modal .btn-close::before {
  color: white !important;
}

/* ==========================================================================
   Responsive: Mobile (max-width: 767.98px)
   ========================================================================== */
@media (max-width: 767.98px) {
  .car-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
    margin-top: 0rem !important;
  }
  .car-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0.5rem 0 0.25rem;
    line-height: 1.2;
  }
  .price-location-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  margin-top: 0.25rem;
}
 .location-badge {
  background: linear-gradient(90deg, #3BD29C, #2bb186);
  color: white;
  padding: 0.4rem 0.9rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  box-shadow: 0 1px 8px rgba(59, 210, 156, 0.3);
  display: inline-block;
}
.mobile-location-highlight .location-badge {
  display: inline-block;
  background: linear-gradient(90deg, #3BD29C, #2bb186);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 2px 10px rgba(59, 210, 156, 0.3);
  animation: sparkleFadeIn 0.4s ease-in-out;
}

@keyframes sparkleFadeIn {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}
  .container {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 0 !important;
  }
  .car-slider-img {
    height: 220px; /* ← Reduced from 300px */
    object-fit: cover;
    width: 100%;
    border-radius: 6px;
    margin-bottom: 0.5rem;
  }
.car-details-grid {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  font-size: 0.92rem;
  margin: 1rem 0 1.5rem;
  background: #fff;
}

.car-details-grid .detail-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #eee;
  text-align: center;
}

.car-details-grid .detail-row:last-child {
  border-bottom: none;
}

.car-details-grid .detail-item {
  padding: 0.75rem 0.25rem;
}

.car-details-grid .label {
  display: block;
  font-size: 0.75rem;
  color: #555;
  text-transform: capitalize;
}

.car-details-grid .value {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-top: 2px;
}
.mobile-location-highlight .location-badge {
  display: inline-block;
  background: linear-gradient(90deg, #3BD29C, #2bb186);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 2px 10px rgba(59, 210, 156, 0.3);
  animation: sparkleFadeIn 0.4s ease-in-out;
}
  .contact-btn {
    position: static;     /* Remove floating */
    bottom: auto;
    left: auto;
    transform: none;
    width: 100%;          /* Full width inside container */
    max-width: none;
    border-radius: 6px;    /* Standard button shape */
    padding: 0.8rem 1rem;
    font-size: 1rem;
    box-shadow: none;      /* No floating shadow */
    animation: none;       /* Disable pulse animation */
  }

@keyframes sparkleFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==========================================================================
   Responsive: Tablet/Desktop (min-width: 768px)
   ========================================================================== */
@media (min-width: 768px) {
  .car-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;             /* 🧷 Prevent wrap on desktop */
    gap: 1rem;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 1rem;
  }
  .car-title {
    margin: 0;
    font-size: 2.25rem;
    font-weight: 700;
    color: #1A2A47;
    white-space: nowrap;          /* 👈 prevent wrapping if needed */
  }
  .price-badge {
    font-size: 1.3rem;               /* ↓ Slightly smaller */
    padding: 0.4rem 0.9rem;          /* Tighter padding */
    border-radius: 1.75rem;
    margin-left: auto;
    transform: translateY(2px);      /* ↓ Nudge down slightly */
    white-space: nowrap;
  }
  .main-slider-wrapper {
    margin-bottom: 0rem; /* ⬅️ Add more spacing after the main image */
  }
  .download-app-desktop {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
  }
  .download-app-desktop img {
  height: 48px;
  transition: transform 0.2s ease;
  }
  .download-app-desktop img:hover {
  transform: scale(1.05);
  }
}