/* Iran Dealerships Map - Frontend styles v0.0.2 */

.idm-map-outer {
	width: 100%;
	direction: rtl;
}

.idm-map-wrapper {
	position: relative;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	line-height: 0;
}

.idm-map-wrapper svg {
	width: 100%;
	height: 100%;
	display: block;
}

.idm-map-wrapper svg path {
	cursor: pointer;
	transition: fill 0.2s ease, stroke 0.2s ease;
	stroke-width: 1;
}

.idm-map-wrapper svg path.idm-sea,
.idm-map-wrapper svg #seas path,
.idm-map-wrapper svg .sea {
	cursor: default;
	pointer-events: none;
}

.idm-map-tooltip {
	position: absolute;
	z-index: 20;
	background: rgba(0, 0, 0, 0.85);
	color: #fff;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 13px;
	pointer-events: none;
	white-space: nowrap;
	transform: translate(-50%, -120%);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.idm-map-tooltip::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -5px;
	transform: translateX(-50%);
	border-width: 5px 5px 0;
	border-style: solid;
	border-color: rgba(0, 0, 0, 0.85) transparent transparent;
}

/* ===== Dropdowns ===== */
.idm-province-dropdown-wrap,
.idm-city-dropdown-wrap {
	width: 100%;
	direction: rtl;
	margin-bottom: 12px;
	position: relative;
}

.idm-dropdown-label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	font-size: 14px;
	color: #1f2328;
}

.idm-select-shell {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
}

.idm-select-icon {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	z-index: 2;
	color: #656d76;
	line-height: 1;
}

.idm-select-icon i,
.idm-select-icon svg {
	width: 1.1em;
	height: 1.1em;
	font-size: 16px;
	fill: currentColor;
}

.idm-select-shell.has-icon .idm-province-select,
.idm-select-shell.has-icon .idm-city-select {
	padding-right: 42px;
}

.idm-province-select,
.idm-city-select {
	width: 100%;
	max-width: 100%;
	padding: 12px 16px;
	padding-left: 40px;
	font-size: 15px;
	line-height: 1.4;
	border: 1px solid #d0d7de;
	border-radius: 10px;
	background-color: #fff;
	color: #1f2328;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23586069' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left 14px center;
	cursor: pointer;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
	box-shadow: 0 1px 2px rgba(31, 35, 40, 0.04);
}

.idm-province-select:hover,
.idm-city-select:hover:not(:disabled) {
	border-color: #afb8c1;
	background-color: #f6f8fa;
}

.idm-province-select:focus,
.idm-city-select:focus {
	outline: none;
	border-color: #4a90d9;
	box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.22);
	background-color: #fff;
}

.idm-city-select:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	background-color: #f6f8fa;
	color: #656d76;
}

/* Native select option list (browser-limited but improved where possible) */
.idm-province-select option,
.idm-city-select option {
	padding: 10px 12px;
	font-size: 15px;
	background: #fff;
	color: #1f2328;
}

.idm-province-select option:checked,
.idm-city-select option:checked {
	background: linear-gradient(#4a90d9, #4a90d9);
	color: #fff;
}

/* Optional open-state class (for future custom list UI) */
.idm-select-shell.is-open .idm-province-select,
.idm-select-shell.is-open .idm-city-select {
	border-color: #4a90d9;
	box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.22);
}

/* Responsive */
@media (max-width: 767px) {
	.idm-map-wrapper {
		min-height: 280px;
	}

	.idm-province-select,
	.idm-city-select {
		font-size: 16px;
		padding: 14px 16px;
		padding-left: 40px;
	}

	.idm-select-shell.has-icon .idm-province-select,
	.idm-select-shell.has-icon .idm-city-select {
		padding-right: 42px;
	}
}
