/* Essential styles for consistency and minimal footprint */
:root {
  --primary: #1a2a44; /* Dark navy for navbar, footer, buttons */
  --secondary: #d4a017; /* Gold for accents */
  --bg-light: #f8f9fa; /* Light gray for sections */
  --text-dark: #333333; /* Body text */
  --text-muted: #6c757d; /* Secondary text */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  color: var(--text-dark);
  background-color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content { flex: 1; }

/* Typography */
h1 { font-size: 2.25rem; font-weight: 700; color: var(--primary); }
h2 { font-size: 1.75rem; font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
.text-muted { color: var(--text-muted) !important; }

/* Navbar */
.navbar {
  background-color: var(--primary);
}
.navbar-brand, .nav-link {
  color: #fff !important;
}
.nav-link:hover, .nav-link.active {
  color: var(--secondary) !important;
}
.navbar .btn-outline-light {
  border-color: #fff;
  color: #fff;
}
.navbar .btn-outline-light:hover {
  background-color: var(--secondary);
  color: var(--primary);
}

/* Footer */
footer {
  background-color: var(--primary);
  color: #fff;
  padding: 1.5rem 0;
}
footer a {
  color: #fff;
}
footer a:hover {
  color: var(--secondary);
}

/* Buttons */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: var(--primary);
}

/* Cards */
.card {
  border: none;
}
.card-img-top {
  aspect-ratio: 4/3;
  object-fit: cover;
}
.card-body {
  padding: 1rem;
}
.card-title {
  font-size: 1.25rem;
  color: var(--primary);
}

/* Sections */
.section-bg {
  background-color: var(--bg-light);
  border: 1px solid var(--bg-light);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary);
  border-bottom: 1px solid var(--bg-light);
  padding-bottom: 0.5rem;
}


/* Hero */
.hero-section img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
}
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
}
.hero-title {
  --primary: #1a2a44; /* Dark navy for navbar, footer, buttons */
  color: #071f42; /* or whatever contrasts best */
  
}


/* Images */ 
.img-fluid {
  width: 100%;
  object-fit: cover;
}

/* Car Details Specific */
.carousel-container {
  position: relative;
}
.carousel-controls .btn {
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  padding: 0.5rem;
  z-index: 10;
}
.carousel-controls .btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}
.fullscreen-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 5px;
  cursor: pointer;
  z-index: 10;
}
#fullscreenCarousel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: none;
}
#fullscreenCarousel.active {
  display: flex;
  align-items: center;
  justify-content: center;
}
#fullscreenCarousel .carousel-item img {
  max-height: 90vh;
  max-width: 90vw;
  object-fit: contain;
}
.close-carousel {
  position: absolute;
  top: 15px;
  right: 15px;
  color: #fff;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}
.social-icons a {
  font-size: 1.25rem;
  margin: 0 6px;
  color: var(--primary);
}
.social-icons a:hover {
  color: var(--secondary);
}
.related-card .card-img-top {
  aspect-ratio: 4/3;
}
.details-section-bg {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 25px;
  padding-top: 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  animation: fadeIn 0.6s ease-in;
}
.details-section-title {
  color: #fff;
  font-weight: 800;
  font-size: 1.5rem;
  background-color: var(--primary);
  padding: 8px 15px;
  border-radius: 4px 4px 0 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0;
}
.thumbnail-container {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 10px;
  padding: 10px 0;
}
.img-thumb {
  width: 150px;
  max-width: 150px;
  aspect-ratio: 4/3;
  object-fit: cover;
  cursor: pointer;
  border: 3px solid #ddd;
  border-radius: 4px;
  padding: 5px;
  transition: border-color 0.3s ease;
}
.img-thumb.active,
.img-thumb:hover {
  border-color: var(--secondary);
}
.photo-gallery,
.document-gallery {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 10px;
  padding: 10px 0;
}
.photo-gallery img,
.document-gallery img {
  width: 150px;
  max-width: 150px;
  aspect-ratio: 4/3;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid #ddd;
  border-radius: 4px;
  padding: 5px;
  transition: border-color 0.3s ease;
}
.photo-gallery img:hover,
.document-gallery img:hover {
  border-color: var(--secondary);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 767px) {
  .img-thumb,
  .photo-gallery img,
  .document-gallery img {
    width: 120px;
    max-width: 120px;
  }
}
.breadcrumb {
  background-color: transparent;
  padding: 0.5rem 0;
  margin-bottom: 1rem;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: var(--text-muted);
}
.breadcrumb-item a {
  color: var(--primary);
  text-decoration: none;
}
.breadcrumb-item a:hover {
  color: var(--secondary);
}
.breadcrumb-item.active {
  color: var(--text-muted);
}
.main-car-image {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  min-height: 200px; /* Ensures placeholder is visible */
  background-color: #f0f0f0; /* Gray placeholder */
  width: 100%;
}
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

/* Image container inside the card */
.card-img-container {
  overflow: hidden;
  position: relative;
}

/* Image inside the card */
.card-img-top {
  transition: transform 0.3s ease;
  width: 100%;
  height: auto;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}
.btn-whatsapp {
  background-color: #25D366;
  border: none;
  transition: all 0.3s ease;
  color: #000;
}
.btn-whatsapp:hover {
  background-color: #20b354;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.sticky-buttons {
  z-index: 1000; /* Ensures buttons stay above other content */
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); /* Optional shadow for depth */
}

.sticky-buttons a {
  width: 45%; /* Adjust width for better spacing on smaller screens */
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 576px) {
  .sticky-buttons a {
    width: 48%; /* Slight adjustment for very small screens */
  }
}
.gallery-section {
  padding: 2rem 0;
}

.horizontal-gallery {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.horizontal-gallery::-webkit-scrollbar {
  display: none;
}

.horizontal-gallery .col-md-4.px-2 {
  flex: 0 0 auto;
  width: 80%;
  max-width: 300px;
}

.horizontal-gallery .card {
  width: 100%;
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.horizontal-gallery .image-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 66.67%; /* 3:2 aspect ratio (600x400px) */
}

.horizontal-gallery .card-img-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.horizontal-gallery .plus-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.horizontal-gallery .lightgallery-item:hover .card-img-top {
  transform: scale(1.1);
}

.horizontal-gallery .lightgallery-item:hover .plus-icon {
  opacity: 1;
}

.horizontal-gallery .card-body {
  text-align: center;
  padding: 0.5rem; /* Reduced padding to minimize height */
  background: #fff;
}

.horizontal-gallery .card-title,
.horizontal-gallery .card-text {
  margin-bottom: 0.25rem; /* Tighten spacing */
  font-size: 1rem; /* Smaller font to reduce height */
}

.horizontal-gallery .btn {
  font-size: 0.875rem; /* Smaller button */
  padding: 0.25rem 0.5rem;
}

@media (min-width: 768px) {
  .horizontal-gallery {
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
  }

  .horizontal-gallery .col-md-4.px-2 {
    flex: 0 0 auto;
    width: 33.333%;
    max-width: none;
  }

  .horizontal-gallery .card {
    width: 100%;
  }

  .horizontal-gallery .card-img-top {
    object-fit: contain; /* Prevent excessive cropping */
  }

  .horizontal-gallery .card-body {
    padding: 0.75rem; /* Slightly more padding on desktop */
  }

  .horizontal-gallery .card-title,
  .horizontal-gallery .card-text {
    font-size: 1.1rem; /* Slightly larger on desktop */
  }

  .horizontal-gallery .btn {
    font-size: 1rem;
    padding: 0.375rem 0.75rem;
  }
}

@media (max-width: 576px) {
  .horizontal-gallery .col-md-4.px-2 {
    width: 85%;
  }
}
/* Footer Enhancements */
footer h5 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 1rem;
}

footer ul li {
  margin-bottom: 0.5rem;
}

footer ul li a {
  color: #ddd;
}

footer ul li a:hover {
  color: var(--secondary);
}

footer .social-icons a {
  font-size: 1.5rem;
  margin-right: 1rem;
  color: #fff;
}

footer .social-icons a:hover {
  color: var(--secondary);
}
.sell-section {
  padding: 2rem 0;
}
.video-placeholder {
  position: relative;
  cursor: pointer;
  background: #000;
}

.video-placeholder img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.video-placeholder .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  background-image: url('/images/play-icon.svg');
  background-size: 40px 40px;
  background-repeat: no-repeat;
  background-position: center;
}
#mainNavbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1030;
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(.215, .61, .355, 1);
}
#mainNavbar.nav-up {
  transform: translateY(-100%);
}
@media (min-width: 992px) {
  #sticky-aside-wrapper {
    position: sticky;
    top: 4rem;
  }
}
@import url('https://fonts.googleapis.com/css2?family=Rubik+Mono+One&display=swap');

.numberplate {
  display: flex;
  width: 320px;
  height: 70px;
  font-family: 'Rubik Mono One', sans-serif; /* Fallback; consider 'Mandatory' font */
  border: 3px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  background: #fff;
}

.eu-flag {
  width: 40px;
  background: #003399;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.stars-circle {
  width: 30px;
  height: 30px;
  position: relative;
  margin-bottom: 5px;
}

.stars-circle span {
  position: absolute;
  font-size: 5px;
  color: #ffcc00;
  transform-origin: center center;
  left: 50%;
  top: 50%;
}

.stars-circle span:nth-child(1)  { transform: translate(-50%, -50%) rotate(0deg)   translateY(-15px); }
.stars-circle span:nth-child(2)  { transform: translate(-50%, -50%) rotate(30deg)  translateY(-15px); }
.stars-circle span:nth-child(3)  { transform: translate(-50%, -50%) rotate(60deg)  translateY(-15px); }
.stars-circle span:nth-child(4)  { transform: translate(-50%, -50%) rotate(90deg)  translateY(-15px); }
.stars-circle span:nth-child(5)  { transform: translate(-50%, -50%) rotate(120deg) translateY(-15px); }
.stars-circle span:nth-child(6)  { transform: translate(-50%, -50%) rotate(150deg) translateY(-15px); }
.stars-circle span:nth-child(7)  { transform: translate(-50%, -50%) rotate(180deg) translateY(-15px); }
.stars-circle span:nth-child(8)  { transform: translate(-50%, -50%) rotate(210deg) translateY(-15px); }
.stars-circle span:nth-child(9)  { transform: translate(-50%, -50%) rotate(240deg) translateY(-15px); }
.stars-circle span:nth-child(10) { transform: translate(-50%, -50%) rotate(270deg) translateY(-15px); }
.stars-circle span:nth-child(11) { transform: translate(-50%, -50%) rotate(300deg) translateY(-15px); }
.stars-circle span:nth-child(12) { transform: translate(-50%, -50%) rotate(330deg) translateY(-15px); }

.country-code {
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.plate-text {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  letter-spacing: 6px;
  color: #000;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .numberplate {
    width: 100%;
    max-width: 280px;
    height: 60px;
  }
  .plate-text {
    font-size: 1.4rem;
    letter-spacing: 4px;
  }
  .eu-flag {
    width: 35px;
  }
  .stars-circle {
    width: 25px;
    height: 25px;
  }
  .stars-circle span {
    font-size: 4px;
  }
  .stars-circle span:nth-child(1)  { transform: translate(-50%, -50%) rotate(0deg)   translateY(-12px); }
  .stars-circle span:nth-child(2)  { transform: translate(-50%, -50%) rotate(30deg)  translateY(-12px); }
  .stars-circle span:nth-child(3)  { transform: translate(-50%, -50%) rotate(60deg)  translateY(-12px); }
  .stars-circle span:nth-child(4)  { transform: translate(-50%, -50%) rotate(90deg)  translateY(-12px); }
  .stars-circle span:nth-child(5)  { transform: translate(-50%, -50%) rotate(120deg) translateY(-12px); }
  .stars-circle span:nth-child(6)  { transform: translate(-50%, -50%) rotate(150deg) translateY(-12px); }
  .stars-circle span:nth-child(7)  { transform: translate(-50%, -50%) rotate(180deg) translateY(-12px); }
  .stars-circle span:nth-child(8)  { transform: translate(-50%, -50%) rotate(210deg) translateY(-12px); }
  .stars-circle span:nth-child(9)  { transform: translate(-50%, -50%) rotate(240deg) translateY(-12px); }
  .stars-circle span:nth-child(10) { transform: translate(-50%, -50%) rotate(270deg) translateY(-12px); }
  .stars-circle span:nth-child(11) { transform: translate(-50%, -50%) rotate(300deg) translateY(-12px); }
  .stars-circle span:nth-child(12) { transform: translate(-50%, -50%) rotate(330deg) translateY(-12px); }
  .country-code {
    font-size: 0.7rem;
  }
}
/* Style the input inside the numberplate */
/* Number plate input */
.plate-input {
  flex: 1;
  min-width: 0;              /* prevents flex item overflow */
  border: none;
  background: transparent;
  text-align: center;
  font-size: clamp(1rem, 4vw, 1.6rem); /* scales on small screens */
  font-weight: bold;
  letter-spacing: clamp(2px, 1vw, 6px); /* reduces spacing on mobile */
  color: #000;
  outline: none;
  max-width: 100%;           /* stays inside parent */
  box-sizing: border-box;    /* ensures padding doesn’t push width out */
}

.plate-input::placeholder {
  color: #333;
  opacity: 0.6;
}

/* The magnifying glass button */
.plate-btn {
  background: #000;
  color: #fff;
  border: none;
  padding: 0 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  flex-shrink: 0;            /* keeps button visible */
  height: auto;              /* adapts to input height */
}


.plate-btn:hover {
  background: #222;
}

/* Spinner sizing when lookup is running */
.plate-btn .spinner-border {
  width: 1rem;
  height: 1rem;
}
.gallery-section .image-wrapper {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
}
.gallery-section .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar {
  width: 50px;
  height: 50px;
  background-color: #0d6efd; /* Bootstrap primary */
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 20px;
  text-transform: uppercase;
}