/**
 * Destination finder pages. Sits on top of the Blog Hubs stylesheet (hub.css),
 * which supplies the design tokens, the full-width page, the hero and the FAQ.
 * Everything here is scoped to .hwdf-page.
 *
 * Lists are reset with enough weight to beat theme rules like
 * ".entry-content ul li", which is where stray bullets come from.
 */

.hwdf-page ul.hwdf-grid,
.hwdf-page ul.hwdf-card__types,
.hwdf-page ol.hwdf-picks,
.hwdf-page ul.hwdf-types,
.hwdf-page .hwdf-months ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hwdf-page ul.hwdf-grid > li,
.hwdf-page ul.hwdf-card__types > li,
.hwdf-page ol.hwdf-picks > li,
.hwdf-page ul.hwdf-types > li,
.hwdf-page .hwdf-months li {
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.hwdf-page ul.hwdf-grid > li::marker,
.hwdf-page ul.hwdf-card__types > li::marker,
.hwdf-page ol.hwdf-picks > li::marker,
.hwdf-page ul.hwdf-types > li::marker,
.hwdf-page .hwdf-months li::marker { content: none; }

.hwdf-page ul.hwdf-grid > li::before,
.hwdf-page ul.hwdf-card__types > li::before,
.hwdf-page ol.hwdf-picks > li::before,
.hwdf-page ul.hwdf-types > li::before,
.hwdf-page .hwdf-months li::before { content: none; }

/* ---------- Hero ---------- */

.hwdf-page .hwdf-hero { min-height: 560px; }
.hwdf-page .hwdf-hero.hw-hub__hero--plain {
	background:
		radial-gradient(circle at 85% 20%, rgba(242, 86, 33, 0.55), transparent 45%),
		radial-gradient(circle at 70% 90%, rgba(0, 181, 165, 0.45), transparent 50%),
		linear-gradient(140deg, #1D3B9A, var(--hw-ink-darker) 70%);
}

/* ---------- Month links ---------- */

.hwdf-months-band {
	background: #fff;
	border-bottom: 1px solid var(--hw-ink-lighter);
	position: sticky;
	top: 0;
	z-index: 5;
}

.hwdf-months {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 0;
	overflow-x: auto;
	scrollbar-width: none;
}

.hwdf-months::-webkit-scrollbar { display: none; }

.hwdf-page .hwdf-months__label {
	flex: 0 0 auto;
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--hw-ink);
}

.hwdf-months ul { display: flex; gap: 6px; }

.hwdf-page .hwdf-months a {
	display: block;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: var(--hw-ink-dark);
	white-space: nowrap;
}

.hwdf-page .hwdf-months a:hover { background: var(--hw-orange-lightest); color: var(--hw-orange-dark); }
.hwdf-page .hwdf-months a[aria-current="page"] { background: var(--hw-orange); color: #fff; }

/* ---------- The page copy ---------- */

.hwdf-page section.hwdf-copy { padding: 72px 0 24px; }

.hwdf-copy__body { max-width: 1100px; margin: 0 auto; font-size: 18px; line-height: 1.7; color: var(--hw-ink-dark); }
.hwdf-copy__body > * + * { margin-top: 0; }
.hwdf-page .hwdf-copy__body p { margin: 0 0 22px; }

.hwdf-page .hwdf-copy__body h2 {
	font-size: clamp(28px, 3.2vw, 38px);
	line-height: 1.15;
	color: var(--hw-ink-darker);
	margin: 64px 0 18px;
}

.hwdf-page .hwdf-copy__body h2:first-child { margin-top: 0; }

.hwdf-page .hwdf-copy__body h3 {
	font-size: 23px;
	line-height: 1.25;
	color: var(--hw-ink-darker);
	margin: 40px 0 12px;
}

.hwdf-page .hwdf-copy__body ul:not([class]),
.hwdf-page .hwdf-copy__body ol:not([class]) { margin: 0 0 22px; padding-left: 22px; }
.hwdf-page .hwdf-copy__body ul:not([class]) li { margin: 0 0 8px; }

.hwdf-page .hwdf-copy__body a:not([class]) { color: var(--hw-orange-dark); text-decoration: underline; text-underline-offset: 3px; }
.hwdf-page .hwdf-copy__body a:not([class]):hover { color: var(--hw-orange); }

.hwdf-page .hwdf-copy__body figure { margin: 8px 0 28px; }
.hwdf-page .hwdf-copy__body figure img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 16px; display: block; }
.hwdf-page .hwdf-copy__body figcaption { font-size: 13px; color: var(--hw-ink); margin-top: 8px; text-align: left; }

.hwdf-page .hwdf-copy__body .hwdf-fact {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: -6px 0 18px;
	font-size: 14px;
}

.hwdf-page .hwdf-copy__body .hwdf-fact span {
	background: var(--hw-ink-lightest);
	border-radius: 999px;
	padding: 5px 12px;
	color: var(--hw-ink-dark);
	font-weight: 600;
}

/* ---------- City guide button under each pick ---------- */

.hwdf-page .hwdf-copy__body .wp-block-buttons.hwdf-guide { margin: 4px 0 8px; display: flex; }

.hwdf-page .hwdf-copy__body .hwdf-guide .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 24px;
	border: 0;
	border-radius: 999px;
	background: var(--hw-orange);
	color: #fff;
	font-family: var(--hw-font-body);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .15s;
}

.hwdf-page .hwdf-copy__body .hwdf-guide .wp-block-button__link::after { content: "→"; }
.hwdf-page .hwdf-copy__body .hwdf-guide .wp-block-button__link:hover { background: var(--hw-orange-dark); color: #fff; }

/* ---------- City lists in the copy ---------- */

.hwdf-page ol.hwdf-picks {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	margin: 12px 0 40px;
}

/* Lists come in sixes and nines, so three across never leaves one hanging. */
@media (min-width: 360px) { .hwdf-page ol.hwdf-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 860px) { .hwdf-page ol.hwdf-picks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.hwdf-page a.hwdf-pick__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid var(--hw-ink-lighter);
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	color: var(--hw-ink-darker);
	text-decoration: none;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}

.hwdf-page a.hwdf-pick__link:hover { border-color: var(--hw-orange); box-shadow: var(--hw-shadow-md); transform: translateY(-2px); }

.hwdf-pick__media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--hw-orange-lightest);
}

.hwdf-page .hwdf-pick__media img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; border-radius: 0; aspect-ratio: auto; transition: transform .4s; }
.hwdf-page a.hwdf-pick__link:hover .hwdf-pick__media img { transform: scale(1.04); }

.hwdf-pick__placeholder {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	font-family: var(--hw-font-display);
	font-weight: 700;
	font-size: 56px;
	color: var(--hw-orange);
}

.hwdf-pick__rank {
	position: absolute;
	top: 12px;
	left: 12px;
	min-width: 32px;
	height: 32px;
	padding: 0 8px;
	border-radius: 999px;
	background: var(--hw-ink-darker);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 32px;
	text-align: center;
}

.hwdf-pick__text { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px 18px; line-height: 1.3; }
.hwdf-pick__name { font-family: var(--hw-font-display); font-weight: 700; font-size: 20px; }
.hwdf-pick__country { font-size: 14px; color: var(--hw-ink); }
.hwdf-pick__stat { margin-top: 8px; align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--hw-green-lightest); font-size: 14px; font-weight: 600; color: var(--hw-green-dark); }

/* ---------- Trip type tiles ---------- */

.hwdf-page ul.hwdf-types {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 12px;
	margin: 8px 0 32px;
}

.hwdf-page a.hwdf-type {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px;
	border-radius: 14px;
	text-decoration: none;
	background: var(--hw-blue-lightest);
	color: var(--hw-blue-dark);
	transition: transform .15s;
}

.hwdf-page a.hwdf-type:hover { transform: translateY(-2px); }
.hwdf-type__name { font-family: var(--hw-font-display); font-weight: 700; font-size: 17px; }
.hwdf-type__count { font-size: 13px; opacity: .8; }

.hwdf-page a.hwdf-type--beach { background: var(--hw-teal-lightest); color: var(--hw-teal-dark); }
.hwdf-page a.hwdf-type--adventure { background: var(--hw-green-lightest); color: var(--hw-green-dark); }
.hwdf-page a.hwdf-type--lakes-rivers { background: var(--hw-blue-lightest); color: var(--hw-blue-dark); }
.hwdf-page a.hwdf-type--nightlife { background: var(--hw-purple-lightest); color: var(--hw-purple-dark); }
.hwdf-page a.hwdf-type--food { background: var(--hw-orange-lightest); color: var(--hw-orange-dark); }
.hwdf-page a.hwdf-type--culture { background: var(--hw-pink-lightest); color: #8F0E52; }
.hwdf-page a.hwdf-type--road-trip { background: var(--hw-sunset-lightest); color: #7A5A00; }

/* ---------- Finder ---------- */

.hwdf-page section.hwdf-finder-section { background: var(--hw-ink-lightest); padding: 80px 0; scroll-margin-top: 60px; }
.hwdf-finder-section h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; margin-bottom: 12px; }
.hwdf-finder-section .hw-hub__lede { margin-bottom: 28px; }

.hwdf-questions {
	display: grid;
	gap: 22px;
	padding: 28px;
	background: #fff;
	border-radius: 20px;
	box-shadow: var(--hw-shadow-md);
	container-type: inline-size;
}

.hwdf-group { border: 0; margin: 0; padding: 0; min-width: 0; }

.hwdf-page .hwdf-group legend {
	font-family: var(--hw-font-display);
	font-weight: 700;
	font-size: 16px;
	margin: 0 0 10px;
	padding: 0;
	color: var(--hw-ink-darker);
}

.hwdf-options { display: flex; flex-wrap: wrap; gap: 8px; }

.hwdf-page a.hwdf-option {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 16px;
	border: 1px solid var(--hw-ink-lighter);
	border-radius: 999px;
	background: #fff;
	color: var(--hw-ink-dark);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: border-color .15s, background-color .15s, color .15s;
}

.hwdf-page a.hwdf-option:hover { border-color: var(--hw-orange); color: var(--hw-orange-dark); }
.hwdf-page a.hwdf-option[aria-current="true"] { background: var(--hw-ink-darker); border-color: var(--hw-ink-darker); color: #fff; }

.hwdf-group--month .hwdf-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hwdf-page .hwdf-group--month a.hwdf-option:first-child { grid-column: 1 / -1; justify-self: start; }

@container (min-width: 480px) { .hwdf-group--month .hwdf-options { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@container (min-width: 820px) { .hwdf-group--month .hwdf-options { grid-template-columns: repeat(12, minmax(0, 1fr)); } }

.hwdf-results { margin-top: 36px; }

.hwdf-page .hwdf-count,
.hwdf-page .hwdf-close {
	font-family: var(--hw-font-display);
	font-weight: 700;
	font-size: 22px;
	letter-spacing: -0.02em;
	color: var(--hw-ink-darker);
	margin: 0 0 18px;
}

.hwdf-page .hwdf-close { margin: 48px 0 4px; }
.hwdf-page .hwdf-close-note { color: var(--hw-ink); margin: 0 0 18px; }

.hwdf-page ul.hwdf-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}

/* ---------- City card ---------- */

.hwdf-card {
	display: flex;
	flex-direction: column;
	border-radius: 18px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 1px 2px rgba(29, 29, 27, 0.06);
	transition: box-shadow .2s, transform .2s;
}

.hwdf-card:hover { box-shadow: var(--hw-shadow-lg); transform: translateY(-2px); }
.hwdf-grid--close .hwdf-card { opacity: .92; }

.hwdf-page a.hwdf-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--hw-orange-lightest);
	overflow: hidden;
	text-decoration: none;
}

.hwdf-page .hwdf-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; transition: transform .4s; }
.hwdf-card:hover .hwdf-card__media img { transform: scale(1.04); }

.hwdf-card__placeholder {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	font-family: var(--hw-font-display);
	font-size: 56px;
	font-weight: 700;
	color: var(--hw-orange);
}

.hwdf-card__country {
	position: absolute;
	left: 12px;
	bottom: 12px;
	padding: 5px 11px;
	border-radius: 999px;
	background: rgba(18, 20, 23, 0.72);
	backdrop-filter: blur(6px);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.hwdf-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }

.hwdf-page .hwdf-card__name { font-size: 22px; line-height: 1.15; margin: 0 0 14px; }
.hwdf-page .hwdf-card__name a { color: var(--hw-ink-darker); text-decoration: none; }
.hwdf-page .hwdf-card__name a:hover { color: var(--hw-orange-dark); }

.hwdf-card__stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
	gap: 8px;
	margin: 0 0 12px;
}

.hwdf-stat {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px;
	border-radius: 12px;
	background: var(--hw-ink-lightest);
	min-width: 0;
}

.hwdf-stat__value { font-family: var(--hw-font-display); font-weight: 700; font-size: 20px; line-height: 1.1; color: var(--hw-ink-darker); }
.hwdf-stat__label { font-size: 12px; line-height: 1.3; color: var(--hw-ink); }

.hwdf-stat.is-miss { background: var(--hw-orange-lightest); }
.hwdf-stat.is-miss .hwdf-stat__value,
.hwdf-stat.is-miss .hwdf-stat__label { color: var(--hw-orange-dark); }

.hwdf-page .hwdf-card__note { margin: 0 0 12px; font-size: 14px; line-height: 1.45; color: var(--hw-ink-dark); }

.hwdf-page ul.hwdf-card__types { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }

.hwdf-page ul.hwdf-card__types > li {
	padding: 4px 10px;
	border-radius: 999px;
	border: 1px solid var(--hw-ink-lighter);
	font-size: 12px;
	font-weight: 600;
	color: var(--hw-ink-dark);
}

.hwdf-page ul.hwdf-card__types > li.is-match { background: var(--hw-ink-darker); border-color: var(--hw-ink-darker); color: #fff; }
.hwdf-page ul.hwdf-card__types > li.is-miss { border-color: var(--hw-orange); color: var(--hw-orange-dark); }

.hwdf-page a.hwdf-card__cta {
	margin-top: auto;
	align-self: flex-start;
	color: var(--hw-orange-dark);
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
}

.hwdf-page a.hwdf-card__cta::after { content: " →"; }
.hwdf-page a.hwdf-card__cta:hover { text-decoration: underline; }

.hwdf-page .hwdf-more { text-align: center; margin: 36px 0 0; }

.hwdf-page a.hwdf-more__link {
	display: inline-block;
	padding: 13px 30px;
	border-radius: 999px;
	background: var(--hw-ink-darker);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.hwdf-page a.hwdf-more__link:hover { background: var(--hw-orange); }

.hwdf-page a:focus-visible { outline: 3px solid var(--hw-orange); outline-offset: 2px; }

@media (max-width: 600px) {
	.hwdf-page section.hwdf-copy { padding-top: 48px; }
	.hwdf-copy__body { font-size: 17px; }
	.hwdf-page section.hwdf-finder-section { padding: 56px 0; }
	.hwdf-questions { padding: 20px 16px; border-radius: 16px; }
	.hwdf-page a.hwdf-option { font-size: 14px; padding: 8px 12px; }
	.hwdf-stat__value { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
	.hwdf-page * { transition: none !important; }
	.hwdf-card:hover, .hwdf-page a.hwdf-type:hover { transform: none; }
}

/* Two across on phones: smaller type so names and figures still fit. */
@media (max-width: 519px) {
	.hwdf-pick__text { padding: 10px 12px 12px; }
	.hwdf-pick__name { font-size: 16px; }
	.hwdf-pick__country { font-size: 13px; }
	.hwdf-pick__stat { font-size: 12px; padding: 3px 8px; }
	.hwdf-pick__rank { top: 8px; left: 8px; min-width: 26px; height: 26px; line-height: 26px; font-size: 13px; }
}
