/* Tour Morocco — site-wide shell from the Claude Design (tokens, top bar, header, footer). */

:root {
	--tm-sand: #F6F0E7;
	--tm-cream: #FFF9F1;
	--tm-ivory: #FFF8EE;
	--tm-field: #F3EADF;
	--tm-line: #EADDCB;
	--tm-line-strong: #D8C8B6;
	--tm-ink: #1E1A17;
	--tm-ink-2: #4A4039;
	--tm-muted: #7A6B5F;
	--tm-muted-2: #6B5F55;
	--tm-terracotta: #B14A22;
	--tm-terracotta-dark: #8E3417;
	--tm-terracotta-darker: #7E2E15;
	--tm-gold: #F0C27A;
	--tm-amber: #E3A04A;
	--tm-star: #C98A1B;
	--tm-tan: #D9A441;
	--tm-photo: #E8DCCB;
	--tm-serif-font: 'Cormorant Garamond', 'Cormorant', Garamond, Georgia, serif;
	--tm-sans-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--tm-wrap: 1280px;
	/* Radii: one small set instead of pill-everything. */
	--tm-r-sm: 8px;
	--tm-r: 10px;
	--tm-r-card: 14px;
	--tm-r-lg: 20px;
	--tm-ease: 180ms cubic-bezier(.2, .7, .2, 1);
	/* Sampled from the "tm" mosaic logo. */
	--tm-m1: #C2185B;
	--tm-m2: #E4572E;
	--tm-m3: #F2A541;
	--tm-m4: #2E8B57;
	--tm-m5: #1B9AAA;
	--tm-m6: #5B2A86;
	--tm-m7: #D7263D;
}

/* Icons (SVG sprite printed in header.php) */
.tm-i {
	width: 1em;
	height: 1em;
	flex-shrink: 0;
	display: inline-block;
	vertical-align: -0.125em;
	fill: currentColor;
}

/* Brand stripe in the logo's mosaic colours */
.tm-mosaic {
	height: 4px;
	background: linear-gradient(90deg,
		var(--tm-m1) 0 14%, var(--tm-m2) 14% 27%, var(--tm-m3) 27% 41%, var(--tm-m4) 41% 56%,
		var(--tm-m5) 56% 70%, var(--tm-m6) 70% 84%, var(--tm-m7) 84% 100%);
}

/* The logo JPEG has white corners; clip it to its octagon. */
.tm-logo {
	display: block;
	width: 44px;
	height: 44px;
	object-fit: cover;
	clip-path: polygon(28% 0, 72% 0, 100% 28%, 100% 72%, 72% 100%, 28% 100%, 0 72%, 0 28%);
	flex-shrink: 0;
}
.tm-logo--lg { width: 56px; height: 56px; }

/* Inner pages keep their own background; only the homepage sits on sand. */
body.tm-front {
	font-feature-settings: 'cv11', 'ss01';
	background: var(--tm-sand);
	color: var(--tm-ink);
	font-family: var(--tm-sans-font);
	-webkit-font-smoothing: antialiased;
}

.tm-site .tm-topbar *,
.tm-site .tm-header *,
.tm-site .tm-footer *,
.tm-site .tm-home * {
	box-sizing: border-box;
}

.tm-wrap {
	max-width: var(--tm-wrap);
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
}

.tm-serif {
	font-family: var(--tm-serif-font) !important;
	font-weight: 600 !important;
	letter-spacing: -0.01em;
}
.tm-serif em { font-weight: 500; }

.tm-site .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* Buttons */
.tm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--tm-r);
	font-family: var(--tm-sans-font);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	padding: 12px 20px;
	text-decoration: none !important;
	transition: background-color var(--tm-ease), color var(--tm-ease);
	white-space: nowrap;
}
.tm-btn--ink { background: var(--tm-ink); color: var(--tm-sand) !important; }
.tm-btn--ink:hover, .tm-btn--ink:focus-visible { background: var(--tm-terracotta); color: var(--tm-sand) !important; }
.tm-btn--terracotta { background: var(--tm-terracotta); color: var(--tm-ivory) !important; font-weight: 700; }
.tm-btn--terracotta:hover, .tm-btn--terracotta:focus-visible { background: var(--tm-gold); color: var(--tm-ink) !important; }
.tm-btn--lg { font-size: 16px; padding: 18px 28px; }

.tm-site a:focus-visible,
.tm-site button:focus-visible,
.tm-site summary:focus-visible,
.tm-site input:focus-visible {
	outline: 2px solid var(--tm-terracotta);
	outline-offset: 2px;
}

/* ------------------------------------------------------------------ Top bar */
.tm-topbar {
	background: var(--tm-ink);
	color: #E9DFD2;
	font-family: var(--tm-sans-font);
	font-size: 13px;
	line-height: 1.4;
	position: relative;
	z-index: 31;
}
.tm-topbar__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	padding-top: 9px;
	padding-bottom: 9px;
}
.tm-topbar a { color: #E9DFD2; text-decoration: none; }
.tm-topbar a:hover { color: var(--tm-gold); }
.tm-topbar__contact { display: flex; gap: 20px; flex-wrap: wrap; }
.tm-topbar__contact a { display: inline-flex; align-items: center; gap: 7px; }
.tm-topbar__contact .tm-i { width: 14px; height: 14px; opacity: .7; }
.tm-topbar__tagline { color: var(--tm-tan); }
.tm-topbar__prefs { display: flex; gap: 16px; align-items: center; }

.tm-currency { position: relative; }
.tm-currency summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 4px; }
.tm-currency summary::-webkit-details-marker { display: none; }
.tm-caret { width: 12px; height: 12px; opacity: .65; transition: transform var(--tm-ease); }
.tm-currency[open] .tm-caret { transform: rotate(180deg); }
.tm-currency ul {
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	margin: 0;
	padding: 6px;
	list-style: none;
	background: var(--tm-cream);
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-r);
	box-shadow: 0 12px 30px rgba(30, 26, 23, .15);
	min-width: 96px;
	z-index: 40;
}
.tm-currency li a {
	display: block;
	padding: 6px 12px;
	border-radius: 8px;
	color: var(--tm-ink) !important;
	font-weight: 500;
}
.tm-currency li a:hover { background: var(--tm-field); }

/* ------------------------------------------------------------------ Header */
.tm-header {
	position: sticky;
	top: 0;
	z-index: 30;
	background: rgba(246, 240, 231, .86);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(30, 26, 23, .08);
	font-family: var(--tm-sans-font);
}
.admin-bar .tm-header { top: 32px; }
.tm-header__inner {
	display: flex;
	align-items: center;
	gap: 32px;
	padding-top: 14px;
	padding-bottom: 14px;
}
.tm-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--tm-ink) !important;
	text-decoration: none !important;
	flex-shrink: 0;
}
.tm-brand__text { display: flex; flex-direction: column; gap: 3px; }
.tm-brand__name {
	font-family: var(--tm-serif-font);
	font-weight: 700;
	font-size: 26px;
	letter-spacing: 0;
	line-height: 1;
	white-space: nowrap;
}
.tm-brand__tag {
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--tm-muted-2);
	line-height: 1;
	white-space: nowrap;
}

.tm-nav {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 24px;
}
.tm-nav__list {
	display: flex;
	gap: 20px;
	flex: 1;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}
.tm-nav__item { position: relative; }
.tm-nav__link {
	display: inline-block;
	color: var(--tm-ink-2) !important;
	font: 500 15px/1.4 var(--tm-sans-font);
	padding: 0 0 3px;
	border: 0;
	border-bottom: 2px solid transparent;
	background: none;
	cursor: pointer;
	text-decoration: none !important;
	white-space: nowrap;
}
.tm-nav__link:hover { color: var(--tm-terracotta) !important; }
.tm-nav__item.is-current > .tm-nav__link {
	color: var(--tm-ink) !important;
	border-bottom-color: var(--tm-terracotta);
}
.tm-nav__link .tm-caret { margin-left: 3px; vertical-align: -1px; }
.tm-nav__item:hover > .tm-nav__link .tm-caret,
.tm-nav__item.is-open > .tm-nav__link .tm-caret { transform: rotate(180deg); }
.tm-nav__sub {
	position: absolute;
	top: 100%;
	left: -14px;
	min-width: 220px;
	margin: 0;
	padding: 18px 8px 8px;
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity .15s, transform .15s, visibility .15s;
	z-index: 35;
}
.tm-nav__sub::before {
	content: '';
	position: absolute;
	inset: 10px 0 0;
	background: var(--tm-cream);
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-r-card);
	box-shadow: 0 18px 40px rgba(30, 26, 23, .14);
	z-index: -1;
}
.tm-nav__item:hover > .tm-nav__sub,
.tm-nav__item:focus-within > .tm-nav__sub,
.tm-nav__item.is-open > .tm-nav__sub {
	opacity: 1;
	visibility: visible;
	transform: none;
}
.tm-nav__sub a {
	display: block;
	padding: 9px 12px;
	border-radius: var(--tm-r-sm);
	color: var(--tm-ink) !important;
	font: 500 15px/1.3 var(--tm-sans-font);
	text-decoration: none !important;
}
.tm-nav__sub a:hover { background: var(--tm-field); color: var(--tm-terracotta) !important; }

.tm-header__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.tm-header__login {
	color: var(--tm-ink) !important;
	font: 500 15px/1.2 var(--tm-sans-font);
	padding: 10px 14px;
	text-decoration: none !important;
}
.tm-header__login:hover { color: var(--tm-terracotta) !important; }

.tm-burger {
	display: none;
	margin-left: auto;
	width: 44px;
	height: 44px;
	border-radius: var(--tm-r);
	border: 1px solid var(--tm-line-strong);
	background: transparent;
	cursor: pointer;
	padding: 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
}
.tm-burger > span:not(.screen-reader-text) {
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: var(--tm-ink);
	transition: transform .2s, opacity .2s;
}
.tm-burger[aria-expanded="true"] > span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.tm-burger[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
.tm-burger[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
	.tm-topbar__tagline { display: none; }
	.tm-burger { display: inline-flex; }
	.tm-header__inner { gap: 16px; flex-wrap: wrap; }
	.tm-nav {
		display: none;
		flex-basis: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 8px 0 12px;
	}
	.tm-nav.is-open { display: flex; }
	.tm-nav__list { flex-direction: column; gap: 0; }
	.tm-nav__item { border-bottom: 1px solid rgba(30, 26, 23, .08); }
	.tm-nav__link { display: block; width: 100%; text-align: left; padding: 14px 0; font-size: 17px; border-bottom: 0; }
	.tm-nav__item.is-current > .tm-nav__link { color: var(--tm-terracotta) !important; }
	.tm-nav__sub,
	.tm-nav__item:hover > .tm-nav__sub,
	.tm-nav__item:focus-within > .tm-nav__sub {
		position: static;
		display: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		padding: 0 0 10px 12px;
		min-width: 0;
	}
	.tm-nav__sub::before { display: none; }
	.tm-nav__item.is-open > .tm-nav__sub { display: block; }
	.tm-header__actions { justify-content: space-between; }
	.tm-header__login { padding-left: 0; }
}
@media (max-width: 782px) {
	.admin-bar .tm-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .tm-header { top: 0; }
	.tm-topbar__contact a + a { display: none; }
}

/* ------------------------------------------------------------------ Footer */
/* Traveler's own footer is blanked server-side; hide its empty shell. */
.tm-site #main-footer,
.tm-site .main-footer-sub { display: none !important; }

.tm-footer {
	background: var(--tm-ink);
	color: #D9CDBF;
	font-family: var(--tm-sans-font);
	padding: 0 0 32px;
}
.tm-footer > .tm-mosaic { margin-bottom: clamp(56px, 7vw, 96px); }
.tm-footer__brand { display: flex; align-items: center; gap: 24px; }
.tm-footer__brand .tm-logo { width: 64px; height: 64px; }
@media (max-width: 600px) {
	.tm-footer__brand { flex-direction: column; align-items: flex-start; gap: 18px; }
}
.tm-footer a { color: #D9CDBF; text-decoration: none; }
.tm-footer a:hover { color: var(--tm-gold); }
.tm-footer__inner { display: flex; flex-direction: column; gap: 56px; }
.tm-footer__cta {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 32px;
	flex-wrap: wrap;
	padding-bottom: 48px;
	border-bottom: 1px solid rgba(246, 240, 231, .12);
}
.tm-footer__cta h2 {
	margin: 0;
	font-size: clamp(36px, 4.4vw, 60px);
	line-height: 1;
	color: var(--tm-sand);
	max-width: 720px;
}
.tm-footer__cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 32px;
	font-size: 15px;
}
.tm-footer__col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.tm-footer__head {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--tm-amber);
}
.tm-footer__rating { margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; }
.tm-footer__rating .tm-stars { color: var(--tm-star); }

.tm-newsletter { width: 100%; }
.tm-newsletter form { margin: 0; }
.tm-newsletter .mc4wp-form-fields,
.tm-newsletter form:not(.mc4wp-form) {
	display: flex;
	background: rgba(246, 240, 231, .08);
	border: 1px solid rgba(246, 240, 231, .12);
	border-radius: var(--tm-r);
	padding: 4px;
}
.tm-newsletter input[type="email"] {
	flex: 1;
	min-width: 0;
	height: auto;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--tm-sand) !important;
	font: 400 15px/1.4 var(--tm-sans-font);
	padding: 10px 14px;
	outline: none;
}
.tm-newsletter input[type="email"]::placeholder { color: rgba(217, 205, 191, .7); }
.tm-newsletter input[type="submit"] {
	border: 0 !important;
	border-radius: var(--tm-r-sm) !important;
	background: var(--tm-sand) !important;
	color: var(--tm-ink) !important;
	font: 700 15px/1.2 var(--tm-sans-font) !important;
	padding: 10px 16px !important;
	cursor: pointer;
	height: auto;
	box-shadow: none !important;
}
.tm-newsletter input[type="submit"]:hover { background: var(--tm-gold) !important; }
.tm-newsletter .mc4wp-response { font-size: 13px; margin-top: 8px; }
.tm-newsletter .mc4wp-response p { margin: 0; }

.tm-footer__bottom {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 13px;
	color: #8F8276;
}
.tm-footer__bottom a { color: #8F8276; }

/* site-a11y-perf.css paints every /our-story/ link teal + underlined; keep the design's colours inside our shell. */
html body.tm-site .tm-footer a[href*="/our-story/"] { color: #D9CDBF !important; text-decoration: none !important; }
html body.tm-site .tm-footer a[href*="/our-story/"]:hover { color: var(--tm-gold) !important; }
html body.tm-site .tm-nav a[href*="/our-story/"] { color: var(--tm-ink) !important; text-decoration: none !important; }
html body.tm-site .tm-nav a[href*="/our-story/"]:hover { color: var(--tm-terracotta) !important; }
html body.tm-site .tm-home a.tm-link[href*="/our-story/"] { color: var(--tm-ink) !important; text-decoration: none !important; }
html body.tm-site .tm-home a.tm-link[href*="/our-story/"]:hover { color: var(--tm-terracotta) !important; }

/* Stars (shared) */
.tm-stars { display: inline-flex; gap: 1px; color: var(--tm-star); line-height: 1; }
.tm-stars .tm-star { width: 14px; height: 14px; }
@media (max-width: 600px) {
	.tm-brand__tag { display: none; }
	.tm-brand__name { font-size: 23px; }
}
