/*
 * Catalogos compartidos, etapa 3, F5c: buscador propio de los agentes con catalogo (barra + resultados).
 * Todo va dentro de .bc-wrap con prefijo bc- para no chocar con Bootstrap 3 ni con las plantillas.
 * Escritorio (> 1.180 px): barra en una linea. Tableta: caja arriba y botones debajo. Movil (<= 760 px): caja + Filtros.
 */
.bc-wrap {
    --bc-bg: #f6f7f9; --bc-card: #fff; --bc-fg: #1b1f24; --bc-muted: #646b75; --bc-faint: #8b929c; --bc-line: #d9dde3;
    --bc-line2: #bcc3cc; --bc-accent: #1f5fd1; --bc-accent-bg: #e7eefc; --bc-ok: #17663a; --bc-ok-bg: #e3f3e9;
    --bc-danger: #b42318; --bc-btn: #16191d; --bc-btn-fg: #fff; --bc-hover: #eef1f5;
    max-width: 1280px; margin: 0 auto; padding: 16px 16px 40px; color: var(--bc-fg); font-size: 14px; line-height: 1.45;
    box-sizing: border-box; text-align: left;
}
.bc-wrap *, .bc-wrap *::before, .bc-wrap *::after { box-sizing: border-box; }
.bc-wrap button, .bc-wrap input, .bc-wrap select { font: inherit; color: inherit; }
.bc-wrap label { font-weight: 400; margin: 0; }
.bc-wrap input[type=checkbox], .bc-wrap input[type=radio] { margin: 0 8px 0 0; accent-color: var(--bc-accent); position: static; }
.bc-wrap input[type=number], .bc-wrap input[type=text] {
    background: var(--bc-card); border: 1px solid var(--bc-line2); border-radius: 8px; height: 38px; padding: 0 10px;
    width: 100%; min-width: 0; box-shadow: none;
}
.bc-wrap input:focus-visible, .bc-wrap button:focus-visible, .bc-wrap a:focus-visible, .bc-wrap select:focus-visible, .bc-box:focus-visible {
    outline: 2px solid var(--bc-accent); outline-offset: 1px;
}
.bc-ico { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Barra */
.bc-bar { position: relative; display: flex; gap: 8px; align-items: center; margin: 0; }
.bc-box {
    flex: 1 1 280px; min-width: 0; display: flex; gap: 8px; align-items: center; height: 42px; padding: 0 12px;
    border: 1px solid var(--bc-line2); border-radius: 8px; background: var(--bc-card); cursor: text; color: var(--bc-faint);
}
.bc-box.bc-ed { border-color: var(--bc-accent); }
.bc-box .bc-ico { color: var(--bc-faint); }
.bc-wrap .bc-box input { border: none; height: 36px; padding: 0; background: transparent; flex: 1; color: var(--bc-fg); }
.bc-wrap .bc-box input:focus-visible { outline: none; }
.bc-sum { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--bc-fg); }
.bc-sum.bc-ph { color: var(--bc-faint); }
.bc-badge { flex: none; font-size: 12px; font-weight: 500; background: var(--bc-accent-bg); color: var(--bc-accent); border-radius: 10px; padding: 1px 8px; }
.bc-pill {
    flex: none; height: 42px; display: inline-flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 12px;
    border: 1px solid var(--bc-line2); border-radius: 8px; background: var(--bc-card); cursor: pointer; margin: 0;
}
.bc-pill > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-pill.bc-on { border-color: var(--bc-accent); background: var(--bc-accent-bg); color: var(--bc-accent); }
.bc-pill.bc-dark { background: var(--bc-btn); color: var(--bc-btn-fg); border-color: var(--bc-btn); justify-content: center; border-radius: var(--bc-radio-btn, 8px); }
.bc-w-op { width: 104px; } .bc-w-pr { width: 160px; } .bc-w-hb { width: 200px; } .bc-w-tp { width: 136px; }
.bc-w-mf { width: 118px; } .bc-w-sv { width: 184px; } .bc-w-all { width: 118px; } .bc-w-svm { width: 42px; padding: 0; }
/* Boton de la barra en modo "Aplicar" (cambios sin aplicar con un panel abierto): en movil pasa de icono a texto */
.bc-w-svm[data-apl="true"] { width: auto; padding: 0 12px; } .bc-sv-t { font-weight: 600; font-size: 13px; }
.bc-w-sv[data-apl="true"] { justify-content: center; }
.bc-mob { display: none; }
@media (max-width: 1180px) { .bc-bar { flex-wrap: wrap; } .bc-box { flex-basis: 100%; } }
@media (max-width: 760px) {
    .bc-desk { display: none; } .bc-mob { display: inline-flex; } .bc-box { flex: 1 1 0; } .bc-pop { flex: 0 0 100%; }
}

/* Paneles */
.bc-pop {
    position: absolute; top: 50px; left: 0; z-index: 1000; background: var(--bc-card); border: 1px solid var(--bc-line);
    border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); width: min(420px, 100%); overflow: hidden;
}
.bc-pop.bc-wide { width: min(640px, 100%); }
@media (max-width: 760px) { .bc-pop, .bc-pop.bc-wide { position: static; width: 100%; margin-top: 8px; box-shadow: none; } }
.bc-ph-h { background: var(--bc-hover); color: var(--bc-muted); font-size: 12px; font-weight: 500; padding: 9px 14px; }
.bc-pb { padding: 12px 14px; max-height: min(70vh, 560px); overflow: auto; }
.bc-sub { font-size: 12px; color: var(--bc-muted); margin: 14px 0 6px; font-weight: 500; }
.bc-sub:first-child { margin-top: 0; }
.bc-flex { display: flex; justify-content: space-between; gap: 8px; }
.bc-mt { margin: 8px 0 2px; } .bc-mt2 { margin-top: 18px; } .bc-pad { padding: 6px; }
.bc-it { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px; border-radius: 6px; cursor: pointer; }
.bc-it:hover, .bc-it.bc-hl { background: var(--bc-hover); }
.bc-it > span:first-child { display: inline-flex; align-items: center; min-width: 0; }
.bc-cero { opacity: .45; cursor: default; }
.bc-cero:hover { background: none; }
.bc-n { color: var(--bc-faint); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bc-wrap .bc-lk { color: var(--bc-accent); cursor: pointer; background: none; border: none; padding: 0; }
.bc-chip { display: inline-flex; gap: 6px; align-items: center; background: var(--bc-accent-bg); color: var(--bc-accent); font-size: 12px; padding: 3px 8px; border-radius: 6px; }
.bc-chip button { background: none; border: none; color: inherit; cursor: pointer; padding: 0; line-height: 1; }
.bc-grp { padding: 6px 0 8px; border-bottom: 1px solid var(--bc-line); }
.bc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.bc-g2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0 14px; }
.bc-seg { display: flex; }
.bc-seg button { flex: 1; height: 36px; border: 1px solid var(--bc-line2); background: var(--bc-card); margin-left: -1px; cursor: pointer; padding: 0 4px; }
.bc-seg button:first-child { border-radius: 8px 0 0 8px; margin-left: 0; }
.bc-seg button:last-child { border-radius: 0 8px 8px 0; }
.bc-seg button.bc-on { background: var(--bc-accent-bg); color: var(--bc-accent); border-color: var(--bc-accent); position: relative; }
/* F5d: el boton Aplicar queda fijo abajo del panel (visible sin hacer scroll) */
.bc-ap-fijo { position: sticky; bottom: -12px; margin: 14px -14px -12px; padding: 10px 14px 12px; background: var(--bc-card); border-top: 1px solid var(--bc-line); }
.bc-ap-fijo .bc-ap { margin-top: 0; }
.bc-wrap .bc-ap { display: block; width: 100%; height: 40px; margin-top: 14px; border: none; border-radius: var(--bc-radio-btn, 8px); background: var(--bc-btn); color: var(--bc-btn-fg); font-weight: 500; cursor: pointer; }
.bc-row2 { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.bc-hist { display: flex; align-items: flex-end; gap: 2px; height: 84px; padding: 0 9px; }
.bc-hist i { flex: 1; border-radius: 2px 2px 0 0; background: #dde2e8; background: color-mix(in srgb, var(--bc-accent) 22%, var(--bc-card)); }
.bc-hist i.bc-in { background: var(--bc-accent); }
.bc-rng { position: relative; height: 22px; }
.bc-trk { position: absolute; left: 9px; right: 9px; top: 9px; height: 4px; border-radius: 2px; background: var(--bc-line2); }
.bc-trk b { position: absolute; top: 0; bottom: 0; background: var(--bc-accent); border-radius: 2px; }
.bc-rng input { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; height: 22px; }
.bc-rng input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--bc-card); border: 2px solid var(--bc-accent); cursor: grab; }
.bc-rng input::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: var(--bc-card); border: 2px solid var(--bc-accent); cursor: grab; }
.bc-rng input::-webkit-slider-runnable-track { background: none; }
.bc-rlab { display: flex; justify-content: space-between; margin-top: 2px; color: var(--bc-faint); font-size: 12px; }
.bc-rlab #bc-rv { color: var(--bc-fg); font-size: 13px; }
.bc-err { color: var(--bc-danger); font-size: 13px; margin-top: 8px; }

/* Avisos */
.bc-toast { display: flex; gap: 10px; align-items: flex-start; background: var(--bc-ok-bg); color: var(--bc-ok); border-radius: 8px; padding: 10px 12px; margin-top: 10px; }
.bc-toast-info { background: var(--bc-accent-bg); color: var(--bc-accent); align-items: center; flex-wrap: wrap; }
.bc-ok { font-size: 16px; }
.bc-acts { margin-top: 6px; display: flex; gap: 18px; flex-wrap: wrap; }
.bc-aviso { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #fff7e6; color: #7a4b00; }
.bc-empty { margin: 40px 0 10px; text-align: center; }

/* Resultados */
.bc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; margin: 18px 0 12px; }
.bc-cnt { font-weight: 600; font-size: 15px; }
/* Titulo de la pagina (David 30-11) y etiqueta removible del listado filtrado (?type=destacados...) */
.bc-wrap .bc-title { margin: 14px 0 10px; font-size: 24px; line-height: 1.2; font-weight: 600; color: var(--bc-fg); text-wrap: balance; }
.bc-title-n { font-size: 15px; font-weight: 400; color: var(--bc-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bc-li { display: inline-flex; align-items: center; gap: 6px; align-self: center; flex: none; padding: 4px 5px 4px 12px; border: 1px solid var(--bc-line2);
    border-radius: 99px; background: var(--bc-accent-bg); color: var(--bc-fg); font-size: 13px; font-weight: 500; white-space: nowrap; }
.bc-wrap .bc-li button { width: 20px; height: 20px; border: none; border-radius: 50%; background: var(--bc-line2); color: var(--bc-fg); cursor: pointer;
    font-size: 11px; line-height: 20px; padding: 0; }
@media (max-width: 767px) { .bc-wrap .bc-title { font-size: 20px; margin: 10px 0 8px; } }
.bc-shown { color: var(--bc-muted); font-size: 13px; margin-left: 8px; }
.bc-sort { display: inline-flex; align-items: center; gap: 6px; color: var(--bc-muted); font-size: 13px; }
.bc-sort select { max-width: 100%; background: var(--bc-card); border: 1px solid var(--bc-line2); border-radius: 8px; height: 34px; padding: 0 8px; color: var(--bc-fg); }
.bc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.bc-card { background: var(--bc-card); border: 1px solid var(--bc-line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.bc-img { display: block; aspect-ratio: 4 / 3; background: var(--bc-hover); color: var(--bc-faint); overflow: hidden; }
.bc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-img span { display: flex; height: 100%; align-items: center; justify-content: center; }
.bc-img.bc-sinfoto { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.bc-img.bc-sinfoto::after { content: attr(data-sinfoto); color: var(--bc-faint); }
.bc-cb { padding: 10px 12px; }
.bc-price-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bc-wrap a.bc-price { font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; color: var(--bc-fg); text-decoration: none; }
.bc-wrap a.bc-price:hover { text-decoration: underline; }
.bc-meta { color: var(--bc-muted); font-size: 13px; }

/* Paginador */
.bc-pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 22px 0 4px; flex-wrap: wrap; }
.bc-pg {
    min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--bc-line2); border-radius: 8px; background: var(--bc-card);
    display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; color: var(--bc-fg); text-decoration: none;
}
.bc-wrap a.bc-pg:hover { background: var(--bc-hover); text-decoration: none; color: var(--bc-fg); }
.bc-pg.bc-on { background: var(--bc-btn); color: var(--bc-btn-fg); border-color: var(--bc-btn); }
.bc-pg.bc-off { opacity: .4; }
.bc-dots { color: var(--bc-faint); padding: 0 2px; }
.bc-pg-mob { display: none; color: var(--bc-muted); }
@media (max-width: 640px) { .bc-num, .bc-dots { display: none; } .bc-pg-mob { display: inline; } }
@media (prefers-reduced-motion: reduce) { .bc-wrap * { transition: none !important; } }

/* ---------- F5d: barra simple de entrada (ficha, listados, favoritos, portada) ---------- */
.bcs-wrap { padding-top: 12px; padding-bottom: 12px; max-width: none; }
.bcs { position: relative; display: flex; gap: 8px; align-items: center; margin: 0; }
.bcs-seg { display: inline-flex; flex: none; }
.bcs-seg button { height: 42px; padding: 0 14px; border: 1px solid var(--bc-line2); background: var(--bc-card); margin-left: -1px; cursor: pointer; }
.bcs-seg button:first-child { border-radius: 8px 0 0 8px; margin-left: 0; }
.bcs-seg button:last-child { border-radius: 0 8px 8px 0; }
.bcs-seg button.bc-on { background: var(--bc-accent-bg); color: var(--bc-accent); border-color: var(--bc-accent); position: relative; }
.bcs-box { flex: 1 1 auto; }
.bcs-filtros { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 10px; border-radius: 8px;
    background: var(--bc-accent-bg); color: var(--bc-accent); font-size: 13px; white-space: nowrap; }
.bcs-filtros[hidden] { display: none; }
.bc-wrap .bcs-filtros button { background: none; border: none; color: inherit; cursor: pointer; padding: 0; line-height: 1; }
.bc-wrap .bcs-go { flex: none; height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 18px;
    border: none; border-radius: var(--bc-radio-btn, 8px); background: var(--bc-btn); color: var(--bc-btn-fg); font-weight: 500; cursor: pointer; }
.bcs .bcs-pop { position: absolute; top: calc(100% + 8px); left: 0; right: 0; width: auto; margin: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .14); }
.bcs-pop .bc-pb { max-height: min(60vh, 420px); }
/* Patch pequeno: X para cerrar el panel de ubicacion y boton Buscar abajo */
.bcs-pop-h { display: flex; justify-content: flex-end; padding: 6px 8px 0; }
.bc-wrap .bcs-x { width: 32px; height: 32px; border: none; border-radius: 50%; background: transparent; color: var(--bc-muted);
    font-size: 16px; line-height: 1; cursor: pointer; }
.bc-wrap .bcs-x:hover { background: var(--bc-hover); color: var(--bc-fg); }
.bcs-pop-h + .bc-pb { padding-top: 0; }
.bcs-pop-f { padding: 10px 14px 12px; border-top: 1px solid var(--bc-line); }
.bcs-pop-f .bc-ap { margin-top: 0; }
.bcs-volver { display: inline-block; margin: 0 0 8px; color: var(--bc-accent); font-size: 14px; text-decoration: none; }
.bcs-volver:hover { text-decoration: underline; }
.bc-wrap.bcs-pop-caja { position: absolute; top: 100%; left: 0; right: 0; z-index: 1000; margin-top: 6px; padding: 0; max-width: none;
    color: var(--bc-fg); text-align: left; font-size: 14px; }
@media (max-width: 640px) {
    .bcs { flex-wrap: wrap; }
    .bcs-seg { flex: 0 0 100%; }
    .bcs-seg button { flex: 1; height: 36px; }
    .bc-wrap .bcs-go { width: 42px; padding: 0; }
    .bcs-t { display: none; }
    .bcs-filtros { order: 5; height: 30px; }
}

/* Movil (iPhone): con letra de menos de 16 px en una caja, Safari amplia la pagina al escribir y al cerrar el teclado
   se queda ampliada y cortada por la derecha. Con 16 px no amplia. */
@media (max-width: 760px) {
    .bc-wrap input[type=text], .bc-wrap input[type=number], .bc-wrap select, .bc-wrap .bc-box input,
    #PropertySrchMuli { font-size: 16px; }
}

/* ---------- F5e ---------- */
/* Movil: los paneles del buscador ocupan la pantalla bajo la barra (Aplicar siempre visible abajo); la pagina no se
   desplaza mientras estan abiertos. El JS coloca el panel justo debajo de la barra (top). */
@media (max-width: 760px) {
    .bc-wrap .bc-pop.bc-movil { position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); width: auto;
        margin: 0; display: flex; flex-direction: column; box-shadow: 0 10px 40px rgba(0, 0, 0, .25); z-index: 2000; }
    .bc-wrap .bc-pop.bc-movil .bc-pb { flex: 1; max-height: none; min-height: 0; }
    html.bc-bloqueo, html.bc-bloqueo body { overflow: hidden; }
}
.bc-ph-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bc-wrap .bc-x { background: none; border: none; color: inherit; cursor: pointer; padding: 0 2px; font-size: 16px; line-height: 1; }
/* Barra simple: "+N filtros" es un boton que abre la lista de filtros que se mantienen */
.bc-wrap .bcs-filtros-btn { background: none; border: none; color: inherit; cursor: pointer; padding: 0; font: inherit; }
.bcs-filtros-pop { position: absolute; top: calc(100% + 8px); right: 0; z-index: 1000; width: min(360px, 100%); background: var(--bc-card);
    border: 1px solid var(--bc-line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .14); padding: 12px 14px; color: var(--bc-fg); }
.bcs-filtros-pop ul { margin: 6px 0 10px; padding-left: 18px; }
.bcs-filtros-pop li { margin: 2px 0; }
.bcs-filtros-pop .bc-acts { margin-top: 0; }
.bc-pg.bc-on, .bc-wrap a.bc-pg { border-radius: var(--bc-radio-btn, 8px); }

/* Mismo borde que el contenedor de la plantilla (Bootstrap: 15 px) */
.bc-wrap.container { padding-left: 15px; padding-right: 15px; }
/* F5f: un panel cerrado nunca se ve (la regla de movil con display:flex ganaba al atributo hidden) */
.bc-wrap .bc-pop[hidden] { display: none !important; }

/* ===== F5i: "Elegir en el mapa" (js/mapa-catalogo.js). Maqueta v9: grises por cantidad, elegida en el color del
   agente, bordes en color mar, nombre / circulo / punto segun el sitio, lista al lado (movil: debajo). ===== */
.bc-wrap .bc-mapbtn { display: flex; align-items: center; gap: 12px; width: 100%; margin: 4px 0 10px; padding: 10px 12px; border: 1px solid #82bfd2; border-radius: 10px;
    background: #f1f8fa; color: var(--bc-fg); cursor: pointer; text-align: left; font: inherit; }
.bc-wrap .bc-mapbtn:hover { border-color: #3f93b2; }
.bc-mapbtn img { flex: none; width: 74px; height: 56px; border-radius: 6px; }
.bc-mapbtn-t { display: block; font-weight: 600; font-size: 15px; }
.bc-mapbtn-s { display: block; font-size: 12.5px; color: var(--bc-muted); margin-top: 2px; }
.bc-mapbtn-ar { margin-left: auto; font-weight: 600; font-size: 13px; color: #3f93b2; white-space: nowrap; }
@media (max-width: 767px) { .bc-mapbtn-ab { display: none; } }
html.bc-mp-lock, html.bc-mp-lock body { overflow: hidden; }
.bc-mp { --mp-sea: #dfeaf3; position: fixed; inset: 0; z-index: 100000; background: var(--bc-bg); display: grid; grid-template-columns: 320px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr); color: var(--bc-fg); font-size: 14px; line-height: 1.45; text-align: left; }
.bc-mp[hidden] { display: none; }
.bc-mp-side { background: var(--bc-card); border-right: 1px solid var(--bc-line); display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.bc-mp-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.bc-mp-sfoot { flex: none; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 10px; border-top: 1px solid var(--bc-line); background: var(--bc-card); box-shadow: 0 -6px 12px -10px rgba(0, 0, 0, .25); }
.bc-mp-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 15px; }
.bc-mp-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--bc-line); }
.bc-mp-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto 32px; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--bc-line); }
.bc-mp-list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-mp-list small { color: var(--bc-muted); font-size: 13px; }
.bc-mp-list b { font-weight: 500; color: var(--bc-muted); font-variant-numeric: tabular-nums; }
.bc-mp .bc-mp-list button { border: none; background: none; cursor: pointer; font-size: 15px; color: var(--bc-muted); padding: 0; }
.bc-mp-empty { color: var(--bc-muted); margin: 4px 0; }
.bc-mp .bc-mp-go { flex: none; width: 100%; height: 50px; border: none; border-radius: var(--bc-radio-btn, 8px); background: var(--bc-btn); color: var(--bc-btn-fg); font-weight: 600; font-size: 15px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px; }
.bc-mp-go .bc-mp-n { background: rgba(255, 255, 255, .2); padding: 2px 9px; border-radius: 99px; font-variant-numeric: tabular-nums; }
.bc-mp .bc-mp-go2 { height: 34px; padding: 0 14px; border: none; border-radius: var(--bc-radio-btn, 8px); background: var(--bc-btn); color: var(--bc-btn-fg); font-weight: 600; font-size: 13px; cursor: pointer; }
.bc-mp .bc-mp-go[disabled] { opacity: .4; cursor: default; }
.bc-mp .bc-mp-back { align-self: center; padding: 6px; }
.bc-mp-main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.bc-mp-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 16px; border-bottom: 1px solid var(--bc-line); background: var(--bc-card); }
.bc-mp-top b { font-size: 15px; }
.bc-mp-hint { color: var(--bc-muted); font-size: 13px; margin-left: auto; }
.bc-mp .bc-mp-all { height: 32px; padding: 0 12px; border: 1px solid var(--bc-line2); border-radius: 8px; background: var(--bc-card); color: var(--bc-fg); cursor: pointer; }
.bc-mp .bc-mp-all.bc-on { border-color: var(--bc-accent); background: var(--bc-accent-bg); color: var(--bc-accent); }
.bc-mp .bc-mp-x { margin-left: 8px; width: 34px; height: 34px; border: 1px solid var(--bc-line2); border-radius: 8px; background: var(--bc-card); cursor: pointer; font-size: 16px; }
.bc-mp-stage { position: relative; flex: 1 1 0; min-height: 0; display: flex; }
.bc-mp-svg { flex: 1 1 0; width: 100%; height: 100%; min-height: 0; cursor: grab; background: var(--mp-sea); touch-action: none; user-select: none; -webkit-user-select: none; }
.bc-mp-svg.bc-arrastra { cursor: grabbing; }
.bc-mp-foot { display: flex; flex-direction: column; gap: 5px; padding: 8px 14px; border-top: 1px solid var(--bc-line); background: var(--bc-card); }
.bc-mp-note { font-size: 11.5px; color: var(--bc-muted); }
.bc-mp-inset { fill: none; stroke: var(--bc-line2); stroke-dasharray: 4 4; stroke-width: 1; vector-effect: non-scaling-stroke; }
.bc-mp-cell { fill: var(--bc-card); stroke: rgba(27, 31, 36, .35); stroke-width: .8; vector-effect: non-scaling-stroke; cursor: pointer; }
/* Escala azul agua y lo elegido en --mp-sel (color vivo de la cuenta o naranja): maqueta opcion A, David 30-11 */
.bc-mp-cell.q1 { fill: #e4f1f4; } .bc-mp-cell.q2 { fill: #bcdde6; } .bc-mp-cell.q3 { fill: #82bfd2; } .bc-mp-cell.q4 { fill: #3f93b2; }
.bc-mp-cell:not(.zero):hover { stroke: var(--bc-fg); stroke-width: 2; }
.bc-mp-cell.part { stroke: var(--mp-sel, #e8590c); stroke-width: 2; stroke-dasharray: 5 3; }
.bc-mp-cell.zero { fill: var(--bc-bg); cursor: default; } /* mismo trazo que las demas (antes uno mas claro: lineas desiguales) */
.bc-mp-cell.on { fill: var(--mp-sel, #e8590c); stroke: #fff; stroke-width: 2.2; }
.bc-mp-leg { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 12px; color: var(--bc-muted); }
.bc-mp-leg i { display: inline-block; width: 14px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; border: 1px solid var(--bc-line2); }
.bc-mp-more { font-size: 12.5px; color: var(--bc-accent); }
.bc-mp-more[hidden] { display: none; }
.bc-mp-dot { fill: var(--bc-fg); stroke: var(--bc-card); stroke-width: 1.5; vector-effect: non-scaling-stroke; pointer-events: none; }
.bc-mp-bdg { pointer-events: none; }
.bc-mp-bdg circle { fill: var(--bc-card); stroke: var(--mp-sel, #e8590c); vector-effect: non-scaling-stroke; stroke-width: 1.5; }
.bc-mp-bdg.on circle { fill: var(--mp-sel, #e8590c); stroke: #fff; }
.bc-mp-bdg.on text { fill: #fff; }
.bc-mp-bdg text { text-anchor: middle; dominant-baseline: central; fill: var(--bc-fg); font-weight: 600; }
.bc-mp-lbl { text-anchor: middle; fill: var(--bc-fg); pointer-events: none; font-weight: 500; paint-order: stroke; stroke: #fff; stroke-linejoin: round; }
.bc-mp-lbl .mpn { fill: var(--bc-muted); font-weight: 400; }
.bc-mp-lbl.on, .bc-mp-lbl.on .mpn { fill: #fff; stroke: none; font-weight: 600; }
.bc-mp-h2 { margin: 14px 0 2px; font-size: 14px; font-weight: 600; }
.bc-mp-pick { list-style: none; margin: 0; padding: 0; }
.bc-mp .bc-mp-pick button { width: 100%; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 2px;
    border: none; border-bottom: 1px solid var(--bc-line); background: none; color: var(--bc-fg); font: inherit; text-align: left; cursor: pointer; }
.bc-mp .bc-mp-pick button:hover { background: var(--bc-hover); }
.bc-mp-pick span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-mp-pick b { font-weight: 400; color: var(--bc-muted); font-variant-numeric: tabular-nums; }
.bc-mp-pick .ck { width: 18px; height: 18px; border: 1.5px solid var(--bc-line2); border-radius: 4px; display: grid; place-items: center; font-size: 12px; line-height: 1; color: #fff; }
.bc-mp-pick .bc-on .ck { background: var(--mp-sel, var(--bc-accent)); border-color: var(--mp-sel, var(--bc-accent)); }
.bc-mp-pick .part .ck { border-color: var(--mp-sel, var(--bc-accent)); background: var(--bc-accent-bg); }
/* Patch pequeno 3: franja "Cuenta solo:" con los filtros del mapa (maqueta opcion B) y estado vacio */
.bc-mp-fb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 16px; background: #fffaf6; border-bottom: 1px solid #f3c7a8; font-size: 13px; }
.bc-mp-fb[hidden] { display: none; }
.bc-mp-fbt { font-weight: 600; color: var(--bc-fg); }
.bc-mp-fbs { color: var(--bc-muted); margin-left: auto; font-variant-numeric: tabular-nums; }
.bc-mp-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bc-mp-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 99px; font-size: 13px; white-space: nowrap;
    border: 1px solid var(--bc-accent); background: var(--bc-accent-bg); color: var(--bc-accent); }
.bc-mp-chip.bc-fix { border-color: var(--bc-line2); background: var(--bc-bg); color: var(--bc-fg); }
.bc-mp .bc-mp-chip button { border: 0; background: none; color: inherit; cursor: pointer; padding: 0 0 0 2px; font-size: 14px; line-height: 1; }
.bc-mp-legf { color: var(--bc-fg); font-weight: 500; }
.bc-mp-void { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; padding: 16px; }
.bc-mp-void[hidden] { display: none; }
.bc-mp-void div { pointer-events: auto; background: var(--bc-card); border: 1px solid var(--bc-line); border-radius: 10px; padding: 16px 18px; max-width: 300px;
    text-align: center; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .35); display: flex; flex-direction: column; gap: 8px; align-items: center; }
.bc-mp-void b { font-size: 15px; }
.bc-mp-void p { margin: 0; color: var(--bc-muted); font-size: 13px; }
.bc-mp .bc-mp-void button { border: 0; border-radius: var(--bc-radio-btn, 8px); background: var(--bc-btn); color: var(--bc-btn-fg); font-weight: 600; padding: 8px 14px; cursor: pointer; }
.bc-mp-zoom { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; border: 1px solid var(--bc-line2); border-radius: 8px; overflow: hidden; background: var(--bc-card); }
.bc-mp .bc-mp-zoom button { width: 36px; height: 36px; border: none; background: var(--bc-card); color: var(--bc-fg); font-size: 18px; cursor: pointer; padding: 0; }
.bc-mp .bc-mp-zoom button + button { border-top: 1px solid var(--bc-line); }
@media (max-width: 760px) {
    .bc-mp { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) minmax(0, 42%); }
    .bc-mp-main { grid-row: 1; }
    .bc-mp-side { grid-row: 2; border-right: 0; border-top: 1px solid var(--bc-line); }
    .bc-mp-scroll { padding: 12px 16px; }
    .bc-mp-sfoot { padding: 8px 12px; }
    .bc-mp .bc-mp-go { height: 46px; }
    .bc-mp .bc-mp-go2 { display: none; }
    .bc-mp-zoom { top: auto; bottom: 12px; }
    .bc-mp-leg { font-size: 11px; gap: 3px 10px; }
    .bc-mp-foot { padding: 6px 12px; }
    .bc-mp-top { padding: 8px 12px; }
    .bc-mp-fb { padding: 7px 12px; }
    .bc-mp-fbs { margin-left: 0; width: 100%; }
    .bc-mp-hint { display: none; }
    .bc-mp .bc-mp-x { margin-left: auto; }
}
