/* Concept 9: vessel pages. */

/* While a vessel page is open, the listing page's own content steps aside (the closing CTA stays). */
html.vd-on main > div.container > :not(.vd) { display: none !important; }

.vd { --vd-ink: hsl(var(--foreground)); --vd-mute: hsl(var(--muted-foreground)); --vd-line: hsl(var(--border)); padding-top: 4px; }

.vd-crumbs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 34px; font-size: 12px; letter-spacing: 0.04em; color: var(--vd-mute); }
.vd-crumbs a { color: var(--vd-mute); text-decoration: none; border-bottom: 1px solid var(--vd-line); }
.vd-crumbs a:hover { color: var(--vd-ink); border-bottom-color: var(--vd-ink); }

.vd-head h1 {
  margin: 0; max-width: 18em; font-family: var(--mf-serif, serif); font-weight: 500;
  font-size: clamp(38px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -0.01em; color: var(--vd-ink);
}
.vd-num { font-family: "DM Sans", system-ui, sans-serif; font-weight: 300; font-size: 0.84em; letter-spacing: -0.02em; }
.vd-ref {
  display: flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mf-brass, #a88f5c);
}
.vd-ref::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.vd-print-logo, .vd-print-url { display: none; }

.vd-art { position: relative; margin: 40px 0 0; padding: 40px 8% 18px; background: hsl(var(--secondary)); border: 1px solid var(--vd-line); color: hsl(var(--foreground) / 0.82); }
.vd-art svg.bf5 { max-height: 230px; }
.vd-art svg.bf5 .bf5-wave { stroke: currentColor; opacity: 0.3; }
.vd-art figcaption { position: absolute; top: 12px; right: 16px; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: hsl(var(--foreground) / 0.42); }

.vd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start; margin-top: 56px; }
.vd h2 {
  margin: 0 0 20px; font-family: var(--mf-serif, serif); font-weight: 500; font-size: 30px; line-height: 1.1; color: var(--vd-ink);
}
.vd-specs dl { margin: 0; border-top: 1px solid var(--vd-ink); }
.vd-specs dl > div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--vd-line); }
.vd-specs dt { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--vd-mute); padding-top: 2px; }
.vd-specs dd { margin: 0; font-size: 15px; color: var(--vd-ink); }
.vd-note { margin: 18px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--vd-mute); max-width: 44em; }

.vd-card { position: sticky; top: 110px; padding: 30px 28px 26px; border: 1px solid var(--vd-line); background: hsl(var(--background)); }
.vd-card-label { margin: 0 0 8px; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--vd-mute); }
.vd-price { margin: 0 0 24px; font: 200 44px/1.05 "DM Sans", system-ui, sans-serif; letter-spacing: -0.03em; color: var(--vd-ink); font-variant-numeric: tabular-nums; }
.vd-btn {
  display: flex; justify-content: center; padding: 15px 20px; font-size: 14px; letter-spacing: 0.03em; text-decoration: none;
  background: var(--vd-ink); color: hsl(var(--background)); transition: opacity 0.2s;
}
.vd-btn:hover { opacity: 0.88; }
.vd-btn-inline { display: inline-flex; }
.vd-card-hint { margin: 12px 0 0; font-size: 12px; color: var(--vd-mute); text-align: center; }
.vd-card-hint b { font-weight: 500; color: var(--vd-ink); letter-spacing: 0.04em; }
.vd-share { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--vd-line); }
.vd-share-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; }
.vd-share-row .vd-share-btn { white-space: nowrap; }
.vd-share-btn {
  display: flex; justify-content: center; padding: 10px 8px; font: inherit; font-size: 12.5px; color: var(--vd-ink);
  background: transparent; border: 1px solid var(--vd-line); cursor: pointer; text-decoration: none; transition: border-color 0.2s;
}
.vd-share-btn:hover { border-color: var(--vd-ink); }
.vd-btn:focus-visible, .vd-share-btn:focus-visible, .vd-comp:focus-visible { outline: 1px solid var(--vd-ink); outline-offset: 3px; }
.vd-toast { min-height: 18px; margin: 10px 0 0; font-size: 12px; color: var(--mf-brass, #a88f5c); text-align: center; word-break: break-all; }

.vd-comps { margin-top: 88px; padding-top: 40px; border-top: 1px solid var(--vd-line); }
.vd-comp-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.vd-comp { display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 20px; border: 1px solid var(--vd-line); text-decoration: none; color: var(--vd-ink); transition: border-color 0.2s; }
.vd-comp:hover { border-color: var(--vd-ink); }
.vd-comp-art { margin: -4px 0 10px; color: hsl(var(--foreground) / 0.7); }
.vd-comp-art svg.bf5 { height: 60px; }
.vd-comp-art svg.bf5 .bf5-wave { stroke: currentColor; opacity: 0.3; }
.vd-comp-ref { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mf-brass, #a88f5c); }
.vd-comp-type { font-size: 15px; line-height: 1.35; }
.vd-comp-meta { font-size: 12.5px; color: var(--vd-mute); }
.vd-comp-price { margin-top: 8px; font-size: 14px; font-weight: 500; }

.vd-gone { margin: 22px 0 28px; max-width: 36em; font-size: 17px; line-height: 1.6; color: var(--vd-mute); }

/* "Vessel page & share" link on the listing cards. */
a.vd-open {
  display: inline-flex; gap: 8px; align-items: baseline; margin: -8px 0 14px;
  font-size: 11px; letter-spacing: 0.06em; color: hsl(var(--muted-foreground)); text-decoration: none;
}
a.vd-open span:first-child { letter-spacing: 0.14em; color: var(--mf-brass, #a88f5c); }
a.vd-open:hover { color: hsl(var(--foreground)); }

@media (max-width: 1023px) {
  .vd-grid { grid-template-columns: 1fr; gap: 40px; }
  .vd-card { position: static; }
}
@media (max-width: 640px) {
  .vd-crumbs { margin-bottom: 26px; }
  .vd-art { margin-top: 28px; padding: 22px 4% 12px; }
  .vd-art figcaption { position: static; margin-top: 8px; text-align: center; }
  .vd-specs dl > div { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  .vd-comp-row { grid-template-columns: 1fr; }
  .vd-comps { margin-top: 60px; }
  .vd-card { padding: 24px 20px 20px; }
}

/* Spec sheet: print (or "Save as PDF") gives a one-page particulars sheet with the logo. */
@media print {
  @page { margin: 16mm 16mm 18mm; }
  html.vd-on header, html.vd-on footer, html.vd-on main > section,
  .bf-launcher, .bf-cleanroom-tag, .lg-request, .vd-crumbs, .vd-btn, .vd-share, .vd-card-hint, .vd-comps { display: none !important; }
  html.vd-on body { background: #fff !important; }
  html.vd-on main { padding-top: 0 !important; }
  html.vd-on main > div.container { padding: 0 !important; max-width: none !important; }
  .vd { padding: 0; color: #000; }
  .vd-print-logo { display: block; height: 22px; width: auto; margin-bottom: 28px; }
  .vd-head h1 { font-size: 30pt; }
  .vd-art { margin-top: 18px; padding: 18px 10% 8px; background: #fff; }
  .vd-art svg.bf5 { max-height: 140px; }
  .vd-art svg.bf5 .bf5-wave { animation: none; }
  .vd-grid { grid-template-columns: 1fr 200px; gap: 28px; margin-top: 22px; }
  .vd-card { position: static; padding: 16px; }
  .vd-price { font-size: 26pt; margin-bottom: 8px; }
  .vd-print-url { display: block; margin: 6px 0 0; font-size: 8pt; line-height: 1.6; color: #555; word-break: break-all; }
  .vd-specs dl > div { padding: 8px 0; break-inside: avoid; }
}
