/* ===== Malibu — buscador ===== */

/* Botón de lupa (encabezado) */
.mlb-bus-btn {
	display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0;
	border: 1px solid rgba(236, 72, 153, .28); border-radius: 50%; background: #fff; color: #141414; cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}
.mlb-bus-btn svg { width: 19px; height: 19px; }
.mlb-bus-btn:hover { background: #ec4899; border-color: #ec4899; color: #fff; }

/* Caja [mlb_buscador] */
.mlb-bus-box {
	display: flex; align-items: center; gap: .7rem; width: 100%; max-width: 620px; min-width: 0; justify-self: stretch; margin: 0 auto; min-height: 56px;
	padding: 0 1.2rem; border: 1px solid rgba(236, 72, 153, .35); border-radius: 999px; background: #fff; cursor: text;
	color: #6b6b6b; font: 400 .95rem Poppins, system-ui, sans-serif; text-align: left;
	box-shadow: 0 14px 34px -24px rgba(157, 23, 77, .5); transition: border-color .2s, box-shadow .2s;
}
.mlb-bus-box svg { flex: none; width: 20px; height: 20px; color: #ec4899; }
.mlb-bus-box span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mlb-bus-box:hover, .mlb-bus-box:focus-visible { border-color: #ec4899; box-shadow: 0 0 0 4px rgba(236, 72, 153, .12); outline: none; }

/* Panel */
.mlb-bus { position: fixed; inset: 0; z-index: 100005; /* por encima de la barra de avisos, el encabezado fijo y la barra de administración */ font-family: Poppins, system-ui, sans-serif; color: #141414; }
.mlb-bus[hidden] { display: none; }
.mlb-bus__shade { position: absolute; inset: 0; background: rgba(20, 20, 20, .45); opacity: 0; transition: opacity .2s; }
.mlb-bus__panel {
	position: absolute; left: 50%; top: 0; width: min(760px, 100%); max-height: 100%;
	display: flex; flex-direction: column; background: #fdf6f9;
	border-radius: 0 0 22px 22px; box-shadow: 0 30px 60px -30px rgba(20, 20, 20, .5);
	transform: translate(-50%, -16px); opacity: 0; transition: transform .2s ease, opacity .2s ease;
	padding-top: env(safe-area-inset-top, 0px);
}
.mlb-bus.is-open .mlb-bus__shade { opacity: 1; }
.mlb-bus.is-open .mlb-bus__panel { transform: translate(-50%, 0); opacity: 1; }
html.mlb-bus-open { overflow: hidden; }

.mlb-bus__bar { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; background: #fff; border-bottom: 1px solid rgba(236, 72, 153, .25); }
.mlb-bus__bar > svg { flex: none; width: 22px; height: 22px; color: #ec4899; }
.mlb-bus__input {
	flex: 1; min-width: 0; min-height: 46px; border: 0; background: transparent;
	font: 400 1.05rem Poppins, system-ui, sans-serif; color: #141414;
}
.mlb-bus__input:focus { outline: none; }
.mlb-bus__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.mlb-bus__x { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fce7f0; color: #141414; font-size: 1.4rem; line-height: 1; cursor: pointer; }

.mlb-bus__body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 1rem 1rem 1.4rem; display: flex; flex-direction: column; gap: .8rem; overscroll-behavior: contain; }
/* Ninguna parte se aplasta cuando hay muchos resultados: el panel scrollea entero */
.mlb-bus__body > * { flex: 0 0 auto; min-width: 0; }
.mlb-bus__label { margin: 0; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #9d174d; }
.mlb-bus__status { margin: .5rem 0; color: #6b6b6b; text-align: center; }

.mlb-bus__chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.mlb-bus__chips.is-filter { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.mlb-bus__chips.is-filter::-webkit-scrollbar { display: none; }
.mlb-bus__chip {
	flex: none; min-height: 38px; padding: .35em 1em; border: 1px solid rgba(236, 72, 153, .3); border-radius: 99px;
	background: #fff; color: #141414; font: 500 .85rem Poppins, system-ui, sans-serif; cursor: pointer; white-space: nowrap;
}
.mlb-bus__chip small { color: #9d174d; font-size: .75em; margin-left: .2em; }
.mlb-bus__chip:hover { border-color: #ec4899; }
.mlb-bus__chip.is-on { background: #141414; border-color: #141414; color: #fff; }
.mlb-bus__chip.is-on small { color: #f9a8d4; }

.mlb-bus__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.mlb-bus__item {
	display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: .75rem; align-items: center;
	padding: .55rem; background: #fff; border: 1px solid rgba(236, 72, 153, .2); border-radius: 14px;
	color: #141414 !important; text-decoration: none !important; transition: border-color .15s, transform .15s;
}
.mlb-bus__item:hover, .mlb-bus__item:focus-visible { border-color: #ec4899; transform: translateY(-1px); outline: none; }
.mlb-bus__item img, .mlb-bus__noimg { width: 64px; height: 80px; object-fit: cover; border-radius: 10px; background: #fce7f0; display: block; }
.mlb-bus__info { display: grid; gap: .2rem; min-width: 0; }
.mlb-bus__name { font-size: .86rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mlb-bus__tags { display: flex; flex-wrap: wrap; gap: .25rem; }
.mlb-bus__tags span { font-size: .7rem; padding: .1em .55em; border-radius: 99px; background: #fce7f0; color: #9d174d; }
.mlb-bus__cat { font-size: .74rem; color: #6b6b6b; }
.mlb-bus__price { font-size: .86rem; font-weight: 600; }

.mlb-bus__more {
	justify-self: center; min-height: 44px; padding: .6em 1.6em; border: 1.5px solid #141414; border-radius: 99px;
	background: transparent; color: #141414; font: 600 .8rem Poppins, system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
}
.mlb-bus__more:hover { background: #141414; color: #fff; }
.mlb-bus__foot { margin: .4rem 0 0; font-size: .82rem; color: #6b6b6b; text-align: center; }
.mlb-bus__empty { text-align: center; padding: 1rem .5rem; display: grid; gap: .4rem; justify-items: center; }
.mlb-bus__empty p { margin: 0; max-width: 40ch; }
.mlb-bus__wa { display: inline-block; margin-top: .3rem; color: #9d174d; font-weight: 600; }
.mlb-bus__empty .mlb-bus__wa {
	padding: .7em 1.4em; border-radius: 99px; background: #141414; color: #fff !important; text-decoration: none;
	font-size: .82rem; letter-spacing: .04em;
}

@media (max-width: 600px) {
	.mlb-bus__panel { border-radius: 0; height: 100%; }
	.mlb-bus__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	.mlb-bus__panel, .mlb-bus__shade { transition: none; }
}

/* Botones del buscador: el estilo general de botones (Elementor, tema) no se aplica acá */
.mlb-bus .mlb-bus__chip, .mlb-bus .mlb-bus__more, .mlb-bus .mlb-bus__x {
	box-sizing: border-box; margin: 0; box-shadow: none; text-transform: none; letter-spacing: 0; line-height: 1.2; text-decoration: none;
}
.mlb-bus .mlb-bus__chip {
	display: inline-flex; align-items: center; gap: .25em; min-height: 38px; padding: .35em 1em !important;
	border: 1px solid rgba(236, 72, 153, .3) !important; border-radius: 99px !important;
	background: #fff !important; color: #141414 !important; font: 500 .85rem Poppins, system-ui, sans-serif !important; white-space: nowrap;
}
.mlb-bus .mlb-bus__chip:hover { border-color: #ec4899 !important; background: #fff !important; color: #141414 !important; }
.mlb-bus .mlb-bus__chip.is-on, .mlb-bus .mlb-bus__chip.is-on:hover { background: #141414 !important; border-color: #141414 !important; color: #fff !important; }
.mlb-bus .mlb-bus__chip small { font-size: .75em; color: #9d174d; }
.mlb-bus .mlb-bus__chip.is-on small { color: #f9a8d4; }
.mlb-bus .mlb-bus__more { padding: .6em 1.6em !important; border: 1.5px solid #141414 !important; border-radius: 99px !important; background: transparent !important; color: #141414 !important; font: 600 .8rem Poppins, system-ui, sans-serif !important; letter-spacing: .06em; text-transform: uppercase; }
.mlb-bus .mlb-bus__more:hover { background: #141414 !important; color: #fff !important; }
.mlb-bus .mlb-bus__x { display: grid; place-items: center; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: #fce7f0 !important; color: #141414 !important; }
.mlb-bus .mlb-bus__chips.is-filter { padding: 2px 2px 4px; margin: -2px -2px 0; }
/* Etiquetas de cada resultado (Temática: Corona…) */
.mlb-bus .mlb-bus__tags span { display: inline-block; line-height: 1.4; }
.mlb-bus__all { margin-left: 4px; color: #9d174d; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
