/* Селектор города в шапке */
.geoip-dropdown {
	position: relative;
	display: inline-block;
}

.geoip-dropdown__trigger {
	display: flex;
	align-items: center;
	gap: 8px;
	background: none;
	border: none;
	padding: 8px 12px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	color: #000000;
	border-radius: 6px;
	transition: all 0.2s ease;
	user-select: none;
	color: #fff;
}

header.inner_page .geoip-dropdown__trigger {
	color: #000000;
}

/* .geoip-dropdown__trigger:hover {
	background: #f5f5f5;
} */

/* .geoip-dropdown__trigger.active {
	background: #f5f5f5;
} */

.geoip-dropdown__icon {
	flex-shrink: 0;
	width: 10px;
	height: 10px;
}

.geoip-dropdown__city {
	white-space: nowrap;
	opacity: 0.7;
}

.geoip-dropdown__arrow {
	flex-shrink: 0;
	width: 10px;
	height: 6px;
	transition: transform 0.2s ease;
}



.geoip-dropdown__trigger.active .geoip-dropdown__arrow {
	transform: rotate(180deg);
}

/* Модальные окна - выпадают под селектором */
.city-modal {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: all 0.2s ease;
}

.city-modal.active {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.city-modal__content {
	background: #FFFFFF;
	border-radius: 15px;
	padding: 18px 25px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	text-align: center;
}

.city-modal__content.flex-row {
	display: flex;
	gap: 20px;
	align-items: center;
}

@media (max-width: 768px) {
	.city-modal__content.flex-row {
		flex-direction: column;
	}
}

/* Окно подтверждения города */
.city-modal__question {
	font-size: 15px;
	color: #000000;
	line-height: 1.4;
	white-space: nowrap;
}

.city-modal__buttons {
	display: flex;
	gap: 12px;
	justify-content: center;
}

.city-modal__button {
	padding: 10px 25px;
	border-radius: 25px;
	border: 1px solid #E6E6E6;
	background: #FFF;
	font-size: 15px;
	cursor: pointer;
	transition: all 0.2s ease;
	outline: none;
	white-space: nowrap;
}

.city-modal__button--yes {
	background: #000000;
	border-color: #000000;
	color: #FFFFFF;
}

.city-modal__button--yes:hover {
	background: #333333;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.city-modal__button--no {
	color: #000000;
}

.city-modal__button--no:hover {
	background: #E0E0E0;
}

/* Модальное окно выбора города */
.city-modal--selector .city-modal__content {
	padding: 16px;
	text-align: left;
}

.city-modal__close {
	display: flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: none;
	font-size: 13px;
	color: #666666;
	cursor: pointer;
	margin-top: 12px;
	padding: 0;
	transition: color 0.2s ease;
}

.city-modal__close:hover {
	color: #000000;
}

.city-modal__list {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.city-modal__city-item {
	padding: 12px 16px;
	border-radius: 25px;
	border: 1px solid #E6E6E6;
	background: #FFF;
	font-size: 14px;
	font-weight: 500;
	color: #000000;
	cursor: pointer;
	transition: all 0.15s ease;
	text-align: left;
	white-space: nowrap;
}

.city-modal__city-item:hover {
	background: #E8E8E8;
	transform: translateX(2px);
}

.city-modal__city-item.active {
	background: #000000;
	border-color: #000000;
	color: #FFFFFF;
}

.city-modal__city-item.active:hover {
	background: #333333;
}

/* Адаптивность */
@media (max-width: 768px) {
	.geoip-dropdown__trigger {
		padding: 6px 10px;
		font-size: 13px;
	}

	.geoip-dropdown__icon {
		width: 10px;
		height: 10px;
	}

	.geoip-dropdown__arrow {
		width: 8px;
		height: 5px;
	}

	.city-modal__content {
		min-width: 260px;
		padding: 16px 20px;
	}

	.city-modal__question {
		font-size: 15px;
		margin-bottom: 14px;
	}

	.city-modal__button {
		padding: 9px 24px;
		font-size: 13px;
	}

	.city-modal__city-item {
		padding: 10px 14px;
		font-size: 13px;
	}
}

/* Анимация при загрузке */
@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.geoip-dropdown {
	animation: fadeIn 0.3s ease-out;
}