/**
 * "While You Wait" nearby-spots section.
 *
 * A titled intro followed by a responsive card grid (1 column mobile, 2 tablet,
 * 3 desktop) of nearby coffee shops, cafes and Hudson River waterfront spots.
 * Reuses the theme's --mytheme-* design tokens from responsive.css so it stays
 * on-brand and dark-mode friendly.
 *
 * @package my-theme
 */

.while-you-wait {
	background: var(--mytheme-surface, #ffffff);
	color: var(--mytheme-ink, #16202c);
	padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.while-you-wait__inner {
	width: 100%;
}

/* --- Section heading ------------------------------------------------------ */

.while-you-wait__head {
	max-width: 44rem;
	margin: 0 auto clamp(2rem, 5vw, 3rem);
	text-align: center;
}

.while-you-wait__eyebrow {
	margin: 0 0 0.5rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mytheme-accent, #c8281e);
}

.while-you-wait__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	line-height: 1.15;
	font-weight: 800;
}

.while-you-wait__intro {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--mytheme-muted, #5a6675);
}

/* --- Card grid: mobile-first ---------------------------------------------- */

.while-you-wait__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.25rem;
	grid-template-columns: 1fr;
}

.wyw-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.6rem;
	background: var(--mytheme-bg, #f5f7fa);
	border: 1px solid var(--mytheme-border, #e3e8ef);
	border-radius: var(--mytheme-radius, 12px);
	box-shadow: var(--mytheme-shadow, 0 6px 20px rgba(16, 32, 44, 0.08));
	padding: 1.5rem;
	transition: transform var(--mytheme-duration, 220ms) var(--mytheme-ease, ease),
		box-shadow var(--mytheme-duration, 220ms) var(--mytheme-ease, ease);
}

.wyw-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--mytheme-shadow-lg, 0 16px 40px rgba(16, 32, 44, 0.14));
}

.wyw-card__name {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.25;
}

.wyw-card__walk {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	padding: 0.2rem 0.6rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--mytheme-accent-dark, #a71d15);
	background: rgba(200, 40, 30, 0.08);
	border-radius: var(--mytheme-radius-sm, 8px);
}

.wyw-card__walk-icon {
	flex: 0 0 auto;
}

.wyw-card__desc {
	margin: 0;
	font-size: 0.9875rem;
	line-height: 1.55;
	color: var(--mytheme-muted, #5a6675);
}

/* Push the directions link to the bottom of every card for a tidy grid. */
.wyw-card__directions {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: auto;
	padding-top: 0.4rem;
	min-height: var(--mytheme-touch, 44px);
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--mytheme-accent, #c8281e);
	text-decoration: none;
	transition: color var(--mytheme-duration, 220ms) var(--mytheme-ease, ease);
}

.wyw-card__directions:hover,
.wyw-card__directions:focus-visible {
	color: var(--mytheme-accent-dark, #a71d15);
	text-decoration: underline;
}

.wyw-card__directions:focus-visible {
	outline: 3px solid var(--mytheme-accent, #c8281e);
	outline-offset: 3px;
	border-radius: 2px;
}

.wyw-card__directions-icon {
	flex: 0 0 auto;
}

/* --- Accessibility helper ------------------------------------------------- */

.while-you-wait .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* --- Tablet / desktop ----------------------------------------------------- */

@media (min-width: 640px) {
	.while-you-wait__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.while-you-wait__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.5rem;
	}
}

/* --- Dark mode ------------------------------------------------------------ */

[data-theme="dark"] .while-you-wait {
	background: var(--mytheme-bg, #0f1620);
	color: var(--mytheme-ink, #eef2f7);
}

[data-theme="dark"] .wyw-card {
	background: var(--mytheme-surface, #16202c);
}

@media (prefers-reduced-motion: reduce) {
	.wyw-card {
		transition: none;
	}

	.wyw-card:hover {
		transform: none;
	}
}
