/**
 * Two-row marketplace header – Kleinanzeigen-style, Arabic RTL.
 * Pixel corrections: same container both rows, logo right, pill dominant, RTL order.
 * Child theme: listinghive-child. Update-safe.
 */

/* ==========================================================================
   Design tokens – shared container, pixel-tuned
   ========================================================================== */

.sc-mkp-header {
	--sc-mkp-white: #ffffff;
	--sc-mkp-green: #cbed44;
	--sc-mkp-green-dark: #305c2a;
	--sc-mkp-accent: #cbed44;
	--sc-mkp-gray-200: #d1d1d1;
	--sc-mkp-gray-400: #666666;
	--sc-mkp-gray-800: #121212;

	/* Shared container – BOTH rows, same width and padding */
	--sc-mkp-container-max: 1240px;
	--sc-mkp-container-padding-x: 24px;

	/* Row 1 – white bar */
	--sc-mkp-top-height: 56px;
	--sc-mkp-top-padding-y: 8px;

	/* Row 2 – green bar */
	--sc-mkp-green-height: 60px;

	/* Search pill – dominant width 720–760px, height 48px */
	--sc-mkp-pill-height: 48px;
	--sc-mkp-pill-width: 860px;
	--sc-mkp-pill-radius: 12px;
	--sc-mkp-pill-cell-padding-x: 16px;
	--sc-mkp-pill-sep-width: 1px;
	--sc-mkp-pill-input-fs: 15px;
	--sc-mkp-pill-select-fs: 14px;
	--sc-mkp-pill-btn-width: 90px;
	--sc-mkp-pill-btn-fs: 15px;
	--sc-mkp-cta-height: 40px; /* unified height: search + post-ad */
	--sc-mkp-cta-width: 96px;  /* unified width: search + post-ad */

	/* Auth buttons – pill, 38px height, 18px padding */
	--sc-mkp-btn-height: 38px;
	--sc-mkp-btn-padding-x: 18px;
	--sc-mkp-btn-fs: 14px;
	--sc-mkp-btn-radius: 9999px;

	/* Quick actions – gap 22px, icon 20px, label 13px */
	--sc-mkp-action-icon: 20px;
	--sc-mkp-action-label-fs: 13px;
	--sc-mkp-action-gap: 22px;

	--sc-mkp-font: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
}

/* ==========================================================================
   Row 1: White top bar – logo RIGHT, auth LEFT (same container)
   ========================================================================== */

.sc-mkp-header__row--top {
	background: var(--sc-mkp-white);
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Shared container – same horizontal grid for BOTH rows */
.sc-mkp-header__container--top,
.sc-mkp-header__container--green {
	width: 100%;
	max-width: var(--sc-mkp-container-max);
	margin-inline: auto;
	padding-inline: var(--sc-mkp-container-padding-x);
}

.sc-mkp-header__container--top {
	padding: 8px 5%;
	min-height: auto;
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	justify-content: space-between;
}

/* Logo – far RIGHT; no flex grow/shrink so it stays anchored */
.sc-mkp-header__brand {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
}

.sc-mkp-header__logo-link {
	text-decoration: none;
	color: var(--sc-mkp-gray-800);
	font-weight: 700;
	font-size: 1.35rem;
	line-height: 1.25;
	font-family: var(--sc-mkp-font);
}

.sc-mkp-header__logo-link:hover {
	color: var(--sc-mkp-green-dark);
}

.sc-mkp-header__brand .custom-logo-link {
	display: block;
	line-height: 0;
}

.sc-mkp-header__brand .custom-logo-link img {
	display: block;
	max-height: 52px;
	width: auto;
}

/* Auth – far LEFT; no flex grow so it stays anchored; gap and vertical center */
.sc-mkp-header__auth {
	flex: 0 0 auto;
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	gap: 15px;
}

.sc-mkp-header__auth-sep {
	color: #666;
	font-size: 14px;
	font-weight: 400;
	font-family: var(--sc-mkp-font);
}

.sc-mkp-header__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--sc-mkp-font);
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
	white-space: nowrap;
}

.sc-mkp-header__btn--outline {
	background: var(--sc-btn-unified-bg);
	border: 1px solid var(--sc-btn-unified-border);
	color: var(--sc-btn-unified-text);
	border-radius: 9999px;
	padding: 6px 18px !important;
	font-weight: bold;
	line-height: 1.5 !important;
	display: inline-flex !important;
	align-items: center !important;
}

.sc-mkp-header__btn--outline:hover {
	background: var(--sc-btn-unified-hover);
	border-color: var(--sc-btn-unified-hover-border);
	color: var(--sc-btn-unified-hover-text);
	opacity: 1;
	transform: translateY(-1px) scale(1.03);
}

/* Force "Create Account" outline button to Style 3 */
body .sc-mkp-header__auth a.sc-mkp-header__btn.sc-mkp-header__btn--outline {
	background: var(--sc-btn-style3-bg) !important;
	border-color: var(--sc-btn-style3-border) !important;
	color: var(--sc-btn-style3-text) !important;
}

body .sc-mkp-header__auth a.sc-mkp-header__btn.sc-mkp-header__btn--outline:hover,
body .sc-mkp-header__auth a.sc-mkp-header__btn.sc-mkp-header__btn--outline:focus,
body .sc-mkp-header__auth a.sc-mkp-header__btn.sc-mkp-header__btn--outline:focus-visible,
body .sc-mkp-header__auth a.sc-mkp-header__btn.sc-mkp-header__btn--outline:active {
	background: var(--sc-btn-style3-state-bg) !important;
	border-color: var(--sc-btn-style3-state-border) !important;
	color: var(--sc-btn-style3-state-text) !important;
	box-shadow: var(--sc-btn-style3-state-shadow) !important;
	transform: translateY(-1px) scale(1.03) !important;
	outline: none !important;
}

.sc-mkp-header__btn--filled {
	background-color: var(--sc-btn-unified-bg);
	border: 1px solid var(--sc-btn-unified-border);
	color: var(--sc-btn-unified-text);
	border-radius: 9999px;
	padding: 8px 18px;
	font-weight: bold;
	gap: 8px;
}

.sc-mkp-header__btn--filled:hover {
	background: var(--sc-btn-unified-hover);
	border-color: var(--sc-btn-unified-hover-border);
	color: var(--sc-btn-unified-hover-text);
	opacity: 1;
}

.sc-mkp-header__btn:focus-visible {
	outline: 2px solid var(--sc-mkp-green-dark);
	outline-offset: 2px;
}

/* ==========================================================================
   Row 2: Green bar – search pill RIGHT, actions LEFT (same container)
   ========================================================================== */

.sc-mkp-header__row--green {
	background: var(--sc-mkp-green);
	display: flex;
	align-items: center;
	box-shadow: none;
}

.sc-mkp-header__container--green {
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	padding: 10px 5%;
}

/* Search area – flexible; pill at end; no extra gap vs actions */
/* Search area – flexible and centered */
.sc-mkp-header__search-wrap {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Search form width control */
.sc-mkp-header__search-form {
  width: 100%;
  max-width: 860px;
}

/* Ensure search input fills form */
.sc-mkp-header__search-form input {
  width: 100%;
}

/* Search pill – single white pill */
.sc-mkp-header__pill {
	display: flex;
	flex-direction: row;
	align-items: center;
	flex-wrap: nowrap;
	background: #ffffff;
	border-radius: 50px;
	padding: 4px 6px; /* Updated padding */
	min-height: 52px; /* Thicker pill */
	border: 1px solid transparent;
	width: 100%;
	flex-grow: 1;
	overflow: visible;
}

/* RTL: keyword | category | region | city | button (button leftmost); gap 0 */
.sc-mkp-header__pill-cell {
	display: flex;
	align-items: center;
	gap: 0;
	padding-inline: var(--sc-mkp-pill-cell-padding-x);
}

.sc-mkp-header__pill-cell--keyword {
	flex: 1 1 auto;
	min-width: 180px;
}

.sc-mkp-header__pill-input-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	min-width: 0;
}

.sc-mkp-header__pill-input {
	flex: 1;
	min-width: 0;
	border: none !important;
	background: transparent;
	outline: none;
	font-size: var(--sc-mkp-pill-input-fs);
	font-family: var(--sc-mkp-font);
	direction: rtl;
	text-align: right;
	height: 100% !important;
	min-height: 40px !important;
	display: flex;
	align-items: center;
	margin: 0 !important;
	padding: 0 15px !important;
	line-height: normal !important;
}

.sc-mkp-header__pill-input::placeholder {
	color: #aaa;
}

.sc-mkp-header__pill-input:focus {
	outline: none;
}

.sc-mkp-header__pill-cell--category {
	flex: 0 0 auto;
	min-width: 120px;
}

.sc-mkp-header__pill-cell--region,
.sc-mkp-header__pill-cell--category + .sc-mkp-header__pill-sep {
	display: none;
}

.sc-mkp-header__pill-cell--city {
	flex: 0 0 auto;
	min-width: 100px;
}

/* غلاف قائمة «كل المدن» – السهم كعنصر منفصل منصف عمودياً جنب النص */
.sc-mkp-header__pill-select-wrap {
	display: flex;
	align-items: center;
	position: relative;
	width: 100%;
	min-width: 0;
}

.sc-mkp-header__pill-select-wrap::before {
	content: '';
	position: absolute;
	inset-inline-start: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 12px;
	height: 12px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	flex-shrink: 0;
	pointer-events: none;
}


/* القوائم المنسدلة: السهم على يسار النص (RTL) */
.sc-mkp-header__pill-select {
	border: none !important;
	background: transparent;
	outline: none;
	font-size: var(--sc-mkp-pill-select-fs);
	font-family: var(--sc-mkp-font);
	direction: rtl;
	text-align: right;
	height: 100% !important;
	min-height: 40px !important;
	display: flex !important;
	align-items: center !important;
	margin: 0 !important;
	padding: 0 15px !important;
	line-height: normal !important;
	padding-inline-start: 22px !important; /* Space for Custom SVG Arrow */
	cursor: pointer;
	color: var(--sc-mkp-gray-800);
	min-width: 0;
	width: 100%;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left 10px center;
}

/* كل المدن: السهم من الـ wrap فقط – إزالة سهم الـ select وترك مساحة لليسار */
.sc-mkp-header__pill-cell--city .sc-mkp-header__pill-select {
	background-image: none !important;
	width: 100%;
	padding-inline-start: 20px !important;
}

.sc-mkp-header__pill-select:focus {
	outline: none;
}

.sc-mkp-header__pill-cell--submit {
	padding: 0;
	flex-shrink: 0;
}

/* Search button – sit inside pill with margin – MATCH BRAND GREEN */
.sc-mkp-header__search-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	background-color: var(--sc-btn-unified-bg) !important;
	color: var(--sc-btn-unified-text) !important;
	border-radius: 30px !important;
	height: var(--sc-mkp-cta-height) !important;
	min-height: var(--sc-mkp-cta-height) !important;
	width: var(--sc-mkp-cta-width) !important;
	min-width: var(--sc-mkp-cta-width) !important;
	padding: 0 28px !important;
	line-height: 1 !important;
	font-weight: 800 !important;
	border: none !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	font-family: var(--sc-mkp-font) !important;
	margin: 0 !important;
	letter-spacing: -0.01em;
}

.sc-mkp-header__search-btn:hover {
	background: var(--sc-btn-unified-hover) !important;
	border-color: var(--sc-btn-unified-hover-border) !important;
	transform: translateY(-1px) scale(1.03);
	color: var(--sc-btn-unified-hover-text) !important;
}


.sc-mkp-header__search-btn:focus-visible {
	outline: 2px solid var(--sc-mkp-white);
	outline-offset: 2px;
}

/* Pill separators – 1px */
.sc-mkp-header__pill-sep {
	width: 1px;
	align-self: center; /* Use center for alignment */
	height: 60% !important; /* Stop stretching vertically */
	margin: auto 0;
	background: var(--sc-mkp-gray-200);
	flex-shrink: 0;
}

/* Icons inside pill – ref: dark grey, consistent size */
.sc-mkp-header__icon {
	flex-shrink: 0;
	color: var(--sc-mkp-gray-800);
}

.sc-mkp-header__icon--search {
	width: 18px;
	height: 18px;
}

.sc-mkp-header__icon--location {
	width: 16px;
	height: 16px;
}

/* Quick actions – right of the left logo */
.sc-mkp-header__actions {
	flex: 0 0 auto;
	display: flex;
	gap: 24px;
	align-items: center;
	flex-shrink: 0;
	flex-direction: row; /* Usually LTR for elements here, or RTL if explicitly wrapping. The flex layout expects RTL to handle right-to-left layout */
}

.sc-mkp-header__actions .sc-mkp-header__action {
	background: transparent !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 2px !important; /* Tiny gap */
	color: var(--sc-mkp-green-dark) !important;
	cursor: pointer !important;
	text-decoration: none !important;
	transition: opacity 0.2s ease !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	border-radius: 0 !important;
}

/* Ensure post-ad button stays horizontal (overrides generic action column rule) */
.sc-mkp-header__actions .sc-mkp-header__action--post-ad {
	flex-direction: row-reverse !important;
	align-items: center !important;
	gap: 8px !important;
}

.sc-mkp-header__action:hover {
	opacity: 0.8;
}

.sc-mkp-header__action:focus-visible {
	outline: 2px solid var(--sc-mkp-green-dark);
	outline-offset: 4px;
	border-radius: 6px; /* matches --sc-radius-sm from parent */
}

.sc-mkp-header__action-icon {
	width: 24px !important;
	height: 24px !important;
	flex-shrink: 0;
	fill: currentColor;
	stroke: currentColor; /* If using stroke icons */
}

/* "حسابي" action – stays transparent/column */
.sc-mkp-header__action--account {
	background: transparent !important;
	box-shadow: none !important;
	padding: 0;
}

/* "أعلن" CTA – prominent pill button, distinct from other actions */
.sc-mkp-header__action--post-ad {
	flex-direction: row-reverse !important; /* RTL: icon on right, label on left */
	background: var(--sc-btn-unified-bg) !important;
	color: var(--sc-btn-unified-text) !important;
	border-radius: 30px !important;
	height: var(--sc-mkp-cta-height) !important;
	min-height: var(--sc-mkp-cta-height) !important;
	width: var(--sc-mkp-cta-width) !important;
	min-width: var(--sc-mkp-cta-width) !important;
	padding: 0 28px !important; /* Match search button sizing */
	gap: 8px !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
	transition: background 0.2s ease, transform 0.15s ease !important;
	line-height: 1 !important;
}

.sc-mkp-header__action--post-ad .sc-mkp-header__action-icon {
	width: 20px !important;
	height: 20px !important;
	color: inherit !important;
	stroke: currentColor !important;
}

.sc-mkp-header__action--post-ad .sc-mkp-header__action-label {
	font-size: 15px !important;
	font-weight: 800 !important;
	color: inherit !important;
	white-space: nowrap !important;
	line-height: 1 !important;
}

/* --------------------------------------------------------------------------
   Add Listing Button (Style 1) - Idle "Nervous Snap" micro-interaction
   Target: .add-listing-btn > icon + label only (button container stays stable)
   -------------------------------------------------------------------------- */
:root {
	--sc-add-btn-snap-ease: cubic-bezier(0.34, 1.56, 0.64, 1);
	--sc-add-btn-idle-cycle: 2.6s; /* ~2s idle + quick snap */
}

.add-listing-btn .add-listing-btn__icon,
.add-listing-btn .add-listing-btn__label {
	display: inline-block; /* required for transform animations */
	transform-origin: center;
}

.add-listing-btn .add-listing-btn__icon {
	animation: sc-add-btn-icon-nervous var(--sc-add-btn-idle-cycle) var(--sc-add-btn-snap-ease) infinite;
}

.add-listing-btn .add-listing-btn__label {
	animation: sc-add-btn-label-nervous var(--sc-add-btn-idle-cycle) var(--sc-add-btn-snap-ease) infinite;
}

@keyframes sc-add-btn-icon-nervous {
	0%, 76% { transform: rotate(0deg); }
	84%     { transform: rotate(90deg); }
	100%    { transform: rotate(0deg); }
}

@keyframes sc-add-btn-label-nervous {
	0%, 76% { transform: scale(1); }
	84%     { transform: scale(1.10); }
	100%    { transform: scale(1); }
}

/* Hover/focus/active: freeze micro-animations instantly for calm decision state */
.add-listing-btn:is(:hover, :focus, :focus-visible, :active) .add-listing-btn__icon,
.add-listing-btn:is(:hover, :focus, :focus-visible, :active) .add-listing-btn__label {
	animation: none !important;
	transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.add-listing-btn .add-listing-btn__icon,
	.add-listing-btn .add-listing-btn__label {
		animation: none !important;
	}
}

.sc-mkp-header__action--post-ad:hover {
	background: var(--sc-btn-unified-hover) !important;
	border-color: var(--sc-btn-unified-hover-border) !important;
	color: var(--sc-btn-unified-hover-text) !important;
	opacity: 1 !important;
	transform: translateY(-1px) scale(1.03);
}

.sc-mkp-header__action--post-ad:hover .sc-mkp-header__action-icon,
.sc-mkp-header__action--post-ad:hover .sc-mkp-header__action-label {
	color: var(--sc-btn-unified-hover-text) !important;
	stroke: var(--sc-btn-unified-hover-text) !important;
}

.sc-mkp-header__btn:focus,
.sc-mkp-header__btn:focus-visible,
.sc-mkp-header__btn:active,
.sc-mkp-header__search-btn:focus,
.sc-mkp-header__search-btn:focus-visible,
.sc-mkp-header__search-btn:active,
.sc-mkp-header__action--post-ad:focus,
.sc-mkp-header__action--post-ad:focus-visible,
.sc-mkp-header__action--post-ad:active {
	background: var(--sc-btn-unified-hover) !important;
	border-color: var(--sc-btn-unified-hover-border) !important;
	color: var(--sc-btn-unified-hover-text) !important;
	transform: translateY(-1px) scale(1.03) !important;
	box-shadow: var(--sc-btn-unified-hover-shadow) !important;
	outline: none !important;
}

.sc-mkp-header__action--post-ad:focus .sc-mkp-header__action-icon,
.sc-mkp-header__action--post-ad:focus-visible .sc-mkp-header__action-icon,
.sc-mkp-header__action--post-ad:active .sc-mkp-header__action-icon,
.sc-mkp-header__action--post-ad:focus .sc-mkp-header__action-label,
.sc-mkp-header__action--post-ad:focus-visible .sc-mkp-header__action-label,
.sc-mkp-header__action--post-ad:active .sc-mkp-header__action-label {
	color: var(--sc-btn-unified-hover-text) !important;
	stroke: var(--sc-btn-unified-hover-text) !important;
}

.sc-mkp-header__action-label {
	font-size: 13px !important;
	font-weight: bold;
	line-height: 1 !important;
}

/* ==========================================================================
   Style 4 — Creative CTA for "أعلن"
   ========================================================================== */
.sc-mkp-header__action--post-ad.sc-btn-style-4 {
	position: relative !important;
	overflow: hidden !important;
	isolation: isolate;
	background: #1b2a18 !important;
	border: 1px solid #2e4b29 !important;
	color: #ffffff !important;
	height: var(--sc-mkp-btn-height, 38px) !important;
	min-height: var(--sc-mkp-btn-height, 38px) !important;
	width: 80px !important;
	min-width: 80px !important;
	padding: 0 22px !important;
	gap: 10px !important;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28) !important;
	transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease !important;
}

.sc-mkp-header__action--post-ad.sc-btn-style-4::before {
	content: '';
	position: absolute;
	inset: -2px;
	border-radius: inherit;
	background: linear-gradient(
		100deg,
		#cbed44 0%,
		#f6b73c 36%,
		#18a7ff 68%,
		#cbed44 100%
	);
	background-size: 240% 240%;
	background-position: 100% 50%;
	opacity: 0;
	z-index: 0;
	transition: opacity 0.28s ease;
}

.sc-mkp-header__action--post-ad.sc-btn-style-4 .sc-mkp-header__action-icon,
.sc-mkp-header__action--post-ad.sc-btn-style-4 .sc-mkp-header__action-label {
	position: relative;
	z-index: 1;
	color: inherit !important;
	stroke: currentColor !important;
}

.sc-mkp-header__action--post-ad.sc-btn-style-4 .sc-mkp-header__action-icon {
	width: 22px !important;
	height: 22px !important;
}

.sc-mkp-header__action--post-ad.sc-btn-style-4 .sc-mkp-header__action-label {
	font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif !important;
	font-size: 1.12rem !important;
	font-weight: 800 !important;
	transform: translate3d(var(--sc-style4-label-x, 0px), var(--sc-style4-label-y, 0px), 0);
	transition: transform 0.14s ease-out;
}

.sc-mkp-header__action--post-ad.sc-btn-style-4:is(:hover, :focus, :focus-visible, :active) {
	color: #ffffff !important;
	border-color: #cbed44 !important;
	transform: translateY(-1px) scale(1.04) !important;
	animation: sc-style4-glow 1.8s ease-in-out infinite;
}

.sc-mkp-header__action--post-ad.sc-btn-style-4:is(:hover, :focus, :focus-visible, :active)::before {
	opacity: 1;
	animation: sc-style4-gradient-flow 8s linear infinite;
}

@keyframes sc-style4-gradient-flow {
	0%   { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

@keyframes sc-style4-glow {
	0%, 100% { box-shadow: 0 0 0 rgba(203, 237, 68, 0.0), 0 8px 20px rgba(0, 0, 0, 0.24); }
	50%      { box-shadow: 0 0 18px rgba(203, 237, 68, 0.65), 0 10px 24px rgba(0, 0, 0, 0.3); }
}

@media (hover: hover) and (pointer: fine) {
	.sc-mkp-header__action--post-ad.sc-btn-style-4,
	.sc-mkp-header__action--post-ad.sc-btn-style-4 * {
		cursor: none !important;
	}
}

.sc-style4-cursor-dot {
	position: fixed;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(203, 237, 68, 1) 0%, rgba(203, 237, 68, 0.45) 65%, rgba(203, 237, 68, 0) 100%);
	box-shadow: 0 0 14px rgba(203, 237, 68, 0.75);
	pointer-events: none;
	opacity: 0;
	transform: translate3d(-9999px, -9999px, 0);
	transition: opacity 0.16s ease;
	z-index: 2000;
}

.sc-style4-cursor-dot--active {
	opacity: 1;
}

/* ==========================================================================
   Responsive: tablet
   ========================================================================== */

@media (max-width: 991px) {
	.sc-mkp-header {
		--sc-mkp-container-padding-x: 16px;
		--sc-mkp-pill-width: 100%;
		--sc-mkp-pill-cell-padding-x: 12px;
	}

	.sc-mkp-header__pill-cell--keyword {
		min-width: 120px;
	}

	.sc-mkp-header__pill-cell--category {
		min-width: 100px;
	}

	.sc-mkp-header__pill-cell--city {
		min-width: 85px;
	}

	.sc-mkp-header__search-btn {
		width: 80px;
		min-width: 80px;
	}

	.sc-mkp-header__action--post-ad {
		width: var(--sc-mkp-cta-width) !important;
		min-width: var(--sc-mkp-cta-width) !important;
		height: var(--sc-mkp-cta-height) !important;
		min-height: var(--sc-mkp-cta-height) !important;
		border-radius: 30px !important;
	}

	.sc-mkp-header__actions {
		gap: 18px;
	}
}

/* ==========================================================================
   Responsive: mobile – stack pill, preserve RTL
   ========================================================================== */

@media (max-width: 767px) {
	.sc-mkp-header__row--top .sc-mkp-header__container--top {
		flex-wrap: wrap;
		min-height: auto;
		padding-block: 10px;
		padding-inline: calc(var(--sc-mkp-container-padding-x) + 8px);
	}

	.sc-mkp-header__auth {
		gap: 8px;
	}

	.sc-mkp-header__btn {
		height: 36px;
		min-height: 36px;
		padding-inline: 14px;
		font-size: 13px;
	}

	.sc-mkp-header__row--green .sc-mkp-header__container--green {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
		padding-block: 12px;
	}

	.sc-mkp-header__search-wrap {
		order: 1;
		justify-content: stretch;
	}

	.sc-mkp-header__search-form {
		max-width: none;
	}

	.sc-mkp-header__pill {
		flex-wrap: wrap;
		border-radius: 12px;
		min-height: auto;
		overflow: visible;
	}

	.sc-mkp-header__pill-cell {
		padding: 10px 12px;
		border-block-end: 1px solid var(--sc-mkp-gray-200);
	}

	.sc-mkp-header__pill-cell--keyword {
		flex: 1 1 100%;
		min-width: 0;
		border-block-end: 1px solid var(--sc-mkp-gray-200);
	}

	.sc-mkp-header__pill-cell--category {
		flex: 1 1 auto;
		min-width: 0;
	}

	.sc-mkp-header__pill-cell--region {
		flex: 0 0 auto;
	}

	.sc-mkp-header__pill-cell--city {
		flex: 1 1 auto;
		min-width: 0;
	}

	.sc-mkp-header__pill-cell--submit {
		flex: 1 1 100%;
		padding: 0;
		border-block-end: none;
	}

	.sc-mkp-header__pill-sep {
		display: none;
	}

	.sc-mkp-header__search-btn {
		width: 100%;
		min-width: 0;
		border-radius: 0 0 12px 12px;
	}

	.sc-mkp-header__actions {
		order: 0;
		justify-content: center;
		gap: 24px;
	}

	.sc-mkp-header__action {
		min-width: 64px;
		min-height: 48px;
	}
}

@media (max-width: 480px) {
	.sc-mkp-header__logo-link,
	.sc-mkp-header__logo-text {
		font-size: 1.1rem;
	}

	.sc-mkp-header__brand .custom-logo-link img {
		max-height: 40px;
	}
}

/* ==========================================================================
   Sticky header
   ========================================================================== */

.sc-mkp-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
}

.sc-mkp-header--scrolled {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sc-mkp-header--scrolled .sc-mkp-header__row--top {
	background: rgba(255, 255, 255, 0.92);
}

.sc-mkp-header--scrolled .sc-mkp-header__row--green {
	background: rgba(48, 92, 42, 0.92);
}

/* ==========================================================================
   Hamburger menu + mobile search toggle
   ========================================================================== */

.sc-mkp-hamburger,
.sc-mkp-search-toggle {
	display: none;
}

.sc-mkp-hamburger {
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px;
	color: var(--sc-mkp-gray-800);
	border-radius: 8px;
	transition: background 0.2s ease;
}

.sc-mkp-hamburger:hover {
	background: rgba(0, 0, 0, 0.05);
}

.sc-mkp-search-toggle {
	background: rgba(0, 0, 0, 0.12);
	border: none;
	cursor: pointer;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	align-items: center;
	justify-content: center;
	color: var(--sc-mkp-green-dark);
	transition: background 0.2s ease;
	flex-shrink: 0;
}

.sc-mkp-search-toggle:hover {
	background: rgba(0, 0, 0, 0.18);
}

.sc-mkp-search-toggle--active {
	background: rgba(255, 255, 255, 0.25) !important;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.sc-mkp-search-toggle--active:hover {
	background: rgba(255, 255, 255, 0.35) !important;
}

@media (max-width: 767px) {
	.sc-mkp-hamburger {
		display: flex;
		align-items: center;
		justify-content: center;
		order: 0;
	}

	.sc-mkp-header__auth {
		display: none !important;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		flex-direction: column !important;
		padding: 16px 20px;
		gap: 10px !important;
		box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
		border-top: 1px solid rgba(0, 0, 0, 0.06);
		z-index: 999;
	}

	.sc-mkp-header__auth.sc-mkp-header__auth--open {
		display: flex !important;
	}

	.sc-mkp-header__auth .sc-mkp-header__btn {
		width: 100%;
		justify-content: center;
	}

	.sc-mkp-header__auth .sc-mkp-header__auth-sep {
		display: none;
	}

	.sc-mkp-header__container--top {
		position: relative;
	}

	.sc-mkp-search-toggle {
		display: flex;
	}

	.sc-mkp-header__search-wrap {
		display: none !important;
		transition: none !important;
		animation: none !important;
	}

	.sc-mkp-header__search-wrap.sc-mkp-header__search-wrap--open {
		display: flex !important;
		transition: none !important;
		animation: none !important;
	}

	.sc-mkp-header__container--green {
		flex-direction: row !important;
		flex-wrap: wrap;
		align-items: center !important;
		gap: 10px !important;
		padding-block: 8px !important;
	}

	.sc-mkp-header__search-wrap.sc-mkp-header__search-wrap--open {
		flex-basis: 100%;
		order: 10;
	}

	.sc-mkp-header__actions {
		order: 0 !important;
		flex: 1;
		justify-content: flex-start !important;
		gap: 12px !important;
	}

	.sc-mkp-header__action--account {
		display: none !important;
	}

	.sc-mkp-header__action--post-ad .sc-mkp-header__action-label {
		display: inline !important;
	}

	.sc-mkp-header__action--post-ad {
		width: var(--sc-mkp-cta-width) !important;
		min-width: var(--sc-mkp-cta-width) !important;
		height: var(--sc-mkp-cta-height) !important;
		min-height: var(--sc-mkp-cta-height) !important;
		padding: 0 16px !important;
		border-radius: 30px !important;
		justify-content: center !important;
	}
}
