/* Colors and fonts */
body {
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
}

p {
  padding: 0;
  margin: 0;
  color: #333;
}

.main-color {
  color: #b83626;
}

a{
  text-decoration: none !important;
  color: inherit !important;
}

.top-red-bar {
  background-color: #b83626;
  font-size: 14px;
  padding: 18px 0 !important;
}

.small-text span,
.small-text a {
  font-size: 14px;
}

.top-red-bar i {
  margin-right: 5px;
}

/* Navbar design */
.main-navbar {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
  height: 50px;
}
.nav-links {
  margin-right: 30px;
}

.nav-links .nav-link {
  font-size: 16px;
  font-weight: 400;
  color: #222 !important;
  padding: 0 !important;
}

.nav-links .nav-link:hover {
  color: #b83626 !important;
}

/* Search Bar */
.search-bar input {
  border: 1px solid #ced4da;
  border-right: none;
  height: 42px;
}

.search-bar button {
  border-radius: 0;
  background-color: #000;
}

.search-bar button i {
  color: white;
}

.inputsearch {
  border-radius: 20px 0 0px 20px; /* top-left, top-right, bottom-right, bottom-left */
}

.btnround {
  border-radius: 0px 20px 20px 0px !important; /* top-left, top-right, bottom-right, bottom-left */
}
/* Default: white text */
.lang-select {
  background-color: transparent;
  border: none;
  color: white;
  font-size: 14px;
  padding: 0;
  height: auto;
  width: 60px;
  cursor: pointer;
  appearance: none;
}

/* On focus (open) — dropdown open */
.lang-select:focus {
  color: black;
  background-color: white;
  outline: none;
  box-shadow: none;
}

/* Responsive layout */

@media (max-width: 991px) {
  .nav-links {
    width: 100%;
    text-align: center;
    margin-right: 0;
  }

  .nav-links .nav {
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
  }

  .top-red-bar {
    text-align: center;
  }

  .top-left,
  .top-right {
    justify-content: center;
  }

  .search-bar {
    flex-direction: row;
    width: 100%;
  }
}

/* LEFT SIDE */

.filter-box {
  padding: 20px;
  background: #f8f7f7;
  border-radius: 15px;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.filter-heading {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 20px;
  border-left: 3px solid #1e90ff;
  padding-left: 10px;
}

.price-section {
  margin-bottom: 30px;
}

.section-title {
  font-weight: bold;
  display: block;
  margin-bottom: 10px;
  color: #333;
}

.price-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 5px;
}

.price-labels .price-value {
  font-weight: bold;
  color: #000;
  text-align: center;
  flex: 1;
}

.range-slider {
  width: 100%;
  accent-color: #b83626;
}

.filter-list {
  list-style: none;
  padding-left: 0;
}

.filter-list li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  color: #444;
  font-size: 14px;
}

.filter-list li img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  margin-right: 10px;
}

.banners {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.banner {
  height: 90%;
  width: 90%;
  border-radius: 20px;
}

/* CENTER */
.car-search-form {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-family: "Segoe UI", sans-serif;
}

.form-group {
  position: relative;
  margin-bottom: 20px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 12px 6px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: transparent;
  outline: none;
}

.form-group label {
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 14px;
  color: #666;
  background: white;
  padding: 0 4px;
  transition: 0.2s ease all;
  pointer-events: none;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:not([value=""]) + label {
  top: -8px;
  left: 10px;
  font-size: 12px;
  color: #b83626;
}

.btn-search {
  background-color: #b83626;
  color: #fff;
  padding: 8px 30px;
  border: none;
  border-radius: 6px;
}

.btn-reset {
  background-color: #444;
  color: #fff;
  padding: 8px 18px;
  border: none;
  border-radius: 6px;
  margin-left: 10px;
}

/* Deals */
.best-deals-section {
  padding: 20px;
  font-family: sans-serif;
}

.deals-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.deals-header h3 {
  font-weight: 700;
  font-size: 20px;
}

.deals-header span {
  font-weight: 600;
}

.view-all {
  font-size: 14px;
  color: red;
  text-decoration: none;
  font-weight: 500;
}

.car-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.car-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.car-image {
  position: relative;
  width: 100%;
  height: 140px;
}

.car-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sale-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: #00ce00;
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 7px;
  border-radius: 12px;
}

.arrival-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: #48a2d7;
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 7px;
  border-radius: 12px;
}

.premium-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: #d77148;
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 7px;
  border-radius: 12px;
}

.car-details {
  padding: 8px 3px !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.car-name {
  font-weight: 600;
  font-size: 11px;
}

.car-price {
  color: red;
  font-weight: 600;
  font-size: 11px !important;
}

.car-price span {
  font-weight: 700;
}

.video-box {
  border-radius: 15px;
  transition: box-shadow 0.3s ease;
}

.video-box:hover {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.video-box .fa-play {
  font-size: 20px;
}

/* RIGHT SIDE */
.local-sites-box {
  background-color: #f9f9f9;
  border-radius: 12px;
}

.local-sites-title {
  font-weight: bold;
  margin-bottom: 20px;
  font-size: 18px;
}

.local-site-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  cursor: pointer;
  text-decoration: none;
}

.local-site-item img {
  width: 24px;
  height: 16px;
  margin-right: 10px;
  border: 1px solid #ccc;
  border-radius: 2px;
}

.local-site-item span {
  font-size: 16px;
  color: #333;
  font-weight: 600;
}

/* NEWS */
.news-container {
  width: 100%;
  border-left: 4px solid #b83626;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 20px;
}

.news-header a {
  font-size: 0.9em;
  color: #b83626;
  text-decoration: none;
}

.news-item {
  border-top: 1px solid #eee;
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-item:first-child {
  border-top: none;
}

.news-title {
  font-weight: bold;
  font-size: 0.95em;
}

.news-title span {
  color: #b83626;
  font-size: 0.75em;
  margin-left: 5px;
}

.news-date {
  font-size: 0.85em;
  color: #666;
}

/* BLOGS */
.date-badge {
  position: absolute;
  top: 0px;
  right: 0;
  background-color: #b22222;
  color: #fff;
  padding: 5px 10px;
  font-size: 14px;
  border-radius: 5px;
  text-align: center;
}

.date-badge span {
  display: block;
  line-height: 1;
}

.blog-img-container {
  position: relative;
  width: 150px;
  height: 100px;
}

.blog-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.blog-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.blog-meta {
  font-size: 14px;
  color: gray;
}

/* LATEST UPDATES */
.update-section {
  position: relative;
  background-image: url("./assets/car4.jpg");
  background-size: cover;
  background-position: center;
  padding: 100px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.update-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.5); /* Adjust opacity here */
  z-index: 1;
}

.update-box {
  background-color: #f8f3ed;
  padding: 40px 30px;
  max-width: 955px;
  width: 100%;
  border-radius: 10px;
  position: relative;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

.update-box h3 {
  font-weight: 700;
  margin-bottom: 20px;
}

.update-box p {
  font-size: 16px;
  color: #333;
}

.update-box .btn {
  margin-top: 20px;
  background-color: #c1463c;
  color: white;
  border-radius: 20px;
  padding: 10px 25px;
  font-weight: 500;
}

.shape-left,
.shape-right {
  position: absolute;
  width: 70px;
  height: 70px;
  background-color: #d89489;
  border-radius: 20px;
  top: 0;
}

.shape-left {
  left: 0;
  border-bottom-right-radius: 50px;
}

.shape-right {
  right: 0;
  bottom: 0;
  top: auto;
  border-top-left-radius: 50px;
}

/* FOOTER */
.footer-section {
  background-color: #000;
}

.custom-subscribe-btn {
  background-color: #b83626;
  color: white;
  border: none;
  padding: 8px 20px;
  transition: 0.3s ease;
}

.custom-subscribe-btn:hover {
  background-color: #a52b1f;
}

.footerhead {
  font-size: 18px;
}

.footerpara {
  font-size: 14px;
  color: #999;
  text-decoration: none;
}

.footerlinks {
  list-style: none;
  padding-left: 0;
  margin: 0;
  text-decoration: none;
  color: #aaa;
}

.footerEnd {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.mobileView {
  display: none !important;
}

@media (max-width: 768px) {
  .mobileNone {
    display: none !important;
  }
  .mobileView {
    display: block !important;
  }
  .top-red-bar {
    background-color: #b83626;
    font-size: 10px;
    padding: 5px !important;
  }
  /* Hide side menu by default */
  .side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100%;
    width: 80%;
    background-color: #b83626;
    transition: right 0.3s ease;
    z-index: 9999;
  }

  .side-menu ul li a {
    display: block;
    color: #fff;
    padding: 12px 0;
    text-decoration: none;
    border-bottom: 1px solid #333;
  }

  .side-menu ul li a:hover {
    color: #b83626;
  }

  .dealsh5 {
    font-size: 13px;
    font-weight: 600;
  }

  .car-name {
    font-size: 13px;
  }

  .car-price {
    color: #b83626 !important;
  }

  .news-container {
    width: 90%;
    padding: 10px;
  }

  .mobile-footer {
    background-color: #000;
    color: #bbb;
  }

  a {
    text-decoration: none;
  }

  .footerlink {
    color: #bbb;
  }
}

/* LISTING PAGE */
.btn-primary {
  background-color: #b83626;
  border: none;
}
.btn-primary:hover {
  background-color: #a12e1f;
}

.carList {
  margin: 30px 20px;
}

.landscape-car-card {
  display: flex;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  margin-bottom: 25px;
  border: 1px solid #eee;
}

.landscape-car-card .car-thumb {
  width: 31%;
  height: 100%;
  object-fit: cover;
}

.landscape-car-card .car-thumb img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.landscape-car-card .car-content {
  padding: 10px;
  width: 100%;
}

.car-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #222;
}

.car-ref {
  font-size: 0.8rem;
  color: #888;
}

.car-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #b83626;
  margin-bottom: 6px;
}

.car-details-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  font-size: 0.8rem;
  color: #444;
  margin-bottom: 4px;
}

.car-details-grid div b {
  display: block;
  color: #222;
}

.car-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.75rem;
}

.car-options span {
  background-color: #f0f0f0;
  padding: 5px 10px;
  border-radius: 20px;
  color: #333;
}
.fav-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  color: #b83626;
  background: white;
  border-radius: 50%;
  padding: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.fav-icon:hover {
  transform: scale(1.1);
}

.custom-pagination .page-link {
  color: #b83626;
  border: 1px solid #b83626;
  padding: 8px 14px;
  margin: 0 4px;
  border-radius: 4px;
  background-color: transparent;
  transition: 0.3s;
}

.custom-pagination .page-item.active .page-link {
  background-color: #b83626;
  color: white;
  border-color: #b83626;
}

.custom-pagination .page-link:hover {
  background-color: #b83626;
  color: white;
  text-decoration: none;
}

.custom-pagination .page-item.disabled .page-link {
  color: #aaa;
  border-color: #ccc;
  cursor: not-allowed;
  background-color: #f8f9fa;
}

@media (max-width: 768px) {
  .landscape-car-card {
    flex-direction: column;
  }

  .landscape-car-card .car-thumb,
  .landscape-car-card .car-content {
    width: 100%;
  }

  .car-details-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .form-select {
    font-size: 12px;
  }

  .form-label {
    font-size: 12px;
  }
}

/* CAR DETAILS PAGE  */
.car-wrapper {
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}

.car-title {
  font-weight: bold;
  font-size: 24px;
  color: #b83626;
}

.price-main {
  font-size: 20px;
  font-weight: bold;
  color: #b83626;
}

.price-cut {
  text-decoration: line-through;
  color: gray;
  font-size: 14px;
  margin-right: 8px;
}

.price-discount {
  color: green;
  font-size: 14px;
}

.spec-box {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 10px 0;
  font-size: 14px;
}

.spec-item {
  background: #f9f9f9;
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.swiper-slide img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 10px;
}

.thumbs {
  display: flex;
  flex-wrap: wrap; /* This is the key */
  gap: 9px;
  margin-top: 10px;
}

.thumbs img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border: 2px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
}

.total-price {
  font-weight: bold;
  font-size: 18px;
  color: red;
}

@media (max-width: 767.98px) {
  .thumbs img {
    width: 70px;
    height: 53px;
  }
  .swiper-slide img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 10px;
  }
  .car-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* SPECIFICATIONS */
.spec-section {
  border: 1px solid #ddd;
  padding: 30px;
  border-radius: 8px;
  background-color: #fafafa;
}
.spec-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 25px;
  color: #b83626;
}
.spec-table th {
  background-color: #f5f5f5;
  font-weight: 500;
  color: #555;
  vertical-align: middle;
}
.spec-table td {
  color: #000;
  vertical-align: middle;
}

/* FEATURES */
.feature-heading {
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
  color: #b83626;
}

.feature-table td {
  vertical-align: middle;
  color: #333;
  background-color: #fff;
  text-align: center;
  font-size: 14px;
  padding: 8px;
}

.feature-table td.active {
  background-color: #d1f5d3;
  font-weight: 600;
  color: #2b7a2b;
  border: 2px solid #6bc46b;
}

/* SIMILAR */
.car-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.car-image img {
  width: 100%;
  height: 140px;
}
.arrival-tag {
  position: absolute;
  background: #b83626;
  color: white;
  padding: 2px 8px;
  font-size: 12px;
  top: 10px;
  left: 10px;
  border-radius: 4px;
}
.car-details {
  padding: 10px;
}
.car-name {
  font-weight: bold;
  margin-bottom: 5px;
}
.car-price span {
  color: #b83626;
}

/* CONTACT */

.consultant .card {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  transition: 0.3s ease;
  height: 100%;
  text-align: center;
  padding: 20px 15px;
}

.consultant .card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.consultant .circle-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid #b83626;
}

.consultant .card-body h5 {
  color: #b83626;
  margin-bottom: 10px;
}

.consultant .lang {
  list-style: none;
  padding-left: 0;
  margin: 0 0 10px 0;
}

.consultant .lang li {
  display: inline-block;
  background: #eee;
  padding: 3px 8px;
  margin: 3px;
  border-radius: 4px;
  font-size: 13px;
}

.consultant .whatsapp a {
  color: #25d366;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  justify-content: center;
}

.consultant .whatsapp a:hover {
  text-decoration: underline;
}

.consultant .email {
  display: block;
  margin-bottom: 8px;
  color: #555;
  text-decoration: none;
}

.consultant .email:hover {
  text-decoration: underline;
}

/* FAQs */
.faq-container {
  padding: 30px 0;
}

.faq-heading {
  color: #b83626;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  text-transform: uppercase;
}

.accordion-custom {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid #ddd;
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  background-color: #fff;
  cursor: pointer;
  padding: 15px 20px;
  font-weight: 600;
  position: relative;
  color: #333;
}

.accordion-header::after {
  content: "+";
  position: absolute;
  right: 20px;
  font-size: 18px;
  transition: transform 0.3s;
}

.accordion-header.active::after {
  content: "-";
  transform: rotate(180deg);
}

.accordion-body {
  padding: 15px 20px;
  display: none;
  background-color: #fff;
  color: #444;
}

.accordion-body.show {
  display: block;
}

/* ABOUT */
.about-section {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.06);
}

.about-section h1 {
  font-size: 2.2rem;
  color: #b83626;
  font-weight: bold;
  margin-bottom: 20px;
}

.about-section h3 {
  color: #b83626;
  font-weight: 600;
  margin-top: 30px;
}

.about-section p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 15px;
  color: #333;
}

.about-section .icon {
  color: #b83626;
  margin-right: 10px;
}

.section-divider {
  height: 2px;
  background-color: #b83626;
  width: 60px;
  margin: 20px 0;
}
