main {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin-bottom: 80px;
}

.vehicle__container {
  margin-top: 60px;
}

.vehicle-info {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.vehicle-details {
  width: 59%;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.vehicle-heading {
  margin-bottom: 20px;
}


#vehicle-swiper-main {
  --slide-height: 460px;
  height: var(--slide-height);
  border: 2px solid var(--bs-gray-light);
  border-radius: 4px;
}


.vehicle-swiper-wrapper .vehicle-slide {
  height: var(--slide-height);

  & img {
    height: var(--slide-height);
    width: 100%;
    object-fit: contain;
  }
}

.vehicle-swiper-main {
  width: 100%;
  /* margin-bottom: 20px; */
}

.vehicle-swiper-image {
  width: 100%;
  border-radius: 8px;
}

.vehicle-swiper-thumbs {
  width: 100%;
}

.vehicle-swiper-thumbs button {
  background-color: var(--bs-secondary-light);
  border: none;
  transition: background-color ease 200ms;
}

.vehicle-swiper-thumbs button:hover {
  background-color: var(--bs-button-secondary-hover);
}

.vehicle-swiper-thumb {
  width: 100%;
  cursor: pointer;
  border-radius: 4px;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.vehicle-swiper-thumbs .swiper-slide-thumb-active .vehicle-swiper-thumb {
  opacity: 1;
}

.vehicle-thumb-slide,
.vehicle-thumb-slide img {
  width: 150px !important;
}


/* thumbnail container styles */
div#vehicle-swiper-thumbs {
  display: flex;
  justify-content: space-between;
}

div#vehicle-swiper-thumbs>.vehicle-thumbs-wrapper {
  overflow-x: auto;
  scrollbar-width: none;
}

div#vehicle-swiper-thumbs>.vehicle-thumbs-wrapper>.vehicle-thumb-slide img {
  object-fit: cover;
  height: 140px !important;
  aspect-ratio: 1 !important;
  margin-inline: auto;
}

/* thumbnail container styles END */

/* Features styles */

.vehicle-features {
  display: flex;
  flex-direction: column;
  gap: 42px;
}

.vehicle-features__container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.vehicle-feature__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  align-items: center;
  width: 130px;
  background-color: var(--bs-secondary-light);
  padding: 4px 12px;
  color: var(--bs-gray);
  font-size: 12px;
}

.vehicle-feature__item h4 {
  font-weight: normal;
}

.vehicle-feature__item img {
  width: 48px;
  aspect-ratio: 1;
  object-fit: contain;
  filter: contrast(9%);
}

.vehicle-feature__item span {
  font-weight: bold;
  text-align: center;
}

/* Features styles END */

/* Specs styles */
.details__summary {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 40px;
  padding: 12px 0;
  cursor: pointer;
}

.details__summary svg {
  cursor: pointer;
  rotate: -90deg;
  transition: rotate ease 150ms;
}


.vehicle-specs[open] .details__summary svg {
  rotate: 90deg;
}

.details-content table {
  width: 100%;
  border-collapse: collapse;
  font-family: sans-serif;
  font-size: 15px;
  background-color: #fff;
}

.details-content thead {
  background-color: #f5f5f5;
  text-align: left;
}

.details-content th,
.details-content td {
  padding: 12px 16px;
  border-bottom: 1px solid #e0e0e0;
}

.details-content tr:last-child td {
  border-bottom: none;
}

.details-content tbody tr:nth-child(odd) {
  background-color: #fafafa;
}

.details-content td:first-child {
  font-weight: 500;
  color: #333;
}

.details-content td:last-child {
  color: #555;
}

/* Responsive */
@media (max-width: 640px) {

  .details-content table,
  .details-content thead,
  .details-content tbody,
  .details-content tr,
  .details-content td {
    display: block;
    width: 100%;
  }

  .details-content thead {
    display: none;
  }

  .details-content tr {
    margin-bottom: 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    background-color: #fff;
  }

  .details-content td {
    padding: 8px 12px;
    border: none;
    position: relative;
  }

  .details-content td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #777;
    display: block;
    margin-bottom: 4px;
  }
}


/* Specs styles END */


/* Rental details */

.vehicle-rental-details {
  width: 35%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.rental-info-box {
  background: #FFFFFF;
  border: 1px solid #D9D9D9;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  padding: 32px 40px;
}

.vehicle-rental-details .vehicle-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 36px;
}

.rental-details>div {
  display: flex;
  justify-content: space-between;
  align-items: center;

}

.rental-details>div>p:first-of-type {
  color: #666666;
}

.rental-details>div>p:last-of-type {
  font-weight: bold
}


/* Rental details END */

/* Installment plans */

.installment-plans {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.installment-plans>.plan {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  border: 1px solid #D9D9D9;
  border-radius: 4px;
  padding: 8px 12px;
  background-color: var(--bs-white);
  cursor: pointer;
  transition: background-color ease 200ms;
}

.installment-plans>.plan:has(input:checked) {
  background-color: var(--bs-background);
  color: white;
}

.installment-plans>.plan>input[type="radio"] {
  display: none;
}


.installment-plans>.plan>.plan-term {
  font-weight: bold;
}

.installment-plans>.plan>.plan-price {
  color: #666666;
}

.installment-plans>.plan:has(input:checked) .plan-price {
  color: var(--bs-white);

}

/* Installment plans END */

/* Advance payment */

.advance-payment .vehicle-heading p {
  color: #666666;
}

.advance-payment .price-ranges {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-weight: bold;
  font-size: 14px;
}

.advance-payment #advance-payment-value {
  width: 100%
}

.advance-payment .advance-payment-selected-value {
  display: flex;
  justify-content: stretch;
  align-items: center;
  border: 1px solid #D9D9D9;
  border-radius: 4px;
  width: 100%;
}

.advance-payment .advance-payment-selected-value input {
  width: 100%;
  font-size: 14px;
  font-weight: bold;
  padding: 4px 12px;
  border: none;
  text-align: center;
}

/* Advance payment END */

@media screen and (max-width: 1024px) {
  .vehicle__container {
    flex-direction: column;
  }

  .vehicle-details,
  .vehicle-rental-details {
    width: 100%;
  }
}

.loading {
  opacity: 0.25 !important;
  pointer-events: none;
  transition: opacity ease 0.1s;
}

.advance-payment .input-message {
  display: none;
  color: var(--bs-danger);
  font-style: italic;
  margin-top: 4px;
}