/*
 * WSH Tour Catalog: structural styles only (LIVE-SITE A1). Colors and fonts
 * are custom properties the site sets in Elementor (Site Settings → Custom
 * CSS) or the theme; every class is listed in STYLING.md. Square corners.
 *
 * Fonts: no family is named here. Each text part reads
 * --wshtc-{part}-font-family / -font-weight / -font-size / -line-height /
 * -letter-spacing, which the site points at its Elementor Global Fonts; they
 * are not defined here, so the site's values always win (Oct 8).
 */
:root {
	--wshtc-gap: 24px;
	--wshtc-card-ratio: 5 / 6;
	--wshtc-card-fade: linear-gradient(to top, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, 0) 55%);
	--wshtc-card-text: #fff;
	--wshtc-card-placeholder: #c9d3dc;
	--wshtc-tab-border: currentColor;
	--wshtc-tab-active-bg: #000;
	--wshtc-tab-active-text: #fff;
	--wshtc-button-bg: #000;
	--wshtc-button-text: #fff;
	--wshtc-rule: rgba(0, 0, 0, .15);
}

/* Cards (Where to Start, [wsh_tour_cards], related tours). */
.wshtc-cards {
	display: grid;
	grid-template-columns: repeat(var(--wshtc-columns, 3), minmax(0, 1fr));
	gap: var(--wshtc-gap);
}
.wshtc-card {
	position: relative;
	display: block;
	aspect-ratio: var(--wshtc-card-ratio);
	overflow: hidden;
	border-radius: 0;
	color: var(--wshtc-card-text);
	text-decoration: none;
	background: var(--wshtc-card-placeholder);
}
/* A card is a link: beat a theme's or Elementor kit's `a` / `.elementor-kit-N a`
   color (Oct 27: the homepage cards' text showed black). */
.wshtc-cards a.wshtc-card,
.wshtc-cards a.wshtc-card:visited,
.wshtc-cards a.wshtc-card:hover {
	color: var(--wshtc-card-text);
}
.wshtc-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--wshtc-card-fade);
	pointer-events: none;
}
/* Two classes, so a theme's or Elementor's `img { height: auto }` can't
   shorten the photo (Oct 8). */
.wshtc-card .wshtc-card__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	display: block;
}
.wshtc-card__text {
	position: absolute;
	left: 1em;
	right: 1em;
	bottom: 1em;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: .35em;
}
.wshtc-card__category {
	font-family: var(--wshtc-card-category-font-family, inherit);
	font-weight: var(--wshtc-card-category-font-weight, inherit);
	font-size: var(--wshtc-card-category-font-size, .75rem);
	line-height: var(--wshtc-card-category-line-height, 1.5);
	letter-spacing: var(--wshtc-card-category-letter-spacing, .02em);
}
.wshtc-card__title {
	font-family: var(--wshtc-card-title-font-family, inherit);
	font-weight: var(--wshtc-card-title-font-weight, inherit);
	font-size: var(--wshtc-card-title-font-size, clamp(1.1rem, 1.5vw, 1.5rem));
	line-height: var(--wshtc-card-title-line-height, 1.2);
	letter-spacing: var(--wshtc-card-title-letter-spacing, normal);
}

/* Concierge Pick badge (0.4.0): over the photo of a checked tour's card,
   top left, on every card (the photo cards here and the white activity
   cards on the catalog and category pages). Square, like everything else. */
.wshtc-pick-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	display: inline-block;
	padding: 6px 12px 5px;
	border-radius: 0;
	background: var(--wshtc-pick-bg, #fff);
	color: var(--wshtc-pick-text, #000);
	box-shadow: var(--wshtc-pick-shadow, 0 1px 3px rgba(0, 0, 0, .2));
	font-family: var(--wshtc-pick-font-family, var(--wshtc-card-category-font-family, var(--wshtc-ui, inherit)));
	font-weight: var(--wshtc-pick-font-weight, 600);
	font-size: var(--wshtc-pick-font-size, 11px);
	line-height: 1.3;
	letter-spacing: var(--wshtc-pick-letter-spacing, .1em);
	text-transform: uppercase;
	white-space: nowrap;
	pointer-events: none;
}

/* From price (0.5.0): "From $X", with the optional qualifier under it, over
   the top right of a card's photo. The Concierge Pick badge has the top left;
   beside one, the price is kept narrow enough that the two can't meet (the
   badge is about 125px wide and never wraps; the qualifier wraps instead). */
.wshtc-price--photo {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	box-sizing: border-box;
	max-width: calc(100% - 28px);
	padding: 6px 10px 5px;
	border-radius: 0;
	background: var(--wshtc-price-bg, rgba(0, 0, 0, .78));
	color: var(--wshtc-price-text, #fff);
	font-family: var(--wshtc-price-font-family, var(--wshtc-card-category-font-family, var(--wshtc-ui, inherit)));
	font-weight: 400;
	font-size: var(--wshtc-price-font-size, 13px);
	line-height: 1.3;
	letter-spacing: normal;
	text-align: right;
	text-transform: none;
	pointer-events: none;
}
.wshtc-price--photo.wshtc-price--beside-badge {
	max-width: calc(100% - 170px);
}
.wshtc-price--photo .wshtc-price__amount {
	font-weight: 700;
	font-size: 1.15em;
}
/* Override text (0.6.0) stands where "From $X" would: a little smaller, since it is words. */
.wshtc-price--photo .wshtc-price__override {
	font-size: 1em;
}
.wshtc-price--photo .wshtc-price__note {
	display: block;
	font-size: 11px;
	line-height: 1.3;
	opacity: .92;
}

/* Where to Start. */
.wshtc-wts__tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0;
	margin-bottom: var(--wshtc-gap);
}
.wshtc-wts__tab {
	border: 1px solid var(--wshtc-tab-border);
	border-radius: 0;
	background: transparent;
	color: inherit;
	padding: .5em 1.1em;
	font-family: var(--wshtc-tab-font-family, inherit);
	font-weight: var(--wshtc-tab-font-weight, inherit);
	font-size: var(--wshtc-tab-font-size, inherit);
	line-height: var(--wshtc-tab-line-height, inherit);
	letter-spacing: var(--wshtc-tab-letter-spacing, normal);
	cursor: pointer;
}
.wshtc-wts__tab + .wshtc-wts__tab {
	border-left-width: 0;
}
/* Specific enough to beat a theme's button:hover / button:focus (Hello
   Elementor's turns a tab pink-red, Oct 8). The chosen tab's rule below
   comes later, so it stays black on hover and focus. */
.wshtc-wts .wshtc-wts__tab:hover,
.wshtc-wts .wshtc-wts__tab:focus {
	background: var(--wshtc-tab-hover-bg, rgba(0, 0, 0, .06));
	color: inherit;
}
.wshtc-wts--js .wshtc-wts__tab[aria-pressed="true"] {
	background: var(--wshtc-tab-active-bg);
	color: var(--wshtc-tab-active-text);
}
.wshtc-wts__panel + .wshtc-wts__panel {
	margin-top: var(--wshtc-gap);
}
.wshtc-wts--js .wshtc-wts__panel + .wshtc-wts__panel {
	margin-top: 0;
}
.wshtc-wts__panel[hidden] {
	display: none;
}
.wshtc-wts__subtext {
	text-align: center;
	margin: 0 0 var(--wshtc-gap);
}
.wshtc-wts__more {
	text-align: center;
	margin-top: var(--wshtc-gap);
}
.wshtc-button,
.wshtc-wts a.wshtc-button,
.wshtc-wts a.wshtc-button:link,
.wshtc-wts a.wshtc-button:visited,
.wshtc-wts a.wshtc-button:hover,
.wshtc-wts a.wshtc-button:focus {
	/* Specific enough to beat a theme's or Elementor kit's link colour, which
	   otherwise turns the label the same colour as the button (Oct 8). */
	display: inline-block;
	padding: .7em 1.6em;
	border-radius: 0;
	background: var(--wshtc-button-bg);
	color: var(--wshtc-button-text);
	text-decoration: none;
	font-family: var(--wshtc-button-font-family, inherit);
	font-weight: var(--wshtc-button-font-weight, inherit);
	font-size: var(--wshtc-button-font-size, inherit);
	line-height: var(--wshtc-button-line-height, inherit);
	letter-spacing: var(--wshtc-button-letter-spacing, normal);
}

/* Tour page parts. */
.wshtc-part + .wshtc-part {
	margin-top: var(--wshtc-gap);
}
.wshtc-facts {
	margin: 0;
}
.wshtc-facts__row {
	display: grid;
	grid-template-columns: minmax(8em, 30%) 1fr;
	gap: 1em;
	padding: .5em 0;
	border-bottom: 1px solid var(--wshtc-rule);
}
.wshtc-facts__row dt {
	font-weight: 600;
}
.wshtc-facts__row dd {
	margin: 0;
}
/* Info boxes: the details row under the gallery, and the notes at the
   bottom of Know before you go. Icon tile, label above, value below. */
.wshtc-info {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wshtc-info-gap, 17px);
	list-style: none;
	margin: 0;
	padding: 0;
}
.wshtc-info__item {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	margin: 0;
	padding: 7px 12px 8px;
	list-style: none;
	border-radius: 0;
	background: var(--wshtc-info-bg, #f3f6fb);
	border: 1px solid var(--wshtc-info-border, #e8edf3);
}
.wshtc-info--details .wshtc-info__item {
	flex: 1 1 0;
	min-width: 13em; /* three in a row while they fit (tablet), else wrap */
}
.wshtc-info--know-before .wshtc-info__item {
	flex: 0 1 auto;
	background: var(--wshtc-info-note-bg, #fff);
	border-color: var(--wshtc-info-note-border, transparent);
	box-shadow: var(--wshtc-info-note-shadow, 0 1px 4px rgba(0, 0, 0, .1));
}
.wshtc-facts + .wshtc-info {
	margin-top: var(--wshtc-gap);
}
.wshtc-info__icon {
	display: flex;
	flex: 0 0 40px;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 0;
	background: var(--wshtc-info-icon-bg, #fff);
	box-shadow: var(--wshtc-info-icon-shadow, 0 1px 3px rgba(0, 0, 0, .12));
	color: var(--wshtc-info-icon-color, #111);
}
.wshtc-info--know-before .wshtc-info__icon {
	background: var(--wshtc-info-note-icon-bg, #f3f6fb);
	box-shadow: none;
}
.wshtc-info__icon svg {
	display: block;
	width: 20px;
	height: 20px;
}
.wshtc-info__text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	position: relative;
	top: 5px; /* the design centres the letters, not the line boxes */
}
.wshtc-info__label {
	color: var(--wshtc-info-label-color, #636468);
	font-family: var(--wshtc-info-label-font-family, var(--wshtc-card-title-font-family, inherit));
	font-weight: var(--wshtc-info-label-font-weight, 400);
	font-size: var(--wshtc-info-label-font-size, 15px);
	line-height: var(--wshtc-info-label-line-height, 20px);
	letter-spacing: var(--wshtc-info-label-letter-spacing, normal);
}
.wshtc-info__value {
	color: var(--wshtc-info-value-color, inherit);
	font-family: var(--wshtc-info-value-font-family, var(--wshtc-card-title-font-family, inherit));
	font-weight: var(--wshtc-info-value-font-weight, 600);
	font-size: var(--wshtc-info-value-font-size, 18px);
	line-height: var(--wshtc-info-value-line-height, 24px);
	letter-spacing: var(--wshtc-info-value-letter-spacing, normal);
	overflow-wrap: anywhere;
}
.wshtc-faq {
	border-bottom: 1px solid var(--wshtc-rule);
	padding: .75em 0;
}
.wshtc-faq__question {
	cursor: pointer;
	font-weight: 600;
}
.wshtc-gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: calc(var(--wshtc-gap) / 2);
}
.wshtc-gallery__item {
	margin: 0;
}
.wshtc-gallery__image {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 0;
}
.wshtc-tags {
	display: flex;
	flex-wrap: wrap;
	gap: .5em;
	list-style: none;
	margin: 0;
	padding: 0;
}
.wshtc-tag {
	display: inline-block;
	padding: .25em .75em;
	border: 1px solid var(--wshtc-rule);
	border-radius: 0;
	text-decoration: none;
}
.wshtc-booking__frame {
	display: block;
}

@media (max-width: 1024px) {
	.wshtc-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	/* Where to Start tabs stay on one row and scroll sideways when they don't
	   fit; a wrapped second row lost its first tab's left border (Kate's
	   phone, Oct 29). The auto margins centre the row when it fits without
	   clipping its start when it scrolls. */
	.wshtc-wts__tabs {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		scrollbar-width: none;
	}
	.wshtc-wts__tabs::-webkit-scrollbar {
		display: none;
	}
	.wshtc-wts__tab {
		flex: 0 0 auto;
		white-space: nowrap;
	}
	.wshtc-wts__tab:first-child {
		margin-left: auto;
	}
	.wshtc-wts__tab:last-child {
		margin-right: auto;
	}
}
@media (max-width: 600px) {
	.wshtc-cards,
	.wshtc-gallery {
		grid-template-columns: minmax(0, 1fr);
	}
	.wshtc-facts__row {
		grid-template-columns: 1fr;
		gap: .25em;
	}
	.wshtc-info--details .wshtc-info__item,
	.wshtc-info--know-before .wshtc-info__item {
		flex: 1 1 100%;
		min-width: 0;
	}
}
