/* EM Búsqueda por Provincias – tipografía ampliada v1.2.3 */

.embp-search-wrapper {
	--embp-blue: #2563eb;
	--embp-blue-dark: #1d4ed8;
	--embp-blue-soft: #eff6ff;
	--embp-text: #1e293b;
	--embp-muted: #64748b;
	--embp-border: #e2e8f0;
	--embp-radius: 16px;
	--embp-shadow: 0 4px 24px rgba(37, 99, 235, 0.10);
	--embp-control-h: 56px;

	max-width: 960px;
	margin: 0 auto 2.75rem;
	font-family: inherit;
	color: var(--embp-text);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	font-size: 1.05rem;
}

/* Títulos grandes y homogéneos */
.embp-title,
.embp-results-title {
	font-family: inherit;
	font-weight: 700;
	color: #0f172a;
	letter-spacing: -0.025em;
	line-height: 1.25;
}

.embp-title {
	font-size: clamp(1.75rem, 4.5vw, 2.25rem);
	margin: 0 0 1.15rem;
}

.embp-results-title {
	font-size: clamp(1.75rem, 4.5vw, 2.25rem);
	margin: 0 0 1.25rem;
}

/* ========== Formulario ========== */
.embp-search-form {
	background: #fff;
	border: 1.5px solid #dbe3f0;
	border-radius: var(--embp-radius);
	padding: 0.65rem;
	box-shadow: var(--embp-shadow);
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.embp-search-form:focus-within {
	border-color: var(--embp-blue);
	box-shadow: 0 6px 28px rgba(37, 99, 235, 0.14);
}

.embp-form-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 0.5rem;
}

.embp-field {
	display: flex;
	align-items: center;
	min-width: 0;
}

.embp-field-province {
	min-width: 0;
}

.embp-input-with-icon {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	height: var(--embp-control-h);
}

.embp-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%) scale(1.1);
	color: #94a3b8;
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	z-index: 1;
}

.embp-select {
	width: 100%;
	height: var(--embp-control-h);
	appearance: none;
	-webkit-appearance: none;
	/* padding-left generoso para no solapar el pin */
	padding: 0 2.75rem 0 1.1rem;
	border: none;
	border-radius: 12px;
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 12 8'%3E%3Cpath fill='%2394a3b8' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E") no-repeat right 16px center;
	font-size: 1.125rem;
	font-weight: 500;
	font-family: inherit;
	color: var(--embp-text);
	cursor: pointer;
	outline: none;
	line-height: 1.2;
}

.embp-select:focus {
	background-color: #f8fafc;
}

.embp-select:invalid {
	color: #94a3b8;
	font-weight: 400;
}

.embp-select option {
	font-size: 1.125rem;
	font-family: inherit;
	padding: 0.55rem;
	line-height: 1.5;
}

.embp-field-dates {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	height: var(--embp-control-h);
	background: #f8fafc;
	border-radius: 12px;
	padding: 0 0.4rem;
	border: 1px solid transparent;
	flex-shrink: 0;
}

.embp-date {
	box-sizing: border-box;
	width: 9.5rem;
	height: calc(var(--embp-control-h) - 10px);
	padding: 0 0.45rem;
	border: 1px solid transparent;
	border-radius: 10px;
	font-size: 1.05rem;
	font-family: inherit;
	color: var(--embp-text);
	background: transparent;
	line-height: 1;
}

.embp-date:focus {
	outline: none;
	background: #fff;
	border-color: var(--embp-blue);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.embp-date-separator {
	color: #cbd5e1;
	font-weight: 500;
	flex-shrink: 0;
	user-select: none;
	font-size: 1.05rem;
	line-height: 1;
}

.embp-field-submit {
	flex-shrink: 0;
}

.embp-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	box-sizing: border-box;
	height: var(--embp-control-h);
	padding: 0 1.5rem;
	background: var(--embp-blue);
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
	font-family: inherit;
	letter-spacing: 0.04em;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
	white-space: nowrap;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.22);
	line-height: 1;
}

.embp-submit:hover {
	background: var(--embp-blue-dark);
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.embp-submit:active {
	transform: scale(0.98);
}

.embp-submit:disabled {
	opacity: 0.75;
	cursor: wait;
}

.embp-submit-icon {
	display: none;
}

/* Chips grandes */
.embp-date-presets {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin-top: 0.85rem;
	padding: 0 0.15rem 0.15rem;
}

.embp-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0.55rem 1.15rem;
	font-size: 1rem;
	font-weight: 600;
	font-family: inherit;
	color: var(--embp-blue);
	background: var(--embp-blue-soft);
	border: 1px solid #bfdbfe;
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	user-select: none;
	line-height: 1.2;
}

.embp-chip:hover,
.embp-chip:focus {
	background: #dbeafe;
	border-color: #93c5fd;
	outline: none;
}

.embp-chip.is-active {
	background: var(--embp-blue);
	color: #fff;
	border-color: var(--embp-blue);
}

.embp-geo-hint {
	margin: 0.55rem 0 0;
	padding: 0 0.25rem;
	font-size: 0.95rem;
	color: var(--embp-muted);
	line-height: 1.4;
	font-family: inherit;
}

/* ========== Resultados ========== */
.embp-results {
	margin-top: 2.25rem;
	scroll-margin-top: 1.25rem;
}

.embp-fallback-message {
	background: var(--embp-blue-soft);
	border-left: 4px solid var(--embp-blue);
	padding: 1.05rem 1.25rem;
	margin-bottom: 1.35rem;
	border-radius: 0 10px 10px 0;
	color: #1e40af;
	font-size: 1.05rem;
	line-height: 1.5;
	font-family: inherit;
}

.embp-results-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 0.5rem;
	font-size: 1.05rem;
	color: var(--embp-muted);
	font-family: inherit;
}

.embp-results-count {
	font-weight: 600;
	color: var(--embp-text);
	font-size: 1.1rem;
}

.embp-message {
	padding: 1.05rem 1.25rem;
	border-radius: 10px;
	margin: 1rem 0;
	font-size: 1.05rem;
	font-family: inherit;
}

.embp-message.embp-empty {
	background: #f8fafc;
	color: var(--embp-muted);
	border: 1px solid var(--embp-border);
}

.embp-message.embp-error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

/* Opciones sin resultados — tarjetas grandes y claras */
.embp-choices {
	margin: 1.5rem 0 2rem;
}

.embp-choices-intro {
	font-weight: 700;
	font-size: clamp(1.25rem, 3vw, 1.5rem);
	margin: 0 0 1.1rem;
	color: #0f172a;
	font-family: inherit;
}

.embp-choices-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.15rem;
}

.embp-choice-card {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	padding: 1.75rem 1.6rem;
	min-height: 160px;
	background: #fff;
	border: 2px solid #cbd5e1;
	border-radius: 16px;
	text-decoration: none;
	color: inherit;
	font-family: inherit;
	box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.embp-choice-card:hover,
.embp-choice-card:focus {
	border-color: var(--embp-blue);
	box-shadow: 0 8px 28px rgba(37, 99, 235, 0.14);
	transform: translateY(-3px);
	outline: none;
	text-decoration: none;
	color: inherit;
}

.embp-choice-neighbors {
	border-color: #7dd3fc;
	background: linear-gradient(180deg, #f0f9ff 0%, #fff 55%);
}
.embp-choice-neighbors:hover,
.embp-choice-neighbors:focus { border-color: #0ea5e9; }

.embp-choice-survey {
	border-color: #c4b5fd;
	background: linear-gradient(180deg, #f5f3ff 0%, #fff 55%);
}
.embp-choice-survey:hover,
.embp-choice-survey:focus { border-color: #8b5cf6; }

.embp-choice-icon {
	font-size: 2.25rem;
	line-height: 1;
	margin-bottom: 0.15rem;
}
.embp-choice-title {
	font-weight: 700;
	font-size: clamp(1.2rem, 2.5vw, 1.4rem);
	color: #0f172a;
	line-height: 1.3;
}
.embp-choice-desc {
	font-size: 1.05rem;
	color: #475569;
	line-height: 1.5;
}

@media (max-width: 560px) {
	.embp-choice-card {
		min-height: 140px;
		padding: 1.45rem 1.3rem;
	}
	.embp-choice-icon { font-size: 2rem; }
	.embp-choice-title { font-size: 1.2rem; }
	.embp-choice-desc { font-size: 1rem; }
}

.embp-survey-highlight {
	animation: embp-pulse 0.9s ease 2;
	border-radius: 12px;
}
@keyframes embp-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
	50% { box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.25); }
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.embp-select:focus-visible,
.embp-date:focus-visible,
.embp-submit:focus-visible,
.embp-chip:focus-visible {
	outline: 3px solid rgba(37, 99, 235, 0.4);
	outline-offset: 2px;
}

/* ========== Tablet ========== */
@media (max-width: 900px) {
	.embp-form-row {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"province province"
			"dates submit";
	}
	.embp-field-province { grid-area: province; }
	.embp-field-dates { grid-area: dates; }
	.embp-field-submit { grid-area: submit; }

	.embp-field-dates {
		width: 100%;
		justify-content: space-between;
	}
	.embp-date {
		flex: 1 1 0;
		width: auto;
		min-width: 0;
	}
}

/* ========== Móvil ========== */
@media (max-width: 560px) {
	.embp-search-wrapper {
		margin-bottom: 2rem;
		font-size: 1rem;
	}
	.embp-title,
	.embp-results-title {
		font-size: clamp(1.5rem, 6vw, 1.85rem);
	}
	.embp-search-form {
		padding: 0.65rem;
		border-radius: 14px;
	}
	.embp-form-row {
		grid-template-columns: 1fr;
		grid-template-areas:
			"province"
			"dates"
			"submit";
		gap: 0.55rem;
	}
	.embp-field-province,
	.embp-field-dates,
	.embp-field-submit {
		width: 100%;
	}
	.embp-input-with-icon,
	.embp-select,
	.embp-field-dates,
	.embp-submit {
		height: 54px;
		min-height: 54px;
	}
	.embp-select {
		font-size: 16px;
	}
	.embp-select option {
		font-size: 16px;
	}
	.embp-date {
		height: 46px;
		font-size: 16px;
		flex: 1 1 0;
		width: auto;
	}
	.embp-submit {
		width: 100%;
		font-size: 1.05rem;
		border-radius: 12px;
	}
	.embp-submit-icon {
		display: inline-flex;
	}
	.embp-date-presets {
		gap: 0.5rem;
		margin-top: 0.7rem;
	}
	.embp-chip {
		min-height: 44px;
		padding: 0.55rem 1.05rem;
		font-size: 0.95rem;
	}
	.embp-results-count {
		font-size: 1rem;
	}
	.embp-choices-intro {
		font-size: 1.1rem;
	}
	.embp-choices-grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.embp-search-form,
	.embp-submit,
	.embp-chip,
	.embp-select,
	.embp-date,
	.embp-choice-card {
		transition: none;
	}
	.embp-survey-highlight {
		animation: none;
	}
}


.embp-chip-spain {
	background: #f0fdf4;
	color: #15803d;
	border-color: #86efac;
}
.embp-chip-spain:hover,
.embp-chip-spain:focus {
	background: #dcfce7;
	border-color: #4ade80;
}
.embp-chip-spain.is-active {
	background: #16a34a;
	color: #fff;
	border-color: #16a34a;
}


/* Formulario simplificado (solo provincia + buscar) */
.embp-form-row-simple {
	display: flex !important;
	grid-template-columns: none !important;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.5rem;
}
.embp-form-row-simple .embp-field-province {
	flex: 1 1 auto;
	min-width: 0;
}
.embp-form-row-simple .embp-field-submit {
	flex: 0 0 auto;
}
@media (max-width: 560px) {
	.embp-form-row-simple {
		flex-direction: column;
		align-items: stretch;
	}
	.embp-form-row-simple .embp-field-submit,
	.embp-form-row-simple .embp-submit {
		width: 100%;
	}
}




.embp-icon { display: none !important; }
.embp-select { padding-left: 1.1rem !important; }


/* ===== Tipografía alineada al menú lateral (mín. legible del tema) ===== */
.embp-search-wrapper {
	font-size: 1.25rem !important; /* ~20px: igual o mayor que el menú */
	line-height: 1.45 !important;
}
.embp-title,
.embp-results-title {
	font-size: clamp(1.75rem, 4.5vw, 2.15rem) !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
}
.embp-select {
	font-size: 1.25rem !important; /* mismo tamaño que el menú */
	font-weight: 500 !important;
}
.embp-select option {
	font-size: 1.2rem !important;
}
.embp-submit {
	font-size: 1.15rem !important;
	font-weight: 700 !important;
}
.embp-chip {
	font-size: 1.15rem !important;
	min-height: 48px !important;
	padding: 0.65rem 1.25rem !important;
	font-weight: 600 !important;
}
.embp-geo-hint {
	font-size: 1.15rem !important;
}
.embp-fallback-message {
	font-size: 1.25rem !important;
	padding: 1.2rem 1.4rem !important;
	line-height: 1.45 !important;
}
.embp-results-count,
.embp-results-meta {
	font-size: 1.2rem !important;
}
.embp-choices-intro {
	font-size: clamp(1.35rem, 3.5vw, 1.6rem) !important;
	font-weight: 700 !important;
}
.embp-choice-icon {
	font-size: 2.5rem !important;
}
.embp-choice-title {
	font-size: clamp(1.3rem, 3vw, 1.5rem) !important;
	font-weight: 700 !important;
}
.embp-choice-desc {
	font-size: 1.2rem !important;
	line-height: 1.45 !important;
}
.embp-choice-card {
	min-height: 180px !important;
	padding: 2rem 1.75rem !important;
}
.embp-message {
	font-size: 1.25rem !important;
}

@media (max-width: 560px) {
	.embp-search-wrapper {
		font-size: 1.15rem !important;
	}
	.embp-title,
	.embp-results-title {
		font-size: clamp(1.5rem, 6.5vw, 1.9rem) !important;
	}
	.embp-select {
		font-size: 16px !important; /* evita zoom iOS; 16px ≈ menú móvil */
	}
	.embp-fallback-message {
		font-size: 1.15rem !important;
	}
	.embp-choice-title {
		font-size: 1.25rem !important;
	}
	.embp-choice-desc {
		font-size: 1.1rem !important;
	}
}
