/* Otonome Store Locator - front */

.osl-search,
.osl-search * {
	box-sizing: border-box;
}

/* ---- Encadré de recherche ------------------------------------------- */

.osl-search-box {
	background-color: #ef7fa7;
	border-radius: 24px;
	padding: 28px 24px;
}

.osl-search-title {
	margin: 0 0 18px;
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.35;
}

.osl-search-form {
	display: flex;
	gap: 10px;
	align-items: stretch;
}

.osl-field-query {
	flex: 1 1 auto;
	min-width: 0;
}

.osl-field-radius {
	flex: 0 0 auto;
}

.osl-input,
.osl-radius {
	width: 100%;
	height: 48px;
	border: none;
	border-radius: 999px;
	padding: 0 20px;
	font-size: 15px;
	font-style: italic;
	color: #6b6b6b;
	background-color: #fff;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
}

.osl-radius {
	width: auto;
	min-width: 90px;
	padding-right: 32px;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b6b6b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	cursor: pointer;
}

.osl-input:focus,
.osl-radius:focus {
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55);
}

.osl-submit {
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	border: none;
	border-radius: 50%;
	background-color: #fff;
	color: #ef7fa7;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.15s ease;
}

.osl-submit:hover {
	transform: scale(1.06);
}

/* ---- Statut / compteur ---------------------------------------------- */

.osl-status {
	margin: 14px 4px 0;
	font-size: 14px;
	color: #6b6b6b;
	min-height: 1.2em;
}

.osl-status-error {
	color: #c0392b;
}

/* ---- Cartes de résultats -------------------------------------------- */

.osl-results {
	margin-top: 10px;
	scrollbar-width: thin;
}

.osl-card {
	display: flex;
	align-items: center;
	gap: 16px;
	border: 1px solid #ef7fa7;
	border-radius: 18px;
	background: #fff;
	padding: 18px 20px;
	margin-top: 16px;
}

.osl-card-body {
	flex: 1 1 auto;
	min-width: 0;
}

.osl-card-name {
	margin: 0 0 6px;
	font-size: 19px;
	font-weight: 800;
	text-transform: uppercase;
	color: #b5124f;
	line-height: 1.2;
}

.osl-card-distance {
	display: inline-block;
	margin-left: 10px;
	font-size: 12px;
	font-weight: 600;
	text-transform: none;
	color: #9aa0b5;
	white-space: nowrap;
}

.osl-card-address {
	margin: 0;
	font-size: 14px;
	font-style: italic;
	color: #e28baa;
	line-height: 1.45;
}

.osl-card-btn {
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	border: none;
	border-radius: 50%;
	background-color: #ef7fa7;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.15s ease;
}

.osl-card-btn:hover {
	transform: scale(1.08);
}

/* ---- Lien « Charger plus » ------------------------------------------ */

.osl-load-more {
	display: block;
	margin: 18px auto 4px;
	padding: 4px 8px;
	background: none;
	border: none;
	color: #b5124f;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.15s ease;
}

.osl-load-more:hover {
	color: #ef7fa7;
}

/* ---- Carte Leaflet --------------------------------------------------- */

.osl-map {
	width: 100%;
	min-height: 320px;
	border-radius: 16px;
	overflow: hidden;
	z-index: 0;
}

/* Clusters : pastille marine + halo translucide, comme la maquette. */

.osl-cluster {
	background: transparent !important;
	border: none !important;
}

.osl-cluster-halo {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: rgba(90, 96, 120, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
}

.osl-cluster-inner {
	width: 78%;
	height: 78%;
	border-radius: 50%;
	background-color: #2b3049;
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: inherit;
}

.osl-marker {
	background: transparent;
	border: none;
}

.osl-marker-pin {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background-color: #2b3049;
	border: 3px solid #fff;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.osl-map .leaflet-popup-content {
	font-size: 14px;
	line-height: 1.5;
}

/* ---- Responsive ------------------------------------------------------ */

@media (max-width: 480px) {
	.osl-search-form {
		flex-wrap: wrap;
	}

	.osl-field-query {
		flex: 1 1 100%;
	}

	.osl-field-radius {
		flex: 1 1 auto;
	}

	.osl-radius {
		width: 100%;
	}
}
