/* Trendy Cars stock engine styles (black + yellow, Orbitron headings, Manrope body) */

/* Hide the old Framer placeholder cars before first paint */
html[data-tc-page="inventory"] [data-framer-name="Car Grid"] [data-framer-name="Container"] > :not(.tc-root) { display: none !important; }
html[data-tc-page="inventory"] [data-framer-name="Car Grid"] { height: auto !important; min-height: 0 !important; }
html[data-tc-detail] [data-framer-name="Hero"] { display: none !important; }
html[data-tc-detail] [data-framer-name="Car Grid"] { padding-top: 120px !important; }
html[data-tc-page="home"] section[data-framer-name="Inventory"] > :not(.tc-root) { display: none !important; }
html[data-tc-page="home"] section[data-framer-name="Inventory"] {
  height: auto !important; min-height: 0 !important; display: block !important;
  padding: 120px 20px !important; background: #000 !important; overflow: visible !important;
}

.tc-root {
  --tc-yellow: rgb(255, 210, 0);
  --tc-line: rgba(255, 255, 255, 0.1);
  --tc-card: rgb(15, 15, 15);
  --tc-muted: rgba(255, 255, 255, 0.65);
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  color: #fff;
  font-family: "Manrope", "Inter", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  box-sizing: border-box;
  opacity: 1 !important;
  transform: none !important;
}
.tc-root *, .tc-root *::before, .tc-root *::after { box-sizing: border-box; }
.tc-root a { color: inherit; text-decoration: none; }

.tc-eyebrow { margin: 0 0 10px; color: var(--tc-yellow); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.tc-h1, .tc-h2, .tc-h3 { font-family: "Orbitron", "Manrope", sans-serif; font-weight: 600; margin: 0; letter-spacing: -.01em; line-height: 1.15; }
.tc-h1 { font-size: clamp(28px, 3.4vw, 44px); }
.tc-h2 { font-size: clamp(28px, 4vw, 48px); }
.tc-h3 { font-size: 22px; margin-bottom: 22px; }
.tc-count { margin: 10px 0 0; color: var(--tc-muted); }

/* header + filters */
.tc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; margin-bottom: 40px; }
.tc-row-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.tc-row-head .tc-h3 { margin: 0; }
.tc-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.tc-input, .tc-select {
  height: 44px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--tc-line);
  background: var(--tc-card); color: #fff; font: inherit; font-size: 14px; outline: none;
}
.tc-input { width: 250px; }
.tc-select {
  appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.tc-select option { background: #111; color: #fff; }
.tc-input:focus, .tc-select:focus { border-color: var(--tc-yellow); }

/* grid + cards */
.tc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tc-card {
  display: flex; flex-direction: column; border: 1px solid var(--tc-line); border-radius: 16px;
  overflow: hidden; background: var(--tc-card); transition: border-color .25s, transform .25s;
}
.tc-card:hover { border-color: rgba(255, 210, 0, .6); transform: translateY(-3px); }
.tc-card-media { position: relative; aspect-ratio: 4 / 3; background: #0a0a0a; overflow: hidden; }
.tc-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.tc-card:hover .tc-card-media img { transform: scale(1.04); }
.tc-chip {
  position: absolute; top: 14px; z-index: 2; padding: 5px 11px; border-radius: 6px; font-size: 12px;
  background: rgba(0, 0, 0, .65); border: 1px solid rgba(255, 255, 255, .15); backdrop-filter: blur(6px);
}
.tc-chip-l { left: 14px; }
.tc-chip-r { right: 14px; }
.tc-chip-sold { background: rgb(193, 18, 31); border-color: transparent; }
.tc-card-body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tc-card-title { margin: 0; font-size: 18px; font-weight: 700; }
.tc-card-variant { margin: 0; color: var(--tc-muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; color: var(--tc-muted); font-size: 13px; }
.tc-card-meta span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--tc-yellow); margin: 0 10px 2px -8px; }
.tc-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--tc-line); }
.tc-card-price { font-family: "Orbitron", sans-serif; font-weight: 600; font-size: 18px; color: var(--tc-yellow); }
.tc-card-go { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.tc-card-go::after { content: " \2192"; }

.tc-nophoto {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 40%, #1a1a1a, #080808); color: rgba(255, 255, 255, .45); font-size: 13px; letter-spacing: .05em;
}
.tc-skeleton { aspect-ratio: 4 / 4.2; border-radius: 16px; border: 1px solid var(--tc-line); background: linear-gradient(90deg, #0d0d0d, #171717, #0d0d0d); background-size: 200% 100%; animation: tc-shimmer 1.4s infinite; }
@keyframes tc-shimmer { to { background-position: -200% 0; } }

/* buttons */
.tc-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 26px;
  border-radius: 4px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
  font-family: inherit; transition: background .2s, color .2s, border-color .2s;
}
.tc-btn-primary { background: var(--tc-yellow); color: #000 !important; border: 1px solid var(--tc-yellow); }
.tc-btn-primary:hover { background: #fff; border-color: #fff; }
.tc-btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .6); }
.tc-btn-ghost:hover { border-color: var(--tc-yellow); color: var(--tc-yellow) !important; }
.tc-btn-sm { height: 42px; padding: 0 18px; font-size: 13px; }

.tc-empty, .tc-state { text-align: center; padding: 60px 20px; color: var(--tc-muted); }
.tc-empty p { margin: 0 0 18px; }
.tc-state .tc-h2 { color: #fff; margin-bottom: 14px; }
.tc-state p { margin: 0 auto 26px; max-width: 460px; }

/* vehicle page */
.tc-back { display: inline-flex; align-items: center; gap: 8px; color: var(--tc-muted) !important; font-size: 14px; margin-bottom: 28px; }
.tc-back::before { content: "\2190"; }
.tc-back:hover { color: var(--tc-yellow) !important; }
.tc-detail-top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.tc-gallery { outline: none; min-width: 0; }
.tc-main { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #0a0a0a; border: 1px solid var(--tc-line); }
.tc-main > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tc-nav {
  position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .55); cursor: pointer; backdrop-filter: blur(6px);
}
.tc-nav::before { content: ""; position: absolute; inset: 0; margin: auto; width: 10px; height: 10px; border: solid #fff; border-width: 2px 2px 0 0; }
.tc-prev { left: 14px; } .tc-prev::before { transform: translateX(2px) rotate(-135deg); }
.tc-next { right: 14px; } .tc-next::before { transform: translateX(-2px) rotate(45deg); }
.tc-nav:hover { border-color: var(--tc-yellow); }
.tc-counter { position: absolute; z-index: 2; right: 14px; bottom: 14px; padding: 4px 10px; border-radius: 6px; background: rgba(0, 0, 0, .65); font-size: 12px; }
.tc-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.tc-thumb { flex: 0 0 96px; height: 72px; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: #111; cursor: pointer; opacity: .6; transition: opacity .2s, border-color .2s; }
.tc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tc-thumb.is-on, .tc-thumb:hover { opacity: 1; border-color: var(--tc-yellow); }

.tc-summary { position: sticky; top: 110px; }
.tc-variant { margin: 10px 0 0; color: var(--tc-muted); font-size: 16px; }
.tc-price { margin-top: 24px; font-family: "Orbitron", sans-serif; font-weight: 700; font-size: clamp(28px, 3vw, 38px); color: var(--tc-yellow); }
.tc-price-note { margin: 8px 0 0; color: var(--tc-muted); font-size: 14px; }
.tc-sold-note { margin: 12px 0 0; color: rgb(244, 67, 54); font-weight: 600; }
.tc-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 28px 0; border: 1px solid var(--tc-line); border-radius: 12px; overflow: hidden; background: #000; }
.tc-quick-item { box-shadow: 1px 1px 0 var(--tc-line); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.tc-label { color: var(--tc-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.tc-value { font-size: 16px; font-weight: 600; }
.tc-ctas { display: flex; flex-direction: column; gap: 10px; }

.tc-section { margin-top: 72px; }
.tc-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; border: 1px solid var(--tc-line); border-radius: 12px; overflow: hidden; background: #000; }
.tc-spec { box-shadow: 1px 1px 0 var(--tc-line); padding: 16px 18px; }
.tc-spec dt { color: var(--tc-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.tc-spec dd { margin: 0; font-weight: 600; }
.tc-features { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tc-features li { padding: 8px 14px; border: 1px solid var(--tc-line); border-radius: 999px; font-size: 14px; background: var(--tc-card); }
.tc-features li::before { content: "\2713"; color: var(--tc-yellow); margin-right: 8px; }
.tc-desc { max-width: 820px; color: rgba(255, 255, 255, .85); }
.tc-desc p { margin: 0 0 14px; white-space: pre-line; }

/* responsive */
@media (max-width: 1199px) {
  .tc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-detail-top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .tc-summary { position: static; }
  .tc-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 809px) {
  html[data-tc-page="home"] section[data-framer-name="Inventory"] { padding: 80px 16px !important; }
  html[data-tc-detail] [data-framer-name="Car Grid"] { padding-top: 130px !important; }
  .tc-grid { grid-template-columns: 1fr; gap: 18px; }
  .tc-filters { width: 100%; }
  .tc-input { width: 100%; }
  .tc-select { flex: 1 1 calc(50% - 5px); min-width: 0; }
  .tc-specs { grid-template-columns: 1fr 1fr; }
  .tc-thumb { flex-basis: 76px; height: 58px; }
  .tc-nav { width: 40px; height: 40px; }
  .tc-section { margin-top: 56px; }
}
