/* Waypoint — interaction layer. Everything static lives in theme.json;
   this file only holds the handful of effects block supports can't reach. */

/* Front page only: float the header over the hero cover instead of stacking
   above it. ponytail: !important is a deliberate corner-cut here rather than
   a second header template-part variant — revisit if more than this one
   override is ever needed. */
.wp-hero-nav-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 10;
	background: transparent !important;
}
.wp-hero-nav-overlay,
.wp-hero-nav-overlay a {
	color: var(--wp--preset--color--cream) !important;
}

/* Destinations grid: staggered offset + darken-on-hover (see patterns/destinations-grid.php) */
.wp-destination-card--offset {
	margin-top: 88px;
}
.wp-destination-photo .wp-block-cover__background {
	transition: opacity 0.35s ease;
}
.wp-destination-card:hover .wp-destination-photo .wp-block-cover__background {
	opacity: 0.62;
}
.wp-destination-photo .wp-block-cover__inner-container {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
}
.wp-destination-stamp {
	color: var(--wp--preset--color--cream);
	opacity: 0;
	transform: rotate(-10deg) scale(1.18);
	transition: opacity 0.35s ease, transform 0.35s ease;
	pointer-events: none;
}
.wp-destination-card:hover .wp-destination-stamp {
	opacity: 1;
	transform: rotate(-10deg) scale(1);
}
@media (hover: none) {
	/* touch devices: stamp is always visible, hover-only concealment is a
	   desktop flourish, not something to hide content behind on mobile */
	.wp-destination-stamp {
		opacity: 1;
		transform: rotate(-10deg) scale(1);
	}
	.wp-destination-photo .wp-block-cover__background {
		opacity: 0.62;
	}
}
@media (max-width: 781px) {
	.wp-destination-card--offset {
		margin-top: 0;
	}
}

/* Featured itinerary: dot marker on each day (patterns/featured-itinerary.php) */
.wp-itinerary-timeline > .wp-block-group {
	position: relative;
}
.wp-itinerary-timeline > .wp-block-group::before {
	content: "";
	position: absolute;
	left: -57px;
	top: 5px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: currentColor;
	color: var(--wp--preset--color--terracotta);
}
.wp-itinerary-timeline > .wp-block-group:last-child::before {
	color: var(--wp--preset--color--ink);
}

/* Photo journal masonry (patterns/photo-journal.php) */
.wp-photo-journal {
	column-count: 3;
	column-gap: 40px;
}
.wp-photo-journal__entry {
	break-inside: avoid;
	margin-bottom: 64px;
	display: block;
}
.wp-photo-journal__frame img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.wp-photo-journal__frame--torn img {
	/* the notebook-page torn edge, ~2.5% deep serrations along the bottom */
	clip-path: polygon(0% 0%, 100% 0%, 100% 95%, 96% 97.5%, 91% 95.5%, 86% 98%, 80% 96%, 74% 98.5%, 68% 96%, 61% 98%, 55% 95.5%, 49% 98%, 43% 96.5%, 37% 98.5%, 31% 96%, 25% 98%, 19% 96%, 13% 98.5%, 7% 96.5%, 3% 98.5%, 0% 96%);
}
@media (max-width: 781px) {
	.wp-photo-journal {
		column-count: 1;
	}
}

/* Story chapter: pinned scroll scene + progress line (templates/story-chapter.html,
   patterns/story-chapter-scene.php). Pin duration = wrapper height minus 100vh,
   so 300vh gives a 200vh pin — long enough for the reveal to land mid-scroll. */
.wp-story-chapter-wrap {
	position: relative;
	height: 300vh;
}
.wp-story-chapter {
	position: sticky;
	top: 0;
	height: 100vh;
	overflow: hidden;
	background: #241f18;
}
.wp-story-chapter .wp-block-cover__inner-container {
	position: absolute;
	inset: 0;
	max-width: none;
}

.wp-story-chapter__number {
	color: transparent;
	-webkit-text-stroke: 1px rgba(232, 220, 200, 0.85);
}

.wp-story-reveal {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
.wp-story-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}
/* no-JS fallback: never trap content invisible if the enhancement script fails to load */
.no-js .wp-story-reveal {
	opacity: 1;
	transform: none;
}

.wp-story-progress {
	position: absolute;
	top: 0;
	right: 40px;
	bottom: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 56px 0;
	pointer-events: none;
}
.wp-story-progress__label {
	font-family: Karla, sans-serif;
	font-size: 10px;
	letter-spacing: 3px;
	color: rgba(232, 220, 200, 0.6);
	writing-mode: vertical-rl;
}
.wp-story-progress__track {
	position: relative;
	flex: 1;
	width: 1px;
	margin: 18px 0;
	background: rgba(232, 220, 200, 0.22);
	display: block;
}
.wp-story-progress-fill {
	position: absolute;
	top: 0;
	left: 0;
	width: 1px;
	height: 0%;
	background: var(--wp--preset--color--amber);
	transition: height 0.1s linear;
}

.wp-story-chapter__next-arrow {
	width: 34px;
	height: 34px;
	border: 1px solid rgba(232, 220, 200, 0.4);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--amber);
	font-size: 13px;
	animation: wp-bob 2.6s ease-in-out infinite;
}
@keyframes wp-bob {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
	.wp-story-chapter__next-arrow { animation: none; }
	.wp-story-reveal { transition: none; }
}

@media (max-width: 781px) {
	/* pinned full-viewport scenes are a desktop flourish; on small screens
	   let chapters scroll normally so text never gets cropped by 100vh */
	.wp-story-chapter-wrap { height: auto; }
	.wp-story-chapter { position: relative; height: auto; min-height: 100vh; }
	.wp-story-progress { display: none; }
}
