/* Skærm: forhåndsvisning som A4-lignende ark */
.listing-print-page {
  margin: 0;
  padding: 0;
  background: #c8c8c8;
  font-family: "Outfit", system-ui, sans-serif;
  color: #111;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.listing-print-toolbar {
  max-width: 210mm;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.9rem;
}

.listing-print-toolbar a {
  color: #0a4a7a;
}

.listing-print-toolbar button {
  font: inherit;
  padding: 0.4rem 0.9rem;
  border: 1px solid #333;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
}

.listing-print-toolbar button:hover {
  background: #f0f0f0;
}

.listing-print-sheet {
  box-sizing: border-box;
  max-width: 210mm;
  min-height: 260mm;
  margin: 0 auto 2rem;
  padding: 14mm 16mm 18mm;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.listing-print__brand {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #444;
  margin: 0 0 0.35rem;
  border-bottom: 2px solid #111;
  padding-bottom: 0.35rem;
}

.listing-print__title {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0.5rem 0 0.35rem;
  letter-spacing: -0.02em;
}

.listing-print__meta {
  font-size: 0.95rem;
  color: #333;
  margin: 0 0 0.75rem;
}

.listing-print__price {
  font-size: 1.85rem;
  font-weight: 800;
  margin: 0.35rem 0 0.85rem;
  color: #0a4a7a;
}

.listing-print__sold {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: #111;
  color: #fff;
}

.listing-print__photo {
  margin: 0 0 1rem;
  border: 1px solid #ccc;
  aspect-ratio: 4 / 3;
  max-height: 95mm;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f5f5f5;
}

.listing-print__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.listing-print__photo--empty {
  color: #888;
  font-size: 0.9rem;
}

.listing-print__section-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 1rem 0 0.4rem;
  color: #333;
}

.listing-print__specs {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.2rem 0.75rem;
  font-size: 0.88rem;
  margin: 0 0 0.75rem;
}

.listing-print__specs dt {
  margin: 0;
  font-weight: 600;
  color: #555;
}

.listing-print__specs dd {
  margin: 0;
}

.listing-print__desc {
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
  margin: 0 0 1rem;
}

.listing-print__contact {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #ccc;
  font-size: 0.88rem;
}

.listing-print__contact dl {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.25rem 0.6rem;
  margin: 0;
}

.listing-print__contact dt {
  margin: 0;
  font-weight: 600;
  color: #555;
}

.listing-print__contact dd {
  margin: 0;
  word-break: break-word;
}

.listing-print__footer {
  margin-top: 1.25rem;
  padding-top: 0.6rem;
  border-top: 1px dashed #999;
  font-size: 0.72rem;
  color: #666;
  line-height: 1.4;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 12mm;
  }

  .no-print {
    display: none !important;
  }

  .listing-print-page {
    background: #fff;
 }

  .listing-print-sheet {
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }

  .listing-print__photo {
    aspect-ratio: auto;
    max-height: 85mm;
  }

  a[href^="mailto:"],
  a[href^="tel:"] {
    color: inherit;
    text-decoration: none;
  }
}
