/* =========================================
   Prime Performance — Shared Page Styles
   ========================================= */

/* --- PAGE HEADER --- */
.page-header {
  background: var(--dark);
  border-bottom: 1px solid var(--gray);
  padding: 3rem 2rem 2.5rem;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
}

.page-header p { color: #888; font-size: 1rem; max-width: 500px; }

.back-link {
  display: inline-block;
  color: #666;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--white); }

/* --- FILTERS --- */
.filters-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--dark);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
}

.filters-bar select,
.filters-bar input {
  background: #1f1f1f;
  border: 1px solid var(--gray);
  color: var(--white);
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  flex: 1;
  min-width: 140px;
  font-family: var(--font);
}

.filters-bar select:focus,
.filters-bar input:focus { outline: none; border-color: var(--orange); }

/* --- LISTINGS GRID --- */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.listing-card {
  background: var(--dark);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.listing-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255,107,53,0.15);
}

.listing-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #1f1f1f;
  position: relative;
  display: block;
}

.listing-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.listing-card:hover .listing-card-img img { transform: scale(1.04); }

.listing-card-img .no-photo {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #444; font-size: 2.5rem;
}

.listing-badge {
  position: absolute; top: 0.5rem; left: 0.5rem;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
}

.badge-new { background: #16a34a; color: white; }
.badge-used { background: #2a2a2a; color: #999; }
.badge-sold { background: #2a2a2a; color: #666; }
.badge-featured { background: var(--orange); color: white; }

.listing-card-body {
  padding: 1rem; flex: 1;
  display: flex; flex-direction: column;
}

.listing-card-brand {
  font-size: 0.65rem; font-weight: 700;
  color: var(--orange); text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 0.2rem;
}

.listing-card-title {
  font-size: 0.9rem; font-weight: 700;
  margin-bottom: 0.4rem; color: var(--white);
}

.listing-card-fitment {
  font-size: 0.78rem; color: #666; margin-bottom: auto;
}

.listing-card-footer {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-top: 1rem; padding-top: 0.75rem;
  border-top: 1px solid #2a2a2a;
}

.listing-price { font-size: 1.15rem; font-weight: 900; color: var(--white); }
.listing-price.call { font-size: 0.82rem; color: #666; }

/* --- LISTING DETAIL --- */
.listing-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 1.5rem;
}

.listing-photos-main {
  aspect-ratio: 4/3;
  background: var(--dark);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  overflow: hidden;
}

.listing-photos-main img { width: 100%; height: 100%; object-fit: cover; }

.listing-photos-thumbs {
  display: flex; gap: 0.5rem;
  margin-top: 0.5rem; flex-wrap: wrap;
}

.listing-photos-thumbs img {
  width: 70px; height: 52px; object-fit: cover;
  border-radius: 4px; cursor: pointer;
  border: 2px solid transparent; transition: border-color 0.2s;
}

.listing-photos-thumbs img.active { border-color: var(--orange); }

.listing-info h1 { font-size: 1.6rem; font-weight: 900; margin-bottom: 0.5rem; }
.listing-info-brand { font-size: 0.75rem; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.4rem; }
.listing-info-price { font-size: 2rem; font-weight: 900; color: var(--white); margin: 1rem 0; }
.listing-info-price.call-price { font-size: 1rem; color: #666; }

.listing-meta {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.75rem; margin: 1.5rem 0;
  padding: 1.25rem; background: var(--dark);
  border: 1px solid var(--gray); border-radius: var(--radius);
}

.listing-meta-item label {
  display: block; font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: #555; margin-bottom: 0.2rem;
}

.listing-meta-item span { font-size: 0.875rem; font-weight: 600; }

.listing-description {
  color: #888; line-height: 1.8;
  font-size: 0.9rem; margin: 1rem 0;
}

/* --- PAGINATION --- */
.pagination {
  display: flex; gap: 0.5rem;
  justify-content: center; margin-top: 3rem;
}

.pagination button {
  background: var(--dark); border: 1px solid var(--gray);
  color: var(--white); padding: 0.5rem 1rem;
  border-radius: var(--radius); cursor: pointer;
  transition: all 0.2s; font-family: var(--font);
  font-size: 0.875rem;
}

.pagination button:hover,
.pagination button.active { background: var(--orange); border-color: var(--orange); }

/* --- SKELETON --- */
.skeleton {
  background: linear-gradient(90deg, #1a1a1a 25%, #252525 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
.skeleton-card { height: 300px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* --- EMPTY STATE --- */
.empty-state {
  grid-column: 1 / -1; text-align: center;
  padding: 4rem 2rem; color: #555; font-size: 0.95rem;
}

/* --- CALLOUT BOX --- */
.callout-box {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap;
  gap: 1.5rem; padding: 2rem;
  background: var(--dark); border: 1px solid var(--gray);
  border-left: 4px solid var(--orange); border-radius: var(--radius);
}

.callout-box h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.4rem; }
.callout-box p { color: #777; font-size: 0.9rem; }

/* --- SERVICE ITEMS (on services page) --- */
.service-meta { display: flex; gap: 1.5rem; margin-top: 0.75rem; font-size: 0.8rem; }
.service-price { color: var(--orange); font-weight: 700; }
.service-turn { color: #666; }

/* --- VEHICLE TYPES LIST --- */
.vehicle-types-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  overflow: hidden;
}

.vehicle-type-item {
  padding: 1.75rem;
  border-right: 1px solid var(--gray);
}

.vehicle-type-item:last-child { border-right: none; }
.vehicle-type-item h3 { font-size: 1rem; font-weight: 800; margin-bottom: 0.5rem; }
.vehicle-type-item p { font-size: 0.82rem; color: #666; line-height: 1.7; }

/* --- ABOUT PAGE --- */
.about-hero {
  height: 40vh; min-height: 280px;
  background-size: cover; background-position: center 30%;
  position: relative;
}

.about-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17,17,17,0.9) 0%, rgba(17,17,17,0.4) 100%);
  display: flex; align-items: flex-end;
  padding: 2.5rem 2rem;
}

.about-hero-overlay h1 { font-size: 3rem; font-weight: 900; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 4rem;
}

.about-text p { color: #888; margin-bottom: 1rem; font-size: 0.95rem; line-height: 1.9; }
.about-text h2 { font-size: 1.8rem; font-weight: 900; margin-bottom: 1.5rem; }

.about-img-main {
  width: 100%; border-radius: var(--radius);
  border: 1px solid var(--gray); margin-bottom: 0.5rem;
  aspect-ratio: 4/3; object-fit: cover;
}

.about-img-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.about-img-row img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--gray); }

.stats-row {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 0; border: 1px solid var(--gray);
  border-radius: var(--radius); overflow: hidden;
}

.stat-item {
  padding: 2rem; text-align: center;
  border-right: 1px solid var(--gray);
  background: var(--dark);
}
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 2.2rem; font-weight: 900; color: var(--orange); line-height: 1; margin-bottom: 0.4rem; }
.stat-lbl { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #555; }

/* --- BRANDS --- */
.brands-wrap { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.brand-tag {
  background: #1f1f1f; border: 1px solid var(--gray);
  border-radius: 100px; padding: 0.4rem 1.1rem;
  font-size: 0.875rem; font-weight: 600; color: #888;
  transition: all 0.2s;
}
.brand-tag:hover { border-color: var(--orange); color: var(--white); }

/* --- CONTACT PAGE --- */
.contact-big-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-main { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.contact-card {
  background: var(--dark); border: 1px solid var(--gray);
  border-radius: var(--radius); padding: 1.5rem;
  transition: border-color 0.2s;
}
.contact-card:hover { border-color: #444; }

.contact-card-label {
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--teal); margin-bottom: 0.6rem;
}

.contact-card-value {
  display: block; font-size: 1.3rem;
  font-weight: 800; color: var(--white);
  margin-bottom: 0.4rem; line-height: 1.2;
}

a.contact-card-value:hover { color: var(--orange); }
.contact-card p { font-size: 0.8rem; color: #555; line-height: 1.6; }

/* --- MOBILE --- */
@media (max-width: 900px) {
  .listing-detail-grid { grid-template-columns: 1fr; gap: 2rem; }
  .vehicle-types-list { grid-template-columns: 1fr 1fr; }
  .vehicle-type-item:nth-child(2) { border-right: none; }
  .vehicle-type-item:nth-child(3) { border-right: 1px solid var(--gray); border-top: 1px solid var(--gray); }
  .vehicle-type-item:nth-child(4) { border-right: none; border-top: 1px solid var(--gray); }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--gray); border-right: 1px solid var(--gray); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--gray); border-right: none; }
  .contact-big-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .page-header { padding: 2rem 1.25rem 1.75rem; }
  .page-header h1 { font-size: 1.8rem; }
  .page-header p { font-size: 0.9rem; }

  .filters-bar { gap: 0.5rem; padding: 1rem; }
  .filters-bar select,
  .filters-bar input { min-width: 100%; }

  .listings-grid { grid-template-columns: 1fr; gap: 1rem; }
  .listing-card-img { aspect-ratio: 16/10; }
  .listing-card-body { padding: 0.85rem; }
  .listing-card-title { font-size: 0.95rem; }
  .listing-card-footer { padding-top: 0.6rem; }

  .contact-main { grid-template-columns: 1fr; }
  .contact-card { padding: 1.25rem; }
  .contact-card-value { font-size: 1.1rem !important; }

  .vehicle-types-list { grid-template-columns: 1fr; }
  .vehicle-type-item { border-right: none !important; border-bottom: 1px solid var(--gray); }
  .vehicle-type-item:last-child { border-bottom: none; }

  .about-hero { height: 30vh; min-height: 200px; }
  .about-hero-overlay h1 { font-size: 2rem; }
  .about-text h2 { font-size: 1.4rem; }
  .about-img-row { grid-template-columns: 1fr; }

  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 1.25rem; }
  .stat-num { font-size: 1.6rem; }

  .callout-box { flex-direction: column; text-align: center; padding: 1.5rem; }
  .callout-box .btn { width: 100%; justify-content: center; }

  .listing-detail-grid { gap: 1.5rem; }
  .listing-info h1 { font-size: 1.3rem; }
  .listing-info-price { font-size: 1.6rem !important; }
  .listing-meta { grid-template-columns: 1fr; gap: 0.5rem; padding: 1rem; }

  .back-link { font-size: 0.8rem; margin-bottom: 1rem; }
}


/* --- QUOTE FORM --- */
.quote-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.quote-text h2 { margin-bottom: 1rem; }
.quote-text p { color: #888; font-size: 0.95rem; line-height: 1.8; }

.quote-form-wrap {
  background: #1a1a1a;
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.quote-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-field label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
}

.form-field input,
.form-field textarea {
  background: #111;
  border: 1px solid var(--gray);
  color: var(--white);
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-family: var(--font);
  width: 100%;
  transition: border-color 0.2s;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--orange);
}

.form-field textarea { resize: vertical; min-height: 80px; }

@media (max-width: 900px) {
  .quote-section { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .quote-form-row { grid-template-columns: 1fr; }
}
