/* caverotourism.com/example only: Cavero Tourism's own bar above the example site, and
   its notes (notes.js). In Cavero Tourism's colours and type (006 site/site.css), so they
   read as our notes and not part of the example's design. The fonts are Cavero Tourism's
   own files on its site; the example's fonts are the fallback. */
@font-face { font-family: "CX Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/instrument-serif.woff2") format("woff2"); }
@font-face { font-family: "CX Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/fonts/inter-latin.woff2") format("woff2"); }

:root {
  --cx-deep: #0e3a3d;
  --cx-foot: #082426;
  --cx-accent: #c4552f;
  --cx-light: #e9efee;
  --cx-serif: "CX Serif", Georgia, "Times New Roman", serif;
  --cx-body: "CX Inter", "Inter Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---- the bar ---- */
.cx-bar {
  position: relative;
  z-index: 61;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 4px max(16px, env(safe-area-inset-right)) 4px max(16px, env(safe-area-inset-left));
  background: var(--cx-deep);
  color: var(--cx-light);
  font: 500 0.8125rem/1.2 var(--cx-body);
  white-space: nowrap;
}
.cx-bar p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cx-bar__go {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}
.cx-bar__back {
  color: var(--cx-light);
  text-decoration: underline;
  text-decoration-color: rgba(233, 239, 238, 0.4);
  text-underline-offset: 3px;
}
.cx-bar__back:hover {
  text-decoration-color: currentColor;
}
.cx-bar__enq {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--cx-accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.cx-bar__enq:hover {
  background: #a9471f;
}
.cx-bar a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.cx-short {
  display: none;
}
@media (max-width: 599px) {
  .cx-long {
    display: none;
  }
  .cx-short {
    display: inline;
  }
  .cx-bar {
    font-size: 0.75rem;
  }
  .cx-bar__go {
    gap: 10px;
  }
  .cx-bar__enq {
    padding: 5px 11px;
  }
}

/* ---- the notes ---- */
.cx-notes {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  z-index: 50;
}
.cx-note {
  box-sizing: border-box;
  position: relative;
  margin: 0;
  padding: 15px 18px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #13464a 0%, var(--cx-deep) 46%);
  color: var(--cx-light);
  /* It pops out of the screen: a soft wide shadow, a tighter one, and a lighter top edge. */
  box-shadow:
    0 34px 70px -22px rgba(0, 0, 0, 0.62),
    0 12px 24px -10px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 0 1px rgba(233, 239, 238, 0.1);
  font-family: var(--cx-body);
  text-align: left;
  opacity: 0;
  transform: translateY(14px) scale(0.92);
  transition:
    opacity 300ms ease,
    transform 450ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 250ms ease;
}
.cx-note.is-in {
  opacity: 1;
  transform: none;
}
@media (hover: hover) and (pointer: fine) {
  .cx-note--float.is-in:hover,
  .cx-note--flow.is-in:hover {
    transform: translateY(-3px);
    transition: transform 250ms ease, box-shadow 250ms ease;
    box-shadow:
      0 42px 80px -22px rgba(0, 0, 0, 0.66),
      0 16px 28px -10px rgba(0, 0, 0, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      0 0 0 1px rgba(233, 239, 238, 0.14);
  }
}
.cx-note.is-still {
  transition: none;
}
.cx-note__title {
  margin: 0 0 4px;
  font: 400 1.3rem/1.15 var(--cx-serif);
  color: #fff;
}
.cx-note__line {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--cx-light);
}

/* The arrow: a hand-drawn curve and head (notes.js draws its path in the note's own
   coordinates). It draws itself in just after the note pops. */
.cx-arrow {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: visible;
  color: var(--cx-accent);
  pointer-events: none;
}
.cx-arrow path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cx-arrow__line {
  stroke-dasharray: var(--len, 200);
  stroke-dashoffset: var(--len, 200);
  transition: stroke-dashoffset 520ms cubic-bezier(0.45, 0, 0.25, 1) 300ms;
}
.cx-arrow__head {
  opacity: 0;
  transition: opacity 160ms ease 760ms;
}
.cx-note.is-in .cx-arrow__line {
  stroke-dashoffset: 0;
}
.cx-note.is-in .cx-arrow__head {
  opacity: 1;
}
.cx-note.is-drawn .cx-arrow__line {
  stroke-dasharray: none;
  stroke-dashoffset: 0;
}
.cx-note.is-drawn .cx-arrow__head {
  opacity: 1;
}
.cx-note.is-still .cx-arrow__line,
.cx-note.is-still .cx-arrow__head {
  transition: none;
}

/* Floating beside its part (from 700px wide). */
.cx-note--float {
  position: absolute;
  width: 280px;
}

/* In the page's flow (phones, or when no floating spot is clear): a little left of centre,
   so the arrow has room to curve across to the part. */
.cx-note--flow {
  width: 100%;
  max-width: 520px;
  margin: 32px auto 32px max(0px, calc(50% - 330px));
}
.cx-note--flow.cx-note--up {
  margin-top: 78px;
}
.cx-note--flow.cx-note--down {
  margin-bottom: 78px;
}
.cx-note-wrap {
  display: block;
}
@media (max-width: 699px) {
  .cx-note--flow {
    width: 86%;
    max-width: none;
    margin-left: 0;
    margin-right: auto;
  }
  /* The note under the hero sits on the page's ground, inside its side gutters. */
  .vhero + [data-cx-flow] {
    margin: 78px var(--gutter, 16px) 8px;
    width: calc(86% - 2 * var(--gutter, 16px));
  }
}

/* The chat note: fixed beside and above the chat bubble once the page has scrolled. */
.cx-note--chat {
  position: fixed;
  right: max(72px, calc(env(safe-area-inset-right) + 72px));
  bottom: 96px;
  z-index: 69;
  width: min(290px, calc(100vw - 92px));
  padding-right: 34px;
  pointer-events: none;
  visibility: hidden;
}
.cx-note--chat.is-in {
  visibility: visible;
}
.cx-note__close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--cx-light);
  font: 400 1.25rem/1 var(--cx-body);
  cursor: pointer;
  pointer-events: auto;
}
.cx-note__close:hover,
.cx-note__close:focus-visible {
  background: rgba(233, 239, 238, 0.14);
  outline: none;
}

/* notes.js measures the page with the reveal animations' offsets taken off. */
.cx-measure [data-r],
.cx-measure [data-r] * {
  transform: none !important;
}
.cx-still [data-r],
.cx-still [data-r] * {
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .cx-note,
  .cx-note .cx-arrow__line,
  .cx-note .cx-arrow__head {
    transition: none;
  }
  .cx-note {
    transform: none;
  }
}

/* ---- the swap note: four buttons that swap the pick section in place ---- */
.cx-swap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.cx-swap button {
  min-height: 40px;
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(233, 239, 238, 0.35);
  color: var(--cx-light);
  font: 600 0.8125rem/1.1 var(--cx-body);
  cursor: pointer;
  transition: background-color 200ms, box-shadow 200ms, color 200ms;
}
.cx-swap button:hover {
  box-shadow: inset 0 0 0 1.5px var(--cx-light);
}
.cx-swap button[aria-pressed='true'] {
  background: var(--cx-accent);
  box-shadow: none;
  color: #fff;
}
.cx-swap button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
@media (max-width: 599px) {
  .cx-swap {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
.pick-swap {
  transition: opacity 180ms ease;
}
.pick-swap.is-fading {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .pick-swap,
  .cx-swap button {
    transition: none;
  }
}
/* The swap note's arrow reaches into the section's own top space, not a gap of its own. */
.cx-note--swap.cx-note--flow {
  margin-left: auto;
  margin-bottom: 64px;
}
.cx-note-wrap:has(.cx-note--swap) {
  position: relative;
  z-index: 2;
}
