/* CarLot home — AutoTrader search fields, Turo-inspired shell */

.cl-home {
  --cl-bg: #f7f7f7;
  --cl-surface: #ffffff;
  --cl-ink: #0f0f0f;
  --cl-muted: #5c5c5c;
  --cl-line: #e8e8e8;
  --cl-accent: #5b41f5;
  --cl-accent-press: #4730d9;
  --cl-radius: 16px;
  --cl-radius-lg: 24px;
  --cl-shadow: 0 8px 28px rgba(15, 15, 15, 0.12);
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--cl-ink);
  background: var(--cl-bg);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 calc(4.5rem + env(safe-area-inset-bottom, 0px));
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.cl-home *,
.cl-home *::before,
.cl-home *::after {
  box-sizing: border-box;
}

/* Kill theme link/button underlines inside CarLot home */
.cl-home a,
.cl-home a:hover,
.cl-home a:focus,
.cl-home a:visited,
.cl-home button,
.cl-home button:hover,
.cl-home button:focus {
  text-decoration: none !important;
  box-shadow: none;
}

.cl-home button {
  font-family: inherit;
  line-height: 1.2;
}

.cl-home__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.cl-home__promo {
  text-align: center;
  padding: 0.7rem 1rem;
  background: #0a0a0a;
  border-bottom: 0;
  font-size: 0.85rem;
  color: #fff;
}

.cl-home__promo-link {
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.cl-home__promo-link:hover {
  color: #fff !important;
  opacity: 0.85;
  text-decoration: none !important;
}

.cl-home__nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: var(--cl-surface);
  position: sticky;
  top: 0;
  z-index: 20;
}

.cl-home__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  background: var(--cl-ink);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.cl-home__nav-links {
  display: none;
  gap: 1.25rem;
  margin-left: 0.5rem;
}

.cl-home__nav-links a {
  color: var(--cl-ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.cl-home__nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cl-home__ghost {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--cl-line);
  background: var(--cl-surface);
  color: var(--cl-ink);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: none !important;
}

.cl-home__search-submit,
.cl-home__sell-btn,
.cl-home__body-tile,
.cl-home__filters-btn,
.cl-home__fav,
.cl-home__rail-btn {
  text-decoration: none !important;
  box-shadow: none !important;
}

.cl-home__icon-btn {
  appearance: none;
  border: 1px solid var(--cl-line);
  background: var(--cl-surface);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--cl-ink);
}

.cl-home__hero {
  margin: 0;
  border-radius: 0;
  min-height: min(72vh, 560px);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 100%),
    var(--cl-hero) center / cover no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem 1rem 1.25rem;
  color: #fff;
}

.cl-home__hero-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.cl-home__hero-title {
  margin: 0 0 0.35rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-transform: none;
}

.cl-home__hero-sub {
  margin: 0 0 1.25rem;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  opacity: 0.92;
  max-width: 28rem;
}

.cl-home__search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  background: var(--cl-surface);
  color: var(--cl-ink);
  border-radius: 999px;
  padding: 0.4rem;
  box-shadow: var(--cl-shadow);
  align-items: center;
}

.cl-home__search-cat {
  display: none;
}

.cl-home__search-query {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  grid-column: 1;
}

.cl-home__search-query i {
  position: absolute;
  left: 0.9rem;
  color: var(--cl-muted);
  pointer-events: none;
}

.cl-home__search-query input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0.85rem 0.85rem 0.85rem 2.4rem;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  color: var(--cl-ink);
}

.cl-home__filters-btn {
  display: none;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--cl-ink);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  gap: 0.35rem;
  align-items: center;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  white-space: nowrap;
}

.cl-home__search-submit {
  appearance: none;
  border: 0;
  background: var(--cl-accent);
  color: #fff;
  border-radius: 999px;
  width: 2.85rem;
  height: 2.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  grid-column: 2;
  grid-row: 1;
}

.cl-home__search-submit:hover {
  background: var(--cl-accent-press);
}

.cl-home__search-submit-label {
  display: none;
}

.cl-home__search-submit-icon {
  font-size: 1.1rem;
}

.cl-home__chips {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 1rem 1rem 0.25rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.cl-home__chips::-webkit-scrollbar {
  display: none;
}

.cl-home__chip {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--cl-line);
  background: var(--cl-surface);
  color: var(--cl-ink);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none !important;
  box-shadow: none !important;
  outline: none;
}

.cl-home__chip:hover,
.cl-home__chip:focus,
.cl-home__chip:active {
  text-decoration: none !important;
}

.cl-home__chip.is-active {
  background: var(--cl-ink);
  border-color: var(--cl-ink);
  color: #fff;
}

.cl-home__section {
  padding: 1.5rem 1rem 0.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.cl-home__section--muted {
  margin-top: 1rem;
}

.cl-home__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.cl-home__section-head h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.cl-home__rail-nav {
  display: none;
  gap: 0.4rem;
}

.cl-home__rail-btn {
  appearance: none;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid var(--cl-line);
  background: var(--cl-surface);
  cursor: pointer;
  color: var(--cl-ink);
}

.cl-home__rail {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.cl-home__card {
  flex: 0 0 min(78vw, 260px);
  background: var(--cl-surface);
  border-radius: var(--cl-radius);
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid transparent;
  color: inherit;
  text-decoration: none !important;
  display: block;
}

.cl-home__card:hover,
.cl-home__card:focus {
  text-decoration: none !important;
  color: inherit;
}

.cl-home__card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #ddd;
}

.cl-home__card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cl-home__fav {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--cl-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cl-home__fav.is-on {
  color: #e11d48;
}

.cl-home__badge {
  position: absolute;
  left: 0.65rem;
  bottom: 0.65rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--cl-ink);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}

.cl-home__card-body {
  padding: 0.75rem 0.85rem 1rem;
}

.cl-home__card-body h3 {
  margin: 0 0 0.2rem;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.cl-home__card-meta {
  margin: 0 0 0.55rem;
  color: var(--cl-muted);
  font-size: 0.84rem;
}

.cl-home__card-price {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
}

.cl-home__body-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.cl-home__body-tile {
  appearance: none;
  border: 1px solid var(--cl-line);
  background: var(--cl-surface);
  border-radius: 14px;
  padding: 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--cl-ink);
  cursor: pointer;
  text-align: left;
}

.cl-home__body-tile i {
  font-size: 1.25rem;
}

.cl-home__sell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--cl-surface);
  border-radius: var(--cl-radius);
  padding: 1.35rem 1.2rem;
  border: 1px solid var(--cl-line);
}

.cl-home__sell h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.cl-home__sell p {
  margin: 0;
  color: var(--cl-muted);
}

.cl-home__sell-btn {
  appearance: none;
  border: 0;
  background: var(--cl-ink);
  color: #fff;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-start;
}

/* Filters drawer */
.cl-home__drawer[hidden] {
  display: none !important;
}

.cl-home__drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.cl-home__drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.cl-home__drawer-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 88vh;
  background: var(--cl-surface);
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  padding: 1rem 1rem 1.25rem;
}

.cl-home__drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.cl-home__drawer-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.cl-home__drawer-body {
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-bottom: 0.5rem;
}

.cl-home__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cl-ink);
  margin: 0;
  cursor: default;
}

.cl-home__field > span {
  display: block;
  line-height: 1.2;
  text-decoration: none !important;
}

.cl-home__field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  align-items: start;
}

.cl-home__drawer .cl-home__field select,
.cl-home__drawer select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  width: 100%;
  height: 44px;
  margin: 0;
  border: 1px solid var(--cl-line) !important;
  border-radius: 10px !important;
  padding: 0 2.4rem 0 0.85rem !important;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--cl-ink) !important;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%235c5c5c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.85rem center !important;
  background-size: 14px 14px !important;
  box-shadow: none !important;
  outline: none !important;
  text-decoration: none !important;
  transform: none !important;
  cursor: pointer;
}

.cl-home__drawer .cl-home__field select:hover,
.cl-home__drawer .cl-home__field select:focus,
.cl-home__drawer select:hover,
.cl-home__drawer select:focus {
  border-color: #cfcfcf !important;
  background-color: #fff !important;
  box-shadow: none !important;
  outline: none !important;
  text-decoration: none !important;
  transform: none !important;
}

.cl-home__drawer .cl-home__field select:disabled {
  opacity: 1;
  color: var(--cl-ink) !important;
  cursor: default;
}

.cl-home__drawer-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--cl-muted);
  font-weight: 400;
}

.cl-home__price-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--cl-line);
  border-radius: 10px;
  overflow: hidden;
  background: #f3f3f3;
}

.cl-home__price-mode button {
  appearance: none;
  border: 0;
  background: transparent;
  min-height: 44px;
  padding: 0.7rem 0.5rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cl-muted);
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.cl-home__price-mode button:hover,
.cl-home__price-mode button:focus {
  text-decoration: none !important;
  transform: none !important;
}

.cl-home__price-mode button.is-active {
  background: #fff;
  color: var(--cl-ink);
  box-shadow: inset 0 0 0 1px var(--cl-line);
}

.cl-home__filter-bodies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.cl-home__filter-body {
  appearance: none;
  border: 1px solid var(--cl-line);
  background: #fff;
  border-radius: 10px;
  min-height: 72px;
  padding: 0.7rem 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cl-ink);
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.cl-home__filter-body:hover,
.cl-home__filter-body:focus {
  border-color: #cfcfcf;
  text-decoration: none !important;
  transform: none !important;
  box-shadow: none !important;
}

.cl-home__filter-body i {
  font-size: 1.15rem;
  line-height: 1;
}

.cl-home__filter-body.is-active {
  border-color: var(--cl-ink);
  background: #f4f4f4;
}

.cl-home__drawer-foot {
  display: flex;
  gap: 0.65rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--cl-line);
  margin-top: 0.5rem;
}

.cl-home__drawer-foot .cl-home__search-submit {
  flex: 1;
  width: auto;
  height: auto;
  min-height: 44px;
  border-radius: 999px;
  padding: 0.75rem 1rem;
}

.cl-home__drawer-foot .cl-home__ghost {
  flex: 0 0 auto;
  min-height: 44px;
}

/* Desktop / tablet */
@media (min-width: 768px) {
  .cl-home__nav {
    padding: 1rem 1.75rem;
  }

  .cl-home__nav-links {
    display: flex;
  }

  .cl-home__nav-actions .cl-home__icon-btn {
    display: none;
  }

  .cl-home__hero {
    margin: 0;
    border-radius: 0;
    min-height: min(68vh, 620px);
    padding: 2.5rem 2rem 1.75rem;
    align-items: center;
  }

  .cl-home__hero-inner {
    text-align: center;
  }

  .cl-home__hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .cl-home__search {
    grid-template-columns: 1fr auto auto;
    max-width: 860px;
    margin: 0 auto;
    padding: 0.45rem 0.45rem 0.45rem 0.85rem;
    border-radius: 999px;
  }

  .cl-home__search-query {
    grid-column: auto;
  }

  .cl-home__filters-btn {
    display: inline-flex;
  }

  .cl-home__search-submit {
    width: auto;
    min-width: 11.5rem;
    height: 3rem;
    padding: 0 1.25rem;
    border-radius: 999px;
    grid-column: auto;
    grid-row: auto;
  }

  .cl-home__search-submit-label {
    display: inline;
  }

  .cl-home__search-submit-icon {
    display: none;
  }

  .cl-home__chips {
    padding: 1.25rem 1.75rem 0.35rem;
    justify-content: center;
    overflow: visible;
    flex-wrap: wrap;
  }

  .cl-home__section {
    padding: 2rem 1.75rem 0.75rem;
  }

  .cl-home__section-head h2 {
    font-size: 1.55rem;
  }

  .cl-home__rail-nav {
    display: flex;
  }

  .cl-home__card {
    flex-basis: 260px;
  }

  .cl-home__body-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
  }

  .cl-home__sell {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem 1.75rem;
  }

  .cl-home__drawer-panel {
    left: auto;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(420px, 100%);
    max-height: none;
    border-radius: 0;
  }
}

@media (min-width: 1100px) {
  .cl-home__rail {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
  }

  .cl-home__card {
    flex: unset;
  }

  .cl-home__body-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Soften WP / Elementor chrome — true full-bleed */
body.carlot-home-page,
body:has(.cl-home) {
  background: #f7f7f7 !important;
  overflow-x: hidden;
}

body.carlot-home-page #masthead,
body.carlot-home-page .site-header,
body.carlot-home-page #ast-desktop-header,
body.carlot-home-page #ast-mobile-header,
body.carlot-home-page .ast-header-break-point,
body.carlot-home-page .ast-above-header-bar,
body.carlot-home-page .ast-below-header-bar,
body.carlot-home-page header.site-header,
body.carlot-home-page .site-footer,
body.carlot-home-page footer#colophon,
body.carlot-home-page .ast-footer-overlay,
body:has(.cl-home) #masthead,
body:has(.cl-home) .site-header,
body:has(.cl-home) #ast-desktop-header,
body:has(.cl-home) #ast-mobile-header,
body:has(.cl-home) .site-footer,
body:has(.cl-home) footer#colophon {
  display: none !important;
}

body.carlot-home-page .site-content,
body.carlot-home-page #content,
body:has(.cl-home) .site-content,
body:has(.cl-home) #content {
  padding: 0 !important;
  margin: 0 !important;
}

body.carlot-home-page .entry-header,
body:has(.cl-home) .entry-header {
  display: none !important;
}

body.carlot-home-page .entry-content,
body.carlot-home-page .ast-article-single,
body.carlot-home-page #primary,
body.carlot-home-page #main,
body.carlot-home-page .ast-container,
body.carlot-home-page .elementor,
body.carlot-home-page .elementor-section,
body.carlot-home-page .elementor-container,
body.carlot-home-page .elementor-widget-wrap,
body.carlot-home-page .elementor-element,
body.carlot-home-page .e-con,
body.carlot-home-page .e-con-inner,
body.carlot-home-page .elementor-shortcode,
body:has(.cl-home) .entry-content,
body:has(.cl-home) .ast-article-single,
body:has(.cl-home) #primary,
body:has(.cl-home) #main,
body:has(.cl-home) .ast-container,
body:has(.cl-home) .elementor,
body:has(.cl-home) .e-con,
body:has(.cl-home) .e-con-inner,
body:has(.cl-home) .elementor-shortcode {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

body.carlot-home-page .site-content > .ast-container,
body:has(.cl-home) .site-content > .ast-container {
  max-width: none !important;
  padding: 0 !important;
}

body.carlot-home-page .e-con.e-flex,
body.carlot-home-page .e-con.e-atomic-element,
body:has(.cl-home) .e-con.e-flex,
body:has(.cl-home) .e-con.e-atomic-element {
  --padding-top: 0px !important;
  --padding-bottom: 0px !important;
  --padding-left: 0px !important;
  --padding-right: 0px !important;
  --container-widget-width: 100% !important;
}
