/* ==========================================================================
   The Capital — Mobile Menu
   Full-screen dark overlay with layered sliding panels.
   Panel transitions are driven by .is-active / .is-behind classes
   toggled in mobile-menu.js.
   ========================================================================== */

/* ------------------------------------------------------------------
   0. Overlay backdrop
   ------------------------------------------------------------------ */
.tc-mobile-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 10000;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0.35s ease;
}

.tc-mobile-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

/* ------------------------------------------------------------------
   1. Menu shell — slides in from right, dark background
   ------------------------------------------------------------------ */
.tc-mobile-menu {
	position: fixed;
	top: 0;
	right: 0;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	background: var(--tc-black);
	color: #fff;
	z-index: 10001;
	transform: translateX(100%);
	transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	display: flex;
	flex-direction: column;
	overflow: hidden; /* panels handle their own scroll */
}

.tc-mobile-menu.is-open {
	transform: translateX(0);
}

/* ------------------------------------------------------------------
   2. Header — logo + BOOK NOW + close
   ------------------------------------------------------------------ */
.tc-mobile-menu__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 20px;
	height: 80px;
	flex-shrink: 0;
	border-bottom: 1px solid rgba(112, 112, 112, .45);
}

.tc-mobile-menu__logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.tc-mobile-menu__logo img {
	height: 44px;
	width: auto;
	display: block;
}

.tc-mobile-menu__header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* BOOK NOW button */
.tc-mobile-menu__book-btn {
	display: inline-flex;
	align-items: center;
	background: var(--tc-gold, #EBA318);
	color: #000;
	font-family: 'DM Sans', sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 10px 18px;
	white-space: nowrap;
	transition: opacity 0.2s ease;
}

.tc-mobile-menu__book-btn:hover {
	opacity: 0.85;
	color: #000;
}

/* Close button */
.tc-mobile-menu__close {
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px;
	line-height: 1;
	color: #fff;
	transition: opacity 0.2s ease;
	flex-shrink: 0;
}

.tc-mobile-menu__close svg {
	display: block;
}

.tc-mobile-menu__close:hover {
	opacity: 0.6;
}

/* ------------------------------------------------------------------
   3. Panels container
   Holds all panels as position:absolute children.
   Only .is-active is visible; others are off-screen.
   ------------------------------------------------------------------ */
.tc-mobile-menu__panels {
	position: relative;
	flex: 1;
	overflow: hidden;
}

/* ------------------------------------------------------------------
   4. Individual panel
   ------------------------------------------------------------------ */
.tc-mobile-menu__panel {
	position: absolute;
	inset: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	background-color: var(--tc-black);
}

.tc-mobile-menu__panel:not(:first-of-type) .tc-mobile-menu__row {
	justify-content: space-between;
}

.tc-mobile-menu__panel:not(:first-of-type) .tc-mobile-menu__trigger {
	font-size: 15px;
	font-family: 'DM Sans', serif;
	width: auto;
    flex: none;
}

.tc-mobile-menu__panel:not(:first-of-type) .tc-mobile-menu__trigger > span {
	flex: none;
}

/* Active panel — visible */
.tc-mobile-menu__panel.is-active {
	transform: translateX(0);
}

/* Behind panel — partially pushed left when a child panel is active */
.tc-mobile-menu__panel.is-behind {
	transform: translateX(-28%);
}

.tc-mobile-menu__panel-body {
	padding: 50px 24px 32px;
	display: flex;
	flex-direction: column;
	height: -webkit-fill-available;
	height: stretch;	
}

/* ------------------------------------------------------------------
   5. Back button (appears at top of sub-panels)
   ------------------------------------------------------------------ */
.tc-mobile-menu__back {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 0px 0 10px;
	background: none;
	border: none;
	cursor: pointer;
	font-family: 'Gilda Display', serif;
	font-size: 20px;
	line-height: 56px;
	font-weight: 400;
	color: #fff;
	text-align: left;
}

.tc-mobile-menu__back:hover {
	opacity: 0.7;
}

.tc-mobile-menu__back .tc-mobile-menu__chevron--left {
	flex-shrink: 0;
	opacity: 0.7;
	margin-top: 1px;
	margin-left: 0;
}

/* ------------------------------------------------------------------
   6. Nav list — top-level and sub-level items
   ------------------------------------------------------------------ */
.tc-mobile-menu__nav {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tc-mobile-menu__item {
	border-bottom: 1px solid rgba(112, 112, 112, .35);
}

/* Trigger — both <button> (has children) and <a> (leaf link) */
.tc-mobile-menu__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	background: none;
	border: none;
	cursor: pointer;
	font-family: 'Gilda Display', serif;
	font-size: 20px;
	line-height: 56px;
	font-weight: 400;
	color: var(--tc-white);
	text-decoration: none;
	text-align: left;
	padding: 0;
}

.tc-mobile-menu__trigger:hover,
.tc-mobile-menu__trigger:focus {
	color: var(--tc-gold, #EBA318);
	background: none;
}

.tc-mobile-menu__trigger:hover .tc-mobile-menu__chevron,
.tc-mobile-menu__trigger:focus .tc-mobile-menu__chevron {
	stroke: var(--tc-gold, #EBA318);
}

.tc-mobile-menu__trigger span {
	flex: 1;
}

/* Right-pointing chevron */
.tc-mobile-menu__chevron {
	flex-shrink: 0;
	stroke: rgba(255, 255, 255, 1);
	margin-left: 12px;
	transition: stroke 0.2s ease;
}

/* ------------------------------------------------------------------
   6b. Split row — label navigates, separate button expands
   Used when a menu item has both children AND its own real link
   (e.g. a city like "Sandton" that has a destination page).
   ------------------------------------------------------------------ */
.tc-mobile-menu__row {
	display: flex;
	align-items: center;
}

.tc-mobile-menu__row .tc-mobile-menu__trigger {
	flex: 1;
	min-width: 0;
}

.tc-mobile-menu__expand {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 35px;
	height: 35px;
	margin-left: 10px;
	background: transparent;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.2s ease;
}

.tc-mobile-menu__expand:hover .tc-mobile-menu__chevron {
	stroke: var(--tc-gold, #EBA318);
}

.tc-mobile-menu__expand:focus {
	background: rgba(255, 255, 255, 0.18);
}

.tc-mobile-menu__expand .tc-mobile-menu__chevron {
	stroke: var(--tc-white, #ffffff);
	margin-left: 1px; /* optical centering for the arrow glyph */
}

/* ------------------------------------------------------------------
   7. Hotel items (level 3) — thumbnail + name
   ------------------------------------------------------------------ */

.tc-mobile-menu__nav--hotels {
	margin-top: 10px;
}

.tc-mobile-menu__nav--hotels .tc-mobile-menu__item {
	border-bottom: none;
	margin-bottom: 15px;
}


.tc-mobile-menu__hotel-link {
	display: flex;
	align-items: center;
	gap: 22px;
	text-decoration: none;
	color: #fff;
	transition: opacity 0.2s ease;
}

.tc-mobile-menu__hotel-link:hover {
	opacity: 0.7;
	color: #fff;
}

.tc-mobile-menu__hotel-thumb {
	width: 82px;
	height: 52px;
	flex-shrink: 0;
	background-size: cover;
	background-position: center;
	background-color: rgba(255, 255, 255, 0.06);
	display: block;
	border-radius: 4px;
}

.tc-mobile-menu__hotel-thumb--empty {
	/* Placeholder when no featured image is set */
	background-color: rgba(255, 255, 255, 0.06);
}

.tc-mobile-menu__hotel-name {
	font-family: 'DM Sans', sans-serif;
	font-size: 15px;
	font-weight: 400;
}

/* ------------------------------------------------------------------
   8. Secondary links grid (bottom of root panel)
   ------------------------------------------------------------------ */
.tc-mobile-menu__secondary {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2px 24px;
	margin-top: auto;
	margin-bottom: 10px;
	padding: 0;
	list-style: none;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 20px;
	display: none;
}

.tc-mobile-menu__secondary a {
	font-family: 'DM Sans', sans-serif;
	font-size: 13px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.55);
	text-decoration: none;
	padding: 5px 0;
	display: block;
	transition: color 0.2s ease;
}

.tc-mobile-menu__secondary a:hover {
	color: #fff;
}

/* ------------------------------------------------------------------
   9. Footer — phone, email, login, language
   Always visible below the panels.
   ------------------------------------------------------------------ */
.tc-mobile-menu__footer {
	flex-shrink: 0;
	/* border-top: 1px solid rgba(255, 255, 255, 0.08); */
	padding: 16px 24px 24px;
	padding-bottom: 60px;
}

.tc-mobile-menu__utility {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.tc-mobile-menu__utility-link {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: 'DM Sans', sans-serif;
	font-size: 13px;
	font-weight: 400;
	color: rgba(255, 255, 255, 1);
	text-decoration: none;
	padding: 7px 0;
	transition: color 0.2s ease;
	width: fit-content;
}

.tc-mobile-menu__utility-link:hover {
	color: #fff;
}

.tc-mobile-menu__utility-link svg {
	flex-shrink: 0;
	stroke: var(--tc-white, #fff);
}

/* Actions row: login + language */
.tc-mobile-menu__utility-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 12px;
}

.tc-mobile-menu__member-login {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	font-family: 'DM Sans', sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 8px 14px;
	border: none;
	transition: background 0.2s ease;
}

.tc-mobile-menu__member-login:hover {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

.tc-mobile-menu__member-login svg {
	flex-shrink: 0;
}

/* Language switcher */
.tc-mobile-menu__lang {
	font-family: 'DM Sans', sans-serif;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.45);
}

.tc-mobile-menu__lang ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 4px;
}

.tc-mobile-menu__lang li {
	display: inline;
}

.tc-mobile-menu__lang li + li::before {
	content: '|';
	margin-right: 4px;
	color: rgba(255, 255, 255, 0.2);
}

.tc-mobile-menu__lang a {
	color: rgba(255, 255, 255, 0.45);
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	transition: color 0.2s ease;
}

.tc-mobile-menu__lang a:hover,
.tc-mobile-menu__lang .current-lang a {
	color: var(--tc-gold, #EBA318);
}

/* ------------------------------------------------------------------
   10. Hide on desktop
   ------------------------------------------------------------------ */
@media (min-width: 1025px) {
	.tc-mobile-menu,
	.tc-mobile-overlay {
		display: none !important;
	}
}


@media (max-width: 767px) {
	.tc-mobile-menu__footer {
		padding-bottom: 20px;
	}

	.tc-mobile-menu__panel-body {
		padding-top: 30px;
	}

	.tc-mobile-menu__footer {
		border-top: 1px solid rgba(255, 255, 255, 0.4);
	}
}