/* Cruising Routes Block (build 28.25). Loaded only on pages that use the block. No inline styles (CSP). */
.crb { --crb-navy: var(--navy, #14263d); --crb-orange: var(--orange, #ff7700); --crb-gold: #c99a2e; --crb-sea: #c9e6f3;
  --crb-mute: #5d6b7c; --crb-line: #d5dde6; --crb-row: 44px;
  margin: 1.5rem 0; background: #fff; border: 1px solid var(--crb-line); border-radius: 12px; overflow: hidden; color: #1a252f; }
.crb *, .crb *::before, .crb *::after { box-sizing: border-box; }
.crb__title { margin: 0; font-size: 1rem; line-height: 1.3; }
.crb__toggle { display: flex; align-items: center; gap: 0.5rem; width: 100%; border: 0; background: none; padding: 0.8rem 0.9rem; font: inherit; font-weight: 700;
  font-size: 1.05rem; color: var(--crb-navy); text-align: left; cursor: pointer; }
.crb__label { display: inline-flex; align-items: center; gap: 0.5rem; }
.crb__label svg { color: var(--crb-gold); }
.crb__chevron { margin-left: auto; transition: transform 0.3s; }
.crb.is-shut .crb__chevron { transform: rotate(180deg); }
.crb.is-shut .crb__body { display: none; }
.crb--plain .crb__toggle { pointer-events: none; cursor: default; }
.crb--plain .crb__chevron { display: none; }
.crb.is-ready .crb__fallback { display: none; }

/* Without JavaScript or when the map cannot load: the plain text list stays visible. */
.crb__fallback { padding: 0 0.9rem 0.9rem; font-size: 0.95rem; }
.crb__fb-route h3 { margin: 0.8rem 0 0.1rem; font-size: 1.05rem; color: var(--crb-navy); }
.crb__fb-meta { margin: 0 0 0.3rem; color: var(--crb-mute); font-size: 0.85rem; }
.crb__fb-route ol { margin: 0; padding-left: 1.2rem; }
.crb__fb-route li span { display: block; color: var(--crb-mute); font-size: 0.85rem; }
.crb__sample { margin: 0.8rem 0 0; color: var(--crb-mute); font-size: 0.8rem; }

/* Info card (fixed height, so the map below never jumps) */
.crb__card { margin: 0 0.75rem 0.65rem; height: 164px; overflow: hidden; color: #fff; background: linear-gradient(135deg, #1f3550, #34507a);
  border-left: 3px solid var(--crb-gold); border-radius: 8px; padding: 9px 12px; font-size: 13px; line-height: 1.4; display: flex; flex-direction: column; }
.crb__cb { display: flex; flex-direction: column; flex: 1; min-height: 0; animation: crb-in 0.3s cubic-bezier(0.25, 0.8, 0.3, 1); }
@keyframes crb-in { from { opacity: 0.2; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.crb__ch { display: flex; align-items: center; gap: 8px; }
.crb__ch b { font-size: 15px; font-weight: 600; }
.crb__num { width: 20px; height: 20px; border-radius: 50%; background: var(--crb-orange); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.crb__area svg, .crb__where svg { width: 16px; height: 11px; border-radius: 2px; box-shadow: 0 0 0 0.5px rgba(0,0,0,.25); flex: none; }
.crb__area { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; white-space: nowrap; }
.crb__card p { margin: 4px 0 0; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: none; }
.crb__cmain { display: flex; align-items: flex-end; gap: 8px; margin-top: auto; }
.crb__stk { flex: 1; min-width: 0; }
.crb__rw { display: flex; align-items: center; gap: 6px; height: 28px; }
.crb__chips { display: flex; align-items: center; gap: 5px; flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.crb__lab { flex: none; width: 26px; opacity: 1; }
.crb__lab svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }
.crb__chip { background: none; color: inherit; font-family: inherit; cursor: pointer; border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 99px; padding: 1px 8px; font-size: 12px; flex: none; white-space: nowrap; }
.crb__chip--s { flex: 0 1 auto; min-width: 36px; overflow: hidden; text-overflow: ellipsis; }
.crb__more { flex: none; margin-bottom: 2px; background: #fff; color: var(--crb-navy); border: 0; border-radius: 6px; padding: 6px 9px; font: inherit; font-weight: 600; font-size: 12.5px; cursor: pointer; }

/* Map */
.crb__map { position: relative; aspect-ratio: 300 / 258; background: var(--crb-sea); overflow: hidden; }
.crb__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.crb__land { fill: #f3eee2; stroke: #c9bb9c; stroke-width: 1; }
.crb__map.has-relief .crb__land { fill: none; stroke: #a8987a; stroke-width: 0.8; stroke-opacity: 0.75; }
.crb__route { fill: none; stroke: #2a4a8f; stroke-width: 1.6; stroke-dasharray: 1.8 3.6; stroke-linecap: round; stroke-opacity: 0.8; }
.crb__route--land { stroke-opacity: 0.45; stroke-dasharray: 3 4; stroke-linecap: butt; }
.crb__pen { cursor: pointer; }
.crb__pen .fl { fill: var(--crb-navy); transition: fill 0.25s; }
.crb__pen .dot { fill: #e8b93a; stroke: #7a5a10; stroke-width: 1; }
.crb__pen .mast { stroke: var(--crb-navy); stroke-width: 1.4; }
.crb__pen text { fill: #fff; font-weight: 700; text-anchor: middle; pointer-events: none; }
.crb__pen .nm { fill: #17223f; font-weight: 600; stroke: #fff; stroke-width: 2.6px; paint-order: stroke; stroke-linejoin: round; }
.crb__pen .scale { transform-box: fill-box; transform-origin: 50% 100%; transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.3, 1.3); }
.crb__pen.is-on .fl { fill: var(--crb-orange); }
.crb__pen.is-on .scale { transform: scale(1.3); }
.crb__town { fill: #6a6350; font-style: italic; font-weight: 500; text-anchor: middle; stroke: #fff; stroke-width: 2.4px; paint-order: stroke; pointer-events: none; opacity: 0.9; }
.crb__rail { position: absolute; right: 1px; top: 50%; transform: translateY(-50%); max-height: min(285px, calc(100% - 10px)); display: flex; flex-direction: column;
  align-items: center; gap: 5px; overflow-y: auto; scrollbar-width: none; padding: 5px; z-index: 3; }
.crb__rail::-webkit-scrollbar { display: none; }
.crb__dp { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--crb-gold); background: var(--crb-navy); color: #fff; font-family: inherit; font-weight: 700; font-size: 12px; line-height: 1;
  display: grid; place-items: center; cursor: pointer; padding: 0; transition: background 0.2s, transform 0.25s cubic-bezier(0.25, 0.8, 0.3, 1.4); }
.crb__dp.is-on { background: var(--crb-orange); transform: scale(1.12); }
.crb__sum { position: absolute; left: 4px; top: 4px; z-index: 3; background: rgba(255, 255, 255, 0.88); border-radius: 6px; padding: 3px 8px; font-size: 11.5px; font-weight: 600;
  color: #2a3550; max-width: calc(100% - 52px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crb__i { position: absolute; left: 8px; bottom: 8px; z-index: 4; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--crb-navy); background: #fff;
  color: var(--crb-navy); font: italic 700 14px/1 Georgia, serif; cursor: pointer; padding: 0; }
.crb__legend { position: absolute; left: 8px; bottom: 42px; z-index: 4; width: min(270px, calc(100% - 60px)); background: #fff; border: 1px solid var(--crb-line); border-radius: 10px;
  padding: 10px 12px; font-size: 12.5px; line-height: 1.35; box-shadow: 0 4px 16px rgba(20, 35, 90, 0.18); }
.crb__legend[hidden] { display: none; }
.crb__legend div { display: flex; align-items: center; gap: 9px; margin: 0 0 7px; }
.crb__legend div:last-of-type { margin: 0; }
.crb__legend i { flex: none; width: 30px; display: grid; place-items: center; }
.crb__legend svg { fill: none; stroke: var(--crb-navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.crb__sw { display: inline-block; border-radius: 50%; width: 20px; height: 20px; background: var(--crb-navy); color: #fff; border: 1.5px solid var(--crb-gold); font-family: inherit; font-weight: 700; font-size: 10px; line-height: 17px; text-align: center; font-style: normal; }
.crb__credit { position: absolute; right: 52px; bottom: 4px; z-index: 2; font-size: 8px; color: rgba(0, 22, 71, 0.5); pointer-events: none; }
.crb__loading { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: var(--crb-sea); color: var(--crb-navy); font-size: 0.9rem; }
.crb__loading[hidden] { display: none; }

/* Read more: centred dark window like on the charter site */
.crb__ov.crb__ov--c { align-items: center; padding: 12px; }
.crb__sheet.crb__sheet--dark { position: relative; max-width: 560px; border-radius: 14px; border-top: 3px solid var(--crb-orange); color: #fff; padding: 18px 20px 22px;
  background: linear-gradient(135deg, #1f3550, #34507a); box-shadow: 0 24px 60px rgba(0, 22, 71, 0.45); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); }
.crb__sheet.crb__sheet--dark h3 { color: #fff; font-size: 1.35rem; margin: 4px 0 10px; padding-right: 34px; }
.crb__sheet.crb__sheet--dark p { font-size: 15px; line-height: 1.6; margin: 0 0 12px; }
.crb__sheet--dark .crb__gh { color: rgba(255, 255, 255, 0.7); }
.crb__chip-d { background: none; font-family: inherit; cursor: pointer; touch-action: manipulation; }
.crb__back { display: block; margin: 14px 0 0; padding: 6px 0; background: none; border: 0; color: #fff; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; opacity: 0.85; }
.crb__sheet--dark .crb__chip-d { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.crb__where { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; padding-right: 34px; }
.crb__x { position: absolute; z-index: 3; touch-action: manipulation; -webkit-tap-highlight-color: transparent; right: 12px; top: 12px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: rgba(255, 255, 255, 0.22); color: #fff; font-size: 22px; line-height: 32px; text-align: center; }
.crb__x:hover { background: rgba(255, 255, 255, 0.34); }

/* Route name and day reel */
.crb__rc { display: flex; align-items: center; gap: 10px; width: 100%; margin: 10px 0 0; border: 0; background: #fff; padding: 6px 14px; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.crb__rc b { display: block; color: var(--crb-navy); font-size: 17px; line-height: 1.25; }
.crb__rc svg { margin-left: auto; flex: none; color: var(--crb-navy); }
.crb__rc[disabled] { cursor: default; }
.crb__rc[disabled] svg { display: none; }
.crb__acc { position: relative; margin: 0 14px; }
.crb__win { overflow-y: hidden; height: var(--crb-row); transition: height 0.32s cubic-bezier(0.25, 0.8, 0.3, 1.1); scrollbar-width: none; }
.crb__win::-webkit-scrollbar { display: none; }
.crb__acc.is-open .crb__win { overflow-y: auto; scroll-snap-type: y mandatory; scroll-padding-top: var(--crb-row); }
.crb__reel { list-style: none; margin: 0; padding: 0; transition: padding 0.32s; }
.crb__acc.is-open .crb__reel { padding: var(--crb-row) 0; }
.crb__reel li { scroll-snap-align: start; margin: 0; }
.crb__row { display: grid; grid-template-columns: 1fr auto 58px 34px; align-items: center; gap: 8px; height: var(--crb-row); width: 100%; border: 0; background: none; text-align: left;
  font: inherit; padding: 0; cursor: pointer; color: inherit; transition: opacity 0.25s; }
.crb__acc.is-open .crb__row:not(.is-on) { opacity: 0.5; }
.crb__d { font-size: 11px; letter-spacing: 0.06em; color: var(--crb-mute); font-weight: 600; }
.crb__pl { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #e4dcc4; background: #f6f2e6; border-radius: 99px; padding: 3px 12px 3px 4px; font-size: 14px; justify-self: start;
  max-width: 100%; min-width: 0; }
.crb__pl span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crb__row.is-on .crb__pl { border-color: var(--crb-orange); background: #fdf0e1; }
.crb__pl i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; background: var(--crb-navy); color: #fff; font-family: inherit; font-weight: 700; font-size: 11px; line-height: 1; display: grid; place-items: center; flex: none; }
.crb__row.is-on .crb__pl i { background: var(--crb-orange); }
.crb__nm { font-size: 13px; color: var(--crb-mute); text-align: right; }
.crb__tg { position: absolute; right: 0; top: 0; width: 34px; height: var(--crb-row); border: 0; background: none; cursor: pointer; color: var(--crb-navy); display: grid; place-items: center; padding: 0; }
.crb__tg svg { transition: transform 0.3s; }
.crb__acc.is-open .crb__tg svg { transform: rotate(180deg); }
.crb__info { padding: 6px 14px 4px; font-size: 13px; color: var(--crb-mute); }
.crb__info--s { font-size: 12px; padding-bottom: 14px; }

/* Sheets: route chooser and "Read more" */
.crb__ov { position: fixed; inset: 0; background: rgba(10, 15, 40, 0.5); z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.crb__ov[hidden] { display: none; }
.crb__sheet { background: #fff; width: 100%; max-width: 480px; max-height: 80vh; overflow: auto; border-radius: 14px 14px 0 0; padding: 18px 18px 22px; animation: crb-up 0.3s cubic-bezier(0.25, 0.8, 0.3, 1); color: #1a252f; }
@keyframes crb-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.crb__sheet h3 { margin: 0 0 8px; color: var(--crb-navy); font-size: 1.1rem; }
.crb__sheet p { margin: 0 0 14px; font-size: 14px; }
.crb__close { background: var(--crb-navy); color: #fff; border: 0; border-radius: 8px; padding: 9px 16px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.crb__gh { font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--crb-mute); font-weight: 600; margin: 12px 0 6px; }
.crb__opt { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 1px solid var(--crb-line); border-radius: 10px; background: #fff; padding: 9px 12px; margin: 0 0 6px;
  font: inherit; cursor: pointer; color: inherit; }
.crb__opt b { display: block; color: var(--crb-navy); font-size: 15px; }
.crb__opt small { color: var(--crb-mute); font-size: 12.5px; }
.crb__opt.is-on { border-color: var(--crb-orange); background: #fdf0e1; }
.crb__ck { margin-left: auto; color: var(--crb-orange); font-weight: 700; }
.crb__chip-d { display: inline-block; border: 1px solid var(--crb-navy); color: var(--crb-navy); border-radius: 99px; padding: 1px 10px; font-size: 13px; margin: 0 6px 6px 0; }
.crb__live { position: absolute; left: -9999px; }

.crb button:focus-visible { outline: 3px solid var(--crb-orange); outline-offset: 2px; }
.crb__sheet button:focus-visible { outline: 3px solid var(--crb-orange); outline-offset: 2px; }

@media (min-width: 820px) {
  .crb__card { height: 172px; font-size: 14px; }
  .crb__map { aspect-ratio: 16 / 9; }
}
@media (prefers-reduced-motion: reduce) { .crb *, .crb__sheet { transition: none !important; animation: none !important; } }

/* Phones and small tablets only: while a Cruising Routes box is open and on screen, the Message, WhatsApp and Share tabs
   and Back to top slide away (like during Back to top); Menu stays. On wide screens there is room, so nothing moves. */
@media (max-width: 819px) {
  html.js.crb-focus .contact-drawer.contact-drawer,
  html.js.crb-focus .drawer--share:not([open]),
  html.js.crb-focus .to-top.to-top { transform: translateX(calc(100% + 1rem)); visibility: hidden; }
}
