/* Tour components. Colours live in these tokens. Type stays inside the scale:
   card title 18–20, price 20+, facts 15+, controls 16+, labels 13+, nothing under 12. */

:root {
  --tc-ink: #12262c;
  --tc-ink-soft: #3f5258;
  --tc-paper: #fff;
  --tc-surface: #f4f1ea;
  --tc-line: rgba(18, 38, 44, .16);
  --tc-action: #0e8c90;
  --tc-action-ink: #fff;
  --tc-link: #0a676d;
  --tc-star: #f2a900;
  --tc-ok: #1b6b3a;
  --tc-no: #8f2f2f;
  --tc-radius: 16px;
  --tc-shadow: 0 1px 2px rgba(18, 38, 44, .06), 0 8px 28px rgba(18, 38, 44, .08);
  --tc-pad: 20px;
  --tc-max: 1120px;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: var(--font-ui);
}
.tc-detail, .tc-card, .tc-grid { font-family: var(--font-ui); color: var(--tc-ink); }
.tc-i { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tc-wrap { width: 100%; max-width: var(--tc-max); margin: 0 auto; padding-inline: var(--tc-pad); }
.tc-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.tc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid transparent; background: transparent; font: 600 16px/1.2 var(--font-ui); text-decoration: none; cursor: pointer; }
.tc-btn .tc-i { width: 18px; height: 18px; }
.tc-btn--primary { background: var(--tc-action); color: var(--tc-action-ink); }
.tc-btn--primary:active { background: #0c7578; }
.tc-btn--line { background: var(--tc-paper); color: var(--tc-ink); border-color: var(--tc-line); }
.tc-btn--light { background: rgba(255, 255, 255, .96); color: var(--tc-ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.tc-btn--block { width: 100%; }

.tc-rating { display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1.3 var(--font-ui); color: var(--tc-ink); }
.tc-rating b { font-variant-numeric: tabular-nums; }
.tc-count { color: var(--tc-ink-soft); font-weight: 600; }
.tc-rating-star { width: 16px; height: 16px; fill: var(--tc-star); flex: none; }
.tc-rating--lg { font-size: 16px; }
.tc-rating-stars { display: inline-flex; gap: 1px; }
.tc-rating-slot { position: relative; width: 16px; height: 16px; }
.tc-rating-empty, .tc-rating-fill { position: absolute; left: 0; top: 0; height: 16px; overflow: hidden; display: flex; }
.tc-rating-empty { width: 16px; }
.tc-rating-empty .tc-rating-star { fill: #d9d5c9; }
.tc-rating-fill .tc-rating-star { fill: var(--tc-star); }

.tc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 22px 16px; }
.tc-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--tc-paper); border: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 1px 2px rgba(18, 38, 44, .05), 0 12px 32px rgba(18, 38, 44, .08); }
.tc-card-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.tc-card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tc-card-media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--tc-surface); }
.tc-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tc-badges { position: absolute; left: 12px; top: 12px; z-index: 2; display: flex; }
.tc-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .96); color: var(--tc-ink); font: 600 13px/1.2 var(--font-ui); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.tc-card-pill { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; min-height: 32px; padding: 4px 10px 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, .96); box-shadow: 0 1px 4px rgba(0, 0, 0, .18); }
.tc-card-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.tc-card-title { font: 700 clamp(18px, 1.05rem + .3vw, 20px)/1.25 var(--font-ui); letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tc-card-meta-line { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--tc-ink-soft); font: 500 15px/1.3 var(--font-ui); }
.tc-card-meta-line > span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.tc-card-meta-line .tc-i { width: 16px; height: 16px; }
.tc-card-price { display: flex; flex-direction: row; align-items: baseline; gap: 6px; margin-top: auto; padding-top: 4px; font-variant-numeric: tabular-nums; }
.tc-card-price b { font: 700 22px/1.1 var(--font-ui); letter-spacing: -.02em; }
.tc-from, .tc-unit { font: 600 14px/1.2 var(--font-ui); color: var(--tc-ink-soft); }
.tc-card > .heart { position: absolute; z-index: 3; top: 12px; right: 12px; }

.tc-gallery { position: relative; width: 100%; background: var(--tc-ink); }
.tc-gall-grid { display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 16 / 10; max-height: min(42svh, 340px); }
.tc-gall-grid::-webkit-scrollbar { display: none; }
.tc-g { flex: 0 0 86%; height: 100%; scroll-snap-align: start; display: block; position: relative; overflow: hidden; border: 0; padding: 0; margin: 0; background: var(--tc-ink); cursor: pointer; }
.tc-gallery--1 .tc-g { flex-basis: 100%; }
.tc-g img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tc-gall-all { position: absolute; z-index: 2; right: 12px; bottom: 12px; }
.tc-gall-count { position: absolute; z-index: 2; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(8, 24, 28, .82); color: #fff; font: 600 14px/1.3 var(--font-ui); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .tc-gall-grid { display: grid; gap: 4px; overflow: hidden; aspect-ratio: auto; height: clamp(160px, calc(100svh - 580px), 380px); max-height: none; scroll-snap-type: none; }
  .tc-gallery--1 .tc-gall-grid { grid-template-columns: 1fr; }
  .tc-gallery--2 .tc-gall-grid { grid-template-columns: 1fr 1fr; }
  .tc-gallery--3 .tc-gall-grid { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
  .tc-gallery--3 .tc-g0 { grid-row: 1 / 3; }
  .tc-gallery--4 .tc-gall-grid, .tc-gallery--5 .tc-gall-grid { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .tc-gallery--4 .tc-g0, .tc-gallery--5 .tc-g0 { grid-row: 1 / 3; }
  .tc-g { flex: none; }
  .tc-gall-count { display: none; }
}
.tc-lightbox { border: 0; padding: 0; background: rgba(6, 16, 20, .96); color: #fff; width: 100vw; height: 100vh; max-width: none; max-height: none; }
.tc-lightbox[open] { display: grid; grid-template-columns: 56px 1fr 56px; grid-template-rows: 1fr auto; align-items: center; }
.tc-lightbox img { grid-column: 2; grid-row: 1; max-width: 100%; max-height: 82vh; margin: auto; object-fit: contain; }
.tc-lightbox button { background: rgba(255, 255, 255, .14); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.tc-lightbox .tc-i { width: 22px; height: 22px; }
.tc-lb-x { position: absolute; right: 12px; top: 12px; }
.tc-lb-p { grid-column: 1; grid-row: 1; justify-self: center; }
.tc-lb-n2 { grid-column: 3; grid-row: 1; justify-self: center; }
.tc-lb-n { grid-column: 1 / 4; text-align: center; margin: 0 0 14px; font: 600 15px/1.3 var(--font-ui); }
.tc-lightbox::backdrop { background: rgba(6, 16, 20, .96); }

.tc-head { padding: 18px 0 4px; }
.tc-crumbs { display: none; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 12px; font: 400 15px/1.4 var(--font-ui); color: var(--tc-ink-soft); }
.tc-crumbs a { color: var(--tc-ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.tc-title { margin: 0; font: 700 clamp(30px, 1.4rem + 2.2vw, 44px)/1.12 var(--font-display); letter-spacing: -.015em; }
.tc-sub { margin: 8px 0 0; font: 400 clamp(17px, 1rem + .4vw, 20px)/1.45 var(--font-ui); color: var(--tc-ink-soft); }
.tc-ratingrow { margin: 12px 0 0; }
.tc-factsbar { list-style: none; margin: 16px 0 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.tc-factsbar::-webkit-scrollbar { display: none; }
.tc-factsbar li { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 44px; padding: 8px 14px; border-radius: 999px; background: var(--tc-surface); }
.tc-factsbar .tc-i { width: 18px; height: 18px; color: var(--tc-action); }
.tc-fact-v { font: 600 15px/1.3 var(--font-ui); }

.tc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 4px; align-items: start; }
.tc-aside { display: none; }
.tc-main { min-width: 0; }
.tc-sections { position: sticky; top: 0; z-index: 5; background: var(--tc-paper); border-bottom: 1px solid var(--tc-line); margin: 8px calc(var(--tc-pad) * -1) 0; padding: 0 var(--tc-pad); }
.tc-sections-track { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent); }
.tc-sections-track::-webkit-scrollbar { display: none; }
.tc-sections button { flex: none; min-height: 44px; padding: 8px 14px; border: 1px solid var(--tc-line); border-radius: 999px; background: var(--tc-paper); color: var(--tc-ink); font: 600 16px/1.2 var(--font-ui); cursor: pointer; }
.tc-sections button:active { background: var(--tc-ink); color: #fff; }
.tc-sec { padding: 28px 0; border-bottom: 1px solid var(--tc-line); scroll-margin-top: 72px; }
.tc-sec:last-child { border-bottom: 0; }
.tc-sec h2, .tc-related h2 { margin: 0 0 14px; font: 700 clamp(22px, 1.05rem + .5vw, 28px)/1.2 var(--font-display); letter-spacing: -.02em; }
.tc-sec p { margin: 0 0 14px; font: 400 17px/1.6 var(--font-ui); max-width: 65ch; }
.tc-lede { font-size: 19px; line-height: 1.55; }
.tc-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px 28px; }
.tc-checks li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font: 400 17px/1.45 var(--font-ui); align-items: start; }
.tc-checks .tc-i { width: 22px; height: 22px; margin-top: 1px; color: var(--tc-ok); }
.tc-checks--no .tc-i { color: var(--tc-no); }
@media (min-width: 700px) { .tc-checks--2 { grid-template-columns: 1fr 1fr; } }
.tc-meet { display: grid; border: 1px solid var(--tc-line); border-radius: var(--tc-radius); overflow: hidden; }
.tc-meet-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 20px; }
.tc-meet-card b { font: 700 19px/1.3 var(--font-ui); }
.tc-book { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--tc-line); border-radius: var(--tc-radius); background: var(--tc-paper); box-shadow: var(--tc-shadow); }
.tc-book-price b { font: 700 32px/1.1 var(--font-ui); font-variant-numeric: tabular-nums; }
.tc-related { padding: 40px 0 24px; background: var(--tc-surface); margin-top: 24px; }
.tc-related .tc-grid { padding: 0; }

/* The app tab bar sits under this bar. On a wide screen the booking card is sticky instead. */
.tc-detail { background: var(--tc-paper); min-height: 100svh; padding-bottom: calc(190px + env(safe-area-inset-bottom)); }
.tc-sticky { position: fixed; z-index: 25; left: 12px; right: 12px; bottom: calc(96px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; background: var(--tc-paper); border: 1px solid var(--tc-line); border-radius: 18px; box-shadow: 0 10px 30px rgba(18, 38, 44, .16); }
.tc-sticky small { display: block; color: var(--tc-ink-soft); font: 600 13px/1.2 var(--font-ui); }
.tc-sticky b { font: 700 20px/1.2 var(--font-ui); font-variant-numeric: tabular-nums; }
.tc-sticky .tc-btn { min-width: 148px; }
.tr-page .tc-grid { padding: 8px 16px 16px; }
.msg.comp > .tc-card { max-width: 420px; }
.td-bar { z-index: 3; }
@media (min-width: 800px) {
  .tr-page .tc-grid { max-width: 1080px; margin-inline: auto; }
}
@media (min-width: 960px) and (min-height: 700px) {
  .tc-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
  .tc-crumbs { display: flex; }
  .tc-aside { display: block; position: sticky; top: 16px; }
  .tc-sticky { display: none; }
  .tc-detail { padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
}
/* A short window cannot fit the photo and the side card. Keep the price on screen, above the tab bar. */
@media (min-width: 960px) and (max-height: 699px) {
  .tc-crumbs { display: flex; }
  .tc-sticky {
    display: flex;
    left: 50%;
    right: auto;
    bottom: 104px;
    transform: translateX(-50%);
    width: min(720px, calc(100% - 32px));
  }
}

/* FareHarbor calendar. Filled from /api/calendar, not from example times. */
.fh-cal { margin-top: 4px; }
.fh-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.fh-bar b { font: 650 16px/1.2 var(--font-ui); letter-spacing: -.02em; }
.fh-bar button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--tc-line); background: #fff; font-size: 22px; line-height: 1; cursor: pointer; color: var(--tc-ink); }
.fh-bar button:disabled { opacity: .35; cursor: default; }
.fh-dow, .fh-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.fh-dow span { font: 600 12px/1 var(--font-ui); color: var(--tc-ink-soft); padding: 0 0 6px; }
.fh-day { height: 40px; border: 0; border-radius: 999px; background: transparent; font: 650 14px/1 var(--font-ui); color: #c5cdd0; }
.fh-day.has { background: var(--tc-surface); color: var(--tc-ink); cursor: pointer; }
.fh-day.on { background: var(--tc-action); color: #fff; }
.fh-days { display: none; }
.fh-cal--compact .fh-dow, .fh-cal--compact .fh-grid { display: none; }
.fh-cal--compact .fh-days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.fh-cal--compact .fh-days::-webkit-scrollbar { display: none; }
.fh-chip { flex: none; min-width: 64px; height: 64px; border-radius: 16px; border: 1px solid var(--tc-line); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: 600 12px/1 var(--font-ui); color: var(--tc-ink-soft); cursor: pointer; }
.fh-chip b { font-size: 18px; color: var(--tc-ink); }
.fh-chip.on { background: #12262c; border-color: #12262c; color: #fff; }
.fh-chip.on b { color: #fff; }
.fh-times { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fh-time { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--tc-line); background: #fff; font: 650 15px/1 var(--font-ui); text-decoration: none; color: var(--tc-ink); display: inline-flex; align-items: center; }
.fh-time.phone { color: var(--tc-ink-soft); }
.fh-status { margin: 10px 0 0; font: 500 13px/1.45 var(--font-ui); color: var(--tc-ink-soft); }
.fh-status a { color: var(--tc-link); }
.lv-card:has(.fh-cal) { display: flex; flex-direction: column; max-height: 72svh; overflow: auto; }
.lv-card:has(.fh-cal) > .tc-card { max-height: 26svh; }
.lv-card .fh-cal { padding: 8px 2px 2px; }
