/*
 * Freewheeling Tours: the Growing Groups and All Scheduled Tour Dates lists (0.7.0).
 * Loads only on a page holding one of those lists, and only while that list is switched on for the person looking.
 * Since 0.11.0 the lines look and work like the dates on a tour page: the lines, notes and details panel come from
 * dates-block.css (.fwdb, loaded first). This adds the filters, the month headings (only where staff switch them on,
 * 0.12.0) and the tour column.
 * Everything is scoped to .fwdp.
 */
.fwdp { margin: 30px 0 10px; }
.fwdp .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.fwdp .fwdp-staffnote {
	margin: 0 auto 18px;
	max-width: 640px;
	padding: 8px 14px;
	border-radius: 8px;
	background: #fdf6e7;
	border: 1px solid #ecd9ad;
	color: #5b4310;
	font-size: 13px;
	text-align: center;
}

/* The finder (0.15.0): one search box, then a row of counted choices; a choice that would leave nothing is hidden */
.fwdp-find { max-width: 980px; margin: 0 auto 28px; }
.fwdp-search { position: relative; max-width: 680px; margin: 0 auto 14px; }
.fwdp-search::before { content: ""; position: absolute; left: 18px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: #7a848a; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.8 1.5a5.3 5.3 0 0 1 4.2 8.5l3.5 3.5-1.1 1.1-3.5-3.5A5.3 5.3 0 1 1 6.8 1.5zm0 1.6a3.7 3.7 0 1 0 0 7.4 3.7 3.7 0 0 0 0-7.4z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.8 1.5a5.3 5.3 0 0 1 4.2 8.5l3.5 3.5-1.1 1.1-3.5-3.5A5.3 5.3 0 1 1 6.8 1.5zm0 1.6a3.7 3.7 0 1 0 0 7.4 3.7 3.7 0 0 0 0-7.4z'/%3E%3C/svg%3E") center / contain no-repeat; pointer-events: none; }
.fwdp .fwdp-search input[type="search"] { box-sizing: border-box; width: 100%; height: 52px !important; text-overflow: ellipsis; margin: 0; padding: 0 46px 0 46px !important; border: 1px solid #d5dbe0; border-radius: 26px; background: #fff; color: var(--fwdb-ink); font: inherit; font-size: 16px; line-height: 50px; box-shadow: 0 1px 2px rgba(16, 32, 48, .05), 0 6px 18px -8px rgba(16, 32, 48, .16); -webkit-appearance: none; appearance: none; }
.fwdp .fwdp-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.fwdp .fwdp-search input[type="search"]::placeholder { color: #8a9399; }
.fwdp .fwdp-search input[type="search"]:focus { outline: none; border-color: var(--fwdb-blue); box-shadow: 0 0 0 3px rgba(31, 111, 178, .18), 0 6px 18px -8px rgba(16, 32, 48, .16); }
.fwdp button.fwdp-clear { all: unset; position: absolute; right: 12px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; cursor: pointer; }
.fwdp button.fwdp-clear[hidden] { display: none; }
.fwdp button.fwdp-clear::before, .fwdp button.fwdp-clear::after { content: ""; position: absolute; left: 8px; top: 14px; width: 14px; height: 2px; border-radius: 1px; background: #7a848a; transform: rotate(45deg); }
.fwdp button.fwdp-clear::after { transform: rotate(-45deg); }
.fwdp button.fwdp-clear:hover { background: #f1f4f6; }
.fwdp button.fwdp-clear:focus-visible { outline: 2px solid var(--fwdb-blue); }
.fwdp-chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.fwdp-gap { width: 1px; height: 22px; margin: 0 4px; background: #dfe4e8; }
.fwdp button.fwdp-chip { all: unset; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid #d5dbe0; border-radius: 17px; background: #fff; color: var(--fwdb-ink); font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.fwdp button.fwdp-chip[hidden] { display: none; }
.fwdp button.fwdp-chip:hover { border-color: #b9c3ca; background: #f7f9fa; }
.fwdp button.fwdp-chip:focus-visible { outline: 2px solid var(--fwdb-blue); outline-offset: 2px; }
.fwdp button.fwdp-chip[aria-pressed="true"] { border-color: var(--fwdb-blue); background: #eaf2fa; color: #154f80; }
.fwdp .fwdp-n { min-width: 18px; padding: 1px 6px; border-radius: 9px; background: #eef1f3; color: var(--fwdb-muted); font-size: 12px; font-weight: 700; line-height: 16px; text-align: center; }
.fwdp button.fwdp-chip[aria-pressed="true"] .fwdp-n { background: #fff; color: #154f80; }
.fwdp .fwdp-when select { box-sizing: border-box; height: 34px; margin: 0; padding: 0 34px 0 14px !important; border: 1px solid #d5dbe0; border-radius: 17px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23596267' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 11px 8px !important; color: var(--fwdb-ink); font: inherit; font-size: 14px; font-weight: 600; line-height: 32px; cursor: pointer; -webkit-appearance: none; -moz-appearance: none; appearance: none; }
.fwdp .fwdp-when select:focus-visible { outline: 2px solid var(--fwdb-blue); outline-offset: 2px; }
.fwdp .fwdp-count { margin: 12px 0 0; color: var(--fwdb-muted); font-size: 13.5px; text-align: center; }
.fwdp button.fwdp-reset-all { all: unset; margin-left: 8px; color: var(--fwdb-blue); font-weight: 600; cursor: pointer; }
.fwdp button.fwdp-reset-all[hidden] { display: none; }
.fwdp button.fwdp-reset-all:hover { text-decoration: underline; }
.fwdp button.fwdp-reset-all:focus-visible { outline: 2px solid var(--fwdb-blue); outline-offset: 2px; }

/* One line per date. With month headings switched on (0.12.0): the month's name with its year in blue over a blue
   rule, with room above, so each month stands apart from the one before. */
.fwdp-month + .fwdp-month { margin-top: 34px; }
.fwdp-month[hidden], .fwdp .fwdb-row[hidden] { display: none; }
.fwdp .fwdp-mhead { margin: 0 !important; padding: 0 2px 7px; border-bottom: 2px solid var(--fwdb-blue); font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: .01em; color: var(--fwdb-blue); text-transform: none; text-align: left; }
.fwdp .fwdp-month .fwdb-list { border-top: 0; }
.fwdp .fwdb-row { grid-template-columns: minmax(240px, 1.15fr) minmax(0, 1.9fr) minmax(116px, .55fr) minmax(0, 1fr) 80px minmax(88px, auto); }
.fwdp-tour { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
/* Difficulty marks (0.16.0): the ski-trail shapes in a small white token, on each line and on its choice; hover, focus
   or a tap on a line's mark opens one shared card saying what it means, with Learn more. */
.fwdp { position: relative; }
.fwdp-df { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; box-sizing: border-box; width: 24px; height: 24px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #dde4e9, 0 1px 2px rgba(16, 32, 48, .07); line-height: 0; }
.fwdp-df.is-two { width: 32px; }
.fwdp-df svg { display: block; }
.fwdp button.fwdp-diff { all: unset; position: relative; z-index: 2; display: inline-flex; flex: 0 0 auto; border-radius: 12px; cursor: help; transition: transform .12s ease; }
.fwdp button.fwdp-diff:hover .fwdp-df, .fwdp button.fwdp-diff[aria-expanded="true"] .fwdp-df { box-shadow: inset 0 0 0 1px #b9c6cf, 0 2px 6px rgba(16, 32, 48, .14); }
.fwdp button.fwdp-diff:focus-visible { outline: 2px solid var(--fwdb-blue); outline-offset: 2px; }
.fwdp button.fwdp-chip .fwdp-df { width: 22px; height: 22px; margin-left: -6px; box-shadow: inset 0 0 0 1px #e3e8ec; }
.fwdp button.fwdp-chip .fwdp-df.is-two { width: 30px; }
.fwdp button.fwdp-chip .fwdp-df svg { transform: scale(.92); }
.fwdp-dtip { position: absolute; z-index: 30; box-sizing: border-box; width: 280px; max-width: calc(100% - 8px); padding: 13px 15px 12px; border: 1px solid #e1e7eb; border-radius: 12px; background: #fff; color: var(--fwdb-ink); font-size: 13.5px; line-height: 1.5; text-align: left; box-shadow: 0 1px 2px rgba(16, 32, 48, .06), 0 14px 30px -10px rgba(16, 32, 48, .25); }
.fwdp-dtip[hidden] { display: none; }
.fwdp-dtip::before { content: ""; position: absolute; top: -6px; left: var(--x, 50%); width: 10px; height: 10px; margin-left: -6px; border: solid #e1e7eb; border-width: 1px 0 0 1px; background: #fff; transform: rotate(45deg); }
.fwdp-dtip.is-up::before { top: auto; bottom: -6px; border-width: 0 1px 1px 0; }
.fwdp-dtip-head { display: flex; align-items: center; gap: 9px; margin-bottom: 5px; }
.fwdp-dtip-head b { font-size: 15px; font-weight: 700; }
.fwdp-dtip p { margin: 0 0 8px; color: #4a555c; }
.fwdp .fwdp-dtip a.fwdp-dtip-more { display: inline-flex; align-items: center; gap: 4px; color: var(--fwdb-blue); font-weight: 600; text-decoration: none; }
.fwdp .fwdp-dtip a.fwdp-dtip-more::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 1.6px 1.6px 0 0; transform: rotate(45deg); }
.fwdp .fwdp-dtip a.fwdp-dtip-more:hover { text-decoration: underline; }
.fwdp-name { color: var(--fwdb-ink); font-weight: 600; line-height: 1.35; }
.fwdp .fwdb-notes { white-space: normal; line-height: 1.4; }

.fwdp-none { padding: 30px 16px; text-align: center; }
.fwdp-none p { margin: 0 0 12px; font-weight: 700; }
.fwdp-none[hidden] { display: none; }
.fwdp .fwdp-reset {
	padding: 8px 20px;
	border: 0;
	border-radius: 7px;
	background: var(--fwdb-blue);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.fwdp .fwdp-reset:hover { background: var(--fwdb-blue-deep); }

/* Mid-size screens (the theme's content is 940px wide up to 1199px): the short date, the price stays in the details */
@media (min-width: 768px) and (max-width: 1199px) {
	.fwdp .fwdb-row { grid-template-columns: minmax(150px, .75fr) minmax(0, 1.7fr) minmax(116px, .6fr) minmax(0, 1fr) minmax(88px, auto); }
	.fwdp .fwdb-hprice { display: none; }
	.fwdp .fwdb-long { display: none; }
	.fwdp .fwdb-short { display: inline; }
}
/* Phones: the date and Book on top, then the tour, then the level with its notes */
@media (max-width: 767px) {
	.fwdp-chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding: 2px 28px 6px 2px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.fwdp-chips::-webkit-scrollbar { display: none; }
	.fwdp button.fwdp-chip, .fwdp .fwdp-when { flex: 0 0 auto; }
	.fwdp .fwdb-row { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "when when book" "tour tour book" "lvl notes book"; row-gap: 3px; }
	.fwdp-tour { grid-area: tour; }
	.fwdp-name { font-size: 14px; }
}
.fwdp .fwdp-count.is-near .fwdp-shown { color: #8a5a00; }

/* Departures handed over by Find your trip (0.17.2) */
.fwdp .fwdp-handed { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 12px; margin: 14px auto 0; padding: 10px 16px; max-width: 760px; border-radius: 12px; background: #eef5fc; color: #15558a; font-size: 14px; font-weight: 600; text-align: center; }
.fwdp .fwdp-handed button { all: unset; color: var(--fwdb-blue); font-weight: 700; text-decoration: underline; cursor: pointer; }
.fwdp .fwdp-handed button:focus-visible { outline: 2px solid var(--fwdb-blue); outline-offset: 2px; }

/* A tour's badge on its line (0.18.2) */
.fwdp .fwdp-badge { display: inline-flex; align-items: center; flex: 0 0 auto; margin-left: 2px; padding: 2px 8px; border-radius: 999px; background: var(--b, #1f6fb2); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; line-height: 16px; text-transform: uppercase; white-space: nowrap; }
