/**
 * Перемикач міста в top-bar.
 *
 * Колір беремо нейтральний (білий на темному фоні top-bar).
 * Dropdown — світла картка, як у банера/тултіпа мапи.
 */

.city-switcher {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.city-switcher__toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: transparent;
	border: 0;
	padding: 0;
	margin: 0;
	color: inherit;
	font: inherit;
	cursor: pointer;
	line-height: 1.2;
	white-space: nowrap;
}

.city-switcher__toggle .icon {
	font-size: 14px;
	line-height: 1;
}

.city-switcher__toggle:hover,
.city-switcher__toggle:focus-visible {
	color: #f0c684;
	outline: none;
}

.city-switcher__caret {
	transition: transform 0.18s ease;
	font-size: 10px;
}

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

.city-switcher__menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 200;
	margin: 0;
	padding: 6px 0;
	list-style: none;
	min-width: 200px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
	color: #1a1a1a;
}

.city-switcher__menu[hidden] {
	display: none;
}

.city-switcher__item a {
	display: block;
	padding: 8px 16px;
	color: inherit;
	text-decoration: none;
	font-size: 14px;
	line-height: 1.3;
}

.city-switcher__item a:hover,
.city-switcher__item a:focus-visible {
	background: #f7f5f0;
	color: #a4763e;
	outline: none;
}

.city-switcher__item.is-active a {
	background: #f7f5f0;
	color: #a4763e;
	font-weight: 600;
}

@media (max-width: 991px) {
	/* Top-bar схований на мобільних — перемикач теж. У бургер-меню він
	   рендериться окремо через .mobile-top-bar (див. нижче). */
	.city-switcher {
		display: none;
	}
}

/* Перемикач міста у футері (показуємо на всіх розмірах; темне тло футера —
   текст світлий, dropdown лишається світлою карткою). */
.main-footer .footer-city-switcher {
	margin-bottom: 16px;
}

.main-footer .city-switcher {
	display: inline-flex;
}

.main-footer .city-switcher__toggle {
	font-size: 15px;
}

@media (max-width: 1199px) {
	/* Перемикач міста всередині мобільного бургер-меню. Темне тло меню —
	   текст успадковує світлий колір, dropdown лишається світлою карткою.
	   Робимо помітний рядок на всю ширину з тапабельною зоною. */
	.mobile-top-bar .city-switcher {
		display: block;
		width: 100%;
	}
	.mobile-top-bar .city-switcher__toggle {
		display: flex;
		align-items: center;
		width: 100%;
		gap: 10px;
		padding: 10px 0;
		font-size: 17px;
		font-weight: 600;
	}
	.mobile-top-bar .city-switcher__toggle .icon-location {
		font-size: 19px;
		opacity: 0.85;
	}
	.mobile-top-bar .city-switcher__current {
		white-space: normal;
	}
	.mobile-top-bar .city-switcher__caret {
		margin-left: auto;
		font-size: 11px;
		opacity: 0.7;
	}
	.mobile-top-bar .city-switcher__menu {
		width: 100%;
		min-width: 0;
	}
}
