/* ==========================================================================
   Europe Odyssey — premium home page layer
   Loads after europeodyssey-homepage.css and only refines it.
   ========================================================================== */

:root {
	--eo-cream: #f7f2ea;
	--eo-cream-2: #fbf7f1;
	--eo-ink: #0f1a2e;
	--eo-ink-2: #3a4458;
	--eo-gold: #b8894a;
	--eo-orange: #e0592a;
	--eo-orange-hover: #c94b20;
	--eo-ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---- 1. HERO ----------------------------------------------------------- */
.eo-hero {
	min-height: clamp(580px, 84vh, 860px);
	max-height: none;
	align-items: center;
	padding-top: 110px;
	padding-bottom: 90px;
	background-position: center 40%;
	isolation: isolate;
}
/* Clear, vivid photo: a soft warm veil only behind the text, fading out by the middle. */
.eo-hero::before {
	background:
		linear-gradient(90deg, rgba(247, 242, 234, .94) 0%, rgba(247, 242, 234, .84) 30%, rgba(247, 242, 234, .45) 50%, rgba(247, 242, 234, 0) 66%),
		linear-gradient(180deg, rgba(15, 26, 46, .18) 0%, rgba(15, 26, 46, 0) 22%);
}
/* Seamless hand-off into the page background. */
.eo-hero::after {
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 120px;
	background: linear-gradient(180deg, rgba(247, 242, 234, 0), var(--eo-cream));
	z-index: 1;
	pointer-events: none;
}
.eo-hero-content {
	max-width: 760px;
	animation: eoHeroIn .9s var(--eo-ease) both;
}
@keyframes eoHeroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.eo-hero-title {
	font-size: clamp(46px, 6.2vw, 92px);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -.03em;
	text-shadow: none;
	margin-bottom: 22px;
	text-wrap: balance;
}
.eo-hero-subtitle {
	display: block;
	padding: 0;
	background: none;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	box-shadow: none;
	border: 0;
	border-radius: 0;
	font-size: clamp(17px, 1.6vw, 21px);
	font-weight: 500;
	color: var(--eo-ink-2);
	max-width: 520px;
}
.eo-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.eo-hero-btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 16px 30px; border-radius: 999px;
	font-family: var(--eo-font-sans, 'Plus Jakarta Sans', sans-serif);
	font-size: 15.5px; font-weight: 700; letter-spacing: .01em;
	text-decoration: none !important;
	transition: transform .3s var(--eo-ease), box-shadow .3s var(--eo-ease), background .2s;
}
.eo-hero-btn--primary { background: var(--eo-orange); color: #fff !important; box-shadow: 0 14px 30px rgba(224, 89, 42, .32); }
.eo-hero-btn--primary:hover { background: var(--eo-orange-hover); transform: translateY(-2px); box-shadow: 0 18px 36px rgba(224, 89, 42, .4); }
.eo-hero-btn--ghost { background: rgba(255, 255, 255, .72); color: var(--eo-ink) !important; border: 1px solid rgba(15, 26, 46, .14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.eo-hero-btn--ghost:hover { background: #fff; transform: translateY(-2px); }
.eo-hero-trust {
	display: flex; flex-wrap: wrap; gap: 8px 22px;
	list-style: none; margin: 30px 0 0; padding: 0;
	font-family: var(--eo-font-sans, 'Plus Jakarta Sans', sans-serif);
	font-size: 13.5px; font-weight: 600; color: var(--eo-ink-2);
}
.eo-hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.eo-hero-trust li + li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--eo-gold); margin-right: 14px; }
.eo-hero-trust__stars { color: #f5a623; letter-spacing: 1px; font-size: 13px; }

/* ---- 2. SECTION RHYTHM ---------------------------------------------------- */
.eo-puzzles-master-section { background: var(--eo-cream); }
.eo-city-puzzle-block { padding-top: 40px; padding-bottom: 40px; }
.eo-city-puzzle-block + .eo-city-puzzle-block { border-top: 1px solid rgba(184, 137, 74, .18); }
.eo-puzzle-city-heading {
	font-weight: 600 !important;
	letter-spacing: -.02em;
	text-wrap: balance;
}
.eo-puzzle-intro { margin-bottom: 34px; }

/* ---- 3. JIGSAW PUZZLES ---------------------------------------------------- */
.eo-puzzle-layout {
	position: relative;
	--g: 14px;                 /* gap between pieces */
	--knob-y: 120px;           /* vertical centre of the map piece */
	gap: var(--g) !important;
}
.eo-puzzle-rome-layout { grid-template-rows: 250px 250px; --knob-y: 125px; }
.eo-puzzle-florence-layout,
.eo-puzzle-venice-layout { grid-template-rows: 260px 250px; --knob-y: 130px; }
/* Florence / Venice: tall side pieces like the design. */
.eo-puz-florence-david, .eo-puz-florence-duomo,
.eo-puz-venice-marks, .eo-puz-venice-doges { grid-row: 1 / span 2 !important; }

/* Pieces */
.eo-puz-card {
	border: 0 !important;
	border-radius: 18px !important;
	box-shadow: 0 18px 40px rgba(15, 26, 46, .12), 0 3px 10px rgba(15, 26, 46, .06) !important;
	isolation: isolate;
}
.eo-puz-card::after {          /* bottom gradient for the label */
	content: '';
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(10, 16, 30, 0) 45%, rgba(10, 16, 30, .78) 100%);
	z-index: 2;
	pointer-events: none;
	transition: opacity .3s;
}
.eo-puz-card:hover {
	transform: translateY(-6px) !important;
	box-shadow: 0 28px 56px rgba(15, 26, 46, .2), 0 6px 16px rgba(15, 26, 46, .08) !important;
}

/* Sockets cut into the photo pieces that touch the map piece. */
.eo-puz-rome-vatican, .eo-puz-florence-david, .eo-puz-venice-marks {
	-webkit-mask: radial-gradient(circle 17px at calc(100% + 7px) var(--knob-y), transparent 16px, #000 17px);
	        mask: radial-gradient(circle 17px at calc(100% + 7px) var(--knob-y), transparent 16px, #000 17px);
}
.eo-puz-rome-colosseum, .eo-puz-florence-duomo, .eo-puz-venice-doges {
	-webkit-mask: radial-gradient(circle 17px at -7px var(--knob-y), transparent 16px, #000 17px);
	        mask: radial-gradient(circle 17px at -7px var(--knob-y), transparent 16px, #000 17px);
}
.eo-puz-rome-churches, .eo-puz-florence-highlights, .eo-puz-venice-private {
	-webkit-mask: radial-gradient(circle 17px at 50% -7px, transparent 16px, #000 17px);
	        mask: radial-gradient(circle 17px at 50% -7px, transparent 16px, #000 17px);
}
/* Masks remove the outer shadow; give the masked pieces depth with drop-shadow on hover instead. */
.eo-puz-rome-vatican, .eo-puz-rome-colosseum, .eo-puz-rome-churches,
.eo-puz-florence-david, .eo-puz-florence-duomo, .eo-puz-florence-highlights,
.eo-puz-venice-marks, .eo-puz-venice-doges, .eo-puz-venice-private { box-shadow: none !important; }

/* Pegs: tabs of the map piece that sit in those sockets (columns are 1fr 1.25fr 1fr). */
.eo-peg {
	position: absolute;
	width: 26px; height: 26px;
	margin: -13px 0 0 -13px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #fffdf8, #f3e9d6);
	box-shadow: 0 0 0 1px rgba(184, 137, 74, .35), 0 3px 8px rgba(15, 26, 46, .12);
	z-index: 6;
	pointer-events: none;
}
.eo-peg--l { left: calc((100% - 2 * var(--g)) / 3.25 + var(--g) / 2); top: var(--knob-y); }
.eo-peg--r { left: calc((100% - 2 * var(--g)) * 2.25 / 3.25 + var(--g) * 1.5); top: var(--knob-y); }
.eo-peg--b { left: calc((100% - 2 * var(--g)) * 1.625 / 3.25 + var(--g)); top: calc(var(--knob-y) * 2 + var(--g) / 2); }

/* Labels: serif name + circled arrow on the photo (no dark pill). */
.eo-puz-card-label {
	left: 20px !important; right: 20px !important; bottom: 18px !important;
	padding: 0 !important;
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
	border-radius: 0 !important;
	z-index: 3 !important;
}
.eo-puz-name {
	font-family: var(--eo-font-serif, 'Playfair Display', Georgia, serif) !important;
	font-size: clamp(19px, 1.6vw, 24px) !important;
	font-weight: 600 !important;
	line-height: 1.15;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.eo-puz-arrow {
	flex-shrink: 0;
	display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, .85);
	color: #fff !important; font-size: 15px;
	transition: background .3s var(--eo-ease), border-color .3s, transform .3s var(--eo-ease);
}
.eo-puz-card:hover .eo-puz-arrow { background: var(--eo-orange); border-color: var(--eo-orange); transform: translateX(3px); }

/* Map piece: let the illustrated map show, with a soft centre for the title. */
.eo-puzzle-center-card {
	border-radius: 18px !important;
	border: 0 !important;
	box-shadow: 0 0 0 1px rgba(184, 137, 74, .28), 0 18px 40px rgba(15, 26, 46, .1) !important;
	background-size: 115% !important;
	transition: background-size 1.2s var(--eo-ease);
}
.eo-puzzle-layout:hover .eo-puzzle-center-card { background-size: 122% !important; }
.eo-puzzle-center-card::before {
	background: radial-gradient(ellipse 58% 46% at center, rgba(251, 247, 241, .94) 0%, rgba(251, 247, 241, .78) 55%, rgba(251, 247, 241, .18) 100%) !important;
}
.eo-puzzle-center-tag { color: var(--eo-gold) !important; letter-spacing: 3px !important; }
.eo-puzzle-center-title {
	font-size: clamp(38px, 3.8vw, 54px) !important;
	letter-spacing: .14em !important;
	font-weight: 600 !important;
	color: var(--eo-ink) !important;
}
.eo-btn-puzzle-center { padding: 11px 24px !important; font-weight: 700 !important; }

.eo-puzzle-caption { font-size: 17px; color: var(--eo-ink-2); }
.eo-puzzle-trust-strip { box-shadow: 0 10px 30px rgba(15, 26, 46, .06); border-color: rgba(184, 137, 74, .2); }

/* ---- 4. OTHER SECTIONS: depth & hover consistency ---------------------- */
.eo-beyond-section, .eo-story-feature-section, .eo-split-section { background-color: var(--eo-cream); }
.eo-beyond-card, .eo-split-card, .eo-dest-item {
	transition: transform .35s var(--eo-ease), box-shadow .35s var(--eo-ease);
}
.eo-beyond-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px rgba(15, 26, 46, .14); }

/* Scroll reveal (added by the inline script) */
.eo-reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--eo-ease), transform .8s var(--eo-ease); }
.eo-reveal.is-in { opacity: 1; transform: none; }

/* ---- 5. RESPONSIVE --------------------------------------------------------- */
@media (max-width: 991px) {
	.eo-hero { padding-left: 32px; padding-right: 32px; min-height: 620px; }
	.eo-hero::before { background: linear-gradient(180deg, rgba(247, 242, 234, .9) 0%, rgba(247, 242, 234, .75) 45%, rgba(247, 242, 234, .1) 80%); }
	.eo-peg { display: none; }
	.eo-puz-card { -webkit-mask: none !important; mask: none !important; box-shadow: 0 14px 30px rgba(15, 26, 46, .12) !important; }
}
@media (max-width: 575px) {
	.eo-hero { padding-left: 20px; padding-right: 20px; padding-top: 96px; }
	.eo-hero-btn { width: 100%; justify-content: center; }
	.eo-hero-trust { gap: 6px 14px; font-size: 12.5px; }
	.eo-hero-trust li + li::before { margin-right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
	.eo-hero-content, .eo-reveal { animation: none; transition: none; opacity: 1; transform: none; }
}

/* ---- 6. Final touches ---------------------------------------------------- */
.eo-hero-trust li { text-shadow: 0 0 10px rgba(247, 242, 234, .95), 0 0 2px rgba(247, 242, 234, .9); }
.eo-beyond-link { color: var(--eo-orange) !important; font-weight: 700 !important; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.eo-beyond-card:hover .eo-beyond-link { color: var(--eo-orange-hover) !important; }

/* ---- 7. Phones: readable hero, compact two-column puzzles ------------------ */
@media (max-width: 767px) {
	.eo-hero { min-height: 0; padding-bottom: 70px; background-position: 70% center; }
	.eo-hero::before { background: linear-gradient(180deg, rgba(247, 242, 234, .93) 0%, rgba(247, 242, 234, .88) 62%, rgba(247, 242, 234, .55) 82%, rgba(247, 242, 234, .2) 100%) !important; }
	.eo-hero-trust { flex-direction: column; gap: 6px; }
	.eo-hero-trust li + li::before { display: none; }

	.eo-puzzle-layout { grid-template-columns: 1fr 1fr !important; grid-template-rows: none !important; grid-auto-rows: 170px !important; gap: 12px !important; }
	.eo-puzzle-layout .eo-puzzle-center-card { grid-column: 1 / -1 !important; grid-row: auto !important; }
	.eo-puzzle-layout .eo-puz-card { grid-column: auto !important; grid-row: auto !important; height: auto !important; }
	.eo-puzzle-layout .eo-puz-card:last-of-type:nth-of-type(odd) { grid-column: 1 / -1 !important; }
	.eo-puz-card-label { left: 12px !important; right: 12px !important; bottom: 12px !important; }
	.eo-puz-name { font-size: 17px !important; }
	.eo-puz-arrow { width: 30px; height: 30px; font-size: 13px; }
}
@media (max-width: 767px) {
	.eo-puzzle-layout .eo-puz-card { min-height: 0 !important; height: 100% !important; }
	.eo-puzzle-layout .eo-puzzle-center-card { min-height: 0 !important; height: 100% !important; }
	.eo-puzzle-layout { grid-auto-rows: 180px !important; }
	.eo-puzzle-caption { margin-top: 22px; }
}
