/* /used-cars/ — Lanex used-car search */
.uc-hero {
  background:
    radial-gradient(ellipse 48% 78% at 18% 72%, rgba(232, 93, 4, .18), transparent 56%),
    linear-gradient(165deg, #0b1f3a 0%, #143056 52%, #1a3358 100%);
  color: #fff; padding: 30px 0 26px;
}
.uc-hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.15; margin: 0 0 10px; }
.uc-hero .lede { color: #e4eaf2; max-width: 44rem; margin: 0 0 12px; }
.uc-contact-line { margin: 0; font-weight: 650; color: #ffd3b0; line-height: 1.9; }
.uc-contact-line a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.uc-contact-line a:hover { border-bottom-color: #fff; }

.uc-search { background: var(--paper); border-bottom: 1px solid var(--line); padding: 16px 0 10px; position: relative; }
.uc-types { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.uc-chip {
  font: inherit; font-size: .95rem; font-weight: 650; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--navy);
  border-radius: 999px; padding: 9px 14px; min-height: 42px;
}
.uc-chip:hover { border-color: var(--navy-3); }
.uc-chip.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.uc-chip-n { opacity: .7; font-weight: 500; font-size: .85em; }
.uc-filters { display: grid; grid-template-columns: 2fr repeat(5, 1fr) auto; gap: 10px; align-items: end; }
.uc-f { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; font-weight: 650; color: var(--muted); }
.uc-f input, .uc-f select {
  font: inherit; font-size: .98rem; color: var(--ink); background: #fff;
  border: 1px solid #cfc8bd; border-radius: 10px; padding: 10px 12px; min-height: 44px; width: 100%;
}
.uc-reset { color: var(--navy); border-color: var(--line); background: #fff; min-height: 44px; }
.uc-reset:hover { border-color: var(--navy); }
.uc-count { margin: 12px 0 2px; font-weight: 700; color: var(--navy); }
.uc-disclaimer { margin: 4px 0 0; font-size: .85rem; color: var(--muted); }
.uc-disclaimer-bottom { margin: 18px 0 0; }

.uc-results { padding: 22px 0 40px; }
.uc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.uc-none { grid-column: 1 / -1; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; font-weight: 600; }
.uc-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.uc-card-photo { border: 0; padding: 0; margin: 0; background: #e9e5df; cursor: pointer; aspect-ratio: 3 / 2; overflow: hidden; }
.uc-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.uc-card-photo:hover img { transform: scale(1.03); }
.uc-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.uc-type { margin: 0; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--cta); font-weight: 700; }
.uc-title { margin: 0; font-family: var(--display); font-size: 1.12rem; line-height: 1.25; }
.uc-title button { font: inherit; color: var(--navy); background: none; border: 0; padding: 0; text-align: start; cursor: pointer; }
.uc-title button:hover { text-decoration: underline; }
.uc-trim { margin: 0; color: var(--muted); font-size: .9rem; }
.uc-price { font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--ink); margin: 4px 0 0; }
.uc-price-call { font-size: 1.05rem; color: var(--cta); }
.uc-price-lg { font-size: 1.8rem; margin: 2px 0 2px; }
.uc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.uc-tags span { background: #f1ede7; border-radius: 999px; padding: 3px 10px; font-size: .8rem; font-weight: 600; color: #3b4250; }
.uc-tags .uc-tag-green { background: var(--save-bg); color: var(--save); }
.uc-card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.uc-card-actions .btn { flex: 1 1 auto; min-height: 44px; font-size: .92rem; }
.uc-card-actions .btn-ghost { color: var(--navy); border-color: var(--line); }
.uc-card-actions .btn-ghost:hover { border-color: var(--navy); }
.uc-card-contact { margin: 8px 0 0; font-size: .85rem; font-weight: 650; }
.uc-card-contact a { color: var(--navy); text-decoration: none; }
.uc-more-wrap { text-align: center; margin-top: 22px; }

.uc-modal { position: fixed; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center; padding: 16px; }
.uc-modal[hidden] { display: none; }
.uc-modal-backdrop { position: absolute; inset: 0; background: rgba(8, 18, 34, .72); }
.uc-modal-panel {
  position: relative; background: #fff; border-radius: 16px; width: min(1100px, 100%); max-height: calc(100vh - 32px);
  overflow: auto; display: block; box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.uc-modal-close {
  position: absolute; top: 10px; inset-inline-end: 10px; z-index: 3; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.92); font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--navy);
}
body.uc-modal-open { overflow: hidden; }
#uc-modal-body { display: grid; grid-template-columns: 1.25fr 1fr; }
.uc-gallery { background: #111; min-width: 0; }
.uc-gallery-main { position: relative; aspect-ratio: 4 / 3; background: #111; }
.uc-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.uc-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.88); font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--navy);
}
.uc-prev { left: 10px; } .uc-next { right: 10px; }
.uc-gallery-n { position: absolute; bottom: 10px; right: 12px; background: rgba(0,0,0,.6); color: #fff; font-size: .8rem; padding: 2px 8px; border-radius: 999px; }
.uc-thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; }
.uc-thumbs button { border: 2px solid transparent; padding: 0; background: none; cursor: pointer; flex: 0 0 84px; border-radius: 6px; overflow: hidden; }
.uc-thumbs button.is-on { border-color: #f5b301; }
.uc-thumbs img { width: 84px; height: 60px; object-fit: cover; }
.uc-detail { padding: 22px 22px 20px; min-width: 0; }
.uc-detail h2 { font-family: var(--display); margin: 2px 0 4px; font-size: 1.45rem; line-height: 1.2; color: var(--navy); padding-inline-end: 40px; }
.uc-detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 14px; }
.uc-detail-actions .btn-primary { grid-column: 1 / -1; }
.uc-detail-actions .btn-lg { padding: 12px 14px; font-size: .95rem; min-height: 48px; }
.uc-btn-call, .uc-btn-text, .uc-btn-mail { background: var(--navy); color: #fff; }
.uc-btn-call:hover, .uc-btn-text:hover, .uc-btn-mail:hover { background: var(--navy-3); }
.uc-btn-wa { background: #1f9d55; color: #fff; }
.uc-btn-wa:hover { background: #17834a; }
.uc-specs { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.uc-specs div { border-bottom: 1px solid var(--line); padding: 7px 0; min-width: 0; }
.uc-specs dt { font-size: .74rem; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.uc-specs dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.uc-lanex-contact { margin: 14px 0 0; font-size: .88rem; color: var(--muted); line-height: 1.7; }
.uc-lanex-contact a { color: var(--navy); font-weight: 650; }

@media (max-width: 1000px) {
  .uc-filters { grid-template-columns: 1fr 1fr 1fr; }
  .uc-f-q { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
  #uc-modal-body { grid-template-columns: 1fr; }
  .uc-modal { padding: 0; align-items: stretch; }
  .uc-modal-panel { border-radius: 0; max-height: 100vh; height: 100%; }
}
@media (max-width: 640px) {
  .uc-hero { padding: 20px 0 18px; }
  .uc-types { flex-wrap: wrap; gap: 6px; }  /* wrap on phones: every type (incl. Trucks) visible without side-scrolling */
  .uc-chip { flex: 0 0 auto; padding: 7px 11px; min-height: 38px; font-size: .9rem; }
  .uc-filters label:has(#uc-sort) { grid-column: 1 / -1; }
  .uc-filters { grid-template-columns: 1fr 1fr; gap: 8px; }
  .uc-reset { grid-column: 1 / -1; }
  .uc-grid { grid-template-columns: 1fr; gap: 14px; }
  .uc-detail-actions { grid-template-columns: 1fr; }
  .uc-specs { grid-template-columns: 1fr 1fr; }
}
[dir="rtl"] .uc-prev { left: auto; right: 10px; }
[dir="rtl"] .uc-next { right: auto; left: 10px; }
/* sprite-based gallery + video */
.uc-media { background: #111; min-width: 0; }
.uc-gallery-main .uc-sprite { display: block; width: 100%; background-repeat: no-repeat; background-color: #111; }
.uc-gallery-main { aspect-ratio: auto; }
.uc-thumbs .uc-thumb { display: block; width: 84px; background-repeat: no-repeat; }
.uc-video { padding: 8px 8px 12px; }
.uc-video-h { color: #f5b301; font-weight: 700; margin: 4px 4px 8px; font-size: .95rem; }
.uc-video video { width: 100%; height: auto; display: block; border-radius: 8px; background: #000; }
.uc-stock { margin: 2px 0 0; font-size: .82rem; color: var(--muted); font-weight: 650; }
.uc-has-video { color: var(--cta); }
.uc-media { background: transparent; align-self: start; position: sticky; top: 0; }
.uc-gallery { background: #111; }
.uc-video { background: #f6f4f1; }
.uc-video-h { color: var(--navy); }
@media (max-width: 800px) { .uc-media { position: static; } }

/* voice-over + documents (car detail) */
.uc-voice{margin:14px 0 6px;padding:12px 14px;border:1px solid #d9e2ec;border-radius:12px;background:#f5f8fc}
.uc-voice-h{margin:0 0 8px;font-weight:700;color:#0b1f3a}
.uc-voice-row{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
.uc-voice-lang{display:flex;flex-direction:column;gap:4px;font-size:.85rem;color:#425466;flex:1 1 160px}
.uc-voice-lang select{min-height:44px;padding:8px 10px;border:1px solid #c5d2e0;border-radius:10px;font-size:1rem;background:#fff}
.uc-voice-play{min-height:44px;flex:0 0 auto}
.uc-voice audio{width:100%;margin-top:10px;height:40px}
.uc-docs{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0 4px}
.uc-btn-doc{background:#fff;border:2px solid #0b1f3a;color:#0b1f3a;min-height:44px}
.uc-btn-doc:hover,.uc-btn-doc:focus{background:#0b1f3a;color:#fff}
@media (max-width:560px){.uc-voice-play,.uc-btn-doc{flex:1 1 100%;justify-content:center;text-align:center}}

/* Promo reel (EN/ES/RU) beside a used-car detail — map lives in js/promo-videos.js */
.uc-promo { margin: 12px 0 16px; max-width: 240px; }
.uc-promo .promo-player-h { margin: 0 0 8px; font-weight: 700; color: var(--navy, #0b1f3a); font-size: .95rem; }
@media (max-width: 560px) {
  .uc-promo { max-width: 260px; margin-inline: auto; }
}

/* CARFAX Clean · Great Value section */
.uc-clean-cta, .used-sale-all { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.uc-clean-cta { margin: 16px 0 4px; }
a.used-clean-btn, a.uc-clean-btn, .header-nav a.header-carfax {
  background: #0c6b45;
  color: #fff;
  border-color: #0c6b45;
  font-weight: 800;
  text-align: center;
  white-space: normal;
  line-height: 1.25;
  text-decoration: none;
}
a.used-clean-btn:hover, a.uc-clean-btn:hover, .header-nav a.header-carfax:hover {
  background: #0a5a3a;
  color: #fff;
  border-color: #0a5a3a;
}
.header-nav a.header-carfax {
  max-width: 22rem;
  padding: 8px 12px;
  font-size: .78rem;
  letter-spacing: .01em;
}
@media (max-width: 900px) {
  .header-nav a.header-carfax {
    flex: 1 1 100%;
    max-width: none;
    order: 6;
    font-size: .82rem;
    min-height: 44px;
  }
}
body.clean-carfax-page .header-nav a.header-carfax { box-shadow: inset 0 0 0 2px #fff; }
.cfx-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 6px; }
.cfx-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .01em;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e8f6ef;
  color: #0c6b45;
}
.cfx-badge-great { background: #0c6b45; color: #fff; }
.cfx-badge-good { background: #1f7a4d; color: #fff; }
.cfx-hero-note { font-size: .92rem; color: var(--muted, #4a5568); }

/* 2026-11-19 audit: card phone/WhatsApp links were 16px tall on phones. */
.uc-card-contact a, .uc-contact-line a { display: inline-block; padding-top: 5px; padding-bottom: 5px; }
