/**
 * Sonder footer — matches sonder.com reference (currency switcher omitted).
 */

.sd-footer {
	--sd-footer-ink: #14213d;
	--sd-footer-cream: #f4efe6;
	--sd-footer-accent: #b07a4c;
	--sd-footer-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--sd-footer-page-x: clamp(20px, 4vw, 56px);
	--sd-footer-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--sd-footer-sans: "Mulish", "Inter", Arial, sans-serif;

	background: var(--sd-footer-ink);
	color: rgba(244, 239, 230, 0.82);
	font-family: var(--sd-footer-sans);
	padding-top: 100px;
	padding-bottom: 100px;
	width: 100%;
	position: relative;
	z-index: 1;
}

.sd-footer *,
.sd-footer *::before,
.sd-footer *::after {
	box-sizing: border-box;
}

.sd-footer a {
	text-decoration: none;
	color: inherit;
}

.sd-footer__container {
	max-width: 1585px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--sd-footer-page-x);
	padding-right: var(--sd-footer-page-x);
}

/* —— Top: brand + link columns —— */

.sd-footer .footer-top {
	display: grid;
	grid-template-columns: 1.5fr repeat(5, 1fr);
	gap: clamp(28px, 3vw, 56px);
	margin-bottom: 64px;
}

.sd-footer .footer-logo {
	height: 28px;
	width: auto;
	display: block;
}

.sd-footer .footer-brand p {
	color: rgba(244, 239, 230, 0.92);
	font-size: 14.5px;
	line-height: 1.55;
	max-width: 36ch;
	margin: 16px 0 0;
}

.sd-footer .footer-col .widget {
	margin: 0;
	padding: 0;
}

.sd-footer .footer-col .widget + .widget {
	margin-top: 28px;
}

.sd-footer .footer-col h3,
.sd-footer .footer-col .widget-title {
	margin: 0 0 18px;
	font-family: var(--sd-footer-mono);
	font-weight: 500;
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(244, 239, 230, 0.52);
}

.sd-footer .footer-col ul,
.sd-footer .footer-col .menu {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.sd-footer .footer-col .menu-container,
.sd-footer .footer-col .widget_nav_menu > div {
	margin: 0;
	padding: 0;
}

.sd-footer .footer-col li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sd-footer .footer-col a {
	font-size: 14.5px;
	color: rgba(244, 239, 230, 0.82);
	transition: color 0.2s var(--sd-footer-ease);
}

.sd-footer .footer-col a:hover {
	color: var(--sd-footer-accent);
}

/* —— Middle: TravelAI + copyright (no currency) —— */

.sd-footer .footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: nowrap;
	max-width: none;
	width: 100%;
	border-top: 1px solid rgba(244, 239, 230, 0.16);
	padding-top: 34px;
	font-size: 13px;
	color: rgba(244, 239, 230, 0.6);
}

.sd-footer .footer-bottom a {
	color: rgba(244, 239, 230, 0.6);
}

.sd-footer .footer-bottom a:hover {
	color: var(--sd-footer-accent);
}

.sd-footer .footer-legal {
	display: flex;
	align-items: center;
	gap: 14px;
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
}

.sd-footer .powered-by {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	flex: 0 0 auto;
	margin: 0;
	order: 0;
	max-width: 100%;
}

/* Neutralize legacy .powered-by / .footer-bottom rules from common.css */
.sd-footer .powered-by::before,
.sd-footer .powered-by:before {
	content: none !important;
	display: none !important;
	border: 0 !important;
}

.sd-footer .powered-by img {
	height: 36px;
	width: auto;
	max-width: 160px;
	display: block;
	flex: 0 0 auto;
}

.sd-footer .powered-by .pb-divider {
	width: 1px;
	height: 38px;
	flex: 0 0 auto;
	background: rgba(244, 239, 230, 0.22);
}

.sd-footer .pb-stack {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1 1 auto;
}

.sd-footer .pb-stack .pb-text {
	font-size: 14px;
	line-height: 1.35;
	color: rgba(244, 239, 230, 0.6);
	white-space: nowrap;
	text-decoration: none;
}

.sd-footer .pb-stack .pb-text a {
	color: inherit;
}

.sd-footer .pb-stack .pb-text a:hover {
	color: var(--sd-footer-accent);
}

.sd-footer .footer-legalese {
	font-size: 13px;
	line-height: 1.5;
	color: rgba(244, 239, 230, 0.6);
	white-space: nowrap;
}

.sd-footer .legal-br {
	display: none;
}

.sd-footer .footer-copy {
	font-size: 12px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 3px;
	flex: 0 0 auto;
	margin-left: auto;
	white-space: nowrap;
	position: static;
}

.sd-footer .footer-copy a {
	color: rgba(244, 239, 230, 0.6);
}

/* —— Fineprint —— */

.sd-footer .footer-fineprint {
	margin: 42px 0 0;
	padding-top: 32px;
	border-top: 1px solid rgba(244, 239, 230, 0.14);
	max-width: none;
}

.sd-footer .footer-fineprint p {
	margin: 0;
	font-size: 8pt;
	line-height: 1.65;
	color: rgba(244, 239, 230, 0.42);
	max-width: 70%;
}

/* —— Responsive —— */

/* Override legacy common.css `.footer-bottom { width: 40% }` */
@media (min-width: 991px) and (max-width: 1440px) {
	.sd-footer .footer-bottom {
		width: 100%;
		max-width: none;
	}
}

@media (max-width: 1280px) {
	.sd-footer .footer-fineprint p {
		max-width: none;
	}
}

@media (max-width: 1100px) {
	.sd-footer .footer-fineprint {
		margin-top: 38px;
		padding-top: 28px;
	}

	.sd-footer .footer-top {
		grid-template-columns: 1fr 1fr 1fr;
		row-gap: 44px;
	}

	.sd-footer .footer-brand {
		display: contents;
	}

	.sd-footer .footer-brand-main {
		grid-column: 1 / -1;
	}
}

/* Tablet + mobile: stack TravelAI block above copyright */
@media (max-width: 990px) {
	.sd-footer .footer-bottom {
		flex-direction: column;
		flex-wrap: wrap;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 24px;
		max-width: 100%;
		width: 100%;
	}

	.sd-footer .footer-legal {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		flex: 0 0 auto;
	}

	.sd-footer .powered-by {
		display: inline-flex;
		align-items: center;
		gap: 0;
		width: auto;
		max-width: 100%;
	}

	.sd-footer .footer-legal .pb-divider {
		display: none;
	}

	.sd-footer .powered-by img {
		height: 28px;
		width: auto;
		max-width: 150px;
		display: block;
	}

	.sd-footer .pb-stack {
		gap: 8px;
		width: 100%;
		max-width: 100%;
		flex: 0 0 auto;
	}

	.sd-footer .pb-stack .pb-text,
	.sd-footer .footer-legalese {
		white-space: normal;
		overflow-wrap: anywhere;
		word-break: normal;
	}

	.sd-footer .legal-br {
		display: inline;
	}

	.sd-footer .footer-copy {
		position: static;
		display: block;
		margin-left: 0;
		width: 100%;
		max-width: 100%;
		white-space: normal;
		flex: 0 0 auto;
	}
}

@media (min-width: 768px) and (max-width: 990px) {
	.sd-footer .footer-legal {
        flex-direction: row;
        align-items: center;
        gap: 14px;
    }
	.sd-footer .pb-stack {
        flex: auto;
    }

	.sd-footer .footer-legal .pb-divider {
        display: block;
    }

	.sd-footer .powered-by {
        gap: 14px;
    }

	.sd-footer .legal-br {
        display: none;
    }
}

@media (max-width: 720px) {
	.sd-footer {
		padding-top: 60px;
		padding-bottom: 80px;
	}

	.sd-footer .footer-logo {
		height: 24px;
	}

	.sd-footer .footer-top {
		grid-template-columns: 1fr 1fr;
		row-gap: 48px;
		margin-bottom: 30px;
	}

	.sd-footer .footer-brand {
		display: contents;
	}

	.sd-footer .footer-brand-main {
		order: 0;
		grid-column: 1 / -1;
	}

	.sd-footer .footer-col {
		order: 1;
	}

	.sd-footer .footer-bottom {
		padding-top: 40px;
		gap: 28px;
	}

	.sd-footer .footer-fineprint {
		margin-top: 34px;
		padding-top: 24px;
		max-width: none;
	}

	.sd-footer .footer-fineprint p {
		font-size: 12px;
		line-height: 1.6;
		max-width: none;
	}
}
