.listing { padding-block: 2.5rem 5rem; }
.listing__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.listing__count { font-size: 0.8125rem; color: var(--muted-foreground); }
.listing__count strong { color: var(--foreground); }
.listing__sort { display: flex; align-items: center; gap: 0.6rem; font-size: 0.8125rem; color: var(--muted-foreground); }
.listing__sort .select { width: auto; min-width: 190px; }

/* Filtros */
.filters { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.1rem; display: grid; gap: 1rem; box-shadow: var(--shadow-sm); }
.filters__search { position: relative; }
.filters__search svg { position: absolute; left: 0.75rem; top: 50%; translate: 0 -50%; width: 15px; height: 15px; stroke: var(--muted-foreground); fill: none; stroke-width: 2; }
.filters__search .input { padding-left: 2.2rem; }
.filters__grid { display: grid; gap: 0.9rem; grid-template-columns: 1fr 1fr; }
.filters__price { grid-column: 1 / -1; }
.filters__price label { display: flex; justify-content: space-between; }
.filters__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filters__chips .chip { font-size: 0.6875rem; padding: 0.25rem 0.75rem; }
.filters__foot { display: flex; justify-content: flex-end; }
.filters__clear { font-size: 0.75rem; color: var(--muted-foreground); }
.filters__clear:hover { color: var(--accent); }
@media (min-width: 768px) { .filters__grid { grid-template-columns: repeat(4, 1fr); } .filters__price { grid-column: span 3; } }

/* Slider doble */
.range { position: relative; height: 22px; }
.range__bar { position: absolute; top: 9px; left: 0; right: 0; height: 4px; border-radius: 4px; background: var(--border); }
.range__bar::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--from, 0%); right: calc(100% - var(--to, 100%)); background: var(--primary); border-radius: 4px; }
.range input { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--primary); cursor: pointer; }
.range input::-moz-range-thumb { pointer-events: auto; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--primary); cursor: pointer; }
.range input::-webkit-slider-runnable-track { background: none; }
.range input::-moz-range-track { background: none; }

/* Layout lista + mapa */
.listing { max-width: 1560px; }
.listing__layout { display: grid; gap: 1.5rem; margin-top: 1.5rem; grid-template-columns: 1fr; }
.listing__grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .listing__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .listing__layout { grid-template-columns: 1fr 420px; } }
@media (min-width: 1400px) { .listing__layout { grid-template-columns: 1fr 500px; } .listing__grid { grid-template-columns: repeat(3, 1fr); } }
.listing__more { display: flex; justify-content: center; margin-top: 2rem; }
.listing__empty { padding: 3rem 1rem; text-align: center; color: var(--muted-foreground); }

/* Mapa (Leaflet + OpenStreetMap) */
.map { display: none; }
@media (min-width: 1100px) { .map { display: block; position: sticky; top: calc(var(--header-h) + 1rem); align-self: start; } }
.map__canvas { height: calc(100vh - var(--header-h) - 2rem); min-height: 480px; max-height: 760px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #e8eef0; z-index: 1; }
.map-pin { background: var(--primary); color: #fff; border: 2px solid #fff; border-radius: 999px; padding: 0 0.6rem; height: 24px; line-height: 20px; font: 600 11px/20px var(--font-sans); white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); text-align: center; }
.map-pin:hover { background: var(--accent); }
.leaflet-container { font-family: var(--font-sans); }
