/**
 * Location Switcher Styles.
 * Unified design language replicating the language switcher.
 */
.location-switcher {
	position: relative;
	display: none;
}

@media (min-width: 1024px) {
	.location-switcher {
		display: block;
	}
}

.location-switcher__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 42px;
	padding: 0.5rem 0.85rem;
	background: transparent;
	color: inherit;
	border: 1px solid currentColor;
	border-radius: 9999px;
	cursor: pointer;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	font-family: inherit;
}

.location-switcher__toggle:hover,
.location-switcher.is-open .location-switcher__toggle {
	background: var(--brand-raspberry);
	color: #ffffff !important;
	border-color: var(--brand-raspberry);
}

.location-switcher__caret {
	transition: transform 0.2s ease;
}

.location-switcher.is-open .location-switcher__caret {
	transform: rotate(180deg);
}

.location-switcher__list {
	position: absolute;
	top: calc(100% + 0.5rem);
	right: 0;
	min-width: 150px;
	list-style: none;
	margin: 0;
	padding: 0.4rem;
	background: #ffffff;
	color: #0a0a0a;
	border: 1px solid rgba(0, 0, 0, 0.06);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
	border-radius: 4px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
	z-index: 120;
	isolation: isolate;
}

.site-header.is-sticky .location-switcher__list {
	background: #ffffff;
	color: #0a0a0a;
}

.site-header.is-sticky.is-dark .location-switcher__list {
	background: #0a0a0a;
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.08);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.location-switcher.is-open .location-switcher__list {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.location-switcher__option {
	display: block;
	padding: 0.55rem 0.85rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
	border-radius: 2px;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.location-switcher__option:hover,
.location-switcher__option:focus-visible {
	background: var(--brand-raspberry-soft);
	color: var(--brand-raspberry);
}

.location-switcher__option.is-current {
	color: var(--brand-raspberry);
	background: var(--brand-raspberry-soft-2);
}

/* Horizontal gap integration next to lang-switcher in header */
@media (min-width: 1024px) {
	.site-header__actions {
		display: flex;
		align-items: center;
		gap: 0.75rem;
	}
}

/* Dark mode overrides */
.dark .location-switcher__list {
	background: #111111;
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.08);
}
.dark .location-switcher__option:hover,
.dark .location-switcher__option:focus-visible {
	background: rgba(240, 98, 146, 0.16);
	color: #f06292;
}
.dark .location-switcher__option.is-current {
	color: #f06292;
	background: rgba(240, 98, 146, 0.1);
}
