/*
 * Everyday Luxury Vacation Rentals, Destinations Hub, new look
 * File: destination-hub-explorer-next.css
 *
 * Deploy to: /wp-content/themes/haven-theme/assets/css/destination-hub-explorer-next.css
 * Enqueued by page-destinations.php only when the hub is shown with ?look=new, or when
 * $look_default in that file is 'new'. It loads after destination-hub-explorer.css (unchanged).
 *
 * Scope: every rule lives under `.has-destination-next`, a body class only the new look adds, so
 * the old look cannot be affected. Colours, fonts and spacing tokens come from the base stylesheet.
 *
 * Contents
 * 1. Browse the collection: full-width white
 * 2. Cards and chips: depth, softer hover, keyboard focus
 * 3. Closing section: photo-led
 * 4. Responsive
 * 5. Reduced motion
 */


/* ── 1. Browse the collection: full-width white ─────────────────────────
 *
 * The old section is a 1320 px cream panel on the white page. Here the section runs edge to edge
 * on white and its children keep the old measure (1320 px minus 32 px padding on each side = 1256 px,
 * measured on Live), so cards, chips and the heading sit exactly where they did.
 */
.has-destination-next .dh-collection {
	max-width: none;
	margin: 0;
	background: #fff;
	padding: 96px 32px 104px;
}
.has-destination-next .dh-collection > * {
	max-width: 1256px;
	margin-left: auto;
	margin-right: auto;
}


/* ── 2. Cards and chips ───────────────────────────────────────────────── */
.has-destination-next .dh-card {
	box-shadow: 0 10px 30px -18px rgba(30, 26, 20, 0.45);
}
.has-destination-next .dh-card:hover .dh-card__media img {
	transform: scale(1.03);
}
.has-destination-next .dh-chip:focus-visible,
.has-destination-next .dh-card:focus-visible {
	outline: 2px solid var(--dh-terra);
	outline-offset: 3px;
}


/* ── 3. Closing section: photo-led ──────────────────────────────────────
 *
 * Photo, then the warm dark gradient the hero uses, then the text. The gradient is never lighter
 * than 0.62 so the light text keeps at least 4.5:1 over the brightest part of any photo.
 */
.has-destination-next .dh-cta {
	padding: 144px 32px;
}
.has-destination-next .dh-cta__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}
.has-destination-next .dh-cta__bg img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 40%;
}
.has-destination-next .dh-cta::before {
	z-index: 1;
	background: linear-gradient(180deg, rgba(30, 26, 20, 0.76) 0%, rgba(30, 26, 20, 0.72) 50%, rgba(30, 26, 20, 0.88) 100%);
}
.has-destination-next .dh-cta__inner {
	z-index: 2;
}


/* ── 4. Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 720px) {
	.has-destination-next .dh-collection {
		padding: 64px 20px 72px;
	}
	.has-destination-next .dh-cta {
		padding: 96px 24px;
	}
}


/* ── 5. Reduced motion ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.has-destination-next .dh-card:hover .dh-card__media img {
		transform: none;
	}
}
