/* ==========================================================================
   AutoRebuildFax — Dealer Profile page  (dealer-vehicle-listing.blade.php)
   Prefix: dp-*
   ========================================================================== */

/* ── Hero (SIGNATURE dark gradient) ─────────────────────────────────── */
.dp-hero {
  background: linear-gradient(135deg, #21252f 0%, #171a21 100%);
  position: relative;
  overflow: hidden;
  padding: 0;
}
.dp-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138,26,31,.22) 0%, transparent 70%);
  pointer-events: none;
}
.dp-hero::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138,26,31,.10) 0%, transparent 70%);
  pointer-events: none;
}
.dp-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}
.dp-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 24px 0 20px;
  font-size: .74rem;
}
.dp-hero-breadcrumb a {
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color .2s ease;
}
.dp-hero-breadcrumb a:hover { color: rgba(255,255,255,.75); }
.dp-hero-breadcrumb-sep { color: rgba(255,255,255,.20); font-size: .7rem; }
.dp-hero-breadcrumb span:last-child { color: rgba(255,255,255,.65); }

/* Hero body: avatar | info / stats */
.dp-hero-body {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding-bottom: 44px;
}

/* Avatar */
.dp-avatar-wrap { position: relative; flex: 0 0 auto; }
.dp-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.22);
  background: linear-gradient(135deg, #2c313d 0%, #1a1e26 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 800; color: #fff;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
  position: relative;
}
.dp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dp-avatar::before {
  content: '';
  position: absolute; inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(138,26,31,.6) 0%, rgba(255,255,255,.10) 100%);
  z-index: -1;
}
.dp-avatar-verified {
  position: absolute;
  bottom: 2px; right: 2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #14a077;
  border: 2px solid #21252f;
  display: flex; align-items: center; justify-content: center;
  font-size: .6rem;
  color: #fff;
}

/* Identity block */
.dp-identity {}
.dp-identity-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  font-size: .68rem;
  font-weight: 700;
  color: rgba(255,255,255,.70);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.dp-identity-badge i { color: #14a077; font-size: .75rem; }
.dp-identity-name {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.dp-identity-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.dp-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  color: rgba(255,255,255,.50);
}
.dp-meta-item i { font-size: .85rem; }

/* Stats pillar */
.dp-hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
}
.dp-stat {
  text-align: center;
  padding: 0 20px;
  border-right: 1px solid rgba(255,255,255,.10);
}
.dp-stat:last-child { border-right: none; padding-right: 0; }
.dp-stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 3px;
}
.dp-stat-label {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.40);
}
.dp-stat-num.green { color: #14a077; }

/* ── Contact strip ───────────────────────────────────────────────────── */
.dp-contact-strip {
  background: #fff;
  border-bottom: 1px solid #e8e8eb;
}
.dp-contact-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  min-height: 56px;
}
.dp-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .825rem;
  font-weight: 500;
  text-decoration: none;
  color: #696665;
  transition: color .2s ease;
  white-space: nowrap;
}
.dp-contact-item:hover { color: #8a1a1f; text-decoration: none; }
.dp-contact-item i { font-size: .95rem; color: #8a1a1f; }
.dp-contact-item--phone { font-weight: 700; color: #24272c; }
.dp-contact-item--phone:hover { color: #8a1a1f; }
.dp-contact-sep {
  width: 1px; height: 16px;
  background: #e8e8eb;
  flex: 0 0 auto;
}
.dp-contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 8px 18px;
  border-radius: 8px;
  background: #8a1a1f;
  color: #fff;
  font-size: .825rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, box-shadow .2s ease;
  box-shadow: 0 4px 14px -4px rgba(138,26,31,.45);
  white-space: nowrap;
}
.dp-contact-cta:hover {
  background: #a51f25;
  box-shadow: 0 8px 22px -6px rgba(138,26,31,.55);
  color: #fff;
  text-decoration: none;
}

/* ── Rebuild trust bar ───────────────────────────────────────────────── */
.dp-trust-bar {
  background: linear-gradient(90deg, #21252f 0%, #1a1e26 100%);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.dp-trust-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 50px;
  flex-wrap: wrap;
}
.dp-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  white-space: nowrap;
}
.dp-trust-item i { font-size: .88rem; color: #14a077; }
.dp-trust-item strong { color: rgba(255,255,255,.85); font-weight: 700; }
.dp-trust-sep {
  width: 1px; height: 14px;
  background: rgba(255,255,255,.10);
  flex: 0 0 auto;
}
.dp-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(20,160,119,.12);
  border: 1px solid rgba(20,160,119,.25);
  font-size: .70rem;
  font-weight: 700;
  color: #14a077;
  letter-spacing: .06em;
}
.dp-trust-badge i { font-size: .78rem; }

/* ── Vehicles section ────────────────────────────────────────────────── */
.dp-vehicles {
  background: #f7f7f9;
  padding: 52px 0 72px;
}
.dp-vehicles-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.dp-vehicles-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}
.dp-vehicles-title {
  font-size: 1.20rem;
  font-weight: 700;
  color: #24272c;
  margin: 0 0 4px;
  line-height: 1.2;
}
.dp-vehicles-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px; height: 22px;
  padding: 0 7px;
  border-radius: 100px;
  background: #8a1a1f;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  margin-left: 8px;
  vertical-align: middle;
}
.dp-vehicles-sub {
  font-size: .82rem;
  color: #8e8e93;
  margin: 0;
}

/* ── Vehicle cards grid ──────────────────────────────────────────────── */
.dp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ── Vehicle card ────────────────────────────────────────────────────── */
.dp-vc {
  background: #fff;
  border: 1px solid #e8e8eb;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.dp-vc:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 54px -14px rgba(36,39,44,.14), 0 0 0 1px rgba(138,26,31,.10);
  border-color: rgba(138,26,31,.18);
}

/* Image */
.dp-vc-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f0f0f2;
  flex: 0 0 auto;
}
.dp-vc-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
  display: block;
}
.dp-vc:hover .dp-vc-img { transform: scale(1.06); }
.dp-vc-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1e2128 0%, #2a2d36 100%);
  color: rgba(255,255,255,.20);
  font-size: 2.5rem;
}

/* Image badges */
.dp-vc-badges {
  position: absolute;
  top: 10px; left: 10px; right: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  z-index: 3;
}
.dp-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .04em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  line-height: 1.6;
}
.dp-badge--year {
  background: rgba(24,28,36,.82);
  color: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.10);
}
.dp-badge--featured {
  background: rgba(138,26,31,.88);
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
}

/* Rebuild dot (bottom-right, hidden on hover) */
.dp-vc-rebuild-dot {
  position: absolute;
  bottom: 10px; right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 100px;
  background: rgba(15,20,28,.78);
  border: 1px solid rgba(20,160,119,.35);
  font-size: .67rem;
  font-weight: 700;
  color: #14a077;
  backdrop-filter: blur(6px);
  transition: opacity .25s ease;
}
.dp-vc:hover .dp-vc-rebuild-dot { opacity: 0; pointer-events: none; }
.dp-vc-dot-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #14a077;
  flex: 0 0 auto;
  animation: dp-pulse 2s ease-in-out infinite;
}
@keyframes dp-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .40; transform: scale(.60); }
}

/* Certified strip (slides up on hover) */
.dp-vc-strip {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(24,28,36,.96) 0%, rgba(15,20,28,.96) 100%);
  border-top: 1px solid rgba(20,160,119,.22);
  font-size: .75rem;
  font-weight: 700;
  color: rgba(255,255,255,.88);
  text-decoration: none;
  transform: translateY(100%);
  transition: transform .30s ease;
}
.dp-vc:hover .dp-vc-strip { transform: translateY(0); }
.dp-vc-strip i:first-child { color: #14a077; font-size: .88rem; flex: 0 0 auto; }
.dp-vc-strip-arrow { margin-left: auto; color: rgba(255,255,255,.35); font-size: .80rem; }

/* Body */
.dp-vc-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.dp-vc-type {
  font-size: .70rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .10em;
  color: #8e8e93;
  margin-bottom: 4px;
}
.dp-vc-name {
  font-size: .97rem;
  font-weight: 700;
  color: #24272c;
  margin: 0 0 12px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dp-vc-name a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}
.dp-vc-name a:hover { color: #8a1a1f; }

/* Specs */
.dp-vc-specs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.dp-vc-spec {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .76rem;
  color: #696665;
  white-space: nowrap;
}
.dp-vc-spec i { color: #b0b0b5; font-size: .85rem; }
.dp-vc-spec-div {
  width: 1px; height: 11px;
  background: #e8e8eb;
  flex: 0 0 auto;
}

/* Price */
.dp-vc-price {
  font-size: 1.10rem;
  font-weight: 700;
  color: #24272c;
  margin-bottom: 14px;
  line-height: 1;
}
.dp-vc-price-na {
  font-size: .82rem;
  font-weight: 500;
  color: #8e8e93;
}

/* Footer */
.dp-vc-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 12px;
  border-top: 1px solid #f0f0f2;
  margin-top: auto;
}
.dp-vc-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(138,26,31,.07);
  color: #8a1a1f;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.dp-vc-cta:hover {
  background: #8a1a1f;
  color: #fff;
  text-decoration: none;
}
.dp-vc-cta i { font-size: .82rem; }

/* ── Empty state ─────────────────────────────────────────────────────── */
.dp-empty {
  text-align: center;
  padding: 72px 24px;
  background: #fff;
  border: 1px solid #e8e8eb;
  border-radius: 16px;
}
.dp-empty-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(138,26,31,.06);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: rgba(138,26,31,.40);
  margin-bottom: 18px;
}
.dp-empty-title { font-size: 1.05rem; font-weight: 700; color: #24272c; margin: 0 0 6px; }
.dp-empty-sub { font-size: .875rem; color: #8e8e93; margin: 0 0 22px; line-height: 1.55; }
.dp-empty-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 8px;
  background: #8a1a1f;
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease;
}
.dp-empty-btn:hover { background: #a51f25; color: #fff; text-decoration: none; }

/* ── Pagination ──────────────────────────────────────────────────────── */
.dp-pagination { display: flex; justify-content: center; margin-top: 48px; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .dp-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .dp-hero-body { grid-template-columns: auto 1fr; gap: 20px; }
  .dp-hero-stats { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; justify-content: flex-start; gap: 0; }
  .dp-stat { padding: 0 24px 0 0; border-right: 1px solid rgba(255,255,255,.10); }
  .dp-stat:first-child { padding-left: 0; }
}

@media (max-width: 767px) {
  .dp-hero-inner { padding: 0 20px; }
  .dp-contact-inner { padding: 0 20px; }
  .dp-trust-inner { padding: 0 20px; }
  .dp-vehicles-inner { padding: 0 20px; }
  .dp-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .dp-hero-body { grid-template-columns: 1fr; gap: 16px; }
  .dp-avatar-wrap { display: flex; align-items: center; gap: 16px; }
  .dp-avatar { width: 72px; height: 72px; font-size: 1.5rem; }
  .dp-hero-stats { gap: 0; }
  .dp-contact-cta { display: none; }
  .dp-trust-badge { display: none; }
}

@media (max-width: 575px) {
  .dp-grid { grid-template-columns: 1fr; }
  .dp-hero-inner { padding: 0 16px; }
  .dp-vehicles-inner { padding: 0 16px; }
  .dp-vehicles { padding: 36px 0 52px; }
  .dp-stat-num { font-size: 1.35rem; }
}
