.vehicle-detail {
  max-width: 900px;
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}
.vehicle-breadcrumb {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 0.75rem;
}
.vehicle-breadcrumb a {
  color: #6c757d;
  text-decoration: none;
}
.vehicle-breadcrumb .sep { margin: 0 0.4rem; }

.vehicle-detail-main-img {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
  background: #f0f0f0;
}
.vehicle-detail-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vehicle-detail-thumbs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.vehicle-detail-thumb {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: none;
  padding: 0;
  opacity: 0.7;
  transition: opacity 0.15s, border-color 0.15s;
}
.vehicle-detail-thumb:hover { opacity: 1; }
.vehicle-detail-thumb.active { border-color: var(--pxf-primary); opacity: 1; }
.vehicle-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vehicle-detail-head {
  display: flex;
  align-items: start;
  gap: 0.6rem;
  margin-bottom: 0.25rem;
}
.vehicle-detail-title { font-weight: 700; margin: 0; }
.vehicle-detail-meta { color: #6c757d; margin-bottom: 1rem; }
.vehicle-detail-price { font-size: 1.6rem; font-weight: 700; margin-bottom: 1rem; }

.td-label { color: #6c757d; }

/* Panel: image grid in detail */
.img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.img-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #f8f9fa;
}
.img-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.img-thumb-principal {
  border-color: var(--pxf-accent);
  box-shadow: 0 0 0 2px rgba(193, 18, 31, 0.15);
}
.img-thumb-flag {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--pxf-accent);
  color: #fff;
  border-radius: 999px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.img-thumb-actions {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.img-thumb:hover .img-thumb-actions,
.img-thumb:focus-within .img-thumb-actions {
  opacity: 1;
}
@media (hover: none) {
  .img-thumb-actions { opacity: 1; }
}
.img-action-btn {
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: none;
  border-radius: 999px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  line-height: 0;
  transition: background-color 0.12s ease, transform 0.12s ease;
}
.img-action-btn:hover {
  background: #000;
  transform: scale(1.05);
}
.img-action-star {
  background: rgba(193, 18, 31, 0.85);
}
.img-action-star:hover { background: var(--pxf-accent); }
.img-action-delete {
  background: rgba(122, 13, 13, 0.85);
}
.img-action-delete:hover { background: var(--pxf-primary); }

/* Dropzone para subir imagen de vehículo */
.img-dropzone {
  display: block;
  border: 2px dashed #cbd5e0;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  min-height: 160px;
  position: relative;
}
.img-dropzone:hover, .img-dropzone.is-dragover {
  border-color: var(--pxf-primary);
  background: rgba(122, 13, 13, 0.04);
}
.img-dropzone img {
  max-width: 100%;
  max-height: 260px;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}
.img-dropzone-empty {
  color: #6c757d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem 0.5rem;
}
.img-dropzone-empty svg { color: #adb5bd; }
.img-dropzone-text { font-weight: 600; }
.img-dropzone-hint { font-size: 0.78rem; }
