/* Arkan Properties — Elementor horizontal search bar */

.arkan-search-bar {
	--arkan-search-accent: #1f6b4a;
	--arkan-search-accent-hover: #18573c;
	--arkan-search-surface: #ffffff;
	--arkan-search-field: #f7f8fa;
	--arkan-search-border: rgba(28, 36, 52, 0.12);
	--arkan-search-text: #1c2434;
	--arkan-search-muted: #7a8299;
	--arkan-search-focus: rgba(31, 107, 74, 0.18);
	direction: rtl;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: 16px;
	background: var(--arkan-search-surface);
	border: 1px solid var(--arkan-search-border);
	border-radius: 18px;
	box-shadow: 0 10px 30px rgba(18, 28, 45, 0.08);
	font-family: 'YekanFanum', 'B-yekan', 'pelak', Tahoma, sans-serif;
	box-sizing: border-box;
}

.arkan-search-bar *,
.arkan-search-bar *::before,
.arkan-search-bar *::after {
	box-sizing: border-box;
}

.arkan-search-bar__row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
	width: 100%;
}

.arkan-search-bar__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1 1 140px;
	min-width: 140px;
}

.arkan-search-bar__field--submit {
	flex: 0 0 auto;
	min-width: 120px;
}

.arkan-search-bar__label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--arkan-search-muted);
	padding-inline-start: 2px;
}

.arkan-search-bar__label--spacer {
	visibility: hidden;
	user-select: none;
}

.arkan-search-bar__select-wrap {
	position: relative;
	width: 100%;
}

.arkan-search-bar__select-wrap::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 14px;
	width: 0;
	height: 0;
	margin-top: -2px;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid var(--arkan-search-muted);
	pointer-events: none;
	transition: transform 0.2s ease, border-top-color 0.2s ease;
}

.arkan-search-bar__field.is-open .arkan-search-bar__select-wrap::after {
	transform: rotate(180deg);
}

.arkan-search-bar__control {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	min-height: 52px;
	height: 52px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid var(--arkan-search-border);
	border-radius: 12px;
	background-color: var(--arkan-search-field);
	color: var(--arkan-search-text);
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
	cursor: pointer;
}

select.arkan-search-bar__control {
	padding-left: 34px;
	padding-right: 16px;
	background-image: none;
}

input.arkan-search-bar__control {
	cursor: text;
}

.arkan-search-bar__control:hover:not(:disabled) {
	border-color: rgba(28, 36, 52, 0.22);
}

.arkan-search-bar__control:focus {
	border-color: var(--arkan-search-accent);
	box-shadow: 0 0 0 3px var(--arkan-search-focus);
	background-color: #fff;
}

.arkan-search-bar__control:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.arkan-search-bar__control::placeholder {
	color: var(--arkan-search-muted);
	opacity: 1;
}

.arkan-search-bar__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-width: 120px;
	min-height: 52px;
	margin: 0;
	padding: 0 22px;
	border: none;
	border-radius: 12px;
	background: var(--arkan-search-accent);
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
	box-shadow: 0 8px 18px rgba(31, 107, 74, 0.22);
}

.arkan-search-bar__submit:hover {
	background: var(--arkan-search-accent-hover);
	transform: translateY(-1px);
}

.arkan-search-bar__submit:active {
	transform: translateY(0);
}

.arkan-search-bar__submit:focus-visible {
	outline: 2px solid var(--arkan-search-accent);
	outline-offset: 2px;
}

.arkan-search-bar__submit-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	line-height: 0;
}

.arkan-search-bar__submit-icon svg {
	display: block;
	width: 18px;
	height: 18px;
}

@media (max-width: 1024px) {
	.arkan-search-bar__field {
		flex: 1 1 calc(50% - 12px);
	}

	.arkan-search-bar__field--submit {
		flex: 1 1 100%;
	}
}

@media (max-width: 640px) {
	.arkan-search-bar {
		padding: 14px;
		border-radius: 14px;
	}

	.arkan-search-bar__field,
	.arkan-search-bar__field--submit {
		flex: 1 1 100%;
		min-width: 0;
	}

	.arkan-search-bar__label--spacer {
		display: none;
	}
}
