/* Site header, hero and footer (frontend/includes/header, headercontainer, footer).
   Loaded after base.css: the sw-* classes replace the old theme's header and footer look. */

:root {
	--sw-navy: #0E2340;
	--sw-ink: #12233D;
	--sw-blue: #2A93D3;
	--sw-yellow: #FFD23F;
	--sw-font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--sw-display: "Fredoka", "DM Sans", system-ui, sans-serif;
}

.sw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ header */
.sw-header {
	position: relative; z-index: 1000; width: 100%;
	background: linear-gradient(90deg, #3DA9E1 0%, #2E97D6 55%, #2A90D1 100%);
	box-shadow: 0 2px 12px rgba(8, 60, 110, .18);
	font-family: var(--sw-font);
}
.sw-header-inner { max-width: 1320px; height: 64px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; gap: 20px; }
.sw-menu { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.sw-menu > li { position: relative; }
.sw-menu > li > a, .sw-menu > li > button, .sw-login {
	display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; border: 0; background: none;
	color: #fff; font: 600 15px/1 var(--sw-font); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.sw-menu > li > a:hover, .sw-menu > li > button:hover, .sw-login:hover, .sw-menu a.is-current { color: #fff; text-decoration: none; opacity: .85; }
.sw-menu a:focus-visible, .sw-menu button:focus-visible, .sw-login:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 8px; }
.sw-book:focus-visible, .sw-location-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.sw-chevron { transition: transform .2s; }
.sw-has-sub.is-open .sw-chevron { transform: rotate(180deg); }

.sw-has-sub { position: relative; }
.sw-sub {
	position: absolute; top: calc(100% + 6px); left: -12px; min-width: 230px; width: max-content; margin: 0; padding: 8px; list-style: none;
	background: #fff; border-radius: 14px; box-shadow: 0 16px 40px rgba(8, 40, 80, .2); display: none; z-index: 10;
}
.sw-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.sw-sub-right { left: auto; right: 0; }
.sw-sub a, .sw-sub .sw-sub-btn { display: flex; align-items: center; gap: 12px; padding: 7px 14px 7px 8px; border-radius: 10px; color: var(--sw-ink); font: 500 14px/1.3 var(--sw-font); text-decoration: none; white-space: nowrap; }
.sw-sub a:hover, .sw-sub .sw-sub-btn:hover { background: #EAF4FB; color: var(--sw-navy); text-decoration: none; }
/* Log out is a POST form: its button looks like the links. */
.sw-sub form { margin: 0; }
.sw-sub .sw-sub-btn { width: 100%; border: 0; background: none; text-align: left; cursor: pointer; }
/* Item icon in a soft tile; it turns blue on hover. */
.sw-sub-icon { flex-shrink: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #EAF4FB; color: #2489C9; transition: background .15s, color .15s; }
.sw-sub a:hover .sw-sub-icon, .sw-sub .sw-sub-btn:hover .sw-sub-icon { background: #2489C9; color: #fff; }
.sw-sub-tag { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #FDE7F0; color: #B4236B; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.sw-has-sub.is-open > .sw-sub { display: block; }
@media (hover: hover) and (min-width: 1101px) { .sw-has-sub:hover > .sw-sub { display: block; } }

.sw-actions { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.sw-location-btn {
	display: inline-flex; align-items: center; gap: 8px; height: 42px; margin: 0; padding: 0 14px;
	border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 999px; background: rgba(255, 255, 255, .12);
	color: #fff; font: 600 14px/1 var(--sw-font); cursor: pointer; white-space: nowrap; transition: background .15s;
}
.sw-location-btn:hover, .sw-location.is-open .sw-location-btn { background: rgba(255, 255, 255, .22); }
.sw-location-btn svg { flex: 0 0 auto; }
.sw-location-name { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.sw-location-list { min-width: 260px; max-height: min(70vh, 420px); overflow-y: auto; }
.sw-location-list button {
	display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none;
	color: var(--sw-ink); font: 500 14px/1.3 var(--sw-font); text-align: left; cursor: pointer;
}
.sw-location-list button svg { flex: 0 0 auto; color: var(--sw-blue); }
.sw-location-list button:hover, .sw-location-list button:focus-visible { background: #EAF4FB; outline: none; }
.sw-location-list .sw-location-near { border-bottom: 1px solid #DCE8F2; color: var(--sw-blue); font-weight: 700; }
.sw-location-list .sw-location-soon { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; color: var(--sw-ink); font: 500 14px/1.3 var(--sw-font); text-decoration: none; }
.sw-location-list .sw-location-soon svg { flex: 0 0 auto; color: #B7791F; }
.sw-location-list .sw-location-soon span { flex: 1 1 auto; min-width: 0; }
.sw-location-list .sw-location-soon em { flex: 0 0 auto; padding: 2px 8px; border-radius: 999px; background: var(--sw-yellow); color: #5A3E00; font-size: 11px; font-style: normal; font-weight: 700; white-space: nowrap; }
.sw-location-list .sw-location-soon:hover, .sw-location-list .sw-location-soon:focus-visible { background: #FFF8E1; color: var(--sw-ink); outline: none; }
.sw-location-list button[aria-selected="true"] { background: #EAF4FB; color: var(--sw-navy); font-weight: 700; }
.sw-book {
	display: inline-flex; align-items: center; height: 44px; padding: 0 24px; border-radius: 999px; background: #fff;
	color: var(--sw-navy); font: 700 15px/1 var(--sw-font); text-decoration: none; white-space: nowrap; box-shadow: 0 4px 14px rgba(8, 40, 80, .18);
}
.sw-book:hover { color: var(--sw-navy); text-decoration: none; background: #F2F8FD; }

.sw-burger { display: none; width: 42px; height: 42px; margin-left: -8px; padding: 10px 9px; border: 0; background: none; cursor: pointer; }
.sw-burger span { display: block; height: 2px; margin: 4px 0; border-radius: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.sw-header.is-open .sw-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.sw-header.is-open .sw-burger span:nth-child(2) { opacity: 0; }
.sw-header.is-open .sw-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
	.sw-burger { display: block; }
	.sw-nav {
		position: absolute; top: 64px; left: 0; right: 0; display: none; padding: 10px 20px 18px;
		background: #2489C9; box-shadow: 0 14px 30px rgba(8, 40, 80, .25);
	}
	.sw-header.is-open .sw-nav { display: block; }
	.sw-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.sw-menu > li > a, .sw-menu > li > button { width: 100%; padding: 13px 4px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
	.sw-menu .sw-sub { position: static; display: none; min-width: 0; width: auto; margin: 4px 0 8px; box-shadow: none; }
	.sw-menu .sw-sub a { white-space: normal; }
	.sw-menu .sw-has-sub.is-open > .sw-sub { display: block; }
}
@media (max-width: 720px) {
	/* Phone row: menu · location (takes the free space) · account · Book. */
	.sw-header-inner { height: 60px; padding: 0 12px; gap: 8px; }
	.sw-burger { flex: 0 0 auto; margin-left: -4px; }
	.sw-nav { top: 60px; }
	.sw-actions { flex: 1 1 auto; min-width: 0; gap: 6px; }
	.sw-location { flex: 1 1 auto; min-width: 0; display: flex; justify-content: flex-end; }
	.sw-location-btn { width: 100%; max-width: 240px; height: 38px; padding: 0 10px; gap: 6px; font-size: 13px; }
	.sw-location-name { flex: 1 1 auto; min-width: 0; max-width: none; text-align: left; }
	.sw-location-list { position: fixed; top: 64px; left: 12px; right: 12px; min-width: 0; width: auto; }
	.sw-login { flex: 0 0 38px; height: 38px; justify-content: center; border-radius: 50%; font-size: 0; gap: 0; }
	.sw-login svg { width: 20px; height: 20px; }
	.sw-login .sw-chevron { display: none; }
	.sw-book { flex: 0 0 auto; height: 38px; padding: 0 14px; font-size: 14px; }
}
@media (max-width: 420px) {
	.sw-header-inner { padding: 0 10px; gap: 6px; }
	.sw-location-btn { padding: 0 9px; gap: 5px; }
	.sw-book { padding: 0 13px; }
	.sw-book-more { display: none; }  /* "Book tickets" → "Book" */
}

/* ------------------------------------------------------------------ hero (headercontainer) */
/* flow-root keeps the logo's top margin inside the hero, so no white gap opens under the header. */
#header_container { display: flow-root; height: clamp(170px, 24vw, 330px); background-position: center bottom; }
#booking_container { display: flow-root; }
/* Icicles hang from the bottom edge of the blue header bar. */
#header_container .iceWrap, #booking_container .iceWrap {
	display: block; top: 0; left: 0; right: 0; height: 71px; z-index: 3; pointer-events: none;
	background: url(../img/ice.png) repeat-x left top;
}
@media (max-width: 720px) { #header_container .iceWrap, #booking_container .iceWrap { height: 48px; background-size: auto 48px; } }
/* Logo top gap: 50px on desktop, scaling down to 30px on phones (clear of the icicles). */
#header_container #logo { margin: clamp(30px, 5vw, 50px) 0 0 clamp(12px, 3.5vw, 50px); }
#header_container .logo { height: clamp(72px, 11vw, 150px); margin-top: 0; }
#header_container > [class*="col-"] { width: auto; float: none; padding: 0; position: relative; z-index: 2; }

/* ------------------------------------------------------------------ footer */
/* Night-blue gradient with the snowy trees (footer_bg.png) along the bottom. */
.sw-footer {
	float: none; clear: both; width: 100%; padding: 56px 24px 96px; color: rgba(255, 255, 255, .82); font: 400 15px/1.6 var(--sw-font);
	background: url(../img/footer_bg.png) repeat-x center bottom, linear-gradient(180deg, #0F2152 0%, #123B78 55%, #0D6AA6 100%);
}
.sw-footer a { color: #fff; text-decoration: none; transition: color .15s; }
.sw-footer a:hover { color: var(--sw-yellow); text-decoration: none; }
.sw-footer p { margin: 0; }
.sw-footer ul { margin: 0; padding: 0; list-style: none; }
.sw-foot-wrap { max-width: 1180px; margin: 0 auto; }

.sw-foot-cta {
	display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; margin-bottom: 52px; padding: 26px 32px;
	border: 1px solid rgba(255, 255, 255, .14); border-radius: 24px; background: rgba(255, 255, 255, .07);
}
.sw-foot-cta h2 { margin: 0 0 4px; color: #fff; font: 700 26px/1.2 var(--sw-display); letter-spacing: 0; }
.sw-foot-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sw-foot-book, .sw-foot-call { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 999px; font: 700 15px/1 var(--sw-font); white-space: nowrap; }
.sw-footer .sw-foot-book { background: var(--sw-yellow); color: var(--sw-ink); box-shadow: 0 8px 22px rgba(255, 210, 63, .25); }
.sw-footer .sw-foot-book:hover { background: #FFDC63; color: var(--sw-ink); }
.sw-footer .sw-foot-call { border: 1.5px solid rgba(255, 255, 255, .5); }
.sw-footer .sw-foot-call:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }

.sw-footer-inner { display: grid; grid-template-columns: 1.35fr .8fr .9fr 1.35fr; gap: 40px; align-items: start; }
.sw-foot-logo img { display: block; height: 96px; width: auto; margin: -6px 0 14px; }
.sw-foot-brand p { max-width: 300px; font-size: 14px; }
.sw-foot-title { margin: 0 0 16px; color: var(--sw-yellow); font: 700 18px/1.2 var(--sw-display); letter-spacing: 0; text-transform: none; }
.sw-foot-col li + li { margin-top: 10px; }
.sw-foot-col li a { font-size: 15px; }
.sw-find-name { margin-bottom: 10px !important; color: #fff; font-weight: 700; }
.sw-find-name sup { font-size: .55em; }
.sw-find-line { display: flex; align-items: flex-start; gap: 10px; margin-top: 8px; font-size: 14px; word-break: break-word; }
.sw-find-line svg { flex: 0 0 auto; margin-top: 3px; color: #8CC8F2; }
p.sw-find-line { color: rgba(255, 255, 255, .82); }
.sw-directions { display: flex; align-items: center; margin-top: 16px; padding: 4px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; background: rgba(255, 255, 255, .1); }
.sw-directions:focus-within { border-color: rgba(255, 255, 255, .6); }
.sw-directions input { flex: 1 1 auto; min-width: 0; height: 40px; padding: 0 8px 0 14px; border: 0; background: transparent; color: #fff; font: 400 14px var(--sw-font); }
.sw-directions input::placeholder { color: rgba(255, 255, 255, .6); }
.sw-directions input:focus { outline: none; }
/* Picking a saved entry from the browser's list (name, phone, email, address) paints its own light-blue box over the field.
   Site-wide: every field keeps its own background. Dark fields (footer) also keep white text. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
select:-webkit-autofill { transition: background-color 600000s 0s, color 600000s 0s; }
.sw-directions input:-webkit-autofill,
.sw-directions input:-webkit-autofill:hover,
.sw-directions input:-webkit-autofill:focus,
.sw-directions input:-webkit-autofill:active { -webkit-text-fill-color: #fff; caret-color: #fff; }
.sw-directions button { flex: 0 0 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--sw-yellow); color: var(--sw-ink); cursor: pointer; }
.sw-directions button:hover { background: #FFDC63; }

.sw-social { display: flex; gap: 10px; margin-top: 20px !important; }
.sw-social a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 16px; }
.sw-social a:hover { background: #fff; color: var(--sw-navy); }
.sw-social i::before { margin: 0; }

.sw-foot-bottom {
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px;
	margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13px;
}
.sw-copy a { text-decoration: underline; }
.sw-legal { display: flex; gap: 20px; }

@media (max-width: 991px) {
	.sw-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
	.sw-footer { padding: 36px 16px 64px; background-size: auto 150px, auto; }
	.sw-foot-cta { padding: 22px 20px; margin-bottom: 40px; }
	.sw-foot-cta-actions, .sw-foot-cta-actions a { flex: 1 1 auto; justify-content: center; }
	.sw-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
	.sw-foot-brand, .sw-find { grid-column: 1 / -1; }
	.sw-foot-bottom { flex-direction: column; text-align: center; }
}

/* ------------------------------------------------------------------ back to top (layout/app #toTop) */
#toTop.sw-totop {
	position: fixed; right: 22px; bottom: 22px; z-index: 999;
	width: 50px; height: 50px; padding: 0; display: flex; align-items: center; justify-content: center;
	border: 2px solid rgba(255, 255, 255, .85); border-radius: 50%;
	background: linear-gradient(160deg, #3DA9E1 0%, #2A90D1 100%); color: #fff; line-height: 1;
	box-shadow: 0 10px 24px rgba(14, 35, 64, .28); cursor: pointer;
	opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9);
	transition: opacity .25s, transform .25s, visibility .25s, box-shadow .2s, background .2s;
}
#toTop.sw-totop::before { content: none; }
#toTop.sw-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
#toTop.sw-totop:hover { background: var(--sw-navy); box-shadow: 0 14px 30px rgba(14, 35, 64, .36); }
#toTop.sw-totop:hover svg { transform: translateY(-2px); }
#toTop.sw-totop svg { transition: transform .2s; }
#toTop.sw-totop:focus-visible { outline: 3px solid var(--sw-yellow); outline-offset: 3px; }
@media (max-width: 720px) {
	#toTop.sw-totop { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
	#toTop.sw-totop, #toTop.sw-totop svg { transition: none; }
}

/* ------------------------------------------------------------------ announcement bar (frontend/includes/announcement-bar) */
.sw-announce {
	position: relative; z-index: 1001; display: flex; align-items: center; justify-content: center;
	padding: 9px 52px; background: linear-gradient(90deg, #0E2340 0%, #16407A 55%, #0E2340 100%);
	color: #fff; font: 500 14px/1.45 var(--sw-font);
}
.sw-announce[hidden] { display: none; }
.sw-announce-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px; max-width: 1100px; text-align: center; }
.sw-announce-icon { flex: 0 0 auto; color: #8CC8F2; }
.sw-announce-text { margin: 0; color: #fff; }
.sw-announce-link {
	display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px; border-radius: 999px;
	background: var(--sw-yellow); color: #3A2A00 !important; font-weight: 700; font-size: 13px; text-decoration: none !important; white-space: nowrap;
	transition: background .15s;
}
.sw-announce-link:hover { background: #FFE07A; }
.sw-announce-link:focus-visible, .sw-announce-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.sw-announce-close {
	position: absolute; top: 50%; right: 12px; transform: translateY(-50%);
	width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
	border: 0; border-radius: 50%; background: transparent; color: rgba(255, 255, 255, .75); cursor: pointer;
}
.sw-announce-close:hover { background: rgba(255, 255, 255, .12); color: #fff; }
@media (max-width: 720px) {
	.sw-announce { padding: 8px 44px 8px 14px; font-size: 13px; justify-content: flex-start; }
	.sw-announce-inner { justify-content: flex-start; text-align: left; }
	.sw-announce-icon { display: none; }
	.sw-announce-close { right: 6px; }
}

/* A button while its request runs (functions.js swBusy): spinner + "Sending code…", no second click.
   The spinner takes the button's own text colour, so it suits dark and light buttons alike. */
.sw-busy { cursor: progress !important; opacity: 1 !important; animation: sw-busy-pulse 1.4s ease-in-out infinite; }
.sw-busy:active { transform: none !important; }
.sw-busy-spin { display: inline-block; width: 1.05em; height: 1.05em; margin-right: .5em; vertical-align: -.2em; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; opacity: .9; animation: sw-busy-rotate .75s linear infinite; }
@keyframes sw-busy-rotate { to { transform: rotate(360deg); } }
@keyframes sw-busy-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(26, 53, 96, .3); } 50% { box-shadow: 0 0 0 6px rgba(26, 53, 96, 0); } }
@media (prefers-reduced-motion: reduce) {
	.sw-busy { animation: none; }
	.sw-busy-spin { animation-duration: 1.5s; }
}
