/* =====================
   Reset & Base
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f8f9fa;
  color: #333;
  line-height: 1.5;
}

/* =====================
   Header
===================== */
header {
  background: #0d6efd;
  color: white;
  padding: 10px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

header .logo {
  display: flex;
  align-items: center;
}

header .logo img {
  height: 40px;
  margin-right: 10px;
}

header h1 {
  font-size: 1.5rem;
  margin: 0;
}

/* =====================
   Navbar
===================== */
nav {
  margin-top: 8px;
}

nav a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  text-decoration: underline;
}

/* =====================
   Footer
===================== */
footer {
  background: #222;
  color: #aaa;
  text-align: center;
  padding: 15px 0;
  margin-top: 40px;
  font-size: 0.9rem;
}

/* =====================
   Filter Bar (Browse Page)
===================== */
.filter-bar {
  background: #f1f5ff;
  border: 1px solid #d0e0ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-bar form label {
  font-size: 0.85rem;
  font-weight: 600;
}

.filter-bar input,
.filter-bar select {
  font-size: 0.85rem;
}

/* =====================
   Car Listing Page Only
===================== */
.car-listing-page .car-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  margin-bottom: 20px;
  transition: transform 0.2s;
}

.car-listing-page .car-card:hover {
  transform: translateY(-5px);
}

.car-listing-page .car-card img {
  height: 180px;
  object-fit: cover;
  width: 100%;
}

/* =====================
   Homepage Banner (Safe)
===================== */
/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  padding: 60px 10%;
}

.hero-text {
  max-width: 50%;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #555;
}

.hero-text .btn-primary {
  padding: 12px 30px;
  font-size: 1.1rem;
  border-radius: 30px;
  background: #28a745;
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.hero-text .btn-primary:hover {
  background: #218838;
}

.hero-image img {
  width: 500px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* Why-Us Section */
.why-us {
  background: #f8f9fa;
  padding: 60px 10%;
  text-align: center;
}

.why-us h2 {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 40px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card img {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 1rem;
  color: #666;
}


/*contact us page form  */
/* Contact Form Styling */
.contact-form {
  margin-top: 30px;
  display: flex;
  flex-direction: column;   /* ✅ stack vertically */
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;              /* ✅ full width */
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* filter sections */
.filter-section {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 15px 0;
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.filter-group {
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  min-width: 180px;
}

.filter-group label {
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

.filter-group input[type="range"] {
  width: 100%;
}

/* =====================
   Sidebar Filters
===================== */
/* Sidebar Filters */
.filter-sidebar {
  background: #ffffff;
  border: 1px solid #e1e7f5;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.filter-sidebar .filter-group {
  background: #f9fbff;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.filter-sidebar label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 5px;
}

.filter-sidebar select {
  font-size: 0.9rem;
  border-radius: 6px;
  border: 1px solid #ccdfff;
}


.noUi-target {
  background: #eaf1ff;
  border-radius: 10px;
  border: 1px solid #ccdfff;
  height: 6px;
}

.noUi-connect {
  background: #007bff;
}

.noUi-handle {
  background: #fff;
  border: 2px solid #007bff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  top: -6px;
}

/* =====================
   Browse Page – Car Cards
===================== */
.car-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.car-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Carousel inside cards */
.car-card .carousel-inner img {
  height: 160px;
  object-fit: cover;
  width: 100%;
}

/* Badge for price */
.car-card .badge {
  font-size: 0.85rem;
  background: #0d6efd !important;
  border-radius: 6px;
  font-weight: 600;
}

/* Card body */
.car-card .card-body {
  padding: 12px;
}

.car-card .card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #222;
}

.car-card p {
  font-size: 0.85rem;
  color: #666;
}

/* View Details button */
.car-card a.btn {
  margin-top: 5px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}



/* =====================
   Car Details Page
===================== */
.car-details-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
}

/* Left column – images */
.car-details-images {
  flex: 1 1 50%;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.car-details-images img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.car-details-images img:hover {
  transform: scale(1.02);
}

/* Right column – info */
.car-details-info {
  flex: 1 1 45%;
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.car-details-info h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #222;
}

.car-details-info .price {
  font-size: 1.5rem;
  font-weight: bold;
  color: #0d6efd;
  margin-bottom: 20px;
}

/* Table for specs */
.car-specs {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.car-specs th,
.car-specs td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
  text-align: left;
}

.car-specs th {
  font-weight: 600;
  color: #444;
}

/* Buttons */
.car-details-info .btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
}

.car-details-info .btn-primary {
  background: #0d6efd;
  border: none;
}

.car-details-info .btn-outline-secondary {
  border: 1px solid #ccc;
}

/*privacy table*/
.site-footer {
  background: #111;
  color: #ccc;
  padding: 20px;
  text-align: center;
  font-size: 14px;
}
.site-footer a {
  color: #f4b400;
  text-decoration: none;
  margin: 0 5px;
}
.site-footer a:hover {
  text-decoration: underline;
}
.site-footer .disclaimer {
  margin-top: 10px;
  font-size: 12px;
  color: #999;
}
