/* ============================================================
   Elementor Finder Map – Frontend Styles
   ============================================================ */

.efm-widget {
	width: 100%;
}

/* ---- Map + overlay wrapper -------------------------------- */
.efm-map-wrap {
	position: relative;
	width: 100%;
	border-radius: 4px;
	overflow: hidden;
}

.efm-map {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

/* ---- Info window ------------------------------------------ */
.efm-infowindow {
	max-width: 260px;
	font-family: inherit;
}

.efm-iw-title {
	margin: 0 0 4px;
	font-size: 1rem;
	font-weight: 600;
}

.efm-iw-subtitle {
	margin: 0 0 4px;
	font-size: 0.875rem;
	color: #555;
}

.efm-iw-address {
	margin: 0 0 8px;
	font-size: 0.8125rem;
	color: #777;
}

.efm-iw-link {
	display: inline-block;
	font-size: 0.8125rem;
	color: #0073aa;
	text-decoration: none;
}

.efm-iw-link:hover {
	text-decoration: underline;
}

/* ---- Finder overlay (sits on top of the map) -------------- */
.efm-finder-overlay {
	position: absolute;
	top: 1.25rem;
	right: 1.25rem;
	z-index: 10;
	background: #fff;
	border-radius: 4px;
	padding: 1.25rem 1.5rem;
	box-shadow: 0 2px 12px rgba(0,0,0,.18);
	max-width: 340px;
	width: calc(100% - 2.5rem);
}

.efm-finder-title {
	margin: 0 0 0.4rem;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.3;
}

.efm-finder-description {
	margin: 0 0 0.9rem;
	font-size: 0.875rem;
	color: #555;
	line-height: 1.5;
}

.efm-finder-form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	align-items: flex-end;
}

.efm-finder-field {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	flex: 1 1 120px;
}

.efm-finder-field label {
	font-size: 0.8125rem;
	font-weight: 500;
}

.efm-finder-field select,
.efm-finder-field input[type="text"] {
	padding: 0.4rem 0.5rem;
	border: 1px solid #ccc;
	border-radius: 3px;
	font-size: 0.875rem;
	width: 100%;
	box-sizing: border-box;
}

.efm-submit {
	padding: 0.45rem 1rem;
	background: #0073aa;
	color: #fff;
	border: none;
	border-radius: 3px;
	font-size: 0.875rem;
	cursor: pointer;
	transition: background 0.15s ease;
	white-space: nowrap;
	flex-shrink: 0;
}

.efm-submit:hover {
	background: #005f8d;
}

/* ---- Results list ----------------------------------------- */
.efm-results {
	margin-top: 1.25rem;
}

.efm-loading,
.efm-error {
	font-size: 0.9rem;
	color: #555;
}

.efm-error {
	color: #c0392b;
}

.efm-result-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.efm-result-item {
	padding: 0.9rem 1rem;
	border: 1px solid #e2e2e2;
	border-radius: 4px;
	background: #fafafa;
}

.efm-result-main {
	display: flex;
	align-items: baseline;
	gap: 0.4rem;
	flex-wrap: wrap;
	margin-bottom: 0.25rem;
}

.efm-result-title {
	font-size: 1rem;
}

.efm-result-subtitle {
	font-size: 0.875rem;
	color: #555;
}

.efm-result-address {
	font-size: 0.8125rem;
	color: #777;
	margin-bottom: 0.35rem;
}

.efm-result-distance {
	display: inline-block;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #0073aa;
	margin-bottom: 0.4rem;
}

.efm-result-link {
	display: inline-block;
	font-size: 0.8125rem;
	color: #0073aa;
	text-decoration: none;
	margin-left: 0.5rem;
}

.efm-result-link:hover {
	text-decoration: underline;
}

.efm-result-html {
	margin-top: 0.5rem;
	font-size: 0.875rem;
}
