/* ============================================================
   boat-types.css - the types-first gallery + shared boat card
   visuals (photo + at-a-glance chips). Reuses the CSS variables
   already declared in boat-guide.html's <style> (--surface,
   --rule, --accent, etc.) so it stays on-brand.
   ============================================================ */

/* ---------- Section shell ---------- */
.type-gallery { margin-top: 22px; }
.tg-block { margin-top: 26px; }
.tg-head { margin-bottom: 16px; }
.tg-title {
  font-family: 'Fraunces', serif; font-weight: 700; font-size: 24px;
  line-height: 1.15; letter-spacing: -.015em; margin: 0 0 6px;
}
.tg-sub { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; margin: 0; max-width: 62ch; }

/* ---------- Activity filter ---------- */
.tg-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 18px; }
.tg-chip {
  font-family: 'DM Mono', monospace; font-size: 11.5px; font-weight: 600;
  letter-spacing: .06em; padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--rule); background: var(--bg); color: var(--ink-soft);
  cursor: pointer; transition: all .14s;
}
.tg-chip:hover { border-color: var(--accent-soft); color: var(--ink); }
.tg-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
/* the "Rentable" lens gets a leading dot so it reads as special */
.tg-chip-rent { display: inline-flex; align-items: center; gap: 7px; }
.tg-chip-rent::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.tg-chip-rent.on::before { background: #fff; }
.tg-empty { color: var(--ink-soft); font-size: 14px; padding: 20px 4px; }

/* ---------- Type card grid ---------- */
.type-grid2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.type-card2 {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: 14px; box-shadow: var(--shadow-1); transition: transform .16s, box-shadow .16s;
}
.type-card2:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(20,18,12,.08); }
.type-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-family: 'DM Mono', monospace; font-size: 9px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: #fff;
  background: rgba(30,58,42,.86); border-radius: 999px; padding: 4px 10px;
  backdrop-filter: blur(2px);
}
.type-card2-body { padding: 14px 16px 16px; display: flex; flex-direction: column; }
.type-fam {
  font-family: 'DM Mono', monospace; font-size: 9.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent); font-weight: 600;
}
.type-name { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 700; margin: 3px 0 6px; line-height: 1.2; }
.type-tagline {
  font-size: 13px; color: var(--ink-soft); line-height: 1.5; margin: 0 0 14px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- Shared boat photo (also used by quiz + catalog) ---------- */
.boat-photo {
  position: relative; aspect-ratio: 1 / 1; background: var(--bg-warm);
  overflow: hidden;
}
/* gallery cards use a shorter crop to cut vertical scroll */
.type-card2 .boat-photo { aspect-ratio: 4 / 3; }
.boat-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.boat-photo-fallback {
  position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
  padding: 12px; background: var(--bg-warm);
}
.boat-photo-fallback svg { width: 100%; max-width: 220px; height: auto; }

/* photo variants for the quiz pick + catalog (not square) */
.boat-photo.photo-wide { aspect-ratio: 16 / 10; border-radius: 10px; }
.boat-photo.photo-catalog { aspect-ratio: 3 / 2; border-radius: 8px; margin-bottom: 12px; }

/* ---------- At-a-glance chips (shared) ---------- */
.boat-chips {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 14px;
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--rule-soft);
}
.boat-chips .chip:nth-child(5) { grid-column: 1 / -1; }
.chip { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.chip-l {
  font-family: 'DM Mono', monospace; font-size: 9.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint); min-width: 42px;
}
.chip-v { font-weight: 700; color: var(--ink); font-size: 12.5px; }
.chip-meter { display: inline-flex; gap: 3px; }
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rule); }
.chip-dot.on { background: var(--accent); }
/* Partial-color dot: some models in this category reach this level, others do not.
   Visually reads as "guaranteed floor is the solid dots, ceiling is out to here". */
.chip-dot.range { background: color-mix(in srgb, var(--accent) 45%, var(--rule)); }

/* ---------- Rent-vs-buy fork scene photos ---------- */
.mode-photo {
  width: 100%; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden;
  background: var(--bg-warm); border: 1px solid var(--rule-soft); margin-bottom: 4px;
}
.mode-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Quiz result pick photo ---------- */
.boat-pick-body { grid-template-columns: 190px 1fr; }
.boat-pick-photo { align-self: start; }

/* ---------- Catalog card photo ---------- */
.cat-card .boat-photo.photo-catalog { margin: -2px -2px 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .boat-pick-body { grid-template-columns: 1fr; }
  .boat-pick-photo { max-width: 320px; }
}
@media (max-width: 900px) {
  .type-grid2 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .type-grid2 { grid-template-columns: 1fr; }
  .tg-title { font-size: 21px; }
  .boat-chips { grid-template-columns: repeat(2, 1fr); }
}
