/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f5f4f2;
  color: #1a1a1a;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Header ── */
.site-header {
  background: #1a1a1a;
  padding: 0 32px;
  display: flex;
  align-items: center;
  height: 64px;
}

.site-header .logo img {
  height: 34px;
  display: block;
}

/* ── Sale Terms Bar ── */
.terms-bar {
  background: #2a2a2a;
  color: #aaa;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 9px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  align-items: center;
}

.terms-bar span::before {
  content: '• ';
  color: #C9A84C;
}

/* ── Page Intro ── */
.page-intro {
  max-width: 860px;
  margin: 52px auto 0;
  padding: 0 24px;
  text-align: center;
}

.page-intro h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.page-intro p {
  color: #666;
  font-size: 0.97rem;
  max-width: 580px;
  margin: 0 auto 16px;
}

.location {
  font-size: 1rem;
  color: #444;
}

.location strong {
  font-size: 1.05rem;
}

.location a {
  color: #C9A84C;
  text-decoration: underline;
}

.location a:hover {
  color: #a8893e;
}

.new-tab-hint {
  font-size: 0.78rem;
  color: #999;
  font-style: italic;
}

/* ── Equipment Grid ── */
.equipment-section {
  max-width: 1100px;
  margin: 48px auto 80px;
  padding: 0 24px;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

/* ── Cards ── */
.card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,0.13);
}

.card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #e8e6e3;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-image .img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.sold-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
}

.sold-overlay img {
  width: 55%;
  max-width: 130px;
}

.status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
}

.status-available { background: #22c55e; color: #fff; }
.status-pending   { background: #f59e0b; color: #fff; }
.status-sold      { background: #6b7280; color: #fff; }

.ship-badge {
  position: absolute;
  top: 36px;
  right: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  background: #2563eb;
  color: #fff;
}

.card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
}

.card-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: #C9A84C;
  margin-bottom: 14px;
}

.card-link {
  margin-top: auto;
  display: block;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 14px;
  border-radius: 4px;
  text-align: center;
  transition: background 0.15s;
}

.card-link:hover          { background: #333; }
.card-link.link-sold      { background: #9ca3af; pointer-events: none; }
.card-link.link-pending   { background: #92400e; }

/* ── Site Nav ── */
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  color: #aaa;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.15s;
}

.site-nav a:hover {
  color: #C9A84C;
}

/* ── Footer ── */
.site-footer {
  background: #1a1a1a;
  color: #555;
  font-size: 0.8rem;
  text-align: center;
  padding: 20px 32px;
}

.site-footer a {
  color: #777;
}

.site-footer a:hover {
  color: #ccc;
}

.footer-nav {
  margin-bottom: 8px;
}

.footer-nav a {
  color: #777;
  font-size: 0.8rem;
  transition: color 0.15s;
}

.footer-nav a:hover {
  color: #ccc;
}

/* ── Pickup Callout ── */
.pickup-callout {
  background: #f0ede8;
  border-left: 3px solid #C9A84C;
  border-radius: 4px;
  padding: 14px 18px;
  font-size: 0.88rem;
  color: #555;
  margin-bottom: 40px;
}

.pickup-callout a {
  color: #C9A84C;
  text-decoration: underline;
}

.pickup-callout a:hover {
  color: #a8893e;
}

/* ── Home Pickup Note (inside .page-intro) ── */
.pickup-note {
  font-size: 0.82rem;
  color: #888;
  margin-top: 14px;
}

.pickup-note a {
  color: #C9A84C;
  text-decoration: underline;
}

.pickup-note a:hover {
  color: #a8893e;
}

/* ── Pickup & Loading Page — hero subhead ── */
.pickup-hero {
  font-size: 1rem;
  font-weight: 600;
  color: #C9A84C !important;
}

/* ── Rules List (pickup page) ── */
.rules-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.rules-list li {
  padding: 14px 0;
  border-bottom: 1px solid #edecea;
}

.rules-list li:last-child {
  border-bottom: none;
}

.rule-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 3px;
}

.rule-body {
  display: block;
  font-size: 0.92rem;
  color: #666;
  line-height: 1.5;
}

/* ── Pickup Disclaimer ── */
.pickup-disclaimer {
  font-size: 0.8rem;
  color: #999;
  border-top: 1px solid #e5e3df;
  padding-top: 20px;
  margin-top: 8px;
}

/* ── Individual Listing Page ── */
.listing-page {
  max-width: 860px;
  margin: 48px auto 80px;
  padding: 0 24px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #888;
  font-size: 0.83rem;
  margin-bottom: 28px;
  transition: color 0.15s;
}

.back-link:hover { color: #1a1a1a; }

.listing-header {
  margin-bottom: 32px;
}

.listing-header h1 {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 10px;
}

.listing-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: #C9A84C;
  margin-bottom: 5px;
}

.listing-meta {
  font-size: 0.87rem;
  color: #888;
}

.listing-meta a {
  color: #C9A84C;
  text-decoration: underline;
}

.listing-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 40px;
}

.listing-photos .photo-placeholder {
  aspect-ratio: 4 / 3;
  background: #e8e6e3;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 0.78rem;
}

.listing-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e3df;
}

.listing-description {
  color: #555;
  font-size: 0.96rem;
  margin-bottom: 40px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin-bottom: 40px;
}

.specs-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #edecea;
  vertical-align: top;
}

.specs-table td:first-child {
  color: #888;
  width: 42%;
  font-weight: 500;
}

.specs-table tr:last-child td {
  border-bottom: none;
}

.contact-gate {
  background: #fff;
  border: 1px solid #e5e3df;
  border-radius: 6px;
  padding: 28px 32px;
}

.contact-gate .gate-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
  margin-bottom: 10px;
}

.contact-gate p {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* ── Responsive ── */
/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.lightbox-active {
  display: flex;
}

body.lightbox-open {
  overflow: hidden;
}

.lb-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  cursor: zoom-out;
  user-select: none;
  -webkit-user-drag: none;
}

.lb-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s;
  padding: 4px 8px;
}

.lb-close:hover { opacity: 1; }

.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 2.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 14px 20px;
  border-radius: 4px;
  opacity: 0.6;
  transition: opacity 0.15s, background 0.15s;
  user-select: none;
}

.lb-prev { left: 16px; }
.lb-next { right: 16px; }

.lb-prev:hover,
.lb-next:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.18);
}

.lb-counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: #888;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .site-header {
    padding: 0 16px;
    height: 54px;
  }

  .terms-bar {
    padding: 9px 16px;
    gap: 5px 14px;
  }

  .page-intro {
    margin-top: 36px;
  }

  .page-intro h1 {
    font-size: 1.5rem;
  }

  .equipment-section,
  .listing-page {
    padding: 0 16px;
    margin-top: 36px;
  }

  .listing-header h1 {
    font-size: 1.4rem;
  }

  .contact-gate {
    padding: 20px 18px;
  }

  .lb-prev { left: 8px;  padding: 10px 14px; font-size: 2.2rem; }
  .lb-next { right: 8px; padding: 10px 14px; font-size: 2.2rem; }

  .lb-img {
    max-width: 95vw;
    max-height: 80vh;
  }

  .contact-direct {
    padding: 20px 18px;
  }

  .listing-media {
    grid-template-columns: 1fr;
  }

  .video-thumb-link img {
    aspect-ratio: 9 / 16;
  }
}

/* ── Listing Media (video + photos side by side) ── */
.listing-media {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 40px;
}

.listing-media .listing-photos {
  margin-bottom: 0;
}

.video-thumb-link {
  display: block;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
}

.video-thumb-link img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
  opacity: 0.85;
  transition: opacity 0.15s;
}

.video-thumb-link:hover img { opacity: 0.7; }

.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
  pointer-events: none;
}

/* ── Included List ── */
.included-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.included-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #edecea;
  font-size: 0.92rem;
  line-height: 1.5;
}

.included-list li:last-child { border-bottom: none; }

.included-list .check {
  color: #22c55e;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Calibration Box ── */
.cal-box {
  background: #fff;
  border: 1px solid #e5e3df;
  border-left: 3px solid #C9A84C;
  border-radius: 4px;
  padding: 20px 22px;
  font-size: 0.91rem;
  color: #555;
  line-height: 1.75;
  margin-bottom: 40px;
}

.cal-box .cal-heading {
  font-weight: 700;
  color: #1a1a1a;
  font-size: 0.92rem;
  margin-bottom: 8px;
}

/* ── Condition Box ── */
.condition-box {
  background: #fff;
  border: 1px solid #e5e3df;
  border-radius: 4px;
  padding: 20px 22px;
  font-size: 0.91rem;
  color: #555;
  line-height: 1.75;
  margin-bottom: 40px;
}

.condition-box p {
  margin-bottom: 14px;
}

.condition-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.condition-list li {
  padding: 8px 0 8px 18px;
  border-bottom: 1px solid #f0eeeb;
  position: relative;
  font-size: 0.9rem;
}

.condition-list li:last-child { border-bottom: none; }

.condition-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #C9A84C;
  font-weight: 700;
}

/* ── Direct Contact (mailto, no Tally gate) ── */
.contact-direct {
  background: #1a1a1a;
  border-radius: 6px;
  padding: 28px 32px;
  color: #fff;
}

.contact-direct .gate-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
  margin-bottom: 10px;
}

.contact-direct p {
  color: #aaa;
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 520px;
}

.contact-btn {
  display: inline-block;
  background: #C9A84C;
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 11px 24px;
  border-radius: 4px;
  transition: background 0.15s;
}

.contact-btn:hover { background: #b8963e; }

/* ── Print ── */
@media print {
  @page { margin: 0.75in; }

  body { background: #fff !important; }

  .site-header {
    background: #fff !important;
    border-bottom: 1pt solid #ccc;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .site-header .logo img { filter: invert(1); }

  .terms-bar { display: none; }

  .listing-page { margin-top: 20pt; }

  .back-link { display: none; }

  .listing-photos {
    grid-template-columns: repeat(4, 1fr);
    gap: 4pt;
  }

  .listing-photos img { page-break-inside: avoid; }

  .section-label,
  .specs-table,
  .included-list,
  .cal-box,
  .condition-box { page-break-inside: avoid; }

  .pickup-callout { display: none; }

  .contact-gate,
  .contact-direct {
    background: #fff !important;
    border: 1pt solid #000;
    color: #000 !important;
    page-break-inside: avoid;
  }

  .contact-gate .gate-label,
  .contact-direct .gate-label { color: #555 !important; }

  .contact-gate p,
  .contact-direct p { color: #333 !important; }

  .contact-btn {
    background: #fff !important;
    color: #000 !important;
    border: 1pt solid #000;
  }

  .site-footer {
    background: #fff !important;
    color: #666 !important;
    border-top: 1pt solid #ccc;
  }

  .lightbox { display: none !important; }
}
