/* Morning (sunrise) boat ride page — visuals and motion on top of the shared boat/package styles.
   Scoped to .boat-page--morning, so no other page is affected. Motion is transform/opacity only,
   paused while the hero is off-screen, and switched off for prefers-reduced-motion. */

.boat-page--morning {
	--mbr-ink: #08202f;
	--mbr-dawn: #f6a54a;
	--mbr-rose: #e8704f;
	--mbr-sky: #2b6f9e;
}

/* ═════════════ Hero scene ═════════════ */
.boat-page--morning .pkg-hero { isolation: isolate; }
/* No availability form on this page, so the hero text sits alone and the sunrise scene gets the room */
.boat-page--morning .pkg-hero__inner { grid-template-columns: minmax(0, 700px); }
.boat-page--morning .pkg-hero { min-height: 540px; display: flex; align-items: center; }
.boat-page--morning .pkg-hero > .pkg-hero__inner { width: 100%; }
.boat-page--morning .pkg-hero::after { background: linear-gradient(90deg, rgba(1,23,37,.92) 0%, rgba(3,46,66,.8) 42%, rgba(3,46,66,.42) 70%, rgba(3,46,66,.18) 100%); }
.mbr-fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.mbr-sun {
	position: absolute; left: 46%; top: 36%; width: 860px; height: 380px; margin: -190px 0 0 -430px;
	background: radial-gradient(ellipse at 50% 58%, rgba(255,232,160,.95) 0%, rgba(255,184,84,.55) 26%, rgba(255,140,50,.16) 52%, rgba(255,140,50,0) 70%);
	animation: mbr-rise 5.5s cubic-bezier(.2,.7,.2,1) both, mbr-glow 7s ease-in-out 5.5s infinite alternate;
}
.mbr-fx::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,160,70,0) 38%, rgba(255,150,60,.2) 100%); }
@keyframes mbr-rise { from { transform: translateY(150px) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes mbr-glow { from { transform: scale(1); opacity: .92; } to { transform: scale(1.1); opacity: 1; } }

.mbr-mist { position: absolute; left: -10%; width: 70%; height: 90px; border-radius: 50%; filter: blur(22px); background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.24), rgba(255,255,255,0)); }
.mbr-mist--1 { bottom: 16%; animation: mbr-mist 46s ease-in-out infinite alternate; }
.mbr-mist--2 { bottom: 30%; width: 55%; height: 70px; opacity: .7; animation: mbr-mist 62s ease-in-out -22s infinite alternate-reverse; }
@keyframes mbr-mist { from { transform: translateX(-6%); } to { transform: translateX(58%); } }

.mbr-bird { position: absolute; top: var(--t); left: 0; width: 34px; height: 14px; fill: rgba(8,32,47,.7); animation: mbr-fly var(--s) linear var(--d) infinite, mbr-flap .75s ease-in-out infinite alternate; }
.mbr-bird--sm { width: 22px; height: 9px; }
@keyframes mbr-fly { from { transform: translate3d(-60px, 0, 0); } to { transform: translate3d(105vw, -26px, 0); } }
@keyframes mbr-flap { from { scale: 1 1; } to { scale: 1 .5; } }

.mbr-glints i { position: absolute; left: var(--x); top: var(--y); width: 26px; height: 2px; border-radius: 2px; background: rgba(255,240,200,.95); box-shadow: 0 0 8px rgba(255,220,140,.9); opacity: 0; animation: mbr-glint 3.6s ease-in-out var(--d) infinite; }
@keyframes mbr-glint { 0%, 100% { opacity: 0; transform: scaleX(.4); } 50% { opacity: .9; transform: scaleX(1); } }

.mbr-sail { position: absolute; left: 0; bottom: 1.2%; width: 190px; height: 60px; animation: mbr-sail 80s linear infinite; }
@keyframes mbr-sail { from { transform: translate3d(-230px, 0, 0); } to { transform: translate3d(106vw, 0, 0); } }
.mbr-sail__bob { position: relative; display: block; width: 100%; height: 100%; animation: mbr-bob 3.6s ease-in-out infinite alternate; }
@keyframes mbr-bob { from { transform: translateY(-3px) rotate(-.8deg); } to { transform: translateY(3px) rotate(.8deg); } }
.mbr-sail .mbr-boat { display: block; width: 190px; height: 60px; fill: var(--mbr-ink); color: var(--mbr-ink); opacity: .72; }
.mbr-ripple { position: absolute; left: 12px; right: 12px; bottom: 2px; height: 10px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.4); opacity: .8; animation: mbr-ripple 2.8s ease-in-out infinite; }
@keyframes mbr-ripple { 0%, 100% { transform: scaleX(.9); opacity: .35; } 50% { transform: scaleX(1.06); opacity: .8; } }
.pkg-hero.is-paused .mbr-fx * { animation-play-state: paused; }
.pkg-hero.is-paused .mbr-fx { animation-play-state: paused; }

/* Section titles: a short underline that draws itself when the section scrolls into view */
.boat-page--morning h2.pkg-title::after { content: ""; display: block; width: 68px; height: 4px; margin: 12px auto 0; border-radius: 4px; background: linear-gradient(90deg, var(--mbr-dawn), var(--pkg-primary)); transform: scaleX(0); transition: transform .8s cubic-bezier(.2,.8,.2,1) .15s; }
.boat-page--morning .is-visible h2.pkg-title::after { transform: scaleX(1); }

/* ═════════════ Cards: icons and entrance ═════════════ */
.boat-page--morning .pkg-card { position: relative; transition: transform .3s ease, box-shadow .3s ease; }
.boat-page--morning .pkg-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(3,46,66,.14); }
.boat-page--morning .pkg-card__icon { width: 46px; height: 46px; padding: 12px; margin-bottom: 14px; border-radius: 14px; color: #fff; fill: #fff; background: linear-gradient(140deg, var(--mbr-dawn), var(--pkg-primary)); box-shadow: 0 10px 22px rgba(216,48,48,.28); transition: transform .4s cubic-bezier(.3,1.5,.5,1); }
.boat-page--morning .pkg-card:hover .pkg-card__icon { transform: rotate(-8deg) scale(1.1); }
.boat-page--morning .pkg-cards .pkg-card:nth-child(1) { --i: 0; }
.boat-page--morning .pkg-cards .pkg-card:nth-child(2) { --i: 1; }
.boat-page--morning .pkg-cards .pkg-card:nth-child(3) { --i: 2; }
.boat-page--morning .pkg-cards .pkg-card:nth-child(4) { --i: 3; }
.boat-page--morning .pkg-cards .pkg-card:nth-child(5) { --i: 4; }
.boat-page--morning .pkg-cards .pkg-card:nth-child(6) { --i: 5; }
.boat-page--morning .is-visible .pkg-card,
.boat-page--morning .is-visible .pkg-service,
.boat-page--morning .is-visible .pkg-place { animation: mbr-pop .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 80ms); }
@keyframes mbr-pop { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }

/* ═════════════ Route scene ═════════════ */
.mbr-scene { margin: 0 auto 34px; max-width: 1000px; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 56px rgba(3,46,66,.22); background: #16314d; }
.mbr-scene svg { display: block; width: 100%; height: auto; }
.mbr-scene__label { font-family: 'Poppins', 'Inter', sans-serif; font-weight: 700; font-size: 15px; fill: #fff; paint-order: stroke; stroke: rgba(8,20,34,.6); stroke-width: 3px; stroke-linejoin: round; }
.mbr-pin__num { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 15px; fill: #0a2a43; }
.mbr-pin__ring, .mbr-pin__dot { transform-box: fill-box; transform-origin: center; }
.mbr-pin__ring { animation: mbr-ping var(--l) linear var(--a) infinite; }
.mbr-pin__dot { animation: mbr-ping-dot var(--l) linear var(--a) infinite; }
@keyframes mbr-ping { 0%, 8%, 100% { transform: scale(1); fill: #fff; } 2% { transform: scale(1.4); fill: #ffd27a; } }
@keyframes mbr-ping-dot { 0%, 8%, 100% { transform: scale(1); } 2% { transform: scale(2.2); } }
.mbr-scene__sun { transform: translateY(30px); opacity: .2; }
.mbr-route.is-visible .mbr-scene__sun { animation: mbr-scene-sun 4s cubic-bezier(.2,.7,.2,1) .2s both; }
@keyframes mbr-scene-sun { from { transform: translateY(30px); opacity: .2; } to { transform: none; opacity: 1; } }
.mbr-scene__shine rect { transform-box: fill-box; transform-origin: center; animation: mbr-shine 3.4s ease-in-out infinite; }
.mbr-scene__shine rect:nth-child(2) { animation-delay: .5s; }
.mbr-scene__shine rect:nth-child(3) { animation-delay: 1s; }
.mbr-scene__shine rect:nth-child(4) { animation-delay: 1.5s; }
.mbr-scene__shine rect:nth-child(5) { animation-delay: 2s; }
@keyframes mbr-shine { 0%, 100% { transform: scaleX(.55); opacity: .35; } 50% { transform: scaleX(1.1); opacity: .95; } }

.mbr-stops { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 0 0 8px; padding: 0; list-style: none; counter-reset: none; }
.mbr-stop { position: relative; padding: 24px 18px 18px; background: #fff; border: 1px solid var(--pkg-line); border-radius: var(--pkg-radius); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.mbr-stop:hover { transform: translateY(-6px); border-color: var(--mbr-dawn); box-shadow: 0 18px 36px rgba(3,46,66,.13); }
.mbr-stop__n { position: absolute; top: -15px; left: 16px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font: 800 14px 'Poppins', sans-serif; color: #fff; background: linear-gradient(140deg, var(--mbr-dawn), var(--pkg-primary)); box-shadow: 0 6px 14px rgba(216,48,48,.3); }
.boat-page--morning .mbr-stop h3 { font-size: 16.5px; margin: 0 0 6px; }
.mbr-stop p { margin: 0 0 10px; font-size: 14.5px; color: #4b5a60; }
.mbr-stop__link { font-size: 13.5px; font-weight: 700; text-decoration: none; }
.mbr-stop__link:hover { text-decoration: underline; }
.is-visible .mbr-stop { animation: mbr-pop .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 90ms); }

/* ═════════════ Sunrise finder ═════════════ */
.mbr-finder { max-width: 880px; margin: 0 auto 44px; padding: 26px; border-radius: 24px; background: #fff; border: 1px solid var(--pkg-line); box-shadow: 0 22px 50px rgba(3,46,66,.12); position: relative; }
.mbr-finder::before { content: ""; position: absolute; left: 26px; right: 26px; top: 0; height: 4px; border-radius: 0 0 6px 6px; background: linear-gradient(90deg, #26344f, #c9628a 34%, var(--mbr-dawn) 62%, #ffe3a0); }
.mbr-finder__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.mbr-finder__head label { font: 700 17px 'Poppins', sans-serif; color: var(--pkg-navy); }
.mbr-finder__head input { min-height: 46px; padding: 8px 14px; border: 2px solid var(--pkg-line); border-radius: 12px; font: 600 16px 'Inter', sans-serif; color: var(--pkg-navy); background: #f8fafb; transition: border-color .2s, box-shadow .2s; }
.mbr-finder__head input:focus { outline: none; border-color: var(--mbr-dawn); box-shadow: 0 0 0 4px rgba(246,165,74,.25); }

.mbr-sky { position: relative; height: 170px; margin-bottom: 18px; border-radius: 18px; overflow: hidden; container-type: inline-size; background: linear-gradient(90deg, #0f1c36 0%, #2a3e6c 14%, #76588a 27%, #d9728a 39%, #f49a5a 51%, #ffc86d 65%, #ffe6ac 83%, #fff3d2 100%); }
.mbr-sky__water { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(180deg, rgba(18,52,79,.55), rgba(10,32,52,.9)); }
.mbr-sky__water::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,0) 0 28px, rgba(255,255,255,.14) 28px 31px, rgba(255,255,255,0) 31px 64px); animation: mbr-wave 8s linear infinite; }
@keyframes mbr-wave { to { transform: translateX(64px); } }
.mbr-sky__glow { position: absolute; bottom: 24px; width: 230px; height: 230px; margin-left: -115px; border-radius: 50%; background: radial-gradient(circle, rgba(255,240,180,.8), rgba(255,190,90,.3) 40%, rgba(255,160,60,0) 70%); transition: left .9s cubic-bezier(.3,.9,.3,1); animation: mbr-glow 5s ease-in-out infinite alternate; }
.mbr-sky__sun { position: absolute; bottom: 33px; width: 46px; height: 46px; margin-left: -23px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fffdf0, #ffe08a 70%, #ffc65a); box-shadow: 0 0 36px 12px rgba(255,214,120,.7); transition: left .9s cubic-bezier(.3,.9,.3,1); }
.mbr-sky__boat { position: absolute; left: 0; bottom: 8px; width: 74px; height: 24px; fill: #061a28; color: #061a28; opacity: .85; transform: translateX(-90px); animation: mbr-strip-sail 26s linear infinite; }
@keyframes mbr-strip-sail { from { transform: translateX(-90px); } to { transform: translateX(110vw); transform: translateX(calc(100cqw + 90px)); } }
.mbr-tick { position: absolute; top: 12px; bottom: 40px; width: 0; border-left: 2px dashed rgba(255,255,255,.7); transition: left .9s cubic-bezier(.3,.9,.3,1); }
.mbr-tick b { position: absolute; top: 0; left: 0; transform: translateX(-50%); white-space: nowrap; padding: 3px 10px; border-radius: 999px; font: 700 12px 'Inter', sans-serif; color: #fff; background: rgba(8,22,40,.6); backdrop-filter: blur(4px); }
.mbr-tick--rise b { background: #d83030; box-shadow: 0 4px 12px rgba(216,48,48,.4); }

.mbr-times { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 12px; margin: 0 0 16px; }
.mbr-times > div { text-align: center; padding: 14px 10px; border-radius: 16px; background: var(--pkg-light); }
.mbr-times dt { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pkg-gray); }
.mbr-times dd { margin: 4px 0 0; font: 800 26px 'Poppins', sans-serif; color: var(--pkg-navy); font-variant-numeric: tabular-nums; }
.mbr-times__main { background: linear-gradient(140deg, #fff3d4, #ffd9a0) !important; box-shadow: inset 0 0 0 2px rgba(246,165,74,.55); }
.mbr-times__main dd { font-size: 36px; color: #7a2b08; }
.mbr-times dd.is-tick { animation: mbr-tick .5s ease; }
@keyframes mbr-tick { 0% { transform: translateY(-8px); opacity: .25; } 100% { transform: none; opacity: 1; } }
.mbr-finder__note { margin: 0 0 16px; text-align: center; color: var(--pkg-gray); font-size: 15px; }
.mbr-finder .pkg-btn { display: flex; width: fit-content; margin: 0 auto; }

.boat-page--morning .mbr-months tbody tr { transition: background .2s; }
.boat-page--morning .mbr-months tbody tr:hover { background: #fff8eb; }
.boat-page--morning .mbr-months tr.is-current { background: #fff3d9; }
.boat-page--morning .mbr-months tr.is-current th { box-shadow: inset 4px 0 0 var(--mbr-dawn); }
.boat-page--morning .mbr-months tr.is-current th::after { content: "Now"; margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--pkg-primary); vertical-align: 1px; }
.boat-page--morning .mbr-months { table-layout: fixed; }
.boat-page--morning .mbr-months thead th:nth-child(1) { width: 17%; }
.boat-page--morning .mbr-months thead th:nth-child(2) { width: 15%; }
.boat-page--morning .mbr-months thead th:nth-child(3) { width: 14%; }
.boat-page--morning .mbr-months th { width: auto; }
.boat-page--morning .mbr-months td:nth-child(2), .boat-page--morning .mbr-months td:nth-child(3) { white-space: nowrap; }

/* ═════════════ Gallery ═════════════ */
.mbr-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mbr-photo { position: relative; margin: 0; border-radius: 18px; overflow: hidden; background: var(--mbr-ink); box-shadow: 0 12px 30px rgba(3,46,66,.14); aspect-ratio: 4 / 3; }
.mbr-photo a { display: block; height: 100%; cursor: zoom-in; }
.mbr-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .5s; }
.mbr-photo:hover img, .mbr-photo a:focus-visible img { transform: scale(1.08); filter: saturate(1.12); }
.mbr-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 16px 13px; color: #fff; font: 600 14px 'Inter', sans-serif; background: linear-gradient(180deg, rgba(8,32,47,0), rgba(8,32,47,.82)); pointer-events: none; transform: translateY(6px); opacity: .92; transition: transform .35s ease, opacity .35s; }
.mbr-photo:hover figcaption { transform: none; opacity: 1; }
.mbr-gallery.is-visible .mbr-photo { animation: mbr-pop .8s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 90ms); }

/* ═════════════ Responsive ═════════════ */
@media (max-width: 1080px) {
	.mbr-stops { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 16px; }
}
@media (max-width: 820px) {
	.mbr-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mbr-sun { width: 380px; height: 380px; right: -6%; }
}
@media (max-width: 640px) {
	.mbr-stops { grid-template-columns: 1fr; }
	.mbr-scene__label, .mbr-pin__num, .mbr-pin__ring { display: none; }
	.mbr-finder { padding: 18px 16px; }
	.mbr-sky { height: 150px; }
	.mbr-times { grid-template-columns: 1fr 1fr; }
	.mbr-times__main { grid-column: 1 / -1; order: -1; }
	.mbr-times dd { font-size: 22px; }
	.mbr-times__main dd { font-size: 32px; }
	.mbr-tick b { font-size: 11px; padding: 3px 7px; }
	.mbr-sail { bottom: 2%; }
	.boat-page--morning .mbr-months { table-layout: auto; min-width: 560px; }
	.boat-page--morning .mbr-months td:nth-child(4) { min-width: 200px; }
}
@media (max-width: 480px) {
	.mbr-photos { grid-template-columns: 1fr; }
}

/* ═════════════ Reduced motion ═════════════ */
@media (prefers-reduced-motion: reduce) {
	.mbr-fx *, .mbr-fx, .mbr-scene *, .mbr-sky *, .mbr-stop, .mbr-photo, .boat-page--morning .pkg-card, .boat-page--morning .pkg-service, .boat-page--morning .pkg-place { animation: none !important; transition: none !important; }
	.mbr-sail { transform: translate3d(58vw, 0, 0); }
	.mbr-sky__boat { transform: translateX(60cqw); }
	.mbr-scene__sun { transform: none; opacity: 1; }
	.boat-page--morning h2.pkg-title::after { transform: scaleX(1); }
}
