/* Modal details two-column meta layout */
/* Modal details two-column meta layout - improved alignment and spacing */
.modal-meta-2col {
  display: flex;
  flex-direction: column;
  gap: 16px; /* Add spacing between rows */
  background: #fff;
  border-radius: 12px;
  border: 1.5px dashed #d1d5db;
  padding: 24px 28px; /* Adjust padding */
  margin-bottom: 24px; /* Increase bottom margin */
  margin-top: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.meta-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.meta-row strong {
  font-weight: bold;
}

.meta-label {
  font-weight: 600;
  color: #22223b;
  min-width: 140px; /* Consistent label width */
  margin-right: 12px; /* Space between label and value */
  text-align: left; /* Left-align labels */
}

.meta-value {
  font-weight: 400;
  color: #222;
  flex: 1; /* Allow values to take remaining space */
  word-break: break-word;
}

/* Responsive layout: stack label above value on narrow screens */
@media (max-width: 600px) {
  .meta-row {
    flex-direction: column; /* Stack label above value */
    align-items: flex-start; /* Align to the left */
  }

  .meta-label {
    margin-bottom: 4px; /* Add spacing below label */
  }
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
  background: #f5f5f5;
  color: #222;
}

/* Theme tokens for modal and meta bar */
:root {
  --modal-bg: #fbfbfc; /* very light neutral */
  --meta-bar-bg: #f1f5f9; /* soft tinted background for meta bar */
  --pill-bg: #eef7fb; /* pill badge background */
  --emphasis-red: #a31f1f; /* darker muted red for stronger contrast */
  --modal-shadow: 0 6px 24px rgba(16,24,40,0.06); /* soft, low-contrast shadow */
}

header {
  background: #1f2933;
  color: #fff;
  padding: 16px 24px;
}
header h1 {
  margin: 0;
  font-size: 20px;
}

main {
  padding: 16px 24px 32px;
}

/* Top bar */

.top-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.top-bar input[type="text"] {
  flex: 1 1 260px;
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 14px;
}
.filters-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}
.filters-inline label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
}
.filters-inline input[type="checkbox"] {
  cursor: pointer;
}
.filters-inline select {
  padding: 5px 8px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  font-size: 12px;
  max-width: 220px;
}
.summary {
  font-size: 13px;
  color: #555;
  flex: 1 1 100%;
}

/* Selector row */

.selector-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 13px;
}
.selector-row label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.selector-row select {
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  font-size: 13px;
}
.selector-row button {
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
}
.selector-row button:hover {
  background: #1d4ed8;
}

/* Layout */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(320px, 1.4fr);
  gap: 16px;
}
@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

/* Table */

.table-wrapper {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  overflow: hidden;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}
thead {
  background: #eef2f7;
}
th, td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
th {
  font-weight: 600;
}
tr.selected {
  outline: 2px solid #2563eb;
  outline-offset: -1px;
}
tr:hover {
  background: #f7fafc;
  cursor: pointer;
}
.sold-row {
  background: #fee2e2;
}
.sold-row:hover {
  background: #fecaca;
}

/* Badges and tags */

.sold-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: #b91c1c;
  color: #fff;
  text-transform: uppercase;
  margin-right: 6px;
}
.trusted-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 5px;
  border-radius: 999px;
  font-size: 10px;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  vertical-align: middle;
}
.trusted-badge::before {
  content: "✓";
  font-size: 10px;
  font-weight: 700;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 11px;
  background: #e5e7eb;
  color: #374151;
}
.tag.green { background: #dcfce7; color: #166534; }
.tag.orange { background: #ffedd5; color: #9a3412; }
.tag.blue { background: #dbeafe; color: #1d4ed8; }

.auction-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}
.auction-tag span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
}
.auction-iaai {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.auction-iaai span {
  background: #b91c1c;
  color: #fff;
}
.auction-copart {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.auction-copart span {
  background: #1d4ed8;
  color: #fff;
}

.trusted-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-left: 4px;
}
.trusted-dot.green { background: #16a34a; }
.trusted-dot.yellow { background: #facc15; }

.btn-link {
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #fff;
  text-decoration: none;
  color: #2563eb;
  white-space: nowrap;
}

.details {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  min-height: 260px;
}
@media (min-width: 961px) {
  .details {
    position: sticky;
    top: 70px;
    align-self: flex-start;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }
}
.details h2 {
  font-size: 16px;
  margin: 0 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.details .subline {
  font-size: 12px;
  color: #555;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
}
@media (max-width: 960px) {
  .details-grid {
    grid-template-columns: 1fr;
  }
}

/* Images in details */

.main-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* Aspect ratio 16:9 */
  overflow: hidden;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.main-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.main-image-wrapper img:hover {
  transform: scale(1.1);
}
.zoom-hint {
  position: absolute;
  right: 8px;
  bottom: 6px;
  background: rgba(15,23,42,0.74);
  color: #e5e7eb;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
}
.thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.thumbs img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid #e5e7eb;
  cursor: pointer;
}
.thumbs img.active {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px #2563eb;
}

.meta {
  font-size: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
}
.meta strong {
  font-weight: 600;
}
.meta div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.links {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.empty-placeholder {
  font-size: 13px;
  color: #666;
  margin: auto;
  text-align: center;
}
.price {
  font-weight: 600;
}
.sold-label-details {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  margin-left: 4px;
}

/* Image lightbox modal */

.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.image-modal.open {
  display: flex;
}
.image-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: #020617;
  padding: 10px 10px 12px;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.image-modal-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 60vw;
  min-height: 40vh;
}
.image-modal-main img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}
.image-modal-close {
  position: absolute;
  right: 10px;
  top: 8px;
  border: none;
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
}
.image-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(15,23,42,0.8);
  color: #e5e7eb;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}
.image-modal-nav.prev { left: 8px; }
.image-modal-nav.next { right: 8px; }
.image-modal-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  padding-top: 4px;
}
.image-modal-thumbs img {
  height: 54px;
  min-width: 54px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid #4b5563;
  cursor: pointer;
}
.image-modal-thumbs img.active {
  border-color: #60a5fa;
  box-shadow: 0 0 0 1px #60a5fa;
}
.image-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #9ca3af;
  padding: 0 2px;
  margin-top: 2px;
}
/* Tabs */
.tabs {
  margin-top: 8px;
  display: inline-flex;
  gap: 6px;
}

.tab-button {
  border: 1px solid #d1d5db;
  background: #f9fafb;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 999px;
  cursor: pointer;
}

.tab-button.active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

/* Single-search page */
.single-search-wrapper {
  max-width: 640px;
  margin: 24px auto;
  background: #fff;
  border-radius: 8px;
  padding: 20px 22px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.single-search-wrapper h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 18px;
}

.single-search-box {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.single-search-box input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  text-align: center;
}

.single-search-box button {
  padding: 8px 14px;
  border-radius: 4px;
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

/* Loading overlay */
.loading-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  z-index: 10000;
}
.loading-card {
  background: #fff;
  padding: 18px 22px;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid #e6eefc;
  border-top-color: #2563eb;
  animation: spin 0.8s linear infinite;
}
.loading-text { font-size: 14px; color: #111827; }
@keyframes spin { to { transform: rotate(360deg); } }

/* buy now badge in header */
.buy-now-badge {
  background: #0ea5a4;
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
}

/* final bid prominent red */
.final-bid {
  color: var(--emphasis-red);
  font-weight: 800;
  margin-left: 8px;
}

/* Time left green */
.time-left-ttl { color: #065f46; font-weight:700; }
.time-left-val { color: #16a34a; font-weight:700; }

.single-search-message {
  margin-top: 10px;
  font-size: 13px;
  color: #4b5563;
}

/* Single-car modal */
.single-car-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 6000;
}

.single-car-modal.open {
  display: flex;
}

.single-car-modal-inner {
  background: var(--modal-bg);
  max-width: 1400px; /* Increase width */
  max-height: 96vh; /* Slightly taller */
  width: 95%;
  border-radius: 12px;
  padding: 24px 28px; /* Add more padding */
  box-shadow: var(--modal-shadow);
  overflow-y: auto;
}
/* slightly larger base font for modal */
.single-car-modal-inner { font-size: 16px; }

.single-car-modal-close {
  border: none;
  background: transparent;
  font-size: 20px;
  float: right;
  cursor: pointer;
}

/* Reuse existing details styles inside modal body */
/* Modal details grid: two columns for desktop, one for mobile */
#singleCarModalBody .details-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px 32px;
}
@media (max-width: 900px) {
  #singleCarModalBody .details-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Make meta within modal a single-column list and improve spacing */
#singleCarModalBody .meta {
  grid-template-columns: 1fr;
  gap: 10px 0;
  font-size: 15px;
  margin-bottom: 12px;
}
#singleCarModalBody .meta div {
  white-space: normal;
  overflow: visible;
  text-overflow: initial;
}

/* VIN copy hint */
.vin-copy {
  cursor: pointer;
  color: #1f2937;
  background: #eef2ff;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #c7d2fe;
  display: inline-block;
  margin-left: 6px;
}
.vin-copied {
  background: #dcfce7;
  border-color: #bbf7d0;
}

/* inline media overlays (video / 360) */
.inline-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  font-size: 15px; /* slightly larger to help perceived contrast */
  justify-content: center;
  background: rgba(0,0,0,0.7);
  z-index: 8000;
}
.inline-overlay .overlay-card {
  width: 90%;
  max-width: 1100px;
.details > .final-bid,
.single-car-modal-inner > .final-bid {
  display: none !important;
}
  height: 78vh;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
}
.overlay-close {
  align-self: flex-end;
  margin-bottom: 6px;
  cursor: pointer;
  background: transparent;
  border: none;
  font-size: 18px;
}

/* small red indicator text */
.text-red {
  color: #b91c1c;
  font-weight: 600;
}

/* small green indicator text */
.text-green {
  color: #166534;
  font-weight: 600;
}

/* Modal-specific image sizing and thumbs */

#singleCarModalBody .main-image-wrapper {
  height: 420px;
  max-width: 540px;
}
#singleCarModalBody .main-image-wrapper img {
  max-height: 420px;
}
#singleCarModalBody .thumbs img {
  width: 72px;
  height: 72px;
  object-fit: cover;
}
#singleCarModalBody .thumbs {
  gap: 8px;
}


/* header info inside modal */
.modal-header-info {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 6px;
  margin-bottom: 16px;
  color: #374151;
  flex-wrap: wrap;
  justify-content: center; /* center under title */
  background: var(--meta-bar-bg); /* subtle light bg */
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(16,24,40,0.02);
}
.modal-header-info .auction-badge a { text-decoration: none; }
.modal-header-info .vin-copy { margin-left: 8px; }

/* pill badges for VIN / Lot */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px; /* slightly smaller */
  border-radius: 999px;
  background: var(--pill-bg);
  color: #0f1724;
  border: 1px solid #dbeafe;
  font-weight: 600;
  font-size: 12px;
}
.pill-badge .click-copy {
  background: transparent;
  border: none;
  padding: 0 0 0 4px;
  border-radius: 4px;
}


/* Prominent car title in modal */
.modal-car-title {
  text-align: center;
  font-size: 2.1rem;
  font-weight: 800;
  margin: 0 0 8px 0;
  letter-spacing: 0.01em;
  color: #22223b;
}

.click-copy {
  cursor: pointer;
  color: #1f2937;
  background: #eef2ff;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #c7d2fe;
  display: inline-block;
}

.vin-copied {
  background: #dcfce7 !important;
  border-color: #bbf7d0 !important;
}


/* make preview larger in modal for big screens */
@media (min-width: 1200px) {
  #singleCarModalBody .main-image-wrapper {
    height: 520px;
  }
  #singleCarModalBody .main-image-wrapper img {
    max-height: 520px;
  }
  #singleCarModalBody .thumbs img {
    width: 84px;
    height: 84px;
    object-fit: cover;
  }
}

/* Image lightbox: zoom behavior */
.image-modal-main { overflow: hidden; }
.image-modal-main.zoomed { overflow: auto; }
.image-modal-main img { transition: transform .2s ease, max-width .2s; cursor: zoom-in; max-width:100%; max-height:70vh; display:block; margin:0 auto; }
.image-modal-main img.zoomed { cursor: zoom-out; max-width: none; max-height: none; }

/* Zoom button in image modal */
.image-modal-zoom {
  position: absolute;
  right: 64px;
  top: 8px;
  border: none;
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

/* Two-column layout for vehicle listing page */
.listing-page {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.gallery-column {
  flex: 1 1 640px;
  max-width: 680px;
}

.details-column {
  width: 320px;
  flex: 0 0 320px;
}

.main-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.thumbnails-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 64px);
  gap: 8px;
  justify-content: start;
}

.thumbnail img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
}

.thumbnail img:focus {
  outline: 2px solid #2563eb;
}

/* Responsive layout for mobile screens */
@media (max-width: 880px) {
  .listing-page {
    flex-direction: column;
  }

  .details-column {
    width: 100%;
    flex: 0 0 auto;
  }
}

/* Single-column layout for details panel */
.details-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Key indicator styles */
.key-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
}
.key-indicator.green {
  color: #16a34a;
}
.key-indicator.red {
  color: #b91c1c;
}

.image-gallery {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  overflow-x: auto;
}

.thumbnail {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.thumbnail:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Two-column flex layout for gallery and details panel */

/* Browse details: two-column flex layout */
.details-container {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: flex-start;
  margin-top: 0.5rem;
}
.image-gallery-wrapper {
  flex: 0 1 62%;
  max-width: 65%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.main-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  min-height: 220px;
  max-height: 420px;
  overflow: hidden;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.main-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.main-image-wrapper img:hover {
  transform: scale(1.04);
}
.image-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0;
  margin-bottom: 2px;
}
.image-thumbnails img.thumbnail {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  margin: 0;
}
.image-thumbnails img.thumbnail.active {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px #2563eb;
}
.image-thumbnails img.thumbnail:hover {
  transform: scale(1.08);
  box-shadow: 0 2px 6px rgba(0,0,0,0.13);
}
.details-panel {
  flex: 0 1 38%;
  min-width: 260px;
  max-width: 420px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 14px 16px 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
  position: sticky;
  top: 20px;
  align-self: flex-start;
  z-index: 2;
}
.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 6px 0 4px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  gap: 8px;
}
.meta-row strong {
  font-weight: 600;
}
@media (max-width: 880px) {
  .details-container {
    flex-direction: column;
    gap: 12px;
  }
  .image-gallery-wrapper, .details-panel {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
  .details-panel {
    position: static;
    top: unset;
    z-index: 1;
  }
}
/* Reduce vertical spacing in gallery */
.image-gallery-wrapper {
  gap: 6px;
}
.main-image-wrapper {
  margin-bottom: 4px;
}
.image-thumbnails {
  gap: 5px;
  margin-top: 0;
}
