/* JimGO Taxis: castle and day trips page. Surfaces square, buttons pill. */

/* castle line drawings (opener picker and filmstrip) */
.cl { fill: none; stroke: rgba(251, 229, 193, .86); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cl-a { stroke: var(--amber); }
.cl-g { stroke: rgba(251, 229, 193, .3); }

/* ---------- opener device: the castle picker ---------- */
.cp { padding: 0; }
.cp-stage { position: relative; height: clamp(140px, 23vh, 214px); overflow: hidden; background: radial-gradient(70% 90% at 60% 100%, rgba(232, 169, 65, .14), transparent 70%), linear-gradient(180deg, #121110, #1B1A17); border-bottom: 1px solid rgba(251, 229, 193, .08); }
.cp-stage::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(251, 229, 193, .035) 0 1px, transparent 1px 22px), repeating-linear-gradient(90deg, rgba(251, 229, 193, .035) 0 1px, transparent 1px 22px); pointer-events: none; }
.cp-svg { position: absolute; left: 22%; top: 10px; bottom: 0; width: calc(78% - 8px); height: calc(100% - 10px); }
.cp-g { visibility: hidden; }
.cp-g.is-on { visibility: visible; }
.cp-count { position: absolute; left: 20px; top: 16px; display: grid; gap: 2px; color: var(--fog); font-size: .9rem; line-height: 1.2; }
.cp-count b { font: 840 clamp(2.6rem, 4.4vw, 3.6rem)/.9 var(--display); font-stretch: 74%; color: var(--amber); font-variant-numeric: tabular-nums; }
.cp-text { margin: 0; padding: 14px 20px 12px; min-height: 5.6em; overflow: clip; }
.cp-text b { display: block; color: var(--cream); font: 760 1.35rem/1.15 var(--display); font-stretch: 90%; margin-bottom: 3px; }
.cp-text span { display: block; color: var(--text); font-size: .96rem; line-height: 1.45; }
.cp-timer { height: 2px; margin: 0 20px; background: rgba(251, 229, 193, .1); overflow: hidden; }
.cp-timer i { display: block; height: 100%; background: var(--amber); transform-origin: 0 50%; transform: scaleX(0); }
.cp-rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 8px 12px 12px; }
.cp-btn { position: relative; min-height: 44px; padding: 0 4px; background: none; border: 0; color: var(--fog); font: 500 .92rem/1.1 var(--body); cursor: pointer; transition: color .3s; white-space: nowrap; }
.cp-btn::after { content: ''; position: absolute; left: 22%; right: 22%; bottom: 6px; height: 2px; background: var(--amber); transform: scaleX(0); transition: transform .45s var(--ease); }
.cp-btn:hover { color: var(--cream); }
.cp-btn.is-on { color: var(--amber); font-weight: 600; }
.cp-btn.is-on::after { transform: scaleX(1); }
.cp-btn:focus-visible { outline-offset: -3px; }

/* ---------- set piece: the castle filmstrip. A grid by default; .is-live pins it and runs it sideways ---------- */
.cf { position: relative; overflow: clip; padding-block: clamp(80px, 11vh, 140px); background: radial-gradient(90% 70% at 80% 10%, #2A2824 0%, #1F1E1B 45%, var(--tarmac) 85%); }
.cf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(26px, 4vh, 44px); }
.cf-head .h2 { flex: 1 1 auto; }
.cf-meta { display: none; flex: none; align-items: center; gap: 18px; }
.cf-count { display: flex; align-items: baseline; gap: 6px; color: var(--fog); font: 700 1.2rem/1 var(--display); font-stretch: 86%; }
.cf-count b { font-size: 2.6rem; color: var(--amber); font-variant-numeric: tabular-nums; min-width: 1.1em; text-align: right; }
.cf-bar { position: relative; width: 180px; height: 3px; background: rgba(251, 229, 193, .14); overflow: hidden; }
.cf-bar i { position: absolute; inset: 0; background: var(--amber); transform-origin: 0 50%; transform: scaleX(.1); }
.cf-strip { position: relative; }
.cf-track { list-style: none; margin: 0 auto; padding: 0; width: min(1320px, 100% - 2 * var(--gut)); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.cf-panel { position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--asphalt); border-top: 3px solid var(--amber); box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .9); overflow: hidden; }
.cf-art { position: relative; container-type: inline-size; aspect-ratio: 400 / 220; overflow: hidden; background: radial-gradient(70% 70% at 60% 100%, rgba(232, 169, 65, .12), transparent 70%), linear-gradient(180deg, #1E1D1A, #171614); }
.cf-art::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(251, 229, 193, .03) 0 1px, transparent 1px 28px), repeating-linear-gradient(90deg, rgba(251, 229, 193, .03) 0 1px, transparent 1px 28px); pointer-events: none; }
.cf-word { position: absolute; left: 5%; top: 6%; font: 860 min(clamp(3rem, 6vw, 6.4rem), calc(175cqi / var(--len, 8)))/.9 var(--display); font-stretch: 70%; color: transparent; -webkit-text-stroke: 1.5px rgba(251, 229, 193, .13); white-space: nowrap; pointer-events: none; will-change: transform; }
.cf-glow { position: absolute; left: 10%; bottom: -20%; width: 60%; height: 70%; border-radius: 50%; background: radial-gradient(closest-side, rgba(232, 169, 65, .2), transparent); pointer-events: none; will-change: transform; }
.cf-svg { position: absolute; left: 5%; right: 5%; bottom: 0; width: 90%; height: 92%; }
.cf-body { padding: clamp(20px, 2.6vw, 36px); display: flex; flex-direction: column; justify-content: center; }
.cf-body .h3 { font-size: clamp(1.55rem, 2.2vw, 2.1rem); margin-bottom: .35em; }
.cf-body p { color: var(--text); margin-bottom: 14px; }
.cf-pick { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(251, 229, 193, .12); border-bottom: 1px solid rgba(251, 229, 193, .12); }
.cf-pick .ic { width: 22px; height: 22px; margin-top: 2px; color: var(--amber); }
.cf-pick b { display: block; color: var(--cream); font-weight: 600; }
.cf-body p.cf-pick { color: var(--fog); }

/* live: pinned, the strip runs sideways like film through a projector */
.cf.is-live { height: 100svh; min-height: 600px; padding: calc(var(--head-h) * .7) 0 0; display: flex; flex-direction: column; justify-content: center; }
.cf.is-live .cf-meta { display: flex; }
.cf.is-live .cf-strip { padding-block: 26px; background: #121110; overflow-x: clip; }
.cf.is-live .cf-strip::before, .cf.is-live .cf-strip::after { content: ''; position: absolute; left: 0; right: 0; height: 12px; background: repeating-linear-gradient(90deg, transparent 0 14px, rgba(251, 229, 193, .16) 14px 30px, transparent 30px 44px); background-size: 44px 12px; animation: cf-sprocket 2.4s linear infinite; }
.cf.is-live .cf-strip::before { top: 7px; }
.cf.is-live .cf-strip::after { bottom: 7px; animation-direction: reverse; }
@keyframes cf-sprocket { to { background-position: 44px 0; } }
.cf.is-live .cf-track { display: flex; width: max-content; gap: 18px; margin: 0; padding-inline: max(var(--gut), (100vw - 1320px) / 2); will-change: transform; }
.cf.is-live .cf-panel { flex: none; width: min(1040px, 78vw); height: min(60svh, 560px); grid-template-rows: none; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); border-top: 0; border-left: 3px solid var(--amber); }
.cf.is-live .cf-art { aspect-ratio: auto; height: 100%; }
.cf.is-live .cf-svg { height: 74%; bottom: 5%; }
.cf.is-live .cf-word { font-size: min(clamp(4rem, 9.4vw, 10rem), calc(175cqi / var(--len, 8))); top: 5%; }

/* ---------- plan your day out (paper band) ---------- */
.cplan { overflow: clip; isolation: isolate; }
.cplan::before { content: ''; position: absolute; right: -25vw; top: -30%; width: 90vw; height: 160%; z-index: -1; pointer-events: none; background: repeating-radial-gradient(ellipse at 60% 40%, rgba(29, 28, 26, .05) 0 2px, transparent 2px 44px); animation: cplan-rings 26s ease-in-out infinite alternate; }
@keyframes cplan-rings { to { transform: translate(-6vw, 4vh) scale(1.12); } }
.cplan-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.cplan .lede { color: var(--ink); margin: 18px 0 6px; }
.cplan-steps { list-style: none; margin: 18px 0 26px; padding: 0; counter-reset: st; position: relative; }
.cplan-steps::before { content: ''; position: absolute; left: 21px; top: 30px; bottom: 30px; width: 2px; background: rgba(29, 28, 26, .14); }
.cplan-steps::after { content: ''; position: absolute; left: 21px; top: 30px; bottom: 30px; width: 2px; background: var(--ink); transform-origin: 50% 0; transform: scaleY(var(--grow, 1)); }
.cplan-steps li { position: relative; z-index: 1; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 18px; padding: 10px 0; counter-increment: st; }
.cplan-steps li::before { content: counter(st); grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; background: var(--amber); color: var(--ink); font: 840 1.3rem/1 var(--display); font-stretch: 80%; }
.cplan-steps h3 { font-size: clamp(1.15rem, 1.4vw, 1.35rem); line-height: 1.2; font-weight: 740; font-stretch: 92%; margin-top: 2px; }
.cplan-steps p { margin: 0; color: #4A453D; }
.cplan-lbl { font-weight: 600; margin: 0 0 10px; }
.cplan-towns { display: flex; flex-wrap: wrap; gap: 8px; }
.cplan-towns a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 2px solid rgba(29, 28, 26, .2); color: var(--ink); font-weight: 500; font-size: .96rem; text-decoration: none; transition: background-color .3s, color .3s, border-color .3s; }
.cplan-towns a:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.cplan-visual { position: relative; padding-bottom: 40px; }
.cplan-photo { position: relative; margin: 0; width: 100%; height: min(64vh, 560px); overflow: hidden; background: var(--asphalt); }
.cplan-photo img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 40%; }
.cplan-photo figcaption { position: absolute; right: 0; top: 0; padding: 10px 16px; background: rgba(18, 17, 16, .86); color: var(--text); font-size: .9rem; border-left: 3px solid var(--amber); }
.ticket { position: absolute; left: clamp(-56px, -3vw, -24px); bottom: 0; width: min(500px, 84%); padding: 22px 24px 24px; background: #FFFDF8; color: var(--ink); box-shadow: 0 40px 60px -30px rgba(0, 0, 0, .55), 0 2px 0 rgba(29, 28, 26, .08); -webkit-mask: radial-gradient(circle 11px at 0 56px, transparent 10px, #000 11px) 0 0 / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 56px, transparent 10px, #000 11px) 100% 0 / 51% 100% no-repeat; mask: radial-gradient(circle 11px at 0 56px, transparent 10px, #000 11px) 0 0 / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 56px, transparent 10px, #000 11px) 100% 0 / 51% 100% no-repeat; }
.tk-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; padding-bottom: 14px; border-bottom: 2px dashed rgba(29, 28, 26, .22); }
.tk-head b { font: 820 1.5rem/1 var(--display); font-stretch: 82%; }
.tk-head span { color: #5C564C; font-size: .92rem; }
.tk-route { display: grid; grid-template-columns: auto minmax(40px, 1fr) auto; align-items: center; gap: 10px; margin-bottom: 14px; }
.tk-route svg { width: 100%; height: 40px; overflow: visible; }
.tk-line { fill: none; stroke: var(--amber); stroke-width: 3; stroke-linecap: round; }
.tk-end { display: grid; line-height: 1.15; }
.tk-end.is-to { text-align: right; }
.tk-end small { color: #6A6255; font-size: .875rem; }
.tk-end b { font: 760 1.05rem/1.15 var(--display); font-stretch: 90%; }
.tk-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.tk-fields .tk-date { grid-column: 1 / -1; }
.ticket .field label { font-size: .9rem; }
.ticket .field select, .ticket .field input { min-height: 48px; padding-block: 8px; font-size: .98rem; }
.tk-note { margin: 12px 0 14px; color: #4A453D; font-size: .95rem; min-height: 1.5em; }
.ticket .btn { width: 100%; }

@media (prefers-reduced-motion: reduce) { .cf.is-live .cf-strip::before, .cf.is-live .cf-strip::after, .cplan::before { animation: none; } }

@media (max-width: 1080px) {
  .cplan-in { grid-template-columns: 1fr; }
  .ticket { left: 0; }
}
@media (max-width: 960px) {
  .cp-svg { left: 34%; width: calc(66% - 12px); }
}
@media (max-width: 760px) {
  .cp-count b { font-size: 2.4rem; }
  .cp-text { padding: 10px 14px 8px; min-height: 0; }
  .cp-text b { font-size: 1.15rem; }
  .cp-text span { font-size: .9rem; min-height: 2.9em; }
  .cp-timer { margin: 0 14px; }
  .page-castle .so-media { height: clamp(520px, 76svh, 660px); }
  .cp-stage { height: 104px; }
  .cp-rail { display: flex; flex-wrap: wrap; justify-content: center; padding: 2px 6px 8px; }
  .cp-btn { flex: none; padding: 0 9px; font-size: .9rem; }
  .cp-btn::after { left: 9px; right: 9px; }
  .cf-track { grid-template-columns: 1fr; }
  .cf.is-live .cf-panel { width: 84vw; height: min(64svh, 580px); grid-template-columns: none; grid-template-rows: 40% minmax(0, 1fr); }
  .cf.is-live .cf-svg { height: 84%; bottom: 4%; }
  .cf.is-live .cf-word { font-size: min(3.6rem, calc(175cqi / var(--len, 8))); }
  .cf-head .h2 { font-size: 1.9rem; }
  .cf-head { flex-wrap: wrap; align-items: center; row-gap: 6px; }
  .cf-head .h2 { flex-basis: 100%; }
  .cf-bar { width: 140px; }
  .cf-count b { font-size: 2rem; }
  .cf-body { padding: 16px 18px 18px; justify-content: flex-start; }
  .cf-body .h3 { font-size: 1.45rem; }
  .cf-body p { font-size: .98rem; margin-bottom: 10px; }
  .cf-pick { padding: 8px 0; }
  .cplan-photo { width: 100%; height: 380px; }
  .cplan-visual { padding-bottom: 0; }
  .ticket { position: relative; left: auto; width: auto; margin: -70px 10px 0; }
  .tk-fields { grid-template-columns: 1fr; }
}
