/* =========================================================================
   Propeka · Resultados y landings con la presentación de propeka.com
   (fase 4, D-PAR-02 y D-PAR-03, 2026-11-03)
   =========================================================================
   Hoja de página de la vista `resultados` (/propiedades/ y las landings
   curadas). La carga propeka-assets.php DESPUÉS de propeka-paridad.css y
   sólo en esta vista; gana los empates por orden de carga.

   Sustituye a las capas que se retiraron en el mismo cambio de propeka.css:
   el bloque «Funda-structured property-results template», la «retícula de
   descubrimiento (2026-10-23)» y los ajustes sueltos de resultados de los
   pases 2026-09-09, 2026-09-22 y 2026-10-17. Las primitivas compartidas de
   las secciones 5-10 de propeka.css (desplegable, panel, hoja, chips,
   paginación, mapa) siguen siendo la base.

   Alcance: `:where(body.pk-publico) .pk-resultados …`, es decir (0,2,0) o
   más por la propia página, nunca `body.pk-publico .pk-…` (validate-source
   check 4c). Valores resueltos de propeka.com: propeka-site.css
   (.pk-results-bar, .listing-tools-wrap, .pagination, .pk-empty, .pk-chip) y
   propeka-landing.css (.pk-related).
   ========================================================================= */

/* --- 1. Marco (D-PAR-02): 1200 px de contenido también en resultados ---- */
body.pk-vista-resultados {
  --pk-results-shell: 1200px;
  --pk-results-column: 1200px;
}

:where(body.pk-publico) .pk-resultados {
  overflow: visible;
  padding-bottom: 72px;
  background: var(--pk-n0);
  font-family: var(--pk-fuente);
}

/* --- 2. Titular: ruta, H1 descriptivo y conmutador Lista/Mapa ----------- */
:where(body.pk-publico) .pk-resultados .pk-resultados__cabeza {
  padding-top: 28px;
  padding-bottom: 8px;
}

:where(body.pk-publico) .pk-resultados .pk-migas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  color: var(--pk-txt-sec);
  font-size: 13px;
  line-height: 1.4;
}
:where(body.pk-publico) .pk-resultados .pk-migas__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
:where(body.pk-publico) .pk-resultados .pk-migas__item + .pk-migas__item::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  background-color: var(--pk-n400);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
:where(body.pk-publico) .pk-resultados .pk-migas .pk-migas__casa {
  width: 14px;
  height: 14px;
  color: var(--pk-txt-sec);
}
:where(body.pk-publico) .pk-resultados .pk-migas a {
  color: var(--pk-accion);
  text-decoration: none;
}
:where(body.pk-publico) .pk-resultados .pk-migas a:hover {
  color: var(--pk-accion-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}
:where(body.pk-publico) .pk-resultados .pk-migas [aria-current] {
  color: var(--pk-txt-sec);
  font-weight: 400;
}

:where(body.pk-publico) .pk-resultados .pk-resultados__titular {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

:where(body.pk-publico) .pk-resultados .pk-resultados__h1 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: var(--pk-tinta);
  font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.375rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.12;
  text-wrap: balance;
}

/* Conmutador segmentado: dos botones `.js-pk-mapa` (Lista / Mapa). */
:where(body.pk-publico) .pk-resultados .pk-vista {
  display: inline-flex;
  flex: none;
  overflow: hidden;
  border: 1px solid var(--pk-n200);
  border-radius: 8px;
  background: var(--pk-n0);
}
:where(body.pk-publico) .pk-resultados .pk-vista__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: var(--pk-n0);
  color: var(--pk-txt-sec);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--pk-t), color var(--pk-t);
}
:where(body.pk-publico) .pk-resultados .pk-vista__btn + .pk-vista__btn { border-left: 1px solid var(--pk-n200); }
:where(body.pk-publico) .pk-resultados .pk-vista__btn .pk-icono { width: 18px; height: 18px; }
:where(body.pk-publico) .pk-resultados .pk-vista__btn:hover { background: var(--pk-n50); color: var(--pk-tinta); }
:where(body.pk-publico) .pk-resultados .pk-vista__btn[aria-pressed="true"] {
  background: var(--pk-tinta);
  color: var(--pk-n0);
}

/* Entradilla de la landing: va bajo el H1, como lede. */
:where(body.pk-publico) .pk-resultados .pk-resultados__intro {
  width: auto;
  max-width: 68ch;
  margin: 8px 0 0;
  color: var(--pk-txt-sec);
  font-size: 16px;
  line-height: 1.6;
}
:where(body.pk-publico) .pk-resultados .pk-resultados__intro p {
  margin: 0 0 .5em;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}
:where(body.pk-publico) .pk-resultados .pk-resultados__intro p:last-child { margin-bottom: 0; }

/* --- 3. Barra de búsqueda como tarjeta de campos rotulados --------------- */
:where(body.pk-publico) .pk-resultados .pk-barra {
  position: relative;
  top: auto;
  z-index: 40;
  display: block;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

:where(body.pk-publico) .pk-resultados .pk-barra__interior {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  margin: 12px 0 16px;
  padding: 8px;
  border: 1px solid var(--pk-linea);
  border-radius: 14px;
  background: var(--pk-n0);
  box-shadow: var(--pk-s2);
}

/* Las filas se conservan en el marcado (pruebas y scripts) pero no forman
   caja: sus controles son celdas de la misma tarjeta. */
:where(body.pk-publico) .pk-resultados .pk-barra__fila { display: contents; }

/* Reparto de propeka.com (1.5fr 1fr 1fr 1.7fr .75fr .75fr auto) con
   `flex-grow`, para que una landing que fija operación o tipo no deje
   columnas vacías. */
:where(body.pk-publico) .pk-resultados .pk-barra .pk-desplegable {
  flex: 1 1 0;
  min-width: 0;
}
:where(body.pk-publico) .pk-resultados .pk-barra .pk-desplegable--ubicacion,
:where(body.pk-publico) .pk-resultados .pk-barra .pk-barra__ubicacion-fija { flex: 1.5 1 0; min-width: 0; }
/* Price and the two count fields rebalanced so "Cualquier precio" and "Todos"
   fit without clipping (the USA ratio was 1.7 / .75 / .75). */
:where(body.pk-publico) .pk-resultados .pk-barra .pk-desplegable--precio { flex: 1.5 1 0; }
:where(body.pk-publico) .pk-resultados .pk-barra .pk-desplegable--dormitorios,
:where(body.pk-publico) .pk-resultados .pk-barra .pk-desplegable--banos { flex: .85 1 0; }

/* Cada campo: rótulo de 12 px sobre el valor de 16 px, chevrón a la derecha. */
:where(body.pk-publico) .pk-resultados .pk-barra .pk-desplegable__disparo,
:where(body.pk-publico) .pk-resultados .pk-barra .pk-barra__ubicacion-fija {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  margin: 0;
  padding: 7px 14px;
  border: 1px solid var(--pk-n200);
  border-radius: 10px;
  background: var(--pk-n0);
  box-shadow: none;
  color: var(--pk-tinta);
  font: inherit;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color var(--pk-t), background-color var(--pk-t), box-shadow var(--pk-t);
}
:where(body.pk-publico) .pk-resultados .pk-barra .pk-barra__ubicacion-fija { cursor: default; }
:where(body.pk-publico) .pk-resultados .pk-barra .pk-desplegable__disparo .pk-icono,
:where(body.pk-publico) .pk-resultados .pk-barra .pk-barra__ubicacion-fija .pk-icono {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--pk-txt-sec);
}
:where(body.pk-publico) .pk-resultados .pk-barra .pk-desplegable__disparo::after {
  width: 16px;
  height: 16px;
  margin-left: auto;
}
:where(body.pk-publico) .pk-resultados .pk-desplegable__texto {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}
:where(body.pk-publico) .pk-resultados .pk-search__label {
  display: block;
  margin: 0 0 2px;
  color: var(--pk-apagado);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}
:where(body.pk-publico) .pk-resultados .pk-barra .pk-desplegable__etq,
:where(body.pk-publico) .pk-resultados .pk-barra .pk-barra__ubicacion-valor {
  display: block;
  max-width: none;
  overflow: hidden;
  color: var(--pk-tinta);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Sin ubicación elegida, el valor se lee como marcador de posición. */
:where(body.pk-publico) .pk-resultados .pk-barra .pk-desplegable--ubicacion .pk-desplegable__disparo:not(.pk-desplegable__disparo--activo) .pk-desplegable__etq {
  color: var(--pk-txt-ter);
  font-weight: 400;
}

:where(body.pk-publico) .pk-resultados .pk-barra .pk-desplegable__disparo:hover { border-color: var(--pk-n400); }
:where(body.pk-publico) .pk-resultados .pk-barra .pk-desplegable__disparo--activo {
  border-color: var(--pk-tinta);
  background: var(--pk-n50);
  color: var(--pk-tinta);
  font-weight: 600;
}
:where(body.pk-publico) .pk-resultados .pk-barra .pk-desplegable__disparo[aria-expanded="true"] {
  border-color: var(--pk-tinta);
  background-color: var(--pk-n0);
  box-shadow: 0 0 0 3px var(--pk-enlace);
}

/* «Más filtros»: botón secundario con la píldora roja del recuento. */
:where(body.pk-publico) .pk-resultados .pk-barra .pk-barra__todos {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: auto;
  min-height: 58px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid var(--pk-n200);
  border-radius: 10px;
  background: var(--pk-n0);
  color: var(--pk-tinta);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
:where(body.pk-publico) .pk-resultados .pk-barra .pk-barra__todos:hover {
  border-color: var(--pk-tinta);
  background: var(--pk-n0);
  color: var(--pk-tinta);
  transform: none;
  box-shadow: none;
}
:where(body.pk-publico) .pk-resultados .pk-barra .pk-barra__todos .pk-icono { width: 18px; height: 18px; }
:where(body.pk-publico) .pk-resultados .pk-cuenta-pip {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--pk-accion);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
:where(body.pk-publico) .pk-resultados .pk-cuenta-pip[hidden] { display: none; }

/* Paneles de los campos rápidos. */
:where(body.pk-publico) .pk-resultados .pk-barra .pk-panel {
  top: calc(100% + 8px);
  border-color: var(--pk-linea);
  border-radius: 14px;
  box-shadow: var(--pk-s3);
}
:where(body.pk-publico) .pk-resultados .pk-panel--operacion { min-width: 220px; }
:where(body.pk-publico) .pk-resultados .pk-panel--operacion .pk-operacion {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}
:where(body.pk-publico) .pk-resultados .pk-panel--operacion .pk-operacion__op {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--pk-n100);
  border-radius: 10px;
  background: var(--pk-n0);
  box-shadow: none;
  color: var(--pk-tinta);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}
:where(body.pk-publico) .pk-resultados .pk-panel--operacion .pk-operacion__op:hover { border-color: var(--pk-n300); }
:where(body.pk-publico) .pk-resultados .pk-panel--operacion .pk-operacion__op[aria-pressed="true"] {
  border-color: var(--pk-tinta);
  background: var(--pk-primario-suave);
  color: var(--pk-tinta);
  font-weight: 600;
}
/* Los últimos campos se abren hacia la izquierda: a 1200 px un panel de
   280 px alineado a la izquierda de «Baños» salía de la ventana. */
@media (min-width: 1024px) {
  :where(body.pk-publico) .pk-resultados .pk-barra .pk-desplegable--dormitorios > .pk-panel,
  :where(body.pk-publico) .pk-resultados .pk-barra .pk-desplegable--banos > .pk-panel {
    left: auto;
    right: 0;
  }
}

/* Desde 1200 px: una sola fila de campos de 52 px. */
@media (min-width: 1200px) {
  :where(body.pk-publico) .pk-resultados .pk-barra .pk-desplegable__disparo,
  :where(body.pk-publico) .pk-resultados .pk-barra .pk-barra__ubicacion-fija,
  :where(body.pk-publico) .pk-resultados .pk-barra .pk-barra__todos { min-height: 52px; }
}
/* 768-1199: la ubicación ocupa su fila y los demás van de tres en tres. */
@media (max-width: 1199.98px) {
  :where(body.pk-publico) .pk-resultados .pk-barra .pk-desplegable,
  :where(body.pk-publico) .pk-resultados .pk-barra .pk-barra__todos { flex: 1 1 calc((100% - 16px) / 3); }
  :where(body.pk-publico) .pk-resultados .pk-barra .pk-desplegable--ubicacion,
  :where(body.pk-publico) .pk-resultados .pk-barra .pk-barra__ubicacion-fija { flex: 1 1 100%; }
}

/* --- 4. Chips ------------------------------------------------------------ */
:where(body.pk-publico) .pk-resultados .pk-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: auto;
  margin: 0 0 20px;
  padding: 0;
}
:where(body.pk-publico) .pk-resultados .pk-chips[hidden] { display: none; }
:where(body.pk-publico) .pk-resultados .pk-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 6px 0 14px;
  border: 1px solid var(--pk-n200);
  border-radius: 999px;
  background: var(--pk-n50);
  color: var(--pk-tinta);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  /* 2026-11-10: con `nowrap` el chip de una búsqueda libre larga medía 342-395
     px y la página entera se desplazaba de lado a 320-390 (scrollWidth 359-417).
     Los chips cortos siguen en una línea; el largo parte dentro del chip. */
  white-space: normal;
  overflow-wrap: anywhere;
}
/* Sin `flex: none` el aspa era lo que encogía (14,6 px) al partir el texto. */
:where(body.pk-publico) .pk-resultados .pk-chip__x {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: transparent;
  color: var(--pk-apagado);
}
/* El aspa se ve de 20 px; su zona pulsable sigue siendo de 44. */
:where(body.pk-publico) .pk-resultados .pk-chip__x::before { width: 44px; height: 44px; }
:where(body.pk-publico) .pk-resultados .pk-chip__x .pk-icono { width: 12px; height: 12px; stroke-width: 2.4; }
:where(body.pk-publico) .pk-resultados .pk-chip__x:hover,
:where(body.pk-publico) .pk-resultados .pk-chip--fijo:hover .pk-chip__x {
  background: transparent;
  color: var(--pk-accion);
}
:where(body.pk-publico) .pk-resultados a.pk-chip--fijo:hover { border-color: var(--pk-tinta); color: var(--pk-tinta); }
:where(body.pk-publico) .pk-resultados .pk-chip--limpiar {
  padding: 0 4px;
  border-color: transparent;
  background: transparent;
  color: var(--pk-accion);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
:where(body.pk-publico) .pk-resultados .pk-chip--limpiar:hover {
  background: transparent;
  color: var(--pk-accion-hover);
}
/* «Editar filtros» sólo existe en el teléfono, donde la barra se pliega. */
:where(body.pk-publico) .pk-resultados .pk-chip--editar {
  display: none;
  gap: 6px;
  padding: 0 14px;
  background: var(--pk-n0);
  cursor: pointer;
}
:where(body.pk-publico) .pk-resultados .pk-chip--editar .pk-icono { width: 16px; height: 16px; }

/* --- 5. Fila de herramientas: recuento, orden y «Guardar búsqueda» ------- */
:where(body.pk-publico) .pk-resultados .pk-cabecera {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  min-height: 0;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}
:where(body.pk-publico) .pk-resultados .pk-cabecera__total {
  margin: 0;
  color: var(--pk-tinta);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}
:where(body.pk-publico) .pk-resultados .pk-cabecera__total[hidden] { display: none; }
:where(body.pk-publico) .pk-resultados .pk-cabecera__total strong { font-weight: 700; }
:where(body.pk-publico) .pk-resultados .pk-cabecera__acciones {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  width: auto;
  min-height: 0;
  margin: 0 0 0 auto;
}
:where(body.pk-publico) .pk-resultados .pk-orden {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  width: auto;
  color: var(--pk-txt-sec);
}
:where(body.pk-publico) .pk-resultados .pk-orden[hidden] { display: none; }
:where(body.pk-publico) .pk-resultados .pk-orden .pk-orden__etq {
  display: inline;
  flex: none;
  margin: 0;
  color: var(--pk-txt-sec);
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}
:where(body.pk-publico) .pk-resultados .pk-orden select {
  width: auto;
  min-width: 180px;
  height: 40px;
  min-height: 40px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--pk-n200);
  border-radius: 8px;
  background-color: var(--pk-n0);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d2338' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 10px center;
  background-repeat: no-repeat;
  background-size: 16px;
  color: var(--pk-tinta);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  appearance: none;
  cursor: pointer;
}
:where(body.pk-publico) .pk-resultados .pk-orden select:hover { border-color: var(--pk-tinta); }
:where(body.pk-publico) .pk-resultados .pk-cabecera .pk-cabecera__guardar {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
}
:where(body.pk-publico) .pk-resultados .pk-cabecera__guardar .pk-icono { width: 18px; height: 18px; }

/* --- 6. Posiciones de pago, como tarjetas destacadas -------------------- */
/* Sigue siendo una sección propia y rotulada fuera de `.pk-tarjeta` (las
   pruebas cuentan tarjetas) y sólo con inventario promocionado. */
:where(body.pk-publico) .pk-resultados .pk-posiciones {
  width: auto;
  margin: 0 0 32px;
}
:where(body.pk-publico) .pk-resultados .pk-posiciones__rotulo {
  display: block;
  width: auto;
  height: auto;
  margin: 0 0 12px;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--pk-txt-sec);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.3;
  text-transform: uppercase;
}
:where(body.pk-publico) .pk-resultados .pk-posiciones__pista {
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  overflow: visible;
  padding: 0;
}
/* Each strip item is the standard card (`.pk-tarjeta.pk-tarjeta--posicion`), styled
   by propeka.css like every other listing card (owner 2026-11-04). */

/* --- 7. Retícula: 3 / 2 / 1 columnas, 12 por página --------------------- */
:where(body.pk-publico) .pk-resultados .pk-split { display: block; }
:where(body.pk-publico) .pk-resultados .pk-results-layout {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
}
:where(body.pk-publico) .pk-resultados .pk-results-layout [data-pk-listado] { width: 100%; min-width: 0; }
:where(body.pk-publico) .pk-resultados .pk-results-rail { display: none; }

:where(body.pk-publico) .pk-resultados .pk-rejilla {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
  margin: 0;
}

/* Anuncios en línea: una fila entera en el límite de fila, sin márgenes
   propios (los pone el hueco de la retícula), con el mismo radio que las
   tarjetas. Conservan identificador, formato y alto reservado. */
:where(body.pk-publico) .pk-resultados .pk-rejilla > .pk-ad-slot {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  margin: 0;
}
:where(body.pk-publico) .pk-resultados .pk-rejilla > .pk-ad-slot[data-pk-ad-state="unfilled"],
:where(body.pk-publico) .pk-resultados .pk-rejilla > .pk-ad-slot[data-pk-ad-state="vacio"] { display: none; }
:where(body.pk-publico) .pk-resultados .pk-rejilla > .pk-ad-slot .pk-ad-slot__frame { border-radius: 14px; }

:where(body.pk-publico) .pk-resultados .pk-tarjeta__costos {
  margin: 0;
  color: var(--pk-txt-sec);
  font-size: 0.8125rem;
}
:where(body.pk-publico) .pk-resultados .pk-tarjeta__costos dt,
:where(body.pk-publico) .pk-resultados .pk-tarjeta__costos dd { display: inline; margin: 0; }

/* La publicación destacada (`.pk-promo`) ocupa UNA celda con la anatomía de
   la tarjeta; su rótulo «Publicación destacada» va sobre la foto. */
:where(body.pk-publico) .pk-resultados .pk-rejilla > .pk-tarjeta.pk-promo {
  display: flex;
  flex-direction: column;
  grid-column: auto;
  grid-template: none;
  border-color: var(--pk-linea);
  box-shadow: var(--pk-s1);
}
:where(body.pk-publico) .pk-resultados .pk-rejilla > .pk-tarjeta.pk-promo:hover {
  border-color: var(--pk-n200);
  box-shadow: var(--pk-s3);
}
/* 2026-11-10: la sombra de reposo de arriba (0,4,0) tapaba el anillo de
   `.pk-tarjeta:focus-within` (0,2,0): el enlace del título, que quita su
   contorno, quedaba sin foco visible al tabular. Va tras el :hover. */
:where(body.pk-publico) .pk-resultados .pk-rejilla > .pk-tarjeta.pk-promo:focus-within {
  box-shadow: var(--pk-s3), 0 0 0 3px var(--pk-enlace);
}
:where(body.pk-publico) .pk-resultados .pk-rejilla > .pk-tarjeta.pk-promo .pk-tarjeta__medio {
  display: block;
  flex: none;
  min-height: 0;
  height: auto;
  border-radius: 0;
}
:where(body.pk-publico) .pk-resultados .pk-rejilla > .pk-tarjeta.pk-promo .pk-tarjeta__foto {
  flex: none;
  min-height: 0;
  aspect-ratio: 4 / 3;
}
:where(body.pk-publico) .pk-resultados .pk-rejilla > .pk-tarjeta.pk-promo .pk-tarjeta__img,
:where(body.pk-publico) .pk-resultados .pk-rejilla > .pk-tarjeta.pk-promo .pk-sinimg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
}
:where(body.pk-publico) .pk-resultados .pk-rejilla > .pk-tarjeta.pk-promo .pk-promo__tiras { display: none; }
/* PGT-55 open items 2026-11-19: promoted card rows. The body took 18 px padding and 8 px gaps against 16/18 px and 6 px on every public card (propeka-paridad.css), so its status line sat 2 px, price row 4 px, facts 6 px, title 8 px and address 10 px lower than its neighbours, and a phone promo card was 14 px taller than the same listing as a plain card. Same spacing as the public card. */
:where(body.pk-publico) .pk-resultados .pk-rejilla > .pk-tarjeta.pk-promo .pk-tarjeta__cuerpo {
  justify-content: flex-start;
  gap: 6px; /* PGT-55 open items 2026-11-19: promoted card rows (was 8px) */
  padding: 16px 18px; /* PGT-55 open items 2026-11-19: promoted card rows (was 18px) */
}
/* PGT-55 open items 2026-11-20 (review): promoted card rows. A rule here fixed the promoted price at 1.375rem (22 px), while every public card sets 1.5rem (24 px) and 1.375rem only in a card up to 335 px wide (propeka-paridad.css). On wider cards (phones, 768, 1440) the promoted price was 2 px smaller than its neighbour's and its baseline 0.9 px higher. The rule was removed, so the promoted price follows the public card. */
/* PGT-55 last items 2026-11-20: results-17 (promoted card price). A rule here set a promoted card's "Precio pendiente de confirmación" to 1rem, but it never applied: propeka-paridad.css sets 15px / 18px on the same price with a stronger selector (7 classes against 6), measured 15px at 320-1440 although this file loads later. The rule was removed; the promoted price follows the public card. */
:where(body.pk-publico) .pk-resultados .pk-rejilla > .pk-tarjeta.pk-promo .pk-tarjeta__ubic { font-size: 14px; }
:where(body.pk-publico) .pk-resultados .pk-rejilla > .pk-tarjeta.pk-promo .pk-datos {
  justify-content: flex-start;
  max-width: none;
}
:where(body.pk-publico) .pk-resultados .pk-rejilla > .pk-tarjeta.pk-promo .pk-anunciante { justify-content: flex-start; }
:where(body.pk-publico) .pk-resultados .pk-rejilla > .pk-tarjeta.pk-promo .pk-promo__tira {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 76px);
  min-height: 24px;
  margin: 0;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  background: var(--pk-primario);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1;
  text-transform: none;
  pointer-events: none;
}
:where(body.pk-publico) .pk-resultados .pk-rejilla > .pk-tarjeta.pk-promo .pk-promo__tira .pk-icono { width: 14px; height: 14px; }
:where(body.pk-publico) .pk-resultados .pk-rejilla > .pk-tarjeta.pk-promo .pk-tarjeta__badges {
  top: auto;
  bottom: 12px;
}

/* --- 8. Paginación ------------------------------------------------------- */
:where(body.pk-publico) .pk-resultados .pk-paginacion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 0;
  min-height: 0;
  margin-top: 36px;
}
:where(body.pk-publico) .pk-resultados .pk-paginacion > a,
:where(body.pk-publico) .pk-resultados .pk-paginacion > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  margin: 0 3px;
  padding: 0 8px;
  border: 1px solid var(--pk-n200);
  border-radius: 10px;
  background: var(--pk-n0);
  color: var(--pk-tinta);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}
:where(body.pk-publico) .pk-resultados .pk-paginacion > a:hover {
  border-color: var(--pk-tinta);
  background: var(--pk-n50);
  color: var(--pk-tinta);
}
:where(body.pk-publico) .pk-resultados .pk-paginacion > [aria-current="page"] {
  border-color: var(--pk-tinta);
  background: var(--pk-tinta);
  color: var(--pk-n0);
}
:where(body.pk-publico) .pk-resultados .pk-paginacion > .pk-pag-hueco {
  min-width: 24px;
  border: 0;
  background: transparent;
}
:where(body.pk-publico) .pk-resultados .pk-paginacion > .pk-paginacion__off {
  border-color: var(--pk-n100);
  color: var(--pk-n300);
  cursor: default;
}
:where(body.pk-publico) .pk-resultados .pk-paginacion__flecha .pk-icono { width: 18px; height: 18px; }
:where(body.pk-publico) .pk-resultados .pk-paginacion__flecha--prev .pk-icono { transform: scaleX(-1); }

/* --- 9. Estados vacíos --------------------------------------------------- */
:where(body.pk-publico) .pk-resultados .pk-vacio {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: none;
  margin: 0;
  padding: 56px 24px;
  border: 1px dashed var(--pk-n300);
  border-radius: 16px;
  background: var(--pk-n25);
  text-align: center;
}
:where(body.pk-publico) .pk-resultados .pk-vacio__ic {
  width: 48px;
  height: 48px;
  margin: 0 0 4px;
  border-radius: 50%;
  background: var(--pk-n50);
  color: var(--pk-tinta);
}
:where(body.pk-publico) .pk-resultados .pk-vacio__ic .pk-icono { width: 22px; height: 22px; }
:where(body.pk-publico) .pk-resultados .pk-vacio .pk-h2 {
  max-width: 640px;
  margin: 0;
  color: var(--pk-tinta);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.35;
}
:where(body.pk-publico) .pk-resultados .pk-vacio .pk-sub {
  max-width: 520px;
  margin: 0;
  color: var(--pk-apagado);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}
:where(body.pk-publico) .pk-resultados .pk-vacio__acciones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}
:where(body.pk-publico) .pk-resultados .pk-vacio__sug {
  width: 100%;
  max-width: 520px;
  margin-top: 20px;
  text-align: left;
}
:where(body.pk-publico) .pk-resultados .pk-vacio__sug h3 {
  margin: 0 0 8px;
  color: var(--pk-txt-sec);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
:where(body.pk-publico) .pk-resultados .pk-vacio__sug .pk-pares { margin: 0; padding: 0; list-style: none; }
:where(body.pk-publico) .pk-resultados .pk-vacio__sug .pk-pares li { padding-block: 6px; border-bottom: 1px solid var(--pk-n100); }
:where(body.pk-publico) .pk-resultados .pk-vacio__sug .pk-pares li:last-child { border-bottom: 0; }
:where(body.pk-publico) .pk-resultados .pk-vacio__sug a.pk-par__k {
  color: var(--pk-enlace);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
:where(body.pk-publico) .pk-resultados .pk-vacio__sug a.pk-par__k:hover {
  color: var(--pk-primario-osc);
  text-decoration: underline;
  text-underline-offset: 3px;
}
:where(body.pk-publico) .pk-resultados .pk-vacio__sug .pk-par__v { color: var(--pk-apagado); font-size: 13px; }

/* --- 10. Búsquedas relacionadas (sobre el pie) --------------------------- */
:where(body.pk-publico) .pk-related--resultados {
  padding-block: 48px 40px;
  border-top: 1px solid var(--pk-linea);
  background: var(--pk-n0);
}
:where(body.pk-publico) .pk-related--resultados .pk-related__title { margin: 0 0 24px; }
:where(body.pk-publico) .pk-related__groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px 40px;
}
:where(body.pk-publico) .pk-related__heading {
  margin: 0 0 12px;
  color: var(--pk-tinta);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}
:where(body.pk-publico) .pk-related__links {
  margin: 0;
  padding: 0;
  list-style: none;
}
:where(body.pk-publico) .pk-related__links li {
  margin: 0;
  padding: 0;
  break-inside: avoid;
}
:where(body.pk-publico) .pk-related__links a {
  display: inline-block;
  padding-block: 6px;
  color: var(--pk-enlace);
  font-size: 15px;
  line-height: 1.6;
  text-decoration: none;
}
:where(body.pk-publico) .pk-related__links a:hover,
:where(body.pk-publico) .pk-related__links a:focus-visible {
  color: var(--pk-primario-osc);
  text-decoration: underline;
  text-underline-offset: 3px;
}
:where(body.pk-publico) .pk-related__links--columns {
  columns: 4 180px;
  column-gap: 32px;
}

/* --- 11. Hoja «Más filtros» y paneles ------------------------------------ */
:where(body.pk-publico) .pk-resultados .pk-hoja__cab {
  min-height: 56px;
  padding: 8px 12px 8px 24px;
}
:where(body.pk-publico) .pk-resultados .pk-hoja__cab .pk-h3 {
  margin: 0;
  color: var(--pk-tinta);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.2;
}
:where(body.pk-publico) .pk-resultados .pk-hoja__cuerpo { padding: 16px 24px 32px; }
:where(body.pk-publico) .pk-resultados .pk-hoja__pie { padding-inline: 24px; }
:where(body.pk-publico) .pk-resultados .pk-hoja .pk-seccion__t {
  margin: 0 0 12px;
  color: var(--pk-txt-sec);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
:where(body.pk-publico) .pk-resultados .pk-hoja .pk-seccion__n {
  background: var(--pk-accion);
  color: #fff;
  letter-spacing: 0;
}

/* Opciones como baldosas (propeka.com `.pk-feature`). */
:where(body.pk-publico) .pk-resultados :is(.pk-hoja, .pk-panel) .pk-opciones {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 6px;
}
:where(body.pk-publico) .pk-resultados :is(.pk-hoja, .pk-panel) .pk-opcion {
  gap: 8px;
  min-height: 38px;
  padding: 5px 10px;
  border: 1px solid var(--pk-n100);
  border-radius: 10px;
  background: var(--pk-n0);
  color: var(--pk-tinta);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}
:where(body.pk-publico) .pk-resultados :is(.pk-hoja, .pk-panel) .pk-opcion:hover { border-color: var(--pk-n300); background: var(--pk-n0); }
:where(body.pk-publico) .pk-resultados :is(.pk-hoja, .pk-panel) .pk-opcion:has(input:checked) {
  border-color: var(--pk-tinta);
  background: var(--pk-primario-suave);
}
:where(body.pk-publico) .pk-resultados :is(.pk-hoja, .pk-panel) .pk-opcion input { accent-color: var(--pk-accion); }
:where(body.pk-publico) .pk-resultados :is(.pk-hoja, .pk-panel) .pk-opcion__n { color: var(--pk-apagado); font-size: 13px; }

:where(body.pk-publico) .pk-resultados .pk-pildora {
  min-height: 40px;
  padding: 0 16px;
  border-color: var(--pk-n200);
  border-radius: 999px;
  color: var(--pk-tinta);
  font-size: 14px;
  font-weight: 600;
}
:where(body.pk-publico) .pk-resultados .pk-pildora:hover { border-color: var(--pk-tinta); }
:where(body.pk-publico) .pk-resultados .pk-pildora[aria-pressed="true"] {
  border-color: var(--pk-tinta);
  background: var(--pk-tinta);
  color: var(--pk-n0);
}

/* «Limpiar» es un enlace de texto; «Mostrar N propiedades», la primaria. */
:where(body.pk-publico) .pk-resultados .pk-hoja__pie .pk-hoja__limpiar,
:where(body.pk-publico) .pk-resultados .pk-panel__pie .js-pk-limpiar-grupo {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--pk-primario-osc);
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
:where(body.pk-publico) .pk-resultados .pk-hoja__pie .pk-hoja__limpiar:hover,
:where(body.pk-publico) .pk-resultados .pk-panel__pie .js-pk-limpiar-grupo:hover {
  background: none;
  color: var(--pk-accion-hover);
}

/* Escritorio y tableta: «Más filtros» es un diálogo centrado. */
@media (min-width: 768px) {
  :where(body.pk-publico) .pk-resultados .pk-hoja {
    inset: 36px auto auto 50%;
    width: min(720px, calc(100vw - 72px));
    height: calc(100dvh - 72px);
    overflow: hidden;
    border-radius: 14px;
    box-shadow: var(--pk-s3), 0 16px 48px rgba(13,35,56,.18);
    transform: translate(-50%, calc(100% + 72px));
  }
  body.admin-bar .pk-resultados .pk-hoja {
    top: 36px;
    height: calc(100dvh - 72px);
  }
  :where(body.pk-publico) .pk-resultados .pk-hoja--abierta { transform: translate(-50%, 0); }
}

/* --- 12. Mapa ------------------------------------------------------------ */
@media (min-width: 1025px) {
  :where(body.pk-publico) .pk-resultados .pk-split--mapa {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    gap: 16px;
    width: auto;
    margin: 0;
  }
  :where(body.pk-publico) .pk-resultados .pk-split--mapa .pk-mapa {
    position: relative;
    top: auto;
    display: block;
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: calc(100dvh - 240px);
    min-height: 560px;
    border: 1px solid var(--pk-linea);
    border-radius: 14px;
    box-shadow: var(--pk-s1);
  }
  :where(body.pk-publico) .pk-resultados .pk-split--mapa .pk-results-layout {
    display: block;
    grid-column: 2;
    grid-row: 1;
    width: 160px;
    margin: 0;
  }
  :where(body.pk-publico) .pk-resultados .pk-split--mapa [data-pk-listado] { display: none; }
  :where(body.pk-publico) .pk-resultados .pk-split--mapa .pk-results-rail {
    display: flex;
    width: 160px;
    margin: 0;
  }
  /* Sin anuncio servido, el mapa ocupa todo el marco. */
  :where(body.pk-publico) .pk-resultados .pk-split--mapa .pk-results-layout:has(> .pk-results-rail[data-pk-ad-state="vacio"]) { display: none; }
  :where(body.pk-publico) .pk-resultados .pk-split--mapa:has(.pk-results-rail[data-pk-ad-state="vacio"]) { grid-template-columns: minmax(0, 1fr); }
}
/* Hasta 1200 px el anuncio del carril no se sirve (propeka-ads.css): el mapa
   ocupa todo el marco. */
@media (min-width: 1025px) and (max-width: 1200px) {
  :where(body.pk-publico) .pk-resultados .pk-split--mapa { grid-template-columns: minmax(0, 1fr); }
  :where(body.pk-publico) .pk-resultados .pk-split--mapa .pk-results-layout { display: none; }
}

/* Píldoras de precio y globo con la tipografía de la tarjeta. */
:where(body.pk-publico) .pk-resultados .pk-pin__precio {
  color: var(--pk-tinta);
  font-family: var(--pk-fuente);
  font-weight: 700;
}
:where(body.pk-publico) .pk-resultados .pk-pin:hover .pk-pin__precio,
:where(body.pk-publico) .pk-resultados .pk-pin:focus-visible .pk-pin__precio,
:where(body.pk-publico) .pk-resultados .pk-pin.leaflet-marker-icon:focus .pk-pin__precio {
  border-color: var(--pk-accion);
  background: var(--pk-accion);
  color: var(--pk-n0);
}
:where(body.pk-publico) .pk-resultados .leaflet-container .leaflet-popup-content-wrapper {
  overflow: hidden;
  border-radius: 14px;
}
:where(body.pk-publico) .pk-resultados .leaflet-container .leaflet-popup-content { font-family: var(--pk-fuente); }
:where(body.pk-publico) .pk-resultados .leaflet-container .pk-globo__foto img { aspect-ratio: 4 / 3; }
:where(body.pk-publico) .pk-resultados .leaflet-container .pk-globo .leaflet-popup-content > strong {
  color: var(--pk-tinta);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
:where(body.pk-publico) .pk-resultados .leaflet-container .pk-globo .leaflet-popup-content > a:not(.pk-globo__foto):not(.pk-globo__ver) {
  color: var(--pk-tinta);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}
:where(body.pk-publico) .pk-resultados .leaflet-container .pk-globo__datos { font-size: 13px; }
:where(body.pk-publico) .pk-resultados .leaflet-container .pk-globo .pk-globo__ver {
  display: inline-block;
  margin: 8px 16px 0;
  color: var(--pk-primario-osc);
  font-size: 14px;
  font-weight: 700;
}
:where(body.pk-publico) .pk-resultados .leaflet-container .leaflet-bar {
  overflow: hidden;
  border-radius: 10px;
}
:where(body.pk-publico) .pk-resultados .leaflet-container .leaflet-bar a {
  width: 40px;
  height: 40px;
  color: var(--pk-tinta);
  line-height: 40px;
}

/* --- 13. Tableta --------------------------------------------------------- */
@media (min-width: 768px) {
  :where(body.pk-publico) .pk-resultados .pk-movil-barra { display: none; }
}
@media (max-width: 1023.98px) {
  :where(body.pk-publico) .pk-resultados .pk-rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :where(body.pk-publico) .pk-resultados .pk-posiciones__pista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --- 14. Teléfono -------------------------------------------------------- */
/* Orden: ruta, H1, chips con «Editar filtros», herramientas y una columna de
   tarjetas. La barra compacta fija se queda, con botones secundarios. */
@media (max-width: 767.98px) {
  :where(body.pk-publico) .pk-resultados { padding-bottom: 48px; }
  :where(body.pk-publico) .pk-resultados .pk-resultados__cabeza { padding-top: 20px; padding-bottom: 12px; }
  :where(body.pk-publico) .pk-resultados .pk-migas { font-size: 12px; }
  :where(body.pk-publico) .pk-resultados .pk-vista { display: none; }

  :where(body.pk-publico) .pk-resultados .pk-barra { display: none; }
  :where(body.pk-publico) .pk-resultados .pk-movil-barra {
    position: sticky;
    top: 0;
    z-index: 39;
    display: flex;
    gap: 8px;
    min-height: 60px;
    margin-bottom: 16px;
    padding: 8px var(--pk-pad);
    border-bottom: 1px solid var(--pk-n100);
    background: var(--pk-n0);
    backdrop-filter: none;
  }
  :where(body.pk-publico) .pk-resultados .pk-movil-barra .pk-btn {
    flex: 1 1 0;
    gap: 6px;
    min-width: 0;
    min-height: 44px;
    padding: 0 10px;
    border: 1px solid var(--pk-n200);
    border-radius: 10px;
    background: var(--pk-n0);
    box-shadow: none;
    color: var(--pk-tinta);
    font-size: 14px;
    font-weight: 700;
  }
  :where(body.pk-publico) .pk-resultados .pk-movil-barra .pk-btn:hover { border-color: var(--pk-tinta); transform: none; }
  :where(body.pk-publico) .pk-resultados .pk-movil-barra .pk-btn .pk-icono { width: 18px; height: 18px; }
  :where(body.pk-publico) .pk-resultados .pk-movil-barra .js-pk-mapa[aria-pressed="true"] {
    border-color: var(--pk-tinta);
    background: var(--pk-tinta);
    color: var(--pk-n0);
  }
  :where(body.pk-publico) .pk-resultados .pk-movil-barra .pk-btn__txt { display: inline; }

  :where(body.pk-publico) .pk-resultados .pk-chip--editar { display: inline-flex; }
  :where(body.pk-publico) .pk-resultados .pk-chips { margin-bottom: 16px; }

  :where(body.pk-publico) .pk-resultados .pk-cabecera { gap: 10px; }
  :where(body.pk-publico) .pk-resultados .pk-cabecera__total { flex-basis: 100%; }
  :where(body.pk-publico) .pk-resultados .pk-cabecera__acciones { flex: 1 1 100%; margin-left: 0; }
  :where(body.pk-publico) .pk-resultados .pk-orden { flex: 1 1 auto; }
  :where(body.pk-publico) .pk-resultados .pk-orden select { flex: 1 1 auto; width: 100%; min-width: 0; font-size: 16px; }
  /* «Guardar búsqueda» ya está en la barra compacta fija. */
  :where(body.pk-publico) .pk-resultados .pk-cabecera .pk-cabecera__guardar { display: none; }

  /* Las posiciones de pago se deslizan, con la siguiente asomando. */
  :where(body.pk-publico) .pk-resultados .pk-posiciones__pista {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    gap: 14px;
    margin-inline: calc(var(--pk-pad) * -1);
    padding: 4px var(--pk-pad) 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: var(--pk-pad);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  :where(body.pk-publico) .pk-resultados .pk-posiciones__pista::-webkit-scrollbar { display: none; }
  :where(body.pk-publico) .pk-resultados .pk-tarjeta--posicion { scroll-snap-align: start; }

  :where(body.pk-publico) .pk-resultados .pk-rejilla { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  :where(body.pk-publico) .pk-resultados .pk-rejilla > .pk-tarjeta.pk-promo .pk-tarjeta__foto { aspect-ratio: 16 / 10; }

  :where(body.pk-publico) .pk-resultados .pk-vacio { padding: 40px 20px; }
  :where(body.pk-publico) .pk-resultados .pk-vacio__acciones { width: 100%; }
  :where(body.pk-publico) .pk-resultados .pk-vacio__acciones .pk-btn { flex: 1 1 100%; }

  :where(body.pk-publico) .pk-resultados .pk-paginacion { justify-content: center; }

  /* «Más filtros» a pantalla completa; las baldosas van de dos en dos cuando
     caben (desde ~358 px). 2026-11-10: a 320 dos columnas dejaban baldosas de
     141 px y «Apartamentos» se pintaba 19 px sobre su recuento «28»; por
     debajo de 160 px por baldosa van en una columna. */
  :where(body.pk-publico) .pk-resultados .pk-hoja__cab { padding-left: 16px; }
  :where(body.pk-publico) .pk-resultados .pk-hoja__cuerpo { padding: 16px 16px 32px; }
  :where(body.pk-publico) .pk-resultados .pk-hoja__pie { padding-inline: 16px; }
  :where(body.pk-publico) .pk-resultados :is(.pk-hoja, .pk-panel) .pk-opciones { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

  /* El mapa va de borde a borde. */
  :where(body.pk-publico) .pk-resultados .pk-split--mapa {
    display: block;
    width: calc(100% + (var(--pk-pad) * 2));
    margin-left: calc(var(--pk-pad) * -1);
  }
  :where(body.pk-publico) .pk-resultados .pk-split--mapa .pk-results-layout { display: none; }
  :where(body.pk-publico) .pk-resultados .pk-split--mapa .pk-mapa {
    position: relative;
    top: auto;
    display: block;
    width: 100%;
    height: calc(100dvh - 180px);
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  body.admin-bar .pk-resultados .pk-split--mapa .pk-mapa { height: calc(100dvh - 226px); }
}

@media (max-width: 600px) {
  :where(body.pk-publico) .pk-related--resultados { padding-block: 36px 28px; }
  :where(body.pk-publico) .pk-related__links--columns {
    columns: 2 140px;
    column-gap: 20px;
  }
}

/* PGT-55 open items 2026-11-19: results-14. A max-width 380px block stood here: two rules for .pk-movil-barra .js-pk-guardar-busqueda, which no longer exists (the save action moved to the count line, results-20), and 6 px padding with 13 px type for .pk-movil-barra .pk-btn, which the results-20 phone bar rule (same weight, later) overrides at every phone width (measured 14 px and 14 px at 320-380). It did nothing and was removed. */

@media (prefers-reduced-motion: reduce) {
}

/* =========================================================================
   PGT-55 (2026-11-16): design, UX and UI pass with control-level inspection,
   same method as propeka.com PKUSW-85. One block per finding id.
   ========================================================================= */

/* ---- PGT-55 results ---- */
/* PGT-55 results-01: a paid strip that holds a single card showed it at the carousel width (84 %), 58 px short of the right gutter and narrower than every card under it. Alone, the card takes the whole row. Phones only: the desktop and tablet case (one card in a three- or two-track row) needs the template. */
@media (max-width: 767.98px) {
  :where(body.pk-publico) .pk-resultados .pk-posiciones__pista:has(> .pk-tarjeta:only-child) {
    grid-auto-columns: 100%;
  }
}

/* PGT-55 results-02: tablets (768-1023) put three paid cards in two columns, so the third sat alone beside an empty cell. With three cards the strip becomes the same snap row as on phones: two cards and the edge of the third. The cards keep 334 px or more (/ 2.1), the width at which "Publicado por" and the publisher name still fit on one line. One or two cards keep the two-column grid. A mouse has no swipe, so fine pointers get a thin scrollbar. */
@media (min-width: 768px) and (max-width: 1023.98px) {
  :where(body.pk-publico) .pk-resultados .pk-posiciones__pista:has(> .pk-tarjeta:nth-child(3)) {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 24px) / 2.1);
    margin-inline: calc(var(--pk-pad) * -1);
    padding: 4px var(--pk-pad) 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: var(--pk-pad);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  :where(body.pk-publico) .pk-resultados .pk-posiciones__pista:has(> .pk-tarjeta:nth-child(3))::-webkit-scrollbar { display: none; }
  :where(body.pk-publico) .pk-resultados .pk-posiciones__pista:has(> .pk-tarjeta:nth-child(3)) > .pk-tarjeta { scroll-snap-align: start; }
}
@media (min-width: 768px) and (max-width: 1023.98px) and (hover: hover) and (pointer: fine) {
  :where(body.pk-publico) .pk-resultados .pk-posiciones__pista:has(> .pk-tarjeta:nth-child(3)) {
    scrollbar-color: var(--pk-n300) transparent;
    scrollbar-width: thin;
  }
}

/* PGT-55 results-03: related searches as on propeka.com (PKUSW-85 S4/L2, S5/L3, S6/L7, R12). Links in ink at 500 (the red hover rule above is unchanged); a group long enough for columns takes the whole row and the short group beside it follows the same column grid, so no half-empty cell is left; phones get a two-column grid whose rows pair, with 44 px rows. */
:where(body.pk-publico) .pk-related__links a {
  color: var(--pk-tinta);
  font-weight: 500;
}
:where(body.pk-publico) .pk-related__groups:has(.pk-related__links--columns) > .pk-related__group { grid-column: 1 / -1; }
:where(body.pk-publico) .pk-related__groups:has(.pk-related__links--columns) .pk-related__links:not(.pk-related__links--columns) {
  columns: 4 180px;
  column-gap: 32px;
}
@media (max-width: 767.98px) {
  :where(body.pk-publico) .pk-related__links a {
    display: block;
    padding-block: 10px;
  }
  :where(body.pk-publico) .pk-related__links--columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
    columns: auto;
  }
}

/* PGT-55 results-04: the filter panels and the sheet used the browser's own checkbox and radio (grey #767676 box, 2 px corners). Drawn in the site's shapes and colours, as on propeka.com (PKUSW-85c R8): 18 px, 1.5 px border, 5 px corners (round for radios), action red with a white tick or dot when chosen. Forced-colours mode keeps the system control. */
:where(body.pk-publico) .pk-resultados :is(.pk-hoja, .pk-panel) .pk-opcion input:is([type="checkbox"], [type="radio"]) {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--pk-n500);
  border-radius: 5px;
  background: var(--pk-n0) center / 12px 12px no-repeat;
  cursor: pointer;
  transition: background-color var(--pk-t), border-color var(--pk-t);
}
:where(body.pk-publico) .pk-resultados :is(.pk-hoja, .pk-panel) .pk-opcion input[type="radio"] { border-radius: 50%; }
:where(body.pk-publico) .pk-resultados :is(.pk-hoja, .pk-panel) .pk-opcion input:is([type="checkbox"], [type="radio"]):checked {
  border-color: var(--pk-accion);
  background-color: var(--pk-accion);
}
:where(body.pk-publico) .pk-resultados :is(.pk-hoja, .pk-panel) .pk-opcion input[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2.5 6.2 2.4 2.4 4.6-5'/%3E%3C/svg%3E");
}
:where(body.pk-publico) .pk-resultados :is(.pk-hoja, .pk-panel) .pk-opcion input[type="radio"]:checked { box-shadow: inset 0 0 0 3.5px var(--pk-n0); }
:where(body.pk-publico) .pk-resultados :is(.pk-hoja, .pk-panel) .pk-opcion input:is([type="checkbox"], [type="radio"]):focus-visible {
  outline: 3px solid var(--pk-enlace);
  outline-offset: 2px;
}
:where(body.pk-publico) .pk-resultados :is(.pk-hoja, .pk-panel) .pk-opcion input:disabled { cursor: default; }
@media (forced-colors: active) {
  :where(body.pk-publico) .pk-resultados :is(.pk-hoja, .pk-panel) .pk-opcion input:is([type="checkbox"], [type="radio"]) {
    -webkit-appearance: auto;
    appearance: auto;
  }
}
@media (max-width: 767.98px) {
  :where(body.pk-publico) .pk-resultados .pk-hoja .pk-opcion { min-height: 44px; }
}

/* PGT-55 results-05: pagination as on propeka.com (PKUSW-85 S12, R9). The arrow that leads nowhere is not shown (the markup stays: a render test pins it), touch targets are 44 px, the gap is three drawn dots on the digits' centre line and the arrow uses the 2 px stroke of the other chevrons. */
:where(body.pk-publico) .pk-resultados .pk-paginacion > .pk-paginacion__off { display: none; }
:where(body.pk-publico) .pk-resultados .pk-paginacion > .pk-pag-hueco { font-size: 0; }
:where(body.pk-publico) .pk-resultados .pk-paginacion > .pk-pag-hueco::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: -7px 0 0 currentColor, 7px 0 0 currentColor;
}
:where(body.pk-publico) .pk-resultados .pk-paginacion__flecha .pk-icono { stroke-width: 2; }
@media (pointer: coarse), (max-width: 767.98px) {
  :where(body.pk-publico) .pk-resultados .pk-paginacion > a,
  :where(body.pk-publico) .pk-resultados .pk-paginacion > span {
    min-width: 44px;
    height: 44px;
  }
}

/* PGT-55 results-07: tablets showed the count alone on one row and the tools right-aligned on a second, half-empty row. From 768 to 1023 the count keeps its noun ("36 propiedades en venta") and the rest of the sentence is read by screen readers only; below 900 the sort caption too (the select keeps its label), so count, sort and save share one row on every landing. Phones balance the two-line count (no orphan word). */
@media (min-width: 768px) and (max-width: 1023.98px) {
  :where(body.pk-publico) .pk-resultados .pk-cabecera .pk-cabecera__verbo {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
  }
}
@media (min-width: 768px) and (max-width: 899.98px) {
  :where(body.pk-publico) .pk-resultados .pk-orden .pk-orden__etq {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
  }
}
@media (max-width: 767.98px) {
  :where(body.pk-publico) .pk-resultados .pk-cabecera__total { text-wrap: balance; }
}

/* PGT-55 results-08: at 1024-1199 the refine bar took three rows (208 px): location alone, then two rows of three. Two aligned rows instead (142 px) on a 12-column grid: location, operation, type and price, then bedrooms, bathrooms and more filters. A landing that fixes operation or type gives the remaining field the freed columns; a landing that fixes both (five controls) keeps the one-row desktop layout. */
@media (min-width: 1024px) and (max-width: 1199.98px) {
  :where(body.pk-publico) .pk-resultados .pk-barra__interior:has(.pk-desplegable--operacion, .pk-desplegable--tipo) {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  :where(body.pk-publico) .pk-resultados .pk-barra__interior:has(.pk-desplegable--operacion, .pk-desplegable--tipo) :is(.pk-desplegable, .pk-barra__ubicacion-fija, .pk-barra__todos) { grid-column: span 4; }
  :where(body.pk-publico) .pk-resultados .pk-barra__interior:has(.pk-desplegable--operacion):has(.pk-desplegable--tipo) :is(.pk-desplegable--operacion, .pk-desplegable--tipo) { grid-column: span 2; }

  :where(body.pk-publico) .pk-resultados .pk-barra__interior:not(:has(.pk-desplegable--operacion, .pk-desplegable--tipo)) .pk-desplegable { flex: 1 1 0; }
  :where(body.pk-publico) .pk-resultados .pk-barra__interior:not(:has(.pk-desplegable--operacion, .pk-desplegable--tipo)) :is(.pk-desplegable--ubicacion, .pk-barra__ubicacion-fija, .pk-desplegable--precio) { flex: 1.5 1 0; }
  :where(body.pk-publico) .pk-resultados .pk-barra__interior:not(:has(.pk-desplegable--operacion, .pk-desplegable--tipo)) :is(.pk-desplegable--dormitorios, .pk-desplegable--banos) { flex: .85 1 0; }
  :where(body.pk-publico) .pk-resultados .pk-barra__interior:not(:has(.pk-desplegable--operacion, .pk-desplegable--tipo)) .pk-barra__todos { flex: 0 0 auto; }
}
/* PGT-55 results-08: first widths of the one-row bar. From 1200 to 1247 the frame is still narrower than 1200 px and the placeholder "Zona o municipio" lost its last letters ("Zona o municip…", 129 px of text in 126). 2 px less side padding and gap give it 132 px; the bar keeps one row. */
@media (min-width: 1200px) and (max-width: 1247.98px) {
  :where(body.pk-publico) .pk-resultados .pk-barra .pk-desplegable__disparo,
  :where(body.pk-publico) .pk-resultados .pk-barra .pk-barra__ubicacion-fija {
    gap: 8px;
    padding-inline: 12px;
  }
}

/* PGT-55 results-09: on zone landings the fixed location was drawn exactly like the dropdowns beside it (white, bordered) but does nothing on click. It now reads as a set value, not a control: soft fill, no frame. */
:where(body.pk-publico) .pk-resultados .pk-barra .pk-barra__ubicacion-fija {
  border-color: transparent;
  background: var(--pk-n50);
}

/* PGT-55 results-11: empty-results panel as on propeka.com (PKUSW-85 ES-07..ES-10, R10): white card with a solid frame, soft red disc with a 24 px icon, shorter on wide screens, compact on phones with stacked buttons, and no list/map switch when there is nothing to switch. */
:where(body.pk-publico) .pk-resultados .pk-vacio {
  border-style: solid;
  border-color: var(--pk-n200);
  background: var(--pk-n0);
}
:where(body.pk-publico) .pk-resultados .pk-vacio__ic {
  width: 52px;
  height: 52px;
  background: var(--pk-primario-suave);
  color: var(--pk-accion);
}
:where(body.pk-publico) .pk-resultados .pk-vacio__ic .pk-icono { width: 24px; height: 24px; }
:where(body.pk-publico) .pk-resultados:has(.pk-vacio) .pk-vista { display: none; }
@media (min-width: 768px) {
  :where(body.pk-publico) .pk-resultados .pk-vacio { padding-block: 40px; }
}
@media (max-width: 767.98px) {
  :where(body.pk-publico) .pk-resultados .pk-vacio { padding: 32px 20px; }
  :where(body.pk-publico) .pk-resultados .pk-vacio .pk-h2 {
    font-size: 20px;
    line-height: 1.3;
    text-wrap: balance;
  }
  :where(body.pk-publico) .pk-resultados .pk-vacio .pk-sub { text-wrap: balance; }
  :where(body.pk-publico) .pk-resultados .pk-vacio__acciones {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    max-width: 280px;
  }
}

/* PGT-55 results-12: the remove mark of a filter pill was a faint 12 px cross in a transparent box. It is now the round button used on propeka.com (PKUSW-85 chips): a 20 px disc with a dark cross, ink with a white cross on hover and focus. Only pills that carry a remove mark change; "Editar filtros" and "Quitar todos los filtros" keep their own padding. */
:where(body.pk-publico) .pk-resultados .pk-chip:has(> .pk-chip__x) {
  gap: 8px;
  padding-right: 7px;
}
:where(body.pk-publico) .pk-resultados .pk-chip__x {
  background: var(--pk-n200);
  color: var(--pk-n700);
}
:where(body.pk-publico) .pk-resultados .pk-chip__x .pk-icono {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}
:where(body.pk-publico) .pk-resultados .pk-chip__x:hover,
:where(body.pk-publico) .pk-resultados .pk-chip__x:focus-visible,
:where(body.pk-publico) .pk-resultados .pk-chip--fijo:hover .pk-chip__x,
:where(body.pk-publico) .pk-resultados .pk-chip--fijo:focus-visible .pk-chip__x {
  background: var(--pk-tinta);
  color: var(--pk-n0);
}

/* PGT-55 results-13: every dropdown panel showed two hairlines above "Limpiar / Aplicar": the last section's bottom border and, 16 px lower, the footer's top border. The section before the footer drops its border and bottom padding; the footer keeps its own line (it is sticky when the panel scrolls). */
:where(body.pk-publico) .pk-resultados .pk-desplegable > .pk-panel > .pk-seccion:has(+ .pk-panel__pie) {
  padding-bottom: 0;
  border-bottom: 0;
}

/* PGT-55 results-14: the save action left the phone bar for the count line (results-20), so the rule that sized it inside .pk-movil-barra matched nothing and was removed (follow-up 2026-11-18). Its intent, the label down to 340 px and a 44 px icon-only target below, now lives in the results-20 small-phone rule and in the follow-up block at the end of this file. */

/* PGT-55 results-16: sibling controls shared neither corner, border nor chevron. The sort select takes the 10 px corner of the save button beside it; the price and text fields of the panels and the sheet take the 10 px corner and #dbe1e8 border of the triggers, with an ink border on focus (0,3,0 is needed to beat `body.pk-sitio input[type="number"]` and `body.pk-sitio input:focus` in propeka-sitio.css, which also painted the focus border navy); the refine chevrons use the ink of the sort chevron. */
:where(body.pk-publico) .pk-resultados .pk-orden select { border-radius: 10px; }
:where(body.pk-publico) .pk-resultados :is(.pk-panel, .pk-hoja) .pk-campo {
  border-color: var(--pk-n200);
  border-radius: 10px;
}
:where(body.pk-publico) .pk-resultados :is(.pk-panel, .pk-hoja) .pk-campo:focus { border-color: var(--pk-tinta); }
:where(body.pk-publico) .pk-resultados .pk-barra .pk-desplegable__disparo::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d2338' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

/* PGT-55 results-17: on the in-grid promoted card the status badge was moved to the photo's bottom-left, over the photo's watermark, while every other card has it top-left. It sits under the paid label, in the same corner as on every card; the tick of the paid label is drawn at the weight of its 700 text. Wording, colour and position of the label are unchanged. */
:where(body.pk-publico) .pk-resultados .pk-rejilla > .pk-tarjeta.pk-promo .pk-tarjeta__badges {
  top: 42px;
  bottom: auto;
}
:where(body.pk-publico) .pk-resultados .pk-rejilla > .pk-tarjeta.pk-promo .pk-promo__tira .pk-icono { stroke-width: 2.5; }

/* PGT-55 results-18: below 360 px the strip card was 249 px wide (84 %): the type chip was cut after six letters and the facts wrapped. The strip track is wider there (280 px at 320), capped at 300 px so the card keeps the two-line publisher row it has on phones (a wider card switches to the one-line row, which cuts the name until 334 px); the next card still shows its edge. */
@media (max-width: 359.98px) {
  :where(body.pk-publico) .pk-resultados .pk-posiciones__pista { grid-auto-columns: min(calc(100% - 16px), 300px); }
}

/* PGT-55 results-19 (owner reference, 2026-11-16): on phones the count and the sort share one line, as on the leading portals. The count keeps its noun ("36 propiedades en venta"); the rest of the sentence and the "Ordenar por" caption are read by screen readers only. The sort is as wide as its chosen value where the browser supports it (field-sizing) and drops to its own line, right-aligned, where it does not fit. */
@media (max-width: 767.98px) {
  :where(body.pk-publico) .pk-resultados .pk-cabecera {
    align-items: center;
    gap: 6px 12px;
  }
  :where(body.pk-publico) .pk-resultados .pk-cabecera__total { flex: 1 1 auto; }
  :where(body.pk-publico) .pk-resultados .pk-cabecera .pk-cabecera__verbo,
  :where(body.pk-publico) .pk-resultados .pk-orden .pk-orden__etq {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
  }
  :where(body.pk-publico) .pk-resultados .pk-cabecera__acciones {
    flex: 0 1 auto;
    margin-left: auto;
  }
  :where(body.pk-publico) .pk-resultados .pk-orden { flex: 0 1 auto; }
  :where(body.pk-publico) .pk-resultados .pk-orden select {
    flex: 0 1 auto;
    width: auto;
    max-width: 100%;
    min-height: 40px;
    field-sizing: content;
  }
}

/* PGT-55 results-20 (owner reference, 2026-11-16): the phone results header reads like the leading portals. One row of chips, "Filtros" then the quick chips "Precio", "Dormitorios", "Tipo" (each opens the sheet at its group; the row scrolls sideways and fades at its end), with the map switch fixed at the right; under it one line with the count, the sort as plain text and "Guardar". The three equal boxed buttons and the boxed sort are gone. */
@media (max-width: 767.98px) {
  :where(body.pk-publico) .pk-resultados .pk-movil-barra {
    align-items: center;
    gap: 8px;
    min-height: 56px;
    margin-bottom: 12px;
    padding-block: 8px;
  }
  :where(body.pk-publico) .pk-resultados .pk-movil-barra .pk-btn {
    flex: none;
    gap: 6px;
    min-height: 40px;
    padding: 0 14px;
    border-color: var(--pk-n200);
    border-radius: var(--pk-r-pill);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
  }
  /* 40 px chips keep a 44 px touch area. */
  :where(body.pk-publico) .pk-resultados .pk-movil-barra .pk-btn { position: relative; }
  :where(body.pk-publico) .pk-resultados .pk-movil-barra .pk-btn::before {
    content: "";
    position: absolute;
    inset: -2px 0;
  }
  :where(body.pk-publico) .pk-resultados .pk-movil-barra > .js-pk-abrir-hoja { font-weight: 700; }
  :where(body.pk-publico) .pk-resultados .pk-movil-barra__rapidos {
    flex: 1 1 0;
    display: flex;
    gap: 8px;
    min-width: 0;
    margin-block: -4px;
    padding-block: 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  }
  :where(body.pk-publico) .pk-resultados .pk-movil-barra__rapidos::-webkit-scrollbar { display: none; }
  :where(body.pk-publico) .pk-resultados .pk-movil-barra__rapidos::after {
    content: "";
    flex: 0 0 20px;
  }
  :where(body.pk-publico) .pk-resultados .pk-movil-barra__rapido { padding-right: 10px; }
  :where(body.pk-publico) .pk-resultados .pk-movil-barra__rapido .pk-icono {
    width: 16px;
    height: 16px;
    transform: rotate(90deg);
    stroke-width: 2;
  }

  /* Count line: count, sort and save on one line; the sort and the save action read as text. */
  :where(body.pk-publico) .pk-resultados .pk-cabecera {
    flex-wrap: wrap;
    align-items: center;
    gap: 0 14px;
    padding-top: 0;
    padding-bottom: 12px;
  }
  :where(body.pk-publico) .pk-resultados .pk-cabecera__total {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 16px;
    line-height: 40px;
  }
  :where(body.pk-publico) .pk-resultados .pk-cabecera__acciones {
    flex: 0 1 auto;
    flex-wrap: nowrap;
    align-items: center;
    gap: 14px;
    margin-left: auto;
  }
  :where(body.pk-publico) .pk-resultados .pk-orden select {
    min-height: 40px;
    padding: 0 20px 0 0;
    border: 0;
    border-radius: 6px;
    background-color: transparent;
    background-position: right 0 center;
    box-shadow: none;
    color: var(--pk-tinta);
    font-size: 15px;
    font-weight: 600;
    text-overflow: ellipsis;
  }
  :where(body.pk-publico) .pk-resultados .pk-orden select:focus-visible { box-shadow: var(--pk-foco); }
  :where(body.pk-publico) .pk-resultados .pk-cabecera .pk-cabecera__guardar {
    display: inline-flex;
    flex: none;
    gap: 6px;
    min-height: 40px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: none;
    box-shadow: none;
    color: var(--pk-tinta);
    font-size: 15px;
    font-weight: 600;
  }
  :where(body.pk-publico) .pk-resultados .pk-cabecera .pk-cabecera__guardar:hover {
    background: none;
    color: var(--pk-primario-osc);
    transform: none;
  }
  :where(body.pk-publico) .pk-resultados .pk-cabecera__guardar .pk-cabecera__guardar-largo { display: none; }
}
@media (min-width: 768px) {
  :where(body.pk-publico) .pk-resultados .pk-cabecera__guardar .pk-cabecera__guardar-corto { display: none; }
}

/* PGT-55 results-20 (small phones): below 340 px the save action keeps its bell only (it has its accessible name), so the count, the sort and the action still share one line instead of breaking into two. Follow-up 2026-11-18 (results-14): the band was 360 px wide and the bell a 40 px target; the label now stays down to 340 px (compact line in the follow-up block) and the bell-only target is a 44 px square. */
@media (max-width: 339.98px) { /* results-14: was 359.98px */
  :where(body.pk-publico) .pk-resultados .pk-cabecera { gap: 0 10px; }
  :where(body.pk-publico) .pk-resultados .pk-cabecera__acciones { gap: 6px; }
  :where(body.pk-publico) .pk-resultados .pk-cabecera__guardar .pk-cabecera__guardar-corto { display: none; }
  :where(body.pk-publico) .pk-resultados .pk-cabecera .pk-cabecera__guardar {
    justify-content: center;
    min-width: 44px; /* results-14: was 40px */
    min-height: 44px; /* results-14 */
  }
}

/* PGT-55 follow-up 2026-11-18: results-11, results-12, results-14, results-18, new results defects (count line 360-369, half-empty second row, 38 px tiles and 40 px pills at touch widths) */

/* results-11: on the zero-inventory landing the second action ("Propiedades en alquiler en Guatemala") is a nowrap 320 px button. The wrapping column made its flex line as wide as that label, so both buttons were 320.5 px in a 254-280 px column and the 320 px page grew to 353 px (zoomed out). One line in the column, and the label wraps inside its button, so both buttons equal the column and stay centred. */
@media (max-width: 767.98px) {
  :where(body.pk-publico) .pk-resultados .pk-vacio__acciones { flex-wrap: nowrap; } /* results-11 */
  :where(body.pk-publico) .pk-resultados .pk-vacio__acciones .pk-btn { /* results-11 */
    padding-block: 4px;
    white-space: normal;
    text-wrap: balance;
  }
}

/* results-12: the clear-all link printed after two or more fixed landing pills (propeka-resultados.php, .pk-chip--limpiar-fijos) is an ordinary clear-all (.pk-chip--limpiar), so it needs no look of its own. While the visitor has added filters the row ends with their own clear-all and this link carries the hidden attribute (the template prints it so, and pintarChips() in propeka.js sets it on every repaint); .pk-chip sets a display, so the hidden state is spelled out here. */
:where(body.pk-publico) .pk-resultados .pk-chip--limpiar-fijos[hidden] { display: none; } /* results-12 */

/* results-14 and new defect (360-369 px): the count line broke into two rows from 360 px until the labelled "Guardar" fitted (about 368 px), because the 14 px gaps left it 7 px short. From 340 to 369 px the two gaps are 8 px, which is enough from 360 px: the type there is the type of every wider phone ("14 casas en venta" leaves 5 px at 360). From 340 to 359 px the line is also set one step smaller (count 15 px, sort and "Guardar" 14 px, 16 px bell) so the count, the sort and the labelled action still share one line ("14 casas en venta" leaves 6 px at 340). */
@media (min-width: 340px) and (max-width: 369.98px) {
  :where(body.pk-publico) .pk-resultados .pk-cabecera { column-gap: 8px; } /* new: count line 360-369, results-14 */
  :where(body.pk-publico) .pk-resultados .pk-cabecera__acciones { gap: 8px; } /* new: count line 360-369, results-14 */
}
@media (min-width: 340px) and (max-width: 359.98px) {
  :where(body.pk-publico) .pk-resultados .pk-cabecera__total { font-size: 15px; } /* results-14 */
  :where(body.pk-publico) .pk-resultados .pk-orden select { font-size: 14px; } /* results-14 */
  :where(body.pk-publico) .pk-resultados .pk-cabecera .pk-cabecera__guardar { /* results-14 */
    gap: 4px;
    font-size: 14px;
  }
  :where(body.pk-publico) .pk-resultados .pk-cabecera__guardar .pk-icono { width: 16px; height: 16px; } /* results-14 */
}

/* New defect (/propiedades-en-venta-guatemala/, 320-430 px): a count too long to share the line ("36 propiedades en venta") left the sort and "Guardar" on a second row pushed to the right, half empty. When the tools wrap they now take the whole second row, the sort under the count on the left and "Guardar" on the right; on one line nothing moves (the count takes the free space). */
@media (max-width: 767.98px) {
  :where(body.pk-publico) .pk-resultados .pk-cabecera__total { flex-grow: 9999; } /* new: second row */
  :where(body.pk-publico) .pk-resultados .pk-cabecera__acciones { flex-grow: 1; } /* new: second row */
  :where(body.pk-publico) .pk-resultados .pk-cabecera .pk-cabecera__guardar { margin-left: auto; } /* new: second row */
}

/* results-18: on phones the paid strip card is 280-300 px wide at 320-359 px and 282-312 px at 360-403 px (84 % track), and its three facts wrapped onto two rows at 320-335 and 360-376 px ("3 dorm. 3 baños 303 m²" needs 244 px and "3 dorm. 3,5 baños 155 m²" 258 px, of the 242-258 px there). A phone strip card under 310 px inside its 1 px border (every strip card from 320 to 403 px) sets its facts at 13 px with 8 px gaps and 16 px icons (233 px for the second example), so they stay on one line; from there on the card holds the 14 px facts even with a four-digit area (272 px). Wider strip cards, the strip from 768 px and the grid cards are unchanged. */
/* PGT-55 open items 2026-11-19: results-18. A facts line as long as "4 dorm. 4,5 baños 1.250 m²" still wrapped on the narrowest strip cards (280-283 px at 320-323 px and 282-283 px at 360-361 px wide windows; 0.3 to 3.4 px short). In the same narrow strip cards the gap between facts is 6 px (was 8), and inside a fact (icon, number, label) 3 px (was 4), 10 px less in all, so that line keeps 6.6 px to spare at 320. */
@media (max-width: 767.98px) {
  @container (max-width: 309.98px) {
    :where(body.pk-publico) .pk-resultados .pk-posiciones__pista .pk-tarjeta__cuerpo--ref .pk-datos { /* results-18 */
      column-gap: 6px; /* PGT-55 open items 2026-11-19: results-18 (was 8px) */
      font-size: 13px;
    }
    :where(body.pk-publico) .pk-resultados .pk-posiciones__pista .pk-tarjeta__cuerpo--ref .pk-datos li { gap: 3px; } /* PGT-55 open items 2026-11-19: results-18 */
    :where(body.pk-publico) .pk-resultados .pk-posiciones__pista .pk-tarjeta__cuerpo--ref .pk-datos .pk-icono { width: 16px; height: 16px; } /* results-18 */
  }
}

/* New defect (tiles at tablet widths): the option tiles of the filter sheet and of the dropdown panels were 38 px tall from 768 px, where most screens are still touch screens; the 44 px minimum only applied to the sheet below 768 px. 44 px below 1200 px and on any coarse pointer. The "Dormitorios" and "Baños" pills of the same sheet and panels were 40 px tall at every width; they take the same 44 px under the same condition. */
@media (pointer: coarse), (max-width: 1199.98px) {
  :where(body.pk-publico) .pk-resultados :is(.pk-hoja, .pk-panel) .pk-opcion { min-height: 44px; } /* new: tiles 44 px */
  :where(body.pk-publico) .pk-resultados .pk-pildora { min-height: 44px; } /* new: pills 44 px */
}
