/* Tours page and single tour (FLO-961). Built from docs/design/pages.css.
   Everything sits under .stc-tours so WooCommerce's own .price, .form and .empty rules cannot reach it.
   Tokens come from theme.json through the --st-* aliases in style.css. */

.stc-tours {
	--ink: var(--wp--preset--color--ink);
	--ink-2: var(--wp--preset--color--ink-2);
	--ink-3: var(--wp--preset--color--ink-3);
	--hairline: var(--wp--preset--color--hairline);
	--hairline-dark: var(--wp--preset--color--hairline-dark);
	--canvas: var(--wp--preset--color--canvas);
	--canvas-subtle: var(--wp--preset--color--canvas-subtle);
	--fs-small: var(--wp--preset--font-size--small);
	--fs-xs: var(--wp--preset--font-size--xs);
	--r-card: var(--wp--custom--radius--card);
	--r-media: var(--wp--custom--radius--media);
	--r-pill: var(--wp--custom--radius--pill);
	--gutter: var(--wp--custom--gutter);
	--ease: 150ms ease;
	--font-mono: var(--wp--preset--font-family--mono);
}

/* Base pieces the design pages share */
.stc-tours .wrap { max-width: var(--wp--style--global--wide-size, 72rem); margin-inline: auto; padding-inline: var(--gutter); }
.stc-tours .section { padding: clamp(48px, 7vw, 88px) 0; }
.stc-tours .section--subtle, .stc-tours .more { background: var(--canvas-subtle); } /* full-bleed from style.css */
.stc-tours h1, .stc-tours h2, .stc-tours h3 { margin: 0; }
.stc-tours h2 { font-size: var(--wp--preset--font-size--h-2); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.stc-tours h3 { font-size: var(--wp--preset--font-size--h-3); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.stc-tours .small { font-size: var(--fs-small); color: var(--ink-2); }
.stc-tours .lead { font-size: 1.125rem; color: var(--ink-2); max-width: 40rem; margin: 0; }
.stc-tours .eyebrow { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.02em; color: var(--ink-2); margin: 0; }
.stc-tours .price { font-family: var(--font-mono); font-weight: 700; }
.stc-tours .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: var(--r-pill); border: 1px solid transparent; font: 600 var(--fs-small)/1 var(--wp--preset--font-family--inter); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease); }
.stc-tours .btn:active { transform: scale(0.98); }
.stc-tours .btn--primary { background: var(--ink); color: var(--wp--preset--color--canvas); }
.stc-tours .btn--primary:hover { background: var(--st-ink-hover); text-decoration: none; }
.stc-tours .btn--secondary { background: var(--canvas-subtle); color: var(--ink); border-color: var(--hairline-dark); }
.stc-tours .btn--secondary:hover { background: var(--ink); color: var(--wp--preset--color--canvas); border-color: var(--ink); text-decoration: none; }
.stc-tours .btn--small { padding: 7px 14px; font-size: var(--fs-xs); }
.stc-tours .pill { display: inline-block; padding: 6px 14px; border-radius: var(--r-pill); border: 1px solid var(--hairline-dark); background: var(--canvas); font: 600 var(--fs-xs)/1 var(--wp--preset--font-family--inter); text-decoration: none; transition: background var(--ease), color var(--ease), border-color var(--ease); }
.stc-tours .pill:hover { border-color: var(--ink); text-decoration: none; }
.stc-tours .pill[aria-current="true"] { background: var(--ink); color: var(--wp--preset--color--canvas); border-color: var(--ink); }
.stc-tours .filters { display: flex; flex-wrap: wrap; gap: 8px; }
.stc-tours .field { display: grid; gap: 6px; }
.stc-tours .field label { font-size: var(--fs-xs); font-weight: 600; }
.stc-tours .field input, .stc-tours .field select, .stc-tours .field textarea { padding: 12px 14px; border: 1px solid var(--hairline-dark); border-radius: 12px; background: var(--canvas); font: inherit; color: var(--ink); width: 100%; box-sizing: border-box; }
.stc-tours .field input:focus-visible { outline-offset: 1px; }

.stc-tours .pagehead { padding-bottom: clamp(8px, 2vw, 16px); }
.stc-tours .pagehead h1 { font-size: clamp(2.25rem, 4vw + 1rem, 3.75rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; margin: 8px 0 12px; }
.stc-tours .crumbs { font-size: var(--fs-xs); color: var(--ink-2); display: flex; gap: 8px; flex-wrap: wrap; }
.stc-tours .crumbs a { text-decoration: none; }
.stc-tours .crumbs a:hover { text-decoration: underline; }
.stc-tours .block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.stc-tours .block-head p { margin: 4px 0 0; }

/* Tour cards */
.stc-tours .tgrid { display: grid; gap: 20px; }
@media (min-width: 760px) { .stc-tours .tgrid { grid-template-columns: repeat(2, 1fr); } }
.stc-tours .tcard { display: flex; flex-direction: column; background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-card); overflow: hidden; transition: border-color var(--ease); }
.stc-tours .tcard:hover { border-color: var(--ink); }
.stc-tours .tcard__media { aspect-ratio: 16 / 9; background: var(--canvas-subtle); overflow: hidden; }
.stc-tours .tcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; transition: transform 300ms ease; }
.stc-tours .tcard:hover .tcard__media img { transform: scale(1.04); }
.stc-tours .tcard__body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.stc-tours .tcard__title { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; margin: 0; }
.stc-tours .tcard__title a { text-decoration: none; }
.stc-tours .facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--fs-small); color: var(--ink-2); margin: 0; padding: 0; list-style: none; }
.stc-tours .facts b { color: var(--ink); font-weight: 600; }
.stc-tours .dates { display: grid; gap: 8px; margin-top: auto; }
.stc-tours .date-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--hairline); border-radius: 12px; font-size: var(--fs-small); text-decoration: none; transition: border-color var(--ease), background var(--ease); }
.stc-tours .date-row:hover { border-color: var(--ink); text-decoration: none; }
.stc-tours .date-row b { font-weight: 600; }
.stc-tours .date-row .when { display: flex; gap: 10px; align-items: baseline; }
.stc-tours .date-row .when span { color: var(--ink-2); }
.stc-tours .date-row .seats { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); }
.stc-tours .date-row .seats--low { color: var(--ink); }
.stc-tours .date-row--sold { opacity: 0.55; }

/* Seasonal empty state */
.stc-tours .empty { background: var(--canvas-subtle); border-radius: var(--r-card); padding: clamp(24px, 4vw, 40px); display: grid; gap: 8px; }
.stc-tours .empty--canvas { background: var(--canvas); }
.stc-tours .empty h3 { font-size: 1.25rem; }

/* Groups */
.stc-tours .offers { display: grid; gap: 16px; }
@media (min-width: 760px) { .stc-tours .offers { grid-template-columns: repeat(2, 1fr); } }
.stc-tours .offer { background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 20px; display: grid; gap: 8px; align-content: start; }
.stc-tours .offer h3 { font-size: 1.25rem; }
.stc-tours .offer .price { font-size: 1.5rem; letter-spacing: -0.02em; }
.stc-tours .groupform { display: grid; gap: 28px; }
@media (min-width: 900px) { .stc-tours .groupform { grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; } }
.stc-tours .form { display: grid; gap: 14px; background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 24px; }
.stc-tours .form .two { display: grid; gap: 14px; }
@media (min-width: 560px) { .stc-tours .form .two { grid-template-columns: 1fr 1fr; } }
.stc-tours .form__ok, .stc-tours .form__err { margin: 0; padding: 14px; border-radius: 12px; background: var(--canvas-subtle); font-size: var(--fs-small); }
.stc-tours .form__err { border: 1px solid var(--ink); }
.stc-tours .stc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.stc-tours .dnote { margin-top: 16px; padding: 8px 12px; border: 1px dashed var(--hairline-dark); border-radius: 8px; }

/* Single tour */
.stc-tours .tourhero { border-radius: var(--r-media); overflow: hidden; aspect-ratio: 2.4 / 1; background: var(--canvas-subtle); }
.stc-tours .tourhero img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.stc-tours .tourlayout { display: grid; gap: 32px; padding: 32px 0 72px; }
@media (min-width: 960px) { .stc-tours .tourlayout { grid-template-columns: 1fr 380px; gap: 56px; align-items: start; } }
.stc-tours .prose { max-width: 40rem; }
.stc-tours .prose h1 { font-size: clamp(2rem, 4vw + 0.5rem, 3rem); margin: 8px 0 16px; line-height: 1.05; letter-spacing: -0.025em; }
.stc-tours .prose h2 { margin: 36px 0 12px; font-size: 1.375rem; }
.stc-tours .prose p { margin: 0 0 14px; }
.stc-tours .factlist { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border: 1px solid var(--hairline); border-radius: var(--r-card); overflow: hidden; }
.stc-tours .factlist li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; font-size: var(--fs-small); }
.stc-tours .factlist li + li { border-top: 1px solid var(--hairline); }
.stc-tours .factlist span { color: var(--ink-2); }
.stc-tours .factlist b { font-weight: 600; text-align: right; }

.stc-tours .book { position: sticky; top: 84px; border: 1px solid var(--hairline-dark); border-radius: var(--r-card); padding: 22px; background: var(--canvas); display: grid; gap: 16px; box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.18); scroll-margin-top: 84px; }
.stc-tours .book__form { display: grid; gap: 16px; }
.stc-tours .book h2 { font-size: 1.125rem; }
.stc-tours .slots { display: grid; gap: 8px; }
.stc-tours .slot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--hairline-dark); border-radius: 12px; cursor: pointer; font-size: var(--fs-small); background: var(--canvas); position: relative; }
.stc-tours .slot:hover { border-color: var(--ink); }
.stc-tours .slot input { position: absolute; opacity: 0; pointer-events: none; }
.stc-tours .slot:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.stc-tours .slot:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.stc-tours .slot[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.stc-tours .slot .when b { display: block; font-weight: 600; }
.stc-tours .slot .when span, .stc-tours .slot .seats { font-size: var(--fs-xs); color: var(--ink-2); font-weight: 600; }
.stc-tours .slot .seats--low { color: var(--ink); }
.stc-tours .qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stc-tours .stepper { display: inline-flex; align-items: center; border: 1px solid var(--hairline-dark); border-radius: var(--r-pill); overflow: hidden; }
.stc-tours .stepper button { width: 36px; height: 36px; border: 0; background: transparent; font-size: 1.125rem; cursor: pointer; padding: 0; color: var(--ink); }
.stc-tours .stepper button[hidden] { display: none; }
.stc-tours .stepper button:hover { background: var(--canvas-subtle); }
.stc-tours .stepper input { width: 3.25rem; min-width: 28px; text-align: center; font-weight: 600; font-family: var(--font-mono); border: 0; background: transparent; padding: 8px 0; font-size: var(--fs-small); -moz-appearance: textfield; }
.stc-tours .stepper input::-webkit-outer-spin-button, .stc-tours .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stc-tours .total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--hairline); }
.stc-tours .total .price { font-size: 1.5rem; letter-spacing: -0.02em; }
.stc-tours .book .btn { width: 100%; padding: 14px 24px; }
.stc-tours .book .btn[disabled] { background: var(--hairline); color: var(--ink-3); cursor: not-allowed; }
.stc-tours .fineprint { font-size: var(--fs-xs); color: var(--ink-2); margin: 0; }
.stc-tours .soldnote { display: none; margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--canvas-subtle); font-size: var(--fs-small); }
.stc-tours .book[data-state="soldout"] .soldnote, .stc-tours .book[data-state="closed"] .soldnote { display: block; }
.stc-tours .book[data-state="closed"] .qty, .stc-tours .book[data-state="closed"] .total { display: none; }
.stc-tours .more { padding-block: clamp(48px, 7vw, 80px); }

/* Phone: sticky bar so booking is one tap away */
.stc-tours .mobilebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--wp--preset--color--canvas) 96%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--hairline); }
.stc-tours .mobilebar .price { font-size: 1.125rem; }
.stc-tours .mobilebar small { display: block; font-size: var(--fs-xs); color: var(--ink-2); font-weight: 500; }
.stc-tours .mobilebar .btn[aria-disabled="true"] { background: var(--hairline); color: var(--ink-3); cursor: not-allowed; }
@media (min-width: 960px) { .stc-tours .mobilebar { display: none; } }
@media (max-width: 959px) { body.has-bar .st-footer__inner { padding-bottom: 96px; } }

/* FLO-997: tour hero with photo strip. Separate rules; the viewer's own styles come from assets/viewer. */
.stc-tours .tourhero { overflow: visible; aspect-ratio: auto; background: none; }
.stc-tours .tourhero__main { aspect-ratio: 2.4 / 1; background: var(--canvas-subtle); border-radius: var(--r-media); overflow: hidden; }
.stc-tours .tourhero__main a, .stc-tours .tourhero__strip a { display: block; width: 100%; height: 100%; }
.stc-tours .tourhero__strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 4px; }
.stc-tours .tourhero__strip a { aspect-ratio: 4 / 3; background: var(--canvas-subtle); overflow: hidden; border-radius: 8px; }
.stc-tours .tourhero__strip a[hidden] { display: none; }
.stc-tours .tourhero__strip img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
@media (max-width: 559px) {
	.stc-tours .tourhero__main { aspect-ratio: 4 / 3; }
	.stc-tours .tourhero__strip { grid-template-columns: repeat(3, 1fr); }
	.stc-tours .tourhero__strip a:nth-child(n+4) { display: none; }
}

/* Tours page: request button in the head, photo strip, invitation beside the form, short public line */
.stc-tours .pagehead__cta { margin: 20px 0 0; }
.stc-tours #gform { scroll-margin-top: 96px; }
.stc-tours .tourstrip { padding: clamp(16px, 3vw, 32px) 0 0; }
.stc-tours .tourstrip__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.stc-tours .tourstrip__row a { display: block; aspect-ratio: 4 / 3; background: var(--canvas-subtle); overflow: hidden; border-radius: 8px; }
.stc-tours .tourstrip__row a:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.stc-tours .tourstrip__row a:nth-child(n+4) { display: none; }
.stc-tours .tourstrip__row img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.stc-tours .tourstrip__credit { margin: 8px 0 0; font-size: var(--fs-xs); color: var(--ink-2); }
@media (min-width: 760px) {
	.stc-tours .tourstrip__row { grid-template-columns: repeat(5, 1fr); }
	.stc-tours .tourstrip__row a, .stc-tours .tourstrip__row a:first-child { grid-column: auto; aspect-ratio: 4 / 3; }
	.stc-tours .tourstrip__row a:nth-child(n+4) { display: block; }
	.stc-tours .tourstrip__row a:nth-child(n+6) { display: none; }
}
.stc-tours .groupintro { display: grid; gap: 20px; align-content: start; }
.stc-tours .section--tight { padding: clamp(24px, 4vw, 40px) 0; }
.stc-tours .offer { overflow: hidden; }
.stc-tours .offer__media { margin: -20px -20px 4px; aspect-ratio: 4 / 3; background: var(--canvas-subtle); overflow: hidden; }
.stc-tours .offer__media img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.stc-tours .offer .price .small { white-space: nowrap; }

@supports not (color: color-mix(in srgb, red 50%, blue)) {
	.stc-tours .mobilebar { background: rgba(255, 255, 255, 0.96); }
	html[data-theme="dark"] .stc-tours .mobilebar { background: rgba(22, 22, 22, 0.96); }
}
