/* Tour CPT: archive grid, tour card, single-tour meta info block. Consumes the --accent
   var printed inline in <head> (--header-bg is deliberately not used for text here).
   Radius/shadow/transition/hover-lift values here are not yet tokenized — see the
   design-token drift note at the top of theme.css (deferred cleanup). */

.aguwana-tour-archive-title {
	margin-top: 0;
}

.aguwana-tour-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
	margin-top: 24px;
}

.aguwana-tour-card {
	display: flex;
	flex-direction: column;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	transition: transform .25s ease, box-shadow .25s ease;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}

.aguwana-tour-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.aguwana-tour-card-media {
	position: relative;
	overflow: hidden;
}

.aguwana-tour-card-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	/* Dark overlay, not --accent: accent is admin-editable with no contrast check,
	   so a light accent would break white-text contrast. Fixed dark bg keeps AA. */
	background: rgba(0, 0, 0, .55);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
	font-size: .75rem;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
	z-index: 1;
	letter-spacing: .02em;
	max-width: calc(100% - 24px);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.aguwana-tour-card-thumb {
	display: block;
	height: 220px;
	background: #e9eef2;
}

.aguwana-tour-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s ease;
}

.aguwana-tour-card:hover .aguwana-tour-card-thumb img {
	transform: scale(1.08);
}

.aguwana-tour-card-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: #e9eef2;
}

.aguwana-tour-card-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.aguwana-tour-card-title {
	margin: 0;
	font-weight: 700;
	font-size: 1.15rem;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.aguwana-tour-card-title a {
	color: inherit;
	text-decoration: none;
}

.aguwana-tour-card-meta {
	display: flex;
	gap: 12px;
	margin: 0;
	font-size: 0.9rem;
	color: var(--accent, #0f7a94);
	font-weight: 600;
}

.aguwana-tour-card-location-row {
	margin: 0;
}

.aguwana-tour-card-location {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.85rem;
	opacity: 0.8;
	color: inherit;
	font-weight: 400;
}

.aguwana-tour-card-excerpt {
	font-size: 0.9rem;
	line-height: 1.5;
	opacity: 0.85;
}

.aguwana-tour-card-link {
	margin-top: auto;
	align-self: flex-start;
	background: var(--accent, #0f7a94);
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
	padding: 8px 16px;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
	transition: background-color .25s ease, transform .25s ease, filter .25s ease;
}

.aguwana-tour-card-link:hover,
.aguwana-tour-card-link:focus-visible {
	filter: brightness(0.85);
	transform: translateY(-1px);
}

/* Single-tour hero: full-bleed image + overlay, or plain fallback panel when
   no featured image is set (all 11 current tour posts). */
.aguwana-tour-hero {
	position: relative;
	min-height: 360px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	align-items: flex-end;
}

.aguwana-tour-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(10, 37, 64, 0.75), rgba(10, 37, 64, 0) 60%);
}

.aguwana-tour-hero-content {
	position: relative;
	z-index: 1;
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	padding: 24px 20px 32px;
}

.aguwana-tour-hero-title {
	margin: 0 0 8px;
	color: #fff;
	font-size: 1.8rem;
	overflow-wrap: anywhere;
}

.aguwana-tour-hero-meta {
	margin: 0;
	color: #fff;
	font-size: 1rem;
	opacity: 0.9;
}

.aguwana-tour-hero--plain {
	min-height: 0;
	background: #f4f7f9;
	align-items: stretch;
}

.aguwana-tour-hero--plain .aguwana-tour-hero-content {
	padding: 40px 20px;
}

.aguwana-tour-hero--plain .aguwana-tour-hero-title {
	/* Fixed brand navy, intentionally NOT var(--header-bg): this is text on
	   light #f4f7f9, and an admin-picked light header-bg would kill contrast. */
	color: #0a2540;
}

.aguwana-tour-hero--plain .aguwana-tour-hero-meta {
	color: var(--accent, #0f7a94);
	opacity: 1;
	font-weight: 600;
}

@media (max-width: 768px) {
	.aguwana-tour-hero {
		min-height: 240px;
	}

	/* Same specificity as the rule above, so it must come after it here or
	   the 240px min-height wins on mobile for plain (no-image) heroes. */
	.aguwana-tour-hero--plain {
		min-height: 0;
	}
}

/* Two-column body: main content + sticky booking sidebar.
   Overflow guard at 320-375px has three parts:
   1. minmax(0, 1fr) not 1fr: bare 1fr = minmax(auto, 1fr), so min-content
      of long unbroken words/wide embeds would grow the track itself.
   2. min-width: 0 on the grid items below: grid items default to
      min-width: auto, so they can still overflow a 0-min track visually.
   3. overflow-wrap: anywhere on .entry-content (theme.css) lets long
      URLs/words break instead of forcing width. */
.aguwana-tour-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
}

.aguwana-tour-main,
.aguwana-tour-sidebar {
	min-width: 0;
}

@media (min-width: 769px) {
	.aguwana-tour-layout {
		grid-template-columns: 2fr 1fr;
		gap: 40px;
	}

	.aguwana-tour-sidebar {
		position: sticky;
		/* Admin bar + desktop sticky header (theme.css .site-header-inner:
		   16px x 2 padding + 52px max logo height = 84px) + 16px gap. */
		top: calc(var(--wp-admin--admin-bar--height, 0px) + 84px + 16px);
		align-self: start;
	}
}

.aguwana-tour-booking-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	padding: 24px;
}

.aguwana-tour-booking-price {
	margin: 0 0 16px;
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--accent, #0f7a94);
}

.aguwana-tour-booking-price--muted {
	font-size: 1rem;
	font-weight: 400;
	font-style: italic;
	color: #666; /* 5.74:1 on #fff (AA); #777 was 4.48:1 */
}

.aguwana-tour-booking-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 12px;
	font-size: 0.95rem;
}

.aguwana-tour-booking-label {
	color: #666; /* 5.74:1 on #fff (AA); #777 was 4.48:1 */
}

.aguwana-tour-booking-value {
	font-weight: 600;
	/* Fixed brand navy, not var(--header-bg): text on #fff card (see hero title). */
	color: #0a2540;
}

.aguwana-tour-booking-divider {
	border: none;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	margin: 16px 0;
}

.aguwana-tour-booking-cta {
	display: block;
	width: 100%;
	text-align: center;
}

.aguwana-tour-gallery {
	margin: 24px 0;
}

.aguwana-tour-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 12px;
}

.aguwana-tour-gallery-grid a {
	display: block;
	border-radius: 8px;
	overflow: hidden;
}

.aguwana-tour-gallery-grid img {
	width: 100%;
	height: 150px;
	object-fit: cover;
	display: block;
	border-radius: 8px;
}

.aguwana-tour-includes {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
	margin: 20px 0;
}

@media (min-width: 769px) {
	.aguwana-tour-includes {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.aguwana-tour-includes-block h2 {
	margin-top: 0;
	margin-bottom: 8px;
	font-size: 1rem;
}

.aguwana-tour-includes-block ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.aguwana-tour-includes-block li {
	position: relative;
	padding-left: 24px;
	color: #333;
}

.aguwana-list-check li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 0;
	color: #2e9e4f;
	font-weight: 700;
}

.aguwana-list-cross li::before {
	content: "\2715";
	position: absolute;
	left: 0;
	top: 0;
	color: #c0392b;
	font-weight: 700;
}

.aguwana-list-bullet li::before {
	content: "";
	position: absolute;
	left: 6px;
	top: 0.5em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent, #0f7a94);
}

/* Admin Tour Gallery meta box styles live in inc/cpt-tour.php (aguwana_tour_gallery_admin_css). */

@media (prefers-reduced-motion: reduce) {
	.aguwana-tour-card,
	.aguwana-tour-card-thumb img {
		transition: none;
	}

	.aguwana-tour-card:hover,
	.aguwana-tour-card:hover .aguwana-tour-card-thumb img {
		transform: none;
	}

	.aguwana-tour-card-link:hover,
	.aguwana-tour-card-link:focus-visible {
		transform: none;
	}
}
