/* Home page (21 November 2026). The page is ordinary blocks; these rules style the pieces that
 * blocks can't: the filter in the photo banner, the moving activity strip and the press logos.
 * Design rules (22 November 2026): 6px corners, round tags, the theme's palette, as on the
 * listing pages. */

/* The photo banner: no gap between it and the header */
.home .ash-home-hero { margin-top: 0; }
/* Exactly as tall as the collage at the banner's width, so all three rows of photos show in full
   (the collage is 1920 x 900, so its height is 46.875% of its width; Luke, 23 November). The search
   box grows into the space when Advanced search opens; the banner only grows beyond this if it must.
   The block's own 480px is the floor (phones, where the banner is taller than the photo anyway). */
.home .ash-home-hero { min-height: max(480px, 46.875vw) !important; }
/* Sections sit straight against each other: no white strip between them (Luke, 22 November:
   the gaps were far too big). Each section's own padding is the only space. */
.home .entry-content > .alignfull { margin-top: 0; margin-bottom: 0; }
.home .ash-home-hero h1 { margin-bottom: 0; }

/* The filter on a white panel in the banner, under a turquoise strip (Luke's option C, 22 November:
   turquoise to notice, the pink button to click, at the top of the page). Sorting belongs on the
   results page. */
.ashf-wrap-home { width: 100%; max-width: 1040px; margin: 0 auto; text-align: left; overflow: hidden; border-radius: 0 0 var(--ash-radius, 6px) var(--ash-radius, 6px); background: #fff; }

/* Banner idea 2 (Luke, 23 November 2026): the page title sits on the turquoise band at the top of
   the search box, with "Find Your Next Adventure:" beside it (under it on phones), both in the
   near-black, which reads better on turquoise than the heading blue (Luke, 23 November), so the
   photos are shown at full brightness (the banner block's darkening is 0). The title is sized to
   stay on one line on phones. One shadow goes round the band and the box together, so no line
   shows where the two meet. */
.home .ash-home-hero .wp-block-cover__inner-container { filter: drop-shadow(0 4px 18px rgba(15, 27, 42, 0.45)); } /* slightly stronger and all round (Luke, 23 Nov) */
.home .ash-home-hero h1.ash-home-title {
	width: 100%; max-width: 1040px; margin: 0 auto; padding: 16px 24px 0; box-sizing: border-box;
	background: var(--theme-palette-color-7, #3fd2c7); border-radius: var(--ash-radius, 6px) var(--ash-radius, 6px) 0 0;
	text-align: left; white-space: nowrap;
	/* Overlap the box below by 2px, so no sliver of photo shows between the two at any zoom */
	position: relative; z-index: 1; margin-bottom: -2px; padding-bottom: 2px;
}
.ashf-wrap-home .ashf { background: #fff; border-radius: 0; box-shadow: none; }
.ashf-home-strip { margin: 0; padding: 4px 24px 16px; background: var(--theme-palette-color-7, #3fd2c7); color: var(--ash-ink, #0f1b2a); font-size: 18px; font-weight: 700; line-height: 1.3; }
/* Wider screens: the title and "Find Your Next Adventure:" share one line on the turquoise. The
   box's wrapper steps aside (display: contents) so the title, the strip and the form sit in one
   grid: title and strip on the first row, the form across the second. */
@media (min-width: 781px) {
	.home .ash-home-hero .wp-block-cover__inner-container { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; max-width: 1040px; margin-left: auto; margin-right: auto; }
	.home .ash-home-hero .wp-block-cover__inner-container > * { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
	.home .ash-home-hero .ashf-wrap-home { display: contents; }
	.home .ash-home-hero h1.ash-home-title { grid-column: 1; margin-bottom: 0; padding: 16px 24px; border-radius: var(--ash-radius, 6px) 0 0 0; }
	.home .ash-home-hero .ashf-home-strip { grid-column: 2; display: flex; align-items: center; justify-content: flex-end; padding: 16px 24px 16px 0; border-radius: 0 var(--ash-radius, 6px) 0 0; white-space: nowrap; }
	.home .ash-home-hero .ashf-wrap-home > .ashf { grid-column: 1 / -1; border-radius: 0 0 var(--ash-radius, 6px) var(--ash-radius, 6px); }
}
@media (max-width: 780px) {
	.ashf-home-strip { padding: 4px 16px 16px; }
	.home .ash-home-hero h1.ash-home-title { padding: 16px 16px 0; }
}
.ashf-wrap-home .ashf-sort { display: none; }
/* The home page's search (Luke, 23 November 2026): three boxes with no visible labels, the types
   inside Advanced search, and Advanced search on one line with the button. When Advanced search
   opens, its options appear above that line, so the line and the button stay at the bottom. */
.ashf-home .ashf-adv-panel { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--theme-palette-color-5, #d5dee6); }
.ashf-home .ashf-adv-panel[hidden] { display: none; }
.ashf-home .ashf-adv-panel .ashf-kinds { margin-top: 0; }
.ashf-home .ashf-home-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-top: 16px; }
.ashf-home .ashf-actions { margin: 0; }
.ashf-adv-toggle {
	display: inline-flex; align-items: center; gap: 8px; min-height: 48px; margin: 0; padding: 0; border: 0; background: none;
	color: var(--theme-link-initial-color, #d4237a); font: inherit; font-size: 16px; font-weight: 400;
	text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.ashf-adv-toggle:hover, .ashf-adv-toggle:focus-visible { color: var(--theme-link-hover-color, #ff4d7e); background: none; }
.ashf-adv-toggle::after {
	content: ""; width: 7px; height: 7px; margin-top: -4px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.ashf-adv-toggle[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 4px; }
@media (max-width: 780px) {
	/* Phones: the button full width first, Advanced search under it */
	.ashf-home .ashf-home-row { flex-direction: column-reverse; align-items: stretch; gap: 8px; }
	.ashf-home .ashf-adv-toggle { align-self: flex-start; }
	.ashf-home .ashf-submit { width: 100%; }
}

/* The activity strip: one row of photo tiles, the name on a dark fade at the bottom */
.ash-strip {
	display: flex;
	flex-wrap: nowrap;
	gap: 14px;
	overflow-x: auto;
	scrollbar-width: none;
	padding: 0 16px 4px;
	-webkit-overflow-scrolling: touch;
}
.ash-strip::-webkit-scrollbar { display: none; }
.ash-strip > .wp-block-image {
	position: relative;
	flex: 0 0 220px;
	height: 150px;
	margin: 0 !important;
	overflow: hidden;
	border-radius: var(--ash-radius, 6px);
}
.ash-strip > .wp-block-image a,
.ash-strip > .wp-block-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ash-strip > .wp-block-image figcaption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	padding: 36px 14px 12px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
	text-align: left;
	pointer-events: none;
}
/* Pointing at a tile turns its name the bright pink (Luke, 23 November) */
.ash-strip > .wp-block-image:hover figcaption,
.ash-strip > .wp-block-image:focus-within figcaption { color: var(--ash-pink-on-dark, #ff4d7e); }
.ash-strip > .wp-block-image figcaption { transition: color 0.15s ease; }
.ash-strip > .wp-block-image a:focus-visible { outline: 3px solid var(--ash-pink-on-dark, #ff4d7e); outline-offset: -3px; }

/* The four figures (Luke's choice, 22 November 2026): white cards, the figure on a turquoise strip
   across the top, like the search box (turquoise = notice this, not clickable). The cards' own
   colours and padding are set in the page, hence !important here. */
.home .ash-figures > .wp-block-group { padding: 0 !important; gap: 0 !important; overflow: hidden; border-radius: var(--ash-radius, 6px); background-color: #fff !important; }
.home .ash-figures > .wp-block-group > p { align-self: stretch; box-sizing: border-box; width: 100%; color: var(--ash-ink, #0f1b2a) !important; }
.home .ash-figures > .wp-block-group > p:first-child { margin: 0; padding: 12px 24px; background: var(--theme-palette-color-7, #3fd2c7); }
.home .ash-figures > .wp-block-group > p:last-child { margin: 0; padding: 12px 24px 16px; }

/* The press logos: one quiet row */
.ash-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 34px; }
.ash-logos img { display: block; width: auto; max-height: 44px; filter: grayscale(1); opacity: 0.75; transition: opacity 0.15s ease, filter 0.15s ease; }
.ash-logos a:hover img,
.ash-logos a:focus-visible img { filter: none; opacity: 1; }

/* Latest articles (22 November 2026): panel-coloured cards of equal height with 6px corners,
   photos all 3:2, the tags at the foot of each card */
.ash-card { border-radius: var(--ash-radius, 6px); overflow: hidden; }
.ash-card > .ct-dynamic-media { display: block; width: 100%; flex: 0 0 auto; }
/* Blocksy sets the photo to 100% height when a shape is chosen; in a card that grows, that
   stretches it. Its width and the 3:2 shape are enough. */
.ash-card > .ct-dynamic-media img { display: block; height: auto !important; }
.ash-card-body { flex-grow: 1; }
.ash-card-body > * { margin-top: 0; margin-bottom: 0; }
.ash-card-body h3 { margin: 0; }
/* Card titles: deeper pink (clickable), darker and underlined on hover (Luke, 23 November) */
.ash-card-body h3 a { color: var(--ash-title-link, #c2234f); text-decoration: none; }
.ash-card-body h3 a:hover, .ash-card-body h3 a:focus-visible { color: var(--ash-title-hover, #9a1a42); text-decoration: underline; }
.ash-card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0 !important; padding: 8px 0 0; list-style: none; }
.ash-card-tags li { margin: 0; padding: 0; }
.ash-tag {
	display: inline-block;
	padding: 6px 12px;
	border: 0;
	border-radius: 999px;
	background: var(--theme-palette-color-7, #3fd2c7);
	color: var(--ash-ink, #0f1b2a);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
}
/* One tag style everywhere (Luke, 22 November): activities and places look the same */
/* Hover: a darker turquoise, the same as every tag (Luke, 22 November: hovers are a darker shade) */
.ash-tag:hover, .ash-tag:focus-visible { background: var(--ash-turq-hover, #26b5ab); color: var(--ash-ink, #0f1b2a); }

@media (max-width: 780px) {
	.ash-strip > .wp-block-image { flex-basis: 170px; height: 120px; }
	.ash-strip > .wp-block-image figcaption { font-size: 16px; }
	.ash-logos { gap: 14px 24px; }
	.ash-logos img { max-height: 34px; }
}
