/* Vehicle page: dark photo panel, icon tiles, chip features */

.vdp-show {
  position: relative;
}

.vdp-tags {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 2;
  pointer-events: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.vdp-tags li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50rem;
  background: rgba(11, 11, 12, 0.62);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
}
.vdp-tags .ic {
  color: #F76500;
}
.vdp-tags .is-ok {
  border-color: rgba(247, 101, 0, 0.5);
  background: rgba(247, 101, 0, 0.3);
  color: #FFE3D0;
}

.vdp-show .gal-main {
  height: clamp(280px, 54vh, 560px);
  aspect-ratio: auto;
  border-radius: 1.25rem;
}
.vdp-show .gal-main img,
.vdp-show .gal-main.is-tall img {
  object-fit: cover;
  object-position: center 42%;
}
.vdp-show .gal-main.is-tall::before {
  opacity: 0;
}
@media (max-width: 575.98px) {
  .vdp-show .gal-main {
    height: auto;
    aspect-ratio: 4/3;
  }
}

/* Icon circle used in the details tiles and the price panel */
.buy-facts dt .i {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #FFF1E6;
  color: #F76500;
  transition: background-color 0.25s, color 0.25s;
}
.buy-facts dt .i .ic {
  width: 17px;
  height: 17px;
}
.buy-facts dt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.buy {
  border-top: 4px solid #F76500;
}
.buy .buy-facts {
  gap: 1.1rem 1rem;
}
.buy .buy-facts dd {
  margin-top: 0.4rem;
  padding-left: calc(34px + 0.6rem);
}
.buy .buy-where {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}
.buy .buy-where .ic {
  margin-top: 0.2rem;
  color: #F76500;
}

@media (max-width: 575.98px) {
  .vdp-tags li:nth-child(n+2) {
    display: none;
  }
}

/* How buying works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
@media (max-width: 767.98px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.steps li {
  position: relative;
  padding: 1.25rem;
  border-radius: 1rem;
  background: #F6F5F3;
  counter-increment: step;
}
.steps li::after {
  content: "0" counter(step);
  position: absolute;
  top: 0.9rem;
  right: 1.1rem;
  font-size: 28px;
  font-weight: 800;
  color: #E3E0DA;
}
.steps .i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: #F76500;
  color: #fff;
}
.steps b {
  display: block;
  font-size: 17px;
}
.steps p {
  margin: 0.25rem 0 0;
  font-size: 15px;
}

/* Visit this car */
.visit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding: 1.5rem 1.75rem;
  border-radius: 1.25rem;
  background: #0B0B0C;
  color: #fff;
}
.visit-info p {
  display: flex;
  gap: 0.75rem;
  margin: 0 0 0.9rem;
  max-width: none;
  color: #C9C4BB;
  font-size: 15px;
  line-height: 1.5;
}
.visit-info p:last-child {
  margin-bottom: 0;
}
.visit-info b {
  color: #fff;
}
.visit-info .ic {
  flex: none;
  margin-top: 0.15rem;
  color: #F76500;
}
.visit-btns {
  display: grid;
  gap: 0.6rem;
  min-width: 220px;
}
.visit-btns a {
  text-align: center;
}
.visit-btns .btn-sm-line {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.visit-btns .btn-sm-line:hover {
  background: #fff;
  color: #0B0B0C;
}

/* Compare pop-up */
.cmp-dialog {
  max-width: 760px;
}
.cmp-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 14px;
  font-weight: 600;
}
.cmp {
  width: 100%;
  margin-top: 1.25rem;
  border-collapse: collapse;
  font-size: 15px;
}
.cmp th, .cmp td {
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid #E3E0DA;
  vertical-align: top;
}
.cmp th {
  width: 26%;
  font-size: 13.5px;
  font-weight: 600;
  color: #5A5650;
  text-align: left;
}
.cmp thead td {
  border-bottom: 2px solid #E3E0DA;
}
.cmp thead img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  margin-bottom: 0.5rem;
  object-fit: cover;
  border-radius: 0.7rem;
}
.cmp thead b, .cmp thead span {
  display: block;
}
.cmp thead span {
  font-size: 13.5px;
  color: #5A5650;
}
.cmp td.is-best {
  font-weight: 800;
  color: #B84700;
}
@media (max-width: 575.98px) {
  .cmp { font-size: 13.5px; }
  .cmp th, .cmp td { padding: 0.55rem 0.35rem; }
}

.sub-head {
  margin: 1.75rem 0 0.8rem;
  font-size: 17px;
}

/* Section pills */
html {
  scroll-padding-top: 160px;
}
.vdp-pills {
  position: sticky;
  top: var(--head-h, 78px);
  z-index: 20;
  display: flex;
  gap: 0.4rem;
  margin: 1.25rem 0 0;
  padding: 0.55rem 0;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  scrollbar-width: none;
}
.vdp-pills::-webkit-scrollbar {
  display: none;
}
.vdp-pills a {
  flex: none;
  padding: 0.45rem 1rem;
  border: 1px solid #E3E0DA;
  border-radius: 50rem;
  background: #fff;
  color: #151515;
  font-size: 14.5px;
  font-weight: 600;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.vdp-pills a:hover {
  border-color: #F76500;
  color: #B84700;
}
.vdp-pills a.is-on {
  border-color: #0B0B0C;
  background: #0B0B0C;
  color: #fff;
}

/* Specs and features: menu on the left, panel on the right */
.sub-head {
  margin: 1.5rem 0 0.8rem;
  font-size: 17px;
}
.sub-head:first-of-type {
  margin-top: 0;
}
.cat {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1rem;
}
.cat.is-single {
  grid-template-columns: minmax(0, 1fr);
}
.cat.is-single .cat-menu {
  display: none;
}
.cat-menu, .cat-panels {
  min-width: 0;
}
.cat-menu {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.cat-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border: 1px solid #E3E0DA;
  border-radius: 0.8rem;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.3s cubic-bezier(0.22, 0.9, 0.3, 1);
}
.cat-menu button .ic {
  transition: transform 0.3s cubic-bezier(0.22, 0.9, 0.3, 1);
}
.cat-menu button:hover {
  border-color: #F76500;
}
.cat-menu button.is-on {
  border-color: #FFD9BF;
  background: #FFF1E6;
  color: #B84700;
}
.cat-menu button.is-on .ic {
  transform: translateX(3px);
}
.cat-panel {
  display: none;
  padding: 0.5rem 1.4rem;
  border: 1px solid #E3E0DA;
  border-radius: 1rem;
  background: #fff;
}
.cat-panel.is-on {
  display: block;
  animation: fadeUp 0.5s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}
.cat-grid, .cat-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cat-grid li {
  padding: 0.85rem 0;
  border-bottom: 1px solid #EFEDE9;
  transition: transform 0.3s cubic-bezier(0.22, 0.9, 0.3, 1);
}
.cat-grid li:hover {
  transform: translateX(4px);
}
.cat-grid small {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #5A5650;
}
.cat-grid b {
  font-size: 16.5px;
}
.cat-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #EFEDE9;
  font-weight: 600;
}
.cat-list .ic {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0.3rem;
  border-radius: 50%;
  background: #FFF1E6;
  color: #F76500;
}
@media (max-width: 767.98px) {
  .cat {
    grid-template-columns: minmax(0, 1fr);
  }
  .cat-menu {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .cat-menu button {
    flex: none;
  }
  .cat-menu button .ic {
    display: none;
  }
  .cat-grid, .cat-list {
    grid-template-columns: 1fr;
  }
}

/* Scroll reveal variants */
.js [data-reveal="left"] {
  transform: translateX(-36px);
}
.js [data-reveal="zoom"] {
  transform: scale(0.94);
}
.js [data-reveal="rise"] {
  transform: translateY(70px) scale(0.97);
  transition-duration: 0.9s;
}

/* Keep the scrolling rows inside the column on small screens */
.vdp > * {
  min-width: 0;
}
@media (max-width: 991.98px) {
  .vdp {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* No divider under the last row of the specs / features boxes */
.cat-grid li:last-child,
.cat-list li:last-child {
  border-bottom: 0;
}
@media (min-width: 768px) {
  /* two columns: the last row has two items when the count is even */
  .cat-grid li:nth-last-child(2):nth-child(odd),
  .cat-list li:nth-last-child(2):nth-child(odd) {
    border-bottom: 0;
  }
}
