/* ZenTourCalendar — styles. Colours read --ztc-* tokens with HF defaults, so the
   component drops into the live (light) site as-is and themes in the prototype. */
.ztc { color: var(--ztc-fg, #000); }
.ztc *, .ztc *::before, .ztc *::after, .ztc-pop, .ztc-pop * { box-sizing: border-box; }
.ztc button, .ztc select, .ztc-pop button { font: inherit; color: inherit; }
.ztc :focus-visible, .ztc-pop :focus-visible { outline: 2px solid var(--ztc-fg, #000); outline-offset: 2px; }
.ztc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ztc-f-guided  { --f: var(--ztc-f-guided,  #6b752f); }
.ztc-f-gentle  { --f: var(--ztc-f-gentle,  #2f7f72); }
.ztc-f-self    { --f: var(--ztc-f-self,    #3b6690); }
.ztc-f-special { --f: var(--ztc-f-special, #a8661a); }
.ztc-f-festive { --f: var(--ztc-f-festive, #a0334a); }
.ztc-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--f); }

/* toolbar */
.ztc-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 16px; }
.ztc-nav { display: flex; align-items: center; gap: 6px; }
.ztc-step { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--ztc-line, #d9d9d9); background: var(--ztc-bg, #fff); cursor: pointer; }
.ztc-step:hover:not(:disabled) { border-color: var(--ztc-fg, #000); }
.ztc-step:disabled { opacity: .35; cursor: default; }
.ztc-month { height: 42px; min-width: 11.5rem; padding: 0 12px; border: 1px solid var(--ztc-line, #d9d9d9); border-radius: 0; background: var(--ztc-bg, #fff); font-weight: 700; font-size: 1.05rem; cursor: pointer; }
.ztc-views { display: inline-flex; border: 1px solid var(--ztc-accent, #6b752f); }
.ztc-views button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; background: transparent; font-weight: 600; cursor: pointer; }
.ztc-views button[aria-pressed="true"] { background: var(--ztc-accent, #6b752f); color: var(--ztc-accent-ink, #fff); }

/* filters */
.ztc-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.ztc-filters-label { font-size: .875rem; font-weight: 600; }
.ztc-filter { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--ztc-line, #d9d9d9); background: var(--ztc-bg, #fff); font-size: .875rem; cursor: pointer; }
.ztc-filter:hover { border-color: var(--f); }
.ztc-filter[aria-checked="false"] { color: var(--ztc-muted, #62665a); }
/* checkbox in the holiday type's colour: filled with a tick when that type is shown */
.ztc-check { position: relative; flex: none; width: 16px; height: 16px; border: 2px solid var(--f); background: var(--f); }
.ztc-check::after { content: ""; position: absolute; left: 3.5px; top: 0; width: 5px; height: 9px; border: solid var(--ztc-bar-ink, #fff); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ztc-filter[aria-checked="false"] .ztc-check { background: var(--ztc-bg, #fff); }
.ztc-filter[aria-checked="false"] .ztc-check::after { display: none; }
.ztc-count { color: var(--ztc-muted, #62665a); font-weight: 600; }
/* no holidays of this type in the month shown: greyed, tick state kept */
.ztc-filter.ztc-filter-none { --f: var(--ztc-empty, #b5b5ad); color: var(--ztc-muted, #62665a); background: var(--ztc-surface, #f7f7f3); }
.ztc-summary { margin: 0 0 12px; color: var(--ztc-muted, #62665a); font-size: .9rem; }
.ztc-note { margin: 12px 0 0; color: var(--ztc-muted, #62665a); font-size: .82rem; line-height: 1.5; }
.ztc-link { color: var(--ztc-accent-text, #6b752f); font-weight: 600; }
.ztc-status, .ztc-empty { padding: 32px 16px; border: 1px dashed var(--ztc-line, #d9d9d9); text-align: center; color: var(--ztc-muted, #62665a); }
.ztc-status p, .ztc-empty p { margin: 0 0 12px; }
.ztc-btn { padding: 10px 18px; border: 0; background: var(--ztc-accent, #6b752f); color: var(--ztc-accent-ink, #fff) !important; font-weight: 700; cursor: pointer; }

/* timeline (gantt) */
.ztc-tl { --name-w: 16.5rem; --col: 27px; border: 1px solid var(--ztc-line, #d9d9d9); background: var(--ztc-bg, #fff); }
.ztc-tl-scroll { overflow-x: auto; }
.ztc-tl-inner { position: relative; min-width: calc(var(--name-w) + var(--days) * var(--col)); }
.ztc-tl-grid { position: absolute; inset: 0 0 0 var(--name-w); display: grid; grid-template-columns: repeat(var(--days), 1fr); pointer-events: none; }
.ztc-tl-grid span { border-left: 1px solid var(--ztc-line-soft, #ececec); }
.ztc-tl-grid .we, .ztc-tl-days .we { background: var(--ztc-surface, #f7f7f3); }
.ztc-tl-grid .td { background: var(--ztc-today, #eef1d9); }
.ztc-tl-grid .pad { background: var(--ztc-surface, #f7f7f3); }
/* days before today: hatched grey, with muted dates in the header */
.ztc-tl-grid .past { background: repeating-linear-gradient(135deg, var(--ztc-surface, #f7f7f3) 0 4px, var(--ztc-line-soft, #ececec) 4px 5px); }
.ztc-tl-days .past { opacity: .45; }
.ztc-tl-grid .edge { border-left: 2px solid var(--ztc-line, #d9d9d9); }
.ztc-tl-days .pad { opacity: .6; }
.ztc-tl-head, .ztc-tl-row { position: relative; display: grid; grid-template-columns: var(--name-w) 1fr; }
.ztc-tl-head { border-bottom: 1px solid var(--ztc-line, #d9d9d9); }
.ztc-tl-corner, .ztc-tl-name { position: sticky; left: 0; z-index: 2; background: var(--ztc-bg, #fff); border-right: 1px solid var(--ztc-line, #d9d9d9); }
.ztc-tl-corner { display: flex; align-items: flex-end; padding: 8px 12px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ztc-muted, #62665a); }
.ztc-tl-days { display: grid; grid-template-columns: repeat(var(--days), 1fr); }
.ztc-tl-days span { display: flex; flex-direction: column; align-items: center; padding: 6px 0; font-size: .72rem; line-height: 1.25; color: var(--ztc-muted, #62665a); }
.ztc-tl-days b { color: var(--ztc-fg, #000); font-size: .8rem; }
.ztc-tl-days .td b { background: var(--ztc-accent, #6b752f); color: var(--ztc-accent-ink, #fff); padding: 0 4px; }
.ztc-tl-group { position: relative; z-index: 1; background: var(--ztc-bg, #fff); border-top: 1px solid var(--ztc-line, #d9d9d9); }
.ztc-tl-glabel { position: sticky; left: 0; display: inline-flex; align-items: center; gap: 8px; padding: 14px 12px 6px; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ztc-tl-row { min-height: max(52px, calc(var(--lanes, 1) * 30px + 16px)); border-top: 1px solid var(--ztc-line-soft, #ececec); }
.ztc-tl-name { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 8px 12px; min-width: 0; }
.ztc-tl-name a { color: inherit; font-weight: 600; font-size: .9rem; line-height: 1.25; text-decoration: none; }
.ztc-tl-name a:hover { color: var(--ztc-accent-text, #6b752f); text-decoration: underline; }
.ztc-tl-name small { font-size: .78rem; color: var(--ztc-muted, #62665a); }
.ztc-tl-track { position: relative; }
.ztc-bar { position: absolute; top: calc(50% + (var(--lane, 0) - (var(--lanes, 1) - 1) / 2) * 30px); height: 26px; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 0; border-radius: 13px; background: var(--f); color: var(--ztc-bar-ink, #fff) !important; font-size: .7rem; font-weight: 700; white-space: nowrap; overflow: hidden; cursor: pointer; transition: filter .12s; }
.ztc-bar span { overflow: hidden; text-overflow: ellipsis; }
.ztc-bar:hover, .ztc-bar[aria-expanded="true"] { filter: brightness(1.12) saturate(1.1); }
.ztc-bar.ztc-cl { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.ztc-bar.ztc-cr { border-top-right-radius: 0; border-bottom-right-radius: 0; }

/* month calendar */
.ztc-cal { border: 1px solid var(--ztc-line, #d9d9d9); background: var(--ztc-bg, #fff); }
.ztc-cal-head, .ztc-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.ztc-cal-head span { padding: 8px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ztc-muted, #62665a); border-bottom: 1px solid var(--ztc-line, #d9d9d9); }
.ztc-cell { position: relative; display: flex; flex-direction: column; gap: 3px; min-width: 0; min-height: 8rem; padding: 6px; border-right: 1px solid var(--ztc-line-soft, #ececec); border-bottom: 1px solid var(--ztc-line-soft, #ececec); }
.ztc-cell:nth-child(7n) { border-right: 0; }
.ztc-cell.out { background: var(--ztc-surface, #f7f7f3); color: var(--ztc-muted, #62665a); }
.ztc-daynum { align-self: flex-start; font-size: .82rem; font-weight: 700; padding: 0 4px; }
.ztc-cell.today .ztc-daynum { background: var(--ztc-accent, #6b752f); color: var(--ztc-accent-ink, #fff); }
.ztc-chip { display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; padding: 3px 6px; border: 0; background: color-mix(in srgb, var(--f) 13%, transparent); font-size: .74rem; line-height: 1.3; text-align: left; cursor: pointer; }
.ztc-chip:hover { background: color-mix(in srgb, var(--f) 24%, transparent); }
.ztc-chip .ztc-dot { width: 8px; height: 8px; }
.ztc-n { flex: none; min-width: 1.9em; padding: 0 3px; background: var(--f); color: var(--ztc-bar-ink, #fff); font-size: .68rem; font-weight: 800; text-align: center; }
.ztc-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ztc-more { align-self: flex-start; padding: 2px 6px; border: 0; background: none; font-size: .74rem; font-weight: 700; color: var(--ztc-accent-text, #6b752f) !important; text-decoration: underline; cursor: pointer; }
.ztc-dots, .ztc-cell-open { display: none; }
/* calendar stays: each holiday keeps one lane from its arrival chip to departure */
.ztc-lane { flex: none; height: 22px; }
.ztc-chip { position: relative; transition: opacity .15s; }
.ztc-chip::after { content: ""; position: absolute; left: 100%; top: 50%; width: 7px; height: 5px; margin-top: -2.5px; background: color-mix(in srgb, var(--f) 55%, transparent); }
.ztc-seg { position: relative; display: block; margin: 0 -7px 0 -6px; padding: 0; border: 0; background: transparent; cursor: pointer; transition: opacity .15s; }
.ztc-seg::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 5px; margin-top: -2.5px; background: color-mix(in srgb, var(--f) 55%, transparent); }
.ztc-seg.end::before { right: 55%; border-radius: 0 3px 3px 0; }
.ztc-seg:hover::before, .ztc-seg.is-hl::before, .ztc-chip.is-hl::after { background: var(--f); }
.ztc-chip.is-hl { background: color-mix(in srgb, var(--f) 24%, transparent); }
.ztc-cal.ztc-hl .ztc-lane[data-h]:not(.is-hl) { opacity: .25; }

/* popover */
.ztc-pop { position: fixed; z-index: 1050; width: min(23rem, calc(100vw - 24px)); max-height: min(34rem, calc(100vh - 24px)); overflow: auto; padding: 16px; background: var(--ztc-bg, #fff); color: var(--ztc-fg, #000); border: 1px solid var(--ztc-line, #d9d9d9); box-shadow: 0 16px 40px rgba(0, 0, 0, .22); font-size: .92rem; line-height: 1.45; }
.ztc-pop.ztc-sheet { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 82vh; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); border-width: 1px 0 0; }
.ztc-pop-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ztc-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ztc-close { flex: none; width: 32px; height: 32px; margin: -6px -6px 0 0; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; }
.ztc-pop-img { display: block; width: 100%; max-width: 100%; aspect-ratio: 5 / 2; object-fit: cover; margin-bottom: 12px; }
.ztc-pop-title { margin: 0 0 12px; font-size: 1.15rem; font-weight: 700; line-height: 1.25; text-wrap: balance; }
.ztc-pop-title:focus { outline: none; }
.ztc-pop-head .ztc-pop-title { margin: 0; }
.ztc-facts { display: grid; gap: 6px; margin: 0 0 12px; }
.ztc-facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 8px; }
.ztc-facts dt { color: var(--ztc-muted, #62665a); font-size: .82rem; }
.ztc-facts dd { margin: 0; font-weight: 600; }
.ztc-pop-foot { position: sticky; bottom: -16px; margin: 12px -16px -16px; padding: 10px 16px 16px; background: var(--ztc-bg, #fff); border-top: 1px solid var(--ztc-line-soft, #ececec); }
.ztc-pop.ztc-sheet .ztc-pop-foot { bottom: calc(-16px - env(safe-area-inset-bottom, 0px)); margin-bottom: calc(-16px - env(safe-area-inset-bottom, 0px)); padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.ztc-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 10px; }
.ztc-price strong { font-size: 1.25rem; }
.ztc-price span { color: var(--ztc-muted, #62665a); font-size: .85rem; }
.ztc-intro { margin: 0 0 10px; color: var(--ztc-muted, #62665a); font-size: .86rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ztc-promos { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.ztc-promos li { padding: 2px 8px; border: 1px solid var(--ztc-accent, #6b752f); color: var(--ztc-accent-text, #6b752f); font-size: .74rem; font-weight: 700; }
.ztc-others { margin: 0 0 4px; font-size: .84rem; }
.ztc-cta { display: block; padding: 12px; background: var(--ztc-accent, #6b752f); color: var(--ztc-accent-ink, #fff) !important; font-weight: 700; text-align: center; text-decoration: none; }
.ztc-cta:hover { filter: brightness(1.1); }
.ztc-daylist { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ztc-daylist button { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 10px 8px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.ztc-daylist button:hover { background: color-mix(in srgb, var(--f) 12%, transparent); }
.ztc-daylist .ztc-dot { margin-top: 5px; }
.ztc-daylist b { display: block; font-weight: 600; line-height: 1.3; }
.ztc-daylist small { display: block; color: var(--ztc-muted, #62665a); font-size: .8rem; }

@media (max-width: 640px) {
  .ztc-toolbar { align-items: stretch; }
  .ztc-nav { flex: 1 1 100%; }
  .ztc-month { flex: 1; min-width: 0; }
  .ztc-views { flex: 1 1 100%; }
  .ztc-views button { flex: 1; justify-content: center; }
  .ztc-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .ztc-filter { flex: none; }
  .ztc-tl { --name-w: 9.5rem; --col: 28px; }
  .ztc-tl-name a { font-size: .82rem; }
  .ztc-cal-head span { padding: 6px 0; text-align: center; font-size: .66rem; letter-spacing: .04em; }
  .ztc-cell { min-height: 4.5rem; padding: 4px; }
  .ztc-lane, .ztc-more { display: none; }
  .ztc-dots { display: flex; flex-wrap: wrap; gap: 3px; padding: 0 2px; }
  .ztc-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--f); }
  .ztc-cell-open { display: block; position: absolute; inset: 0; border: 0; background: transparent; cursor: pointer; }
}
@media (prefers-reduced-motion: reduce) { .ztc-bar, .ztc-chip, .ztc-seg { transition: none; } }
