/* === Navbar Styling (Always White) === */
/* Make the logo fill the navbar height dynamically */
.navbar {
  background-color: #fff !important;
  padding: 0.6rem 0; /* adjust navbar height here if needed */
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.navbar-logo {
  height: 100%;
  max-height: 60px; /* optional safety limit */
  width: auto;
  object-fit: contain;
  display: block;
}


.navbar .navbar-brand span,
.navbar .nav-link,
.navbar .btn-outline-dark,
.navbar select.form-select-sm {
  color: #000 !important;
}

.navbar .btn-outline-dark {
  border-color: #000;
}

.navbar .btn-outline-dark:hover {
  background-color: #000;
  color: #fff !important;
}

/* Dropdown Menu */
.dropdown-menu {
  background-color: #fff;
  border: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.dropdown-item:hover {
  background-color: #f8f9fa;
}

/* === HERO SECTION === */
/* === HERO SECTION (Navy + Full Image Right) === */
.hero-section {
  display: flex;
  height: 60vh;
  margin-top: 80px;
  overflow: hidden;
}

/* Left Navy Section */
.hero-left {
  flex: 0 0 25%;
  background-color: #001f3f;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

/* Right Full Image (uncropped) */

/* Right Side: Image Slider */
.hero-right {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.hero-right img {
  height: 60vh; /* match hero section height */
  object-fit: contain; /* shows full image */
  background-color: #001f3f; /* fallback */
}

/* Carousel controls optional styling (optional) */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1) brightness(1.5);
}



/* Responsive */
@media (max-width: 992px) {
  .hero-right img {
    height: 40vh;
    object-fit: cover; /* fills mobile screen nicely */
  }
}



/* Optional: remove empty padding gaps */
.hero-section,
.hero-left,
.hero-right {
  height: 60vh;
}

/* Search Box */
.hero-search-box {
  background: #fff;
  border: 1px solid #ddd;
  width: 100%;
  max-width: 280px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hero-search-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
}

/* Adjust Hero Text Size */
.hero-content h1 {
  font-size: 2rem;          /* reduced from display-5 (~3rem) */
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.hero-content p {
  font-size: 1rem;          /* slightly smaller */
  font-weight: 500;
  color: #e0e0e0;           /* softer contrast against navy */
  margin-bottom: 1.5rem;
}

/* Responsive tweaks for smaller screens */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 1.6rem;
  }
  .hero-content p {
    font-size: 0.9rem;
  }
}


/* Responsive Adjustments */
@media (max-width: 992px) {
  .hero-section {
    flex-direction: column;
    height: auto;
  }

  .hero-left, .hero-right {
    flex: 0 0 100%;
    width: 100%;
  }

  .hero-left {
    padding: 3rem 1rem;
  }

  .hero-right {
    height: 40vh;
    background-size: cover; /* fill screen on small devices */
  }

  .hero-search-box {
    max-width: 100%;
  }
}



/* === Slogan Section === */
.slogan-section {
  background: linear-gradient(to right, rgba(255,69,0,0.9), rgba(255,120,0,0.9));
  color: #fff;
  padding: 60px 0;
}

/* === Featured Vehicles & General UI === */
body {
  background-color: #ffffff;
  color: #000;
  overflow-x: hidden;
}

.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.filter-panel {
  display: none;
  background: #fff;
  border: 1px solid #ddd;
}

.pagination .page-item.active .page-link {
  background-color: #ff4500;
  border-color: #ff4500;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    height: 40vh;
  }
  .display-5 {
    font-size: 1.8rem;
  }
}

/* ===== Fix for mobile overlapping hero search box ===== */
@media (max-width: 992px) {
  .hero-section {
    height: auto !important; /* Let content define height */
    flex-direction: column;
  }

  .hero-left {
    flex: none;
    width: 100%;
    padding: 2rem 1rem;
  }

  .hero-right {
    height: 40vh;
  }

  /* Add breathing room below the hero section */
  .slogan-section {
    margin-top: 0;
  }

  /* Make sure search box doesn’t overflow */
  .hero-search-box {
    max-width: 100%;
    width: 100%;
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 1.4rem;
  }
  .hero-content p {
    font-size: 0.9rem;
  }

  /* Extra space after search box */
  .hero-left {
    padding-bottom: 2rem;
  }
}



/* ===== Final Mobile Fix: Hero Section & Image Slider ===== */
@media (max-width: 992px) {
  /* Make hero section flexible */
  .hero-section {
    flex-direction: column;
    height: auto !important;
    overflow: visible;
  }

  /* Adjust left (text + search) area */
  .hero-left {
    width: 100%;
    flex: none;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  /* Adjust right (image/slider) area */
  .hero-right {
    width: 100%;
    height: auto !important;
    position: relative;
    overflow: hidden;
  }

  /* Make carousel and images fit properly */
  .carousel-inner,
  .carousel-item {
    width: 100%;
    height: auto;
  }

  .hero-right img {
    width: 100%;
    height: auto;
    max-height: 50vh;       /* ensures it fits screen nicely */
    object-fit: cover;      /* fills width with good crop */
    display: block;
  }

  /* Ensure search box and content spacing are nice */
  .hero-search-box {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  /* Prevent slogan overlap */
  .slogan-section {
    margin-top: 0;
    position: relative;
    z-index: 1;
  }
}

@media (max-width: 576px) {
  /* Even smaller devices (phones) */
  .hero-content h1 {
    font-size: 1.4rem;
  }

  .hero-content p {
    font-size: 0.85rem;
  }

  .hero-left {
    padding: 1.5rem 1rem 2rem;
  }

  /* Make image slightly taller for visual balance */
  .hero-right img {
    max-height: 55vh;
    object-fit: cover;
  }
}



/* === Search Page Styling === */
.filters {
  background: #fff;
  border: 1px solid #ddd;
}

.filters h5 {
  color: #001f3f;
}

.vehicle-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.vehicle-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* Filter Panel Hidden by Default */
.filter-panel {
  display: none;
  background: #fff;
  border: 1px solid #ddd;
}

/* Price Range Label */
#priceValue {
  font-weight: 600;
  color: #ff4500;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .filters {
    margin-bottom: 1rem;
  }
  .vehicle-card img {
    height: 160px;
  }
}

/* === Fix: Add space below fixed navbar === */
body {
  padding-top: 30px; /* adjust depending on your navbar height */
}
/* Smooth slide for More Filters panel */
.filter-panel {
  overflow: hidden;
  transition: max-height 0.4s ease;
}


.hover-card .hover-details {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

.hover-card:hover .hover-details {
  opacity: 1;
}

.hover-card {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.hover-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}


.highlight-strips .carousel-item {
  min-height: 80px;
  transition: transform 0.5s ease;
}
.highlight-strips h5 {
  margin-bottom: 0.25rem;
}
.highlight-strips p {
  margin-bottom: 0;
}

