/*
Theme Name: Sea Me Again Child
Theme URI: https://seameagain.com/
Description: A safe TripGo child theme for Sea Me Again custom development.
Author: Sea Me Again
Author URI: https://seameagain.com/
Template: tripgo
Version: 1.1.19
Text Domain: sea-me-again-child
Domain Path: /languages
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* Shared header only. All selectors are scoped; page content and footer are unaffected. */
header.sma-unified-header {
	--sma-ink: #102f36;
	--sma-ink-soft: #31535a;
	--sma-sea: #087f8c;
	--sma-sea-dark: #075c66;
	--sma-sea-light: #eaf7f6;
	--sma-sand: #f4ecdf;
	--sma-line: #d7e6e5;
	--sma-white: #fff;
	--sma-shadow: 0 18px 50px rgb(16 47 54 / 10%);
	margin: 0;
	color: var(--sma-ink);
	background: var(--sma-white);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.65;

}

header.sma-unified-header *,
header.sma-unified-header *::before,
header.sma-unified-header *::after {
	box-sizing: border-box;
}

header.sma-unified-header .sma-container {
	width: min(calc(100% - 2rem), 1220px);
	margin-inline: auto;
}

header.sma-unified-header .sma-visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
	overflow: hidden !important;
}

header.sma-unified-header a {
	color: inherit;
}

header.sma-unified-header img,
header.sma-unified-header svg {
	display: block;
}

header.sma-unified-header img {
	max-width: 100%;
	height: auto;
}

header.sma-unified-header :where(a, button, summary):focus-visible {
	outline: 3px solid #f3b75b;
	outline-offset: 3px;
}

header.sma-unified-header {
	position: sticky;
	z-index: 1000;
	top: 0;
	border-bottom: 1px solid rgb(16 47 54 / 9%);
	background: rgb(255 255 255 / 96%);
	box-shadow: 0 5px 20px rgb(16 47 54 / 5%);
	backdrop-filter: blur(12px);
}

body.admin-bar header.sma-unified-header {
	top: 46px;
}

header.sma-unified-header .sma-site-header__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.7rem 0.5rem;
	align-items: center;
	min-height: 4.5rem;
	padding-block: 0.65rem;
}

header.sma-unified-header .sma-brand {
	grid-row: 1;
	grid-column: 1;
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	width: 200px;
	min-width: 0;
	max-width: min(55vw, 100%);
	color: var(--sma-ink);
	text-decoration: none;
}

header.sma-unified-header .sma-brand__image {
	display: block;
	width: 200px;
	max-width: 100%;
	height: auto;
	object-fit: contain;
	object-position: left center;
}

header.sma-unified-header .sma-brand__wordmark {
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.1;
}

header.sma-unified-header .sma-brand__local-name {
	padding-left: 0.55rem;
	border-left: 1px solid var(--sma-line);
	font-size: 0.82rem;
	font-weight: 700;
	white-space: nowrap;
}

header.sma-unified-header .sma-site-header__actions {
	grid-row: 1;
	grid-column: 2;
	display: flex;
	gap: 0.25rem;
	align-items: center;
	justify-content: flex-end;
}

header.sma-unified-header .sma-language-link,
header.sma-unified-header .sma-cart-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	border: 1px solid var(--sma-line);
	color: var(--sma-ink);
	background: var(--sma-white);
	font-size: 0.9rem;
	font-weight: 750;
	line-height: 1;
	text-decoration: none;
}

header.sma-unified-header .sma-language-link:hover,
header.sma-unified-header .sma-cart-link:hover {
	border-color: var(--sma-sea);
	color: var(--sma-sea-dark);
}

header.sma-unified-header .sma-cart-link svg {
	width: 1.25rem;
	height: 1.25rem;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
}

header.sma-unified-header .sma-primary-nav {
	grid-row: 2;
	grid-column: 1 / -1;
	min-width: 0;
	width: 100%;
}

header.sma-unified-header .sma-primary-nav__desktop {
	display: none;
}

header.sma-unified-header .sma-primary-nav__details {
	position: relative;
	width: 100%;
}

header.sma-unified-header .sma-primary-nav__summary {
	display: flex;
	gap: 0.55rem;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 2.8rem;
	padding: 0.55rem 0.8rem;
	border: 1px solid var(--sma-line);
	color: var(--sma-ink);
	background: var(--sma-sea-light);
	font-size: 0.92rem;
	font-weight: 750;
	cursor: pointer;
	list-style: none;
}

header.sma-unified-header .sma-primary-nav__summary::-webkit-details-marker {
	display: none;
}

header.sma-unified-header .sma-primary-nav__menu-icon svg {
	width: 1.2rem;
	height: 1.2rem;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 1.8;
}

header.sma-unified-header .sma-primary-nav__panel {
	padding-top: 0.55rem;
}

header.sma-unified-header .sma-menu,
header.sma-unified-header .sma-menu ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

header.sma-unified-header .sma-menu--header {
	padding: 0.35rem;
	border: 1px solid var(--sma-line);
	background: var(--sma-white);
	box-shadow: var(--sma-shadow);
}

header.sma-unified-header .sma-menu--header a {
	display: flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0.75rem 0.85rem;
	color: var(--sma-ink);
	font-size: 0.96rem;
	font-weight: 650;
	text-decoration: none;
}

header.sma-unified-header .sma-menu--header a:hover,
header.sma-unified-header .sma-menu--header .current-menu-item > a,
header.sma-unified-header .sma-menu--header .current_page_item > a {
	color: var(--sma-sea-dark);
	background: var(--sma-sea-light);
}

header.sma-unified-header .sma-menu--header .sub-menu {
	padding-left: 0.85rem;
	border-left: 2px solid var(--sma-line);
}

header.sma-unified-header .sma-featured-nav__details {
	position: relative;
}

header.sma-unified-header .sma-featured-nav summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	min-height: 2.75rem;
	padding: 0.75rem 0.85rem;
	color: var(--sma-ink);
	font: inherit;
	font-size: 0.96rem;
	font-weight: 650;
	list-style: none;
	cursor: pointer;
}

header.sma-unified-header .sma-featured-nav summary::-webkit-details-marker {
	display: none;
}

header.sma-unified-header .sma-featured-nav summary::after {
	content: "";
	width: 0.4rem;
	height: 0.4rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
}

header.sma-unified-header .sma-featured-nav details[open] > summary::after {
	transform: rotate(225deg) translate(-1px, -1px);
}

header.sma-unified-header .sma-featured-nav summary:hover,
header.sma-unified-header .sma-featured-nav details[open] > summary {
	color: var(--sma-sea-dark);
	background: var(--sma-sea-light);
}

header.sma-unified-header .sma-featured-nav summary:focus-visible {
	outline: 3px solid var(--sma-sea-dark);
	outline-offset: 2px;
}

header.sma-unified-header .sma-featured-nav .sma-featured-nav__links {
	margin: 0 0.6rem 0.5rem;
	padding-left: 0.5rem;
	border-left: 2px solid var(--sma-line);
}

header.sma-unified-header .sma-featured-nav__links a {
	white-space: normal;
	overflow-wrap: anywhere;
	line-height: 1.5;
}

@media (min-width: 1180px) {
header.sma-unified-header .sma-featured-nav summary {
		padding: 0.65rem 0.62rem;
		white-space: nowrap;
	}

header.sma-unified-header .sma-featured-nav .sma-featured-nav__links {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 20;
		width: 340px;
		max-width: calc(100vw - 2rem);
		max-height: 60vh;
		overflow-y: auto;
		margin: 0;
		padding: 0.4rem;
		border: 1px solid var(--sma-line);
		background: var(--sma-white);
		box-shadow: var(--sma-shadow);
	}

header.sma-unified-header .sma-menu--header .sma-featured-nav__links a {
		white-space: normal;
	}
}

header.sma-unified-header .sma-site-footer__logo .sma-brand__image {
	width: 200px;
	max-width: 100%;
	height: auto;
}

@media (min-width: 900px) {
body.admin-bar header.sma-unified-header {
		top: 32px;
	}
}

@media (min-width: 1180px) {
header.sma-unified-header .sma-site-header__inner {
		grid-template-columns: 200px minmax(0, 1fr) auto;
		gap: clamp(1rem, 2vw, 2rem);
		min-height: 4.5rem;
		padding-block: 0.35rem;
	}

header.sma-unified-header .sma-brand {
		grid-row: 1;
		grid-column: 1;
		width: 200px;
		max-width: 200px;
	}

header.sma-unified-header .sma-brand__image {
		width: 200px;
		max-width: 100%;
		height: auto;
	}

header.sma-unified-header .sma-primary-nav {
		grid-row: 1;
		grid-column: 2;
	}

header.sma-unified-header .sma-site-header__actions {
		grid-row: 1;
		grid-column: 3;
	}

header.sma-unified-header .sma-primary-nav__details {
		display: none;
	}

header.sma-unified-header .sma-primary-nav__desktop {
		display: flex;
	}

header.sma-unified-header .sma-menu--header {
		display: flex;
		gap: 0.1rem;
		align-items: center;
		justify-content: center;
		padding: 0;
		border: 0;
		background: transparent;
		box-shadow: none;
	}

header.sma-unified-header .sma-menu--header a {
		padding: 0.65rem 0.62rem;
		background: transparent;
		white-space: nowrap;
	}
}

@media (prefers-reduced-motion: reduce) {
header.sma-unified-header *,
	header.sma-unified-header *::before,
	header.sma-unified-header *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

header.sma-unified-header { margin: 0; text-align: left; }
header.sma-unified-header summary { margin: 0; border-radius: 0; }
header.sma-unified-header .sma-featured-nav__links li { margin: 0; }
