/**
 * Cerca — ubicación (picker + hybrid geo), alineado al home.
 */

body.zp-cerca-list-page .zp-cerca-filters {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0 0 14px;
}

body.zp-cerca-list-page .zp-cerca-loc {
	position: relative;
}

body.zp-cerca-list-page .zp-cerca-loc__label {
	display: block;
	margin: 0 0 6px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #64748b;
}

body.zp-cerca-list-page .zp-cerca-loc__card {
	padding: 12px 14px;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	background: #fff;
}

body.zp-cerca-list-page .zp-app-location-field {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: left;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

body.zp-cerca-list-page .zp-app-location-field[hidden] {
	display: none !important;
}

body.zp-cerca-list-page .zp-app-location-field__main {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	flex: 1 1 auto;
}

body.zp-cerca-list-page .zp-app-location-field__pin {
	color: #2563eb;
	font-size: 18px;
	flex-shrink: 0;
}

body.zp-cerca-list-page .zp-app-location-field__value {
	font-size: 16px;
	font-weight: 500;
	color: #0f172a;
	line-height: 1.35;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

body.zp-cerca-list-page .zp-app-location-field--placeholder .zp-app-location-field__value {
	color: #64748b;
	font-weight: 400;
}

body.zp-cerca-list-page .zp-app-location-field__action {
	flex-shrink: 0;
	font-size: 0.894rem;
	font-weight: 700;
	color: #2563eb;
	text-decoration: underline;
	text-underline-offset: 2px;
}

body.zp-cerca-list-page .zp-hybrid-geo-fallback {
	margin-top: 0;
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

body.zp-cerca-list-page .zp-hybrid-geo-fallback[hidden] {
	display: none !important;
}

body.zp-cerca-list-page .zp-hybrid-geo-fallback__field {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
}

body.zp-cerca-list-page .zp-hybrid-geo-fallback__icon {
	color: #2563eb;
	font-size: 18px;
	flex-shrink: 0;
}

body.zp-cerca-list-page .zp-hybrid-geo-fallback__input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	font-size: 16px;
	font-weight: 500;
	color: #0f172a;
	outline: none;
}

body.zp-cerca-list-page .zp-hybrid-geo-fallback__input::placeholder {
	color: #64748b;
	font-weight: 400;
}

body.zp-cerca-list-page .zp-hybrid-geo-fallback__list {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
	max-height: 220px;
	overflow-y: auto;
	border-radius: 12px;
	background: #fff;
	border: 1.5px solid #dbeafe;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

body.zp-cerca-list-page .zp-hybrid-geo-fallback__list[hidden] {
	display: none !important;
}

body.zp-cerca-list-page .zp-hybrid-geo-fallback__item,
body.zp-cerca-list-page .zp-hybrid-geo-fallback__loading {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 11px 12px;
	font-size: 14px;
	line-height: 1.4;
	color: #0f172a;
	border-bottom: 1px solid #f1f5f9;
	cursor: pointer;
}

body.zp-cerca-list-page .zp-hybrid-geo-fallback__item:last-child {
	border-bottom: 0;
}

body.zp-cerca-list-page .zp-hybrid-geo-fallback__item:hover,
body.zp-cerca-list-page .zp-hybrid-geo-fallback__item[aria-selected='true'] {
	background: #eff6ff;
}

body.zp-cerca-list-page .zp-hybrid-geo-fallback__gps {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: 10px;
	padding: 12px 14px;
	background: #eff6ff;
	color: #1d4ed8;
	border: 1.5px solid #bfdbfe;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

body.zp-cerca-list-page .zp-app-loc-change-hidden {
	display: none !important;
}

/* Modal picker */
body.zp-cerca-list-page .zp-loc-picker {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

body.zp-cerca-list-page .zp-loc-picker[hidden] {
	display: none !important;
}

body.zp-cerca-list-page .zp-loc-picker__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
}

body.zp-cerca-list-page .zp-loc-picker__sheet {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 520px;
	background: #fff;
	border-radius: 20px 20px 0 0;
	padding: 0 0 max(24px, env(safe-area-inset-bottom, 0px));
	box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.22);
}

body.zp-cerca-list-page .zp-loc-picker__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px 14px;
	border-bottom: 1px solid #e2e8f0;
}

body.zp-cerca-list-page .zp-loc-picker__title {
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
}

body.zp-cerca-list-page .zp-loc-picker__title .fa {
	color: #2563eb;
	margin-right: 6px;
}

body.zp-cerca-list-page .zp-loc-picker__close {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 18px;
	color: #64748b;
	padding: 4px 8px;
	border-radius: 8px;
	line-height: 1;
	min-width: 44px;
	min-height: 44px;
}

body.zp-cerca-list-page .zp-loc-picker__body {
	padding: 16px 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

body.zp-cerca-list-page .zp-loc-picker__input-wrap {
	position: relative;
}

body.zp-cerca-list-page .zp-loc-picker__input-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: #94a3b8;
	font-size: 14px;
	pointer-events: none;
}

body.zp-cerca-list-page .zp-loc-picker__input {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px 12px 38px;
	border: 1.5px solid #cbd5e1;
	border-radius: 12px;
	font-size: 16px;
	color: #0f172a;
	background: #f8fafc;
	outline: none;
	min-height: 48px;
}

body.zp-cerca-list-page .zp-loc-picker__suggestions {
	list-style: none;
	margin: 4px 0 0;
	padding: 0;
	background: #fff;
	border: 1.5px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

body.zp-cerca-list-page .zp-loc-picker__suggestions[hidden] {
	display: none !important;
}

body.zp-cerca-list-page .zp-loc-picker__sug-item {
	padding: 11px 16px;
	font-size: 14px;
	color: #0f172a;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	border-bottom: 1px solid #f1f5f9;
	min-height: 44px;
}

body.zp-cerca-list-page .zp-loc-picker__sug-item:last-child {
	border-bottom: none;
}

body.zp-cerca-list-page .zp-loc-picker__divider {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #94a3b8;
	font-size: 13px;
}

body.zp-cerca-list-page .zp-loc-picker__divider::before,
body.zp-cerca-list-page .zp-loc-picker__divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: #e2e8f0;
}

body.zp-cerca-list-page .zp-loc-picker__gps {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 13px 16px;
	min-height: 48px;
	background: #eff6ff;
	color: #1d4ed8;
	border: 1.5px solid #bfdbfe;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}
