/* =============================================
   HivePress Location Field — Estilos
   ============================================= */

/* ── Bloque de ubicación en la ficha del anuncio ── */
.hplf-location-block {
	margin: 1.2em 0;
	padding: 1em 1.25em;
	background: #f8f9fa;
	border-left: 4px solid #2b7de9;
	border-radius: 0 6px 6px 0;
	font-size: 0.95em;
}

.hplf-location-title {
	margin: 0 0 0.6em;
	font-size: 1em;
	font-weight: 700;
	color: #1a1a2e;
	display: flex;
	align-items: center;
	gap: 0.4em;
}

.hplf-location-details {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em 1.5em;
}

.hplf-location-details li {
	color: #444;
}

.hplf-location-details strong {
	color: #1a1a2e;
}

/* ── Badge en tarjetas del listado ── */
.hplf-card-location {
	margin: 0.4em 0 0;
	font-size: 0.82em;
	color: #555;
	display: flex;
	align-items: center;
	gap: 0.3em;
}

.hplf-icon {
	font-size: 1em;
	line-height: 1;
}

/* ── Campos en el formulario de HivePress ── */
.hp-listing-submit-form .hplf-field-group,
.hp-listing-update-form .hplf-field-group {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1em;
}

/* Select de estado */
select#service_state,
select[name="service_state"] {
	width: 100%;
	padding: 0.5em 0.8em;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	font-size: 0.95em;
	cursor: pointer;
}

select#service_state:focus,
select[name="service_state"]:focus {
	border-color: #2b7de9;
	outline: none;
	box-shadow: 0 0 0 3px rgba(43,125,233,0.15);
}

/* Input código postal */
input#service_zip,
input[name="service_zip"] {
	letter-spacing: 0.05em;
}

/* ── Validación visual del C.P. ── */
input[name="service_zip"].hplf-invalid {
	border-color: #e53e3e !important;
	box-shadow: 0 0 0 3px rgba(229,62,62,0.15) !important;
}

.hplf-zip-error {
	color: #e53e3e;
	font-size: 0.8em;
	margin-top: 0.3em;
	display: none;
}

/* ── Filtros de búsqueda ── */
.hplf-search-filters {
	display: flex;
	gap: 1em;
	flex-wrap: wrap;
	align-items: flex-end;
	margin-bottom: 1em;
}

.hplf-search-filters label {
	display: flex;
	flex-direction: column;
	gap: 0.3em;
	font-size: 0.9em;
	font-weight: 600;
}

/* ── Dark mode básico ── */
@media (prefers-color-scheme: dark) {
	.hplf-location-block {
		background: #1e2030;
		border-left-color: #4a9eff;
	}
	.hplf-location-title {
		color: #e8eaf6;
	}
	.hplf-location-details li {
		color: #b0bec5;
	}
	.hplf-location-details strong {
		color: #e8eaf6;
	}
	.hplf-card-location {
		color: #90a4ae;
	}
}
