/*
 * 0.15.38 (Fadi, December 3 2026): ONE search-hub look for Know Your Lake,
 * /parks/, /fishing/ and /guides/. Markup: includes/class-dl-hub.php;
 * behaviour: assets/js/hub.js. Loaded on those four pages only.
 * Brand: Harbour Navy #1C2B45 text and buttons, Lake Blue #44708F links and
 * focus, Mist #F2F5F8 bands, Line #DCE4EC borders; DM Serif Display titles,
 * Instrument Sans everything else. Every text colour is 4.5:1 or better.
 */

.dl-hub { --hub-navy: var(--dl-navy, #1C2B45); --hub-lake: var(--dl-lake, #44708F); --hub-line: var(--dl-line, #DCE4EC); --hub-mist: var(--dl-mist, #F2F5F8); --hub-muted: var(--dl-muted, #4A5468); color: var(--hub-navy); padding-bottom: 48px; }
.dl-hub .dl-crumbs { margin: 14px 0 12px; }
/* Know Your Lake and Fishing are pages inside the constrained post
   content: let the hub use the full site width there, as /parks/ and
   /guides/ do. */
.dl-wrap.dl-hub { width: min(1248px, calc(100% - 32px)); max-width: 1248px; margin-left: auto; margin-right: auto; }
.is-layout-constrained > .dl-wrap.dl-hub { max-width: 1248px !important; }
.wp-block-post-content:has(> .dl-hub) { max-width: none !important; }
.wp-block-post-content > .dl-wrap.dl-hub { width: min(1248px, calc(100% - 32px)); max-width: 1248px !important; }
/* 0.15.38 check: the page's own side padding (16-40 px) came on top of the hub's 16 px edge on Know Your Lake and Fishing; drop it so all four hubs line up at every width. */
main.has-global-padding:has(> .wp-block-post-content > .dl-hub) { padding-left: 0 !important; padding-right: 0 !important; }
.dl-main--guides > .dl-sec:has(> .dl-hub) { padding-top: 0; } /* /guides/: same top space as the other hubs. */

/* 1. Short photo header: title + one line over the photo, dark overlay.
   At most about 320 px tall at 1440 and 240 px at 390, so the filters
   start right below it on the first screen. */
.dl-hub__head { position: relative; display: flex; align-items: flex-end; min-height: 220px; max-height: 320px; margin: 0 0 16px; border-radius: 20px; overflow: hidden; background: var(--hub-navy); color: #fff; isolation: isolate; }
.dl-hub__bg, .dl-hub__bg img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dl-hub__bg img { object-fit: cover; object-position: 50% 50%; }
/* Overlay: navy at 72% (white text on the lightest possible pixel under it
   stays at about 5.5:1), slightly lighter towards the top right. */
.dl-hub__head::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(28, 43, 69, .80) 0%, rgba(28, 43, 69, .72) 55%, rgba(28, 43, 69, .66) 100%); }
.dl-hub__head--plain::after { display: none; }
.dl-hub__headin { position: relative; z-index: 2; padding: 40px 40px 32px; max-width: 760px; }
.dl-hub__title { margin: 0; font-family: var(--dl-serif, Georgia, serif); font-weight: 400; font-size: 44px; line-height: 1.08; color: #fff; }
.dl-hub__intro { margin: 10px 0 0; font-size: 17px; line-height: 1.5; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }

/* 2. The filter bar: keyword -> Province -> Region -> hub filters -> Sort. */
.dl-hub__bar { display: flex; flex-direction: column; gap: 12px; margin: 0 0 8px; }
.dl-hub__q { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 4px 4px 4px 16px; border: 1px solid var(--hub-line); border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(28, 43, 69, .06); }
.dl-hub__q:focus-within { border-color: var(--hub-lake); box-shadow: 0 0 0 3px rgba(68, 112, 143, .25); }
.dl-hub__q > svg { flex: 0 0 auto; color: var(--hub-muted); }
.dl-hub__q input { flex: 1 1 auto; min-width: 0; min-height: 44px; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--hub-navy); outline: none; }
.dl-hub__go { flex: 0 0 auto; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--hub-lake); color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.dl-hub__go:hover { background: #3A6180; }
.dl-hub__go:focus-visible, .dl-hub__fbtn:focus-visible, .dl-hub__field select:focus-visible, .dl-hub__tog input:focus-visible + span, .dl-hub__close:focus-visible, .dl-hub__more:focus-visible, .dl-hub__name a:focus-visible, .dl-hub__clear:focus-visible, .dl-hub__sclear:focus-visible { outline: 3px solid var(--hub-lake); outline-offset: 2px; }

.dl-hub__panel { margin: 0; }
.dl-hub__fbtn { display: none; } /* Shown on phones only (see below). */
.dl-hub__shead, .dl-hub__sfoot { display: none; }
.dl-hub__fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.dl-hub__field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 150px; min-width: 0; max-width: 228px; }
.dl-hub__field label { font-size: 13px; font-weight: 600; color: var(--hub-muted); }
.dl-hub__field select { width: 100%; min-height: 44px; padding: 0 34px 0 12px; border: 1px solid var(--hub-line); border-radius: 12px; background: #fff; font: inherit; font-size: 15px; color: var(--hub-navy); }
.dl-hub__field:last-of-type { margin-left: auto; } /* Sort sits at the right end of the row. */
.dl-hub__toggles { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.dl-hub__tog { position: relative; display: inline-flex; }
.dl-hub__tog input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dl-hub__tog span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--hub-line); border-radius: 999px; background: #fff; font-size: 15px; font-weight: 500; color: var(--hub-navy); cursor: pointer; }
.dl-hub__tog span:hover { border-color: var(--hub-navy); }
.dl-hub__tog input:checked + span { background: var(--hub-navy); border-color: var(--hub-navy); color: #fff; }
.dl-hub__tog input:checked + span::before { content: "✓"; margin-right: 6px; }

/* 3. Count, pills, Clear all. */
.dl-hub__status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 14px 0 18px; }
.dl-hub__count { margin: 0; font-size: 16px; font-weight: 600; }
.dl-hub__pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dl-hub .dl-fpill { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px 0 14px; border: 1px solid #C9D6E3; border-radius: 999px; background: #F4F8FB; color: var(--hub-navy); font-size: 14px; text-decoration: none; }
.dl-hub .dl-fpill:hover, .dl-hub .dl-fpill:focus-visible { border-color: var(--hub-lake); }
.dl-hub .dl-fpill__x { font-size: 18px; line-height: 1; color: var(--hub-muted); }
.dl-hub__clear { display: inline-flex; align-items: center; min-height: 36px; padding: 0 6px; font-size: 14px; font-weight: 600; color: var(--hub-lake); text-underline-offset: 3px; }

/* 4. One card everywhere: 3:2 photo, title, place line, up to 4 chips. */
.dl-hub__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; margin: 0; padding: 0; list-style: none; }
.dl-hub__card { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--hub-line); border-radius: 16px; background: #fff; overflow: hidden; transition: box-shadow .15s ease, border-color .15s ease; }
.dl-hub__card[hidden] { display: none; }
.dl-hub__card:hover { border-color: #C9D6E3; box-shadow: 0 8px 24px rgba(28, 43, 69, .10); }
.dl-hub__media { position: relative; aspect-ratio: 3 / 2; background: var(--hub-mist); overflow: hidden; }
.dl-hub__media img, .dl-hub__media picture { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dl-hub__media img { object-fit: cover; }
.dl-hub__noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--hub-mist); }
.dl-hub__noimg svg { width: 64px; height: auto; max-height: 56px; opacity: .55; }
.dl-hub__badge { position: absolute; left: 10px; bottom: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(28, 43, 69, .82); color: #fff; font-size: 12px; font-weight: 600; }
.dl-hub__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.dl-hub__name { margin: 0; font-family: var(--dl-sans, sans-serif); font-size: 18px; font-weight: 600; line-height: 1.3; }
.dl-hub__name a { color: var(--hub-navy); text-decoration: none; }
.dl-hub__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* The whole card is the link. */
.dl-hub__card:hover .dl-hub__name a { text-decoration: underline; text-underline-offset: 3px; }
.dl-hub__place { margin: 0; font-size: 14px; color: var(--hub-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } /* Long municipality lists: two lines; the lake page has them all. */
.dl-hub__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.dl-hub__chips li { padding: 3px 10px; border-radius: 999px; background: var(--hub-mist); border: 1px solid var(--hub-line); font-size: 12.5px; font-weight: 600; line-height: 1.4; color: var(--hub-navy); }

/* 5. Show more, empty state, notes. */
.dl-hub__morewrap { margin: 28px 0 0; text-align: center; }
.dl-hub__more { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border: 1px solid var(--hub-navy); border-radius: 999px; background: #fff; color: var(--hub-navy); font-weight: 600; text-decoration: none; }
.dl-hub__more:hover { background: var(--hub-navy); color: #fff; }
.dl-hub__more[hidden] { display: none; }
.dl-hub__empty { margin: 8px 0 0; padding: 28px; border-radius: 16px; background: var(--hub-mist); }
.dl-hub__emptyh { margin: 0 0 6px; font-family: var(--dl-serif, Georgia, serif); font-weight: 400; font-size: 26px; }
.dl-hub__empty p { margin: 6px 0 0; }
.dl-hub__note { margin: 18px 0 0; }
.dl-hub__after { margin-top: 40px; }

@media (max-width: 1180px) {
	.dl-hub__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.dl-hub__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
}

/* Phones: keyword box, then a "Filters (n)" button that opens the filters
   in a bottom sheet (the same sheet pattern as /search/). Without
   JavaScript the panel simply stays open under the search box. */
@media (max-width: 781px) {
	.dl-hub__head { min-height: 168px; max-height: 240px; border-radius: 16px; }
	.dl-hub__headin { padding: 24px 20px 20px; }
	.dl-hub__title { font-size: 30px; }
	.dl-hub__intro { font-size: 15px; margin-top: 6px; }
	.dl-hub__go { padding: 0 16px; }
	.dl-hub__fbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--hub-navy); border-radius: 999px; background: #fff; font-size: 15px; font-weight: 600; color: var(--hub-navy); cursor: pointer; list-style: none; width: max-content; }
	.dl-hub__fbtn::-webkit-details-marker { display: none; }
	.dl-hub__field { max-width: none; flex: 1 1 100%; }
	.dl-hub__field:last-of-type { margin-left: 0; }
	.dl-hub__panel.is-sheet[open] .dl-hub__sheet { position: fixed; z-index: 1001; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; max-height: 92dvh; background: #fff; border-radius: 24px 24px 0 0; box-shadow: 0 -12px 40px rgba(28, 43, 69, .2); animation: dl-hub-up .22s ease-out; }
	.dl-hub__panel.is-sheet[open] .dl-hub__shead { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 12px; border-bottom: 1px solid var(--hub-line); }
	.dl-hub__panel.is-sheet[open] .dl-hub__fields { flex: 1 1 auto; overflow-y: auto; padding: 16px 20px; overscroll-behavior: contain; }
	.dl-hub__panel.is-sheet[open] .dl-hub__sfoot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--hub-line); }
	.dl-hub__panel.is-sheet[open]::after { content: ""; position: fixed; inset: 0; z-index: 1000; background: rgba(28, 43, 69, .45); }
	.dl-hub__panel:not(.is-sheet) .dl-hub__sheet { margin-top: 12px; }
	.dl-hub__panel:not(.is-sheet) .dl-hub__sfoot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
	.dl-hub__stitle { margin: 0; font-family: var(--dl-serif, Georgia, serif); font-size: 24px; }
	.dl-hub__close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--hub-line); border-radius: 50%; background: #fff; color: var(--hub-navy); font-size: 24px; line-height: 1; cursor: pointer; }
	.dl-hub__sclear { font-weight: 600; color: var(--hub-navy); text-underline-offset: 3px; }
	.dl-hub__sfoot .dl-btn { min-height: 48px; padding: 0 22px; }
	.dl-hub__grid { grid-template-columns: 1fr; gap: 16px; }
	.dl-hub__status { margin: 12px 0 14px; }
}
@keyframes dl-hub-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dl-hub__panel.is-sheet[open] .dl-hub__sheet { animation: none; } .dl-hub__card { transition: none; } }
html.dl-noscroll { overflow: hidden; }
.dl-hub .dl-totop[hidden] { display: none; }
