.logo {
  width: 90%;
  display: block;
  margin: 0 auto;
}

.logo2 {
  width: 100px;
  height: 100px;
}

.navbar-brand {
  margin-left: 70px;
}

.container-fluid {
  padding: 0;
}

body {
  padding-top: 90px;
  background-image: url("/static/bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: "Liber Franklin", sans-serif;
}

.navbar {
  position: fixed;
  top: 0;
  z-index: 1000;
  padding: 15px;
  transition: padding 0.3s ease-in-out;
}

.navbar.shrink {
  padding: 0;
}

.logo-navbar {
  height: 50px;
  transition: height 0.3s ease-in-out;
}

.navbar.shrink .logo-navbar {
  height: 30px;
}

.navbar-collapse {
  margin-left: 50px;
}

.nav-link {
  position: relative;
  padding-bottom: 5px;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -26px;
  left: 0;
  right: 0;
  width: 0;
  height: 3px;
  background-color: #f02311;
  transition: width 0.3s ease-in-out, bottom 0.3s ease-in-out;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.navbar.shrink .nav-link::after {
  bottom: -3px;
}

.car-card {
  display: block !important;
  background: rgb(32, 32, 32) !important;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s;
  color: #333;
  text-decoration: none;
}

.car-card:hover {
  transform: translateY(-4px);
}

.car-image {
  width: 95%;
  height: 200px;
  margin: 12px;
  border-radius: 12px;
  object-fit: cover;
}

.car-content {
  padding: 16px;
}

.car-content-features {
  padding-top: 16px;
  padding-left: 16px;
  padding-right: 16px;
}

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

.car-title {
  color: white;
  font-size: 18px;
  font-weight: 500;
  margin: 0;
}

.car-price {
  color: white;
  font-size: 18px;
  font-weight: 600;
  margin-top: 5px;
  margin-bottom: 0;
}

.car-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #404040;
  border-radius: 8px;
  padding: 8px 4px;
}

.spec-icon {
  font-size: 20px;
  margin-bottom: 10px;
  opacity: 0.6;
}

.spec-value {
  color: white;
  font-size: 12px;
  font-weight: 500;
}

.car-description {
  color: white;
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.4;
  margin-top: 35px;
}

.car-description-oferta {
  color: white;
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.4;
  margin-top: 15px;
}

.car-actions {
  display: flex;
  gap: 8px;
}

.btn-buy {
  flex: 1;
  background: #ff4d4d;
  color: white;
  border: none;
  padding: 8px;
  border-radius: 6px;
  font-weight: 500;
}

.two-line-text {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.bg-info {
  background-color: #17a2b8 !important;
}

.badge {
  font-size: .8rem;
  background-color: #fff;
  color: #000;
}

.info-badge {
  margin-right: 3px;
}

.text-red {
  color: #f02311;
}

.bg-red {
  background-color: #f02311;
}

.card-footer {
  background-color: black;
}

.border-0 {
  border: none;
}

.shadow {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.font-size {
  font-size: 19px;
}

.car-count-position {
  margin-top: 20px;
  font-size: 20px;
}

.contact-form-wrapper {
  max-width: 1000px;
  margin: 0 auto 50px;
  background-color: #000;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form .form-control {
  background-color: white;
  color: black;
  border: 1px solid #ced4da;
  margin-bottom: 10px;
}

.contact-form .form-control:focus {
  border-color: #f00;
  box-shadow: 0 0 0 0.2rem rgba(255, 0, 0, 0.25);
}

.contact-form .btn {
  background-color: #f00;
  color: white;
  border: none;
  padding: 10px 20px;
}

.btn-lg.btn-danger {
  font-size: 1.5rem;
  padding: 15px 30px;
  border-radius: 8px;
  background-color: #f00;
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s, box-shadow 0.3s;
}

.btn-lg.btn-danger:hover {
  background-color: #c00;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.car-detail-container {
  color: white;
  background-color: black;
  margin-top: 40px;
  margin-bottom: 40px;
  padding: 30px;
}

.red-line {
  height: 5px;
  background-color: red;
  width: 16%;
  margin-left: 3px;
}

.car-attributes {
  background-color: #333;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 10px;
  gap: 10px;
  margin: 27px 0 15px;
}

.attribute-group {
  display: flex;
  align-items: center;
}

.attribute {
  color: white;
  white-space: nowrap;
}

.attribute-separator {
  height: 22px;
  width: 4px;
  background-color: red;
  margin-right: 5px;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  padding: 0;
  margin-top: 10px;
}

.thumbnail-slider {
  overflow-x: auto;
  white-space: nowrap;
  max-width: 100%;
}

.thumbnail-container {
  display: flex;
  flex-wrap: nowrap;
}

.img-thumbnail {
  display: inline-block;
  width: auto;
  height: 68px;
  margin-right: 3px;
  cursor: pointer;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
}

.img-thumbnail.active {
  /* border: 2px solid red;  */
}

.form-control {
  background-color: rgb(75, 75, 75);
  border: none;
}

.form-control:focus {
  background-color: #ccc;
  box-shadow: none;
}

.custom-form-container {
  max-width: 700px;
  margin: auto;
}

.form-control::placeholder {
  color: #ccc;
  opacity: 1;
}

.placeholder-focus-color::placeholder {
  color: rgb(75, 75, 75);
}

.filter-button {
  background-color: #333;
  margin-top: 15px;
  height: 50px;
  width: 100px;
  font-size: 20px;
  border: 2px solid black;
  border-radius: 5px;
}

.filter-button:hover {
  background-color: black;
}

.image-container:hover .delete-img-btn {
  display: block;
}

.limit-text {
  display: -webkit-box;
  -webkit-line-clamp: 11;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.custom-read-more {
  color: white;
  float: right;
  text-decoration: none;
}

@media (max-width: 767px) {
  .contact-form-wrapper {
    padding: 15px;
  }
  .contact-form .row .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .navbar-brand {
    margin-left: 10px;
  }
}

.spec-icon img {
  filter: invert(21%) sepia(94%) saturate(5112%) hue-rotate(-5deg) brightness(95%) contrast(110%);
}

.car-actions .btn-buy {
  display: flex;
  justify-content: space-between; /* This ensures the text and the arrow are spaced out */
  align-items: center; /* Vertically center the items */
  padding: 10px 20px;
  background-color: red;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  width: 100%; /* Make sure the button takes the full width of the container */
}

.arrow-icon {
  filter: invert(100%);
  margin-left: 10px; /* Add some space between the text and the arrow */
}

/* Custom Pagination Styles for Red and Black Theme */
.pagination .page-item.active .page-link {
  background-color: #dc3545; /* Red background for active page */
  border-color: #dc3545; /* Red border for active page */
  color: white; /* White text for active page */
}

.pagination .page-link {
  color: #dc3545; /* Red text for non-active pages */
  background-color: #000; /* Black background for non-active pages */
  border-color: #333; /* Dark gray border for non-active pages */
}

.pagination .page-link:hover {
  background-color: #333; /* Dark gray background on hover */
  color: #fff; /* White text on hover */
  border-color: #333; /* Dark gray border on hover */
}

.pagination .page-item.disabled .page-link {
  color: #6c757d; /* Gray text for disabled pages */
  background-color: #000; /* Black background for disabled pages */
  border-color: #333; /* Dark gray border for disabled pages */
}

/* WORK IN PROGESS */

.accordion-item {
  background-color: #333;
  border: 1px solid #444;
}

.accordion-button {
  background-color: #222;
  color: #fff;
}

.accordion-button:not(.collapsed) {
  background-color: #f02311;
  color: #fff;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(240, 35, 17, 0.25);
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
  background-color: #444;
  color: #fff;
}

/* LANDING PAGE IMAGE */

/* Custom styles for hero section */
#main {
  background-color: #000;
  color: white;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  margin-top: 56px; /* Adjust based on navbar height */
  background-image: linear-gradient(to right, #000 40%, transparent 60%), url("/static/car_image.jpg");
  background-position: right center;
  background-repeat: no-repeat;
  background-size: contain;
}

#main h2 {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-transform: uppercase;
}

#main h3 {
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
  text-transform: uppercase;
}

#main p {
  font-size: 1rem;
  margin-bottom: 30px;
  opacity: 0.8;
  max-width: 400px;
}

.btn-a {
  display: inline-block;
  background-color: #f02311;
  color: white;
  padding: 12px 25px;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  width: fit-content;
}

.btn-a:hover {
  background-color: #d01f0f;
  color: white;
}

.rotate {
  margin-left: 10px;
  transform: rotate(180deg);
}

.section-title-container {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.section-title-box {
  background-color: #000;
  color: white;
  padding: 20px 40px;
  position: relative;
  display: inline-block;
  border-radius: 4px;
}

.section-title-box h2 {
  font-weight: 700;
  font-size: 2rem;
  text-transform: uppercase;
  margin: 0;
  white-space: nowrap;
}

.section-title-box .red-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(to right, #f02311 0%, #f02311 30%, transparent 100%);
  width: 30%;
}
/* Responsive adjustments */
@media (max-width: 767px) {
  #main {
    padding: 60px 0;
  }

  #main::before {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 1) 60%,
      rgba(0, 0, 0, 0.8) 70%,
      rgba(0, 0, 0, 0.4) 80%,
      rgba(0, 0, 0, 0) 100%
    );
  }

  #main::after {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 50%;
    background-position: center bottom;
  }

  #main h3 {
    font-size: 2rem;
  }

  .section-title-box h2 {
    font-size: 1.5rem;
  }

  .section-title-box {
    padding: 15px 25px;
  }
}

/* CONTACRT FORM */

.contact-form-wrapper {
  background-color: #000;
  padding: 60px 0;
  margin-top: 50px;
  position: relative;
}

.contact-form-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, #f02311 0%, #f02311 30%, transparent 100%);
}

.contact-form-container {
  background-color: #111;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  padding: 40px;
}

.contact-info {
  color: white;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
}

.contact-description {
  color: #aaa;
  margin-bottom: 30px;
  font-size: 1rem;
}

.contact-details {
  margin-top: auto;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: #ccc;
}

.contact-detail-item i {
  color: #f02311;
  margin-right: 15px;
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
}

.form-control {
  background-color: #222;
  border: none;
  color: white;
  padding: 12px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.form-control:focus {
  background-color: #333;
  box-shadow: 0 0 0 3px rgba(240, 35, 17, 0.25);
  border-color: #f02311;
}

.form-floating > .form-control {
  padding: 1.625rem 0.75rem 0.625rem;
}

.form-floating > label {
  padding: 1rem 0.75rem;
  color: #aaa;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: #f02311;
  transform: scale(0.85) translateY(-0.75rem) translateX(0.15rem);
}

.btn-contact {
  background-color: #f02311;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  width: 100%;
}

.btn-contact:hover {
  background-color: #d01f0f;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(240, 35, 17, 0.3);
  color: white;
}

.btn-contact i {
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.btn-contact:hover i {
  transform: translateX(5px);
}

@media (max-width: 767px) {
  .contact-form-container {
    padding: 25px;
  }

  .contact-info {
    margin-bottom: 30px;
  }

  .contact-info h3 {
    font-size: 1.5rem;
  }
}

/* Body Type Filters */
.body-type-filters {
  background-color: #202020;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.body-type-filter {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.body-type-filter:hover,
.body-type-filter.active {
  background-color: #f02311;
  transform: translateY(-5px);
}

.body-type-icon {
  background-color: #333;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.body-type-icon img {
  width: 35px;
  height: 35px;
  filter: invert(21%) sepia(94%) saturate(5112%) hue-rotate(-5deg) brightness(95%) contrast(110%);
}

.body-type-filter span {
  font-size: 14px;
  font-weight: 500;
}

/* Left Sidebar Filters */
.filters-sidebar {
  background-color: #202020;
  border-radius: 12px;
  padding: 20px;
}

.filter-section {
  margin-bottom: 25px;
  border-bottom: 1px solid #333;
  padding-bottom: 20px;
}

.filter-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-title {
  color: white;
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 500;
  position: relative;
  padding-left: 15px;
}

.filter-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 20px;
  background-color: #f02311;
  border-radius: 3px;
}

/* Range Sliders */
.range-slider {
  position: relative;
  height: 30px;
  margin-bottom: 20px;
}

.slider-track {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 5px;
  background-color: #333;
  border-radius: 3px;
}

.slider {
  position: absolute;
  top: 0;
  width: 100%;
  height: 5px;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f02311;
  cursor: pointer;
  pointer-events: auto;
  border: 2px solid #fff;
}

.slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f02311;
  cursor: pointer;
  pointer-events: auto;
  border: 2px solid #fff;
}

.price-range-display,
.mileage-range-display {
  color: white;
  font-size: 14px;
  text-align: center;
}

.price-inputs,
.mileage-inputs {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-separator,
.mileage-separator {
  color: white;
  margin: 0 10px;
}

/* Fuel Type Options */
.fuel-type-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-check-label {
  color: white;
  font-size: 14px;
}

.form-check-input {
  margin-right: 5px;
}

.form-check-input:checked {
  background-color: #f02311;
  border-color: #f02311;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .filters-sidebar {
    margin-bottom: 30px;
  }

  .body-type-filter {
    padding: 8px 10px;
  }

  .body-type-icon {
    width: 50px;
    height: 50px;
  }

  .body-type-icon img {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 767px) {
  .body-type-filters .row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .body-type-filter {
    min-width: 80px;
  }
}