.mwl-villes {
	display: block;
	background: #FFFFFF;
}

.mwl-villes-hero {
	--mwl-hero-image: url("../img/nedroma-panorama.svg");
	position: relative;
	overflow: hidden;
	margin-bottom: -38px;
	background:
		linear-gradient(90deg, rgba(6, 30, 40, .76) 0%, rgba(6, 30, 40, .44) 58%, rgba(6, 30, 40, .24) 100%),
		var(--mwl-hero-image) center 48% / cover no-repeat;
	color: #FFFFFF;
}

.mwl-villes-hero__inner {
	min-height: 292px;
	padding: 54px 0 82px;
}

.mwl-villes-hero__copy {
	max-width: 760px;
}

.mwl-villes-hero h1 {
	margin: 0 0 13px;
	color: #FFFFFF;
	font-size: 48px;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.08;
}

.mwl-villes-hero p {
	max-width: 720px;
	margin: 0;
	color: #FFFFFF;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.45;
	text-shadow: 0 1px 1px rgba(0, 0, 0, .18);
}

.mwl-villes-search-section {
	position: relative;
	z-index: 2;
	padding-bottom: 22px;
}

.mwl-villes-search {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(190px, 240px) auto;
	gap: 12px;
	align-items: center;
	padding: 15px;
	border: 1px solid rgba(226, 232, 240, .95);
	border-radius: 16px;
	background: #FFFFFF;
	box-shadow: 0 14px 34px rgba(15, 23, 42, .12);
}

.mwl-villes-search input,
.mwl-villes-search select {
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid var(--mwl-border);
	border-radius: 10px;
	background: #FFFFFF;
	color: var(--mwl-text);
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	box-shadow: none;
	outline: 0;
}

.mwl-villes-search input::placeholder {
	color: #64748B;
	opacity: 1;
}

.mwl-villes-search select {
	appearance: none;
	background-image:
		linear-gradient(45deg, transparent 50%, #0F172A 50%),
		linear-gradient(135deg, #0F172A 50%, transparent 50%);
	background-position:
		calc(100% - 18px) 22px,
		calc(100% - 13px) 22px;
	background-size: 5px 5px;
	background-repeat: no-repeat;
}

.mwl-villes-search .mwl-btn {
	min-height: 52px;
	border-radius: 10px;
}

.mwl-villes-section {
	padding: 22px 0;
	scroll-margin-top: 90px;
}

.mwl-wilayas-archive .mwl-villes-hero {
	margin-bottom: 0;
}

.mwl-wilayas-archive-section {
	padding-top: 30px;
}

.mwl-villes-section--popular {
	padding-top: 4px;
}

.mwl-villes-section--cta {
	padding-bottom: 42px;
}

.mwl-villes-section__head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 18px;
}

.mwl-villes-section__head h2 {
	margin: 0;
	color: var(--mwl-text);
	font-size: 27px;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.16;
}

.mwl-villes-section__head--accent h2::before {
	display: inline-block;
	width: 5px;
	height: 27px;
	margin-right: 12px;
	border-radius: 999px;
	background: var(--mwl-green);
	vertical-align: -5px;
	content: "";
}

.mwl-villes-section__head a {
	color: var(--mwl-green);
	font-size: 14px;
	font-weight: 800;
	white-space: nowrap;
}

.mwl-villes-carousel-wrap {
	position: relative;
}

.mwl-villes-carousel {
	display: grid;
	grid-auto-columns: minmax(235px, 275px);
	grid-auto-flow: column;
	gap: 18px;
	overflow-x: auto;
	padding: 2px 40px 16px 2px;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
}

.mwl-villes-carousel .mwl-villes-card:last-child {
	margin-right: 8px;
}

.mwl-villes-carousel .mwl-villes-card {
	scroll-snap-align: start;
}

.mwl-villes-carousel-next {
	position: absolute;
	top: 42%;
	right: -18px;
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: var(--mwl-green);
	box-shadow: 0 10px 24px rgba(15, 138, 76, .24);
	color: #FFFFFF;
	font-family: inherit;
	font-size: 30px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
}

.mwl-villes-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--mwl-border);
	border-radius: 16px;
	background: #FFFFFF;
	box-shadow: var(--mwl-shadow);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.mwl-villes-card:hover {
	transform: translateY(-2px);
	border-color: #CBD5E1;
	box-shadow: 0 12px 28px rgba(15, 23, 42, .1);
}

.mwl-villes-card__media,
.mwl-villes-card__media-wrap {
	position: relative;
	display: block;
}

.mwl-villes-card__media {
	aspect-ratio: 1.55 / 1;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 45%),
		url("../img/nedroma-panorama.svg") center / cover no-repeat;
}

.mwl-villes-card__media-wrap .mwl-villes-card__media {
	aspect-ratio: 1.45 / 1;
}

.mwl-villes-card__body {
	display: grid;
	gap: 12px;
	padding: 15px 16px 17px;
}

.mwl-villes-card strong {
	overflow: hidden;
	color: var(--mwl-text);
	font-size: 19px;
	font-weight: 800;
	line-height: 1.18;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mwl-villes-counts {
	display: grid;
	gap: 7px;
	color: var(--mwl-muted);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
}

.mwl-villes-counts span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mwl-villes-counts--single {
	display: block;
	color: var(--mwl-muted);
}

.mwl-villes-wilaya-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 15px;
}

.mwl-villes-wilaya-card {
	display: grid;
	gap: 7px;
	min-height: 150px;
	padding: 18px 16px;
	border: 1px solid var(--mwl-border);
	border-radius: 16px;
	background: #FFFFFF;
	box-shadow: 0 5px 18px rgba(15, 23, 42, .045);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.mwl-villes-wilaya-card:hover {
	transform: translateY(-2px);
	border-color: #CBD5E1;
	box-shadow: var(--mwl-shadow);
}

.mwl-villes-wilaya-card__icon {
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border-radius: 12px;
	background: #DCFCE7;
}

.mwl-villes-wilaya-card__media {
	display: block;
	width: 100%;
	height: 132px;
	border-radius: 12px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.mwl-villes-wilaya-card__icon svg {
	width: 24px;
	height: 24px;
}

.mwl-villes-wilaya-card strong {
	margin-top: 3px;
	color: var(--mwl-text);
	font-size: 17px;
	font-weight: 800;
	line-height: 1.15;
}

.mwl-villes-wilaya-card small {
	color: var(--mwl-muted);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
}

.mwl-villes-latest-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
}

.mwl-villes-card--latest .mwl-villes-card__body {
	gap: 8px;
	padding: 14px;
}

.mwl-villes-new {
	position: absolute;
	top: 10px;
	right: 10px;
	display: inline-flex;
	align-items: center;
	min-height: 25px;
	padding: 0 10px;
	border-radius: 999px;
	background: var(--mwl-green);
	color: #FFFFFF;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
}

.mwl-villes-location {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-width: 0;
	overflow: hidden;
	color: var(--mwl-muted);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mwl-villes-location svg {
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
}

.mwl-villes-empty {
	margin: 0;
	padding: 20px;
	border: 1px dashed #CBD5E1;
	border-radius: 16px;
	background: #F8FAFC;
	color: var(--mwl-muted);
	font-size: 15px;
	font-weight: 700;
}

.mwl-villes .mwl-cta-banner {
	background: linear-gradient(135deg, #ECFDF5 0%, #FFFFFF 100%);
}

.mwl-villes .mwl-cta-banner > div h2 {
	margin: 0 0 4px;
}

@media (max-width: 1120px) {
	.mwl-villes-wilaya-grid,
	.mwl-villes-latest-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 820px) {
	.mwl-villes-hero {
		margin-bottom: -24px;
	}

	.mwl-villes-hero__inner {
		min-height: 250px;
		padding: 42px 0 62px;
	}

	.mwl-villes-hero h1 {
		font-size: 38px;
	}

	.mwl-villes-hero p {
		font-size: 16px;
	}

	.mwl-villes-search {
		grid-template-columns: 1fr;
	}

	.mwl-villes-search .mwl-btn {
		width: 100%;
	}

	.mwl-villes-section__head {
		align-items: start;
		flex-direction: column;
		gap: 7px;
	}

	.mwl-villes-carousel-next {
		right: 8px;
	}
}

@media (max-width: 640px) {
	.mwl-villes-section {
		padding: 18px 0;
	}

	.mwl-villes-section__head h2 {
		font-size: 23px;
	}

	.mwl-villes-carousel {
		grid-auto-columns: minmax(225px, 78vw);
	}

	.mwl-villes-wilaya-grid,
	.mwl-villes-latest-grid {
		grid-template-columns: 1fr;
	}
}
