/* Botón toggle "Más filtros" */
.filtrosToggleWrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}
.btnToggleFiltros {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #fff;
    color: #001731;
    border: 1px solid #cfcfc8;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    letter-spacing: 0.4px;
    border-radius: 3px;
    transition: background 0.15s, border-color 0.15s;
}
.btnToggleFiltros:hover {
    border-color: #001731;
    background: #f0f0eb;
}
.btnToggleFiltros[aria-expanded="true"] {
    background: #001731;
    color: #fff;
    border-color: #001731;
}
.btnToggleFiltros .badgeFiltros {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #c9a25a;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}
.btnToggleFiltros[aria-expanded="true"] .badgeFiltros {
    background: #fff;
    color: #001731;
}

/* Filtros avanzados del buscador */
.filtrosAvanzados {
    background: #f7f7f5;
    border: 1px solid #e2e2dd;
    padding: 14px 18px;
    margin-top: 10px;
    border-radius: 4px;
}
.filtrosAvanzados.filtrosOcultos {
    display: none;
}
.filtrosFila {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px 18px;
}
.filtroGrupo {
    display: flex;
    flex-direction: column;
    min-width: 130px;
    flex: 0 0 auto;
}
.filtroGrupo.hidden {
    display: none;
}
.filtroGrupo label {
    font-size: 11px;
    color: #555;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.filtroGrupo input[type="number"],
.filtroGrupo input[type="text"],
.filtroGrupo select {
    height: 36px;
    padding: 0 10px;
    border: 1px solid #cfcfc8;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    color: #001731;
    width: 100%;
    box-sizing: border-box;
}
.filtroPair {
    display: flex;
    gap: 6px;
}
.filtroPair input {
    width: 90px;
}
.filtroRef input {
    width: 160px;
}
.filtroAcciones {
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
    margin-left: auto;
}
.btnAplicarFiltros {
    height: 36px;
    padding: 0 18px;
    background: #001731;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.btnAplicarFiltros:hover {
    background: #002954;
}
.btnLimpiarFiltros {
    height: 36px;
    line-height: 36px;
    padding: 0 12px;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    border: 1px solid #cfcfc8;
    background: #fff;
}
.btnLimpiarFiltros:hover {
    color: #001731;
    border-color: #001731;
}

/* Toggle vista (lista / ambos / mapa) */
.vistaToggle {
    display: inline-flex;
    border: 1px solid #d8d4cc;
    overflow: hidden;
}
.vistaBtn {
    padding: 7px 12px;
    color: #5a5a5a;
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: #fff;
    border-left: 1px solid #d8d4cc;
    transition: background-color .15s ease, color .15s ease;
}
.vistaBtn:first-child { border-left: none; }
.vistaBtn:hover { color: #002349; }
.vistaBtn.active {
    background: #002349;
    color: #fff;
}
.vistaBtn i { margin-right: 5px; }

/* Select de "Ordenar por" — pareja visual de .vistaBtn (uppercase tracked, fino) */
.selectOrdenar {
    border: 1px solid #d8d4cc;
    color: #002349;
    padding: 7px 30px 7px 12px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.12em;
    font-weight: 500;
    background: #fff;
    background-image: linear-gradient(45deg, transparent 50%, #002349 50%), linear-gradient(135deg, #002349 50%, transparent 50%);
    background-position: calc(100% - 14px) center, calc(100% - 9px) center;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    line-height: 1;
    transition: border-color .15s ease;
}
.selectOrdenar:hover { border-color: #c29b40; }
.selectOrdenar:focus { outline: none; border-color: #c29b40; }

/* Grilla 2-cols cuando hay mapa al lado */
.contGrillaResultado2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
@media (max-width: 1100px) {
    .contGrillaResultado2 { grid-template-columns: 1fr; }
    #contVistaCombinada { flex-direction: column; }
    #ladoMapa { position: static !important; width: 100%; }
}

/* Marker info bubble */
.mapaInfoCard {
    max-width: 240px;
    font-family: inherit;
}
.mapaInfoCard .mapaInfoTitle {
    font-weight: 600;
    color: #001731;
    margin: 0 0 4px;
    font-size: 14px;
    line-height: 1.2;
}
.mapaInfoCard .mapaInfoPrice {
    color: #001731;
    font-weight: 500;
    font-size: 13px;
    margin: 4px 0;
}
.mapaInfoCard a {
    color: #001731;
    text-decoration: underline;
    font-size: 12px;
}

@media (max-width: 720px) {
    .filtrosFila { gap: 10px; }
    .filtroGrupo { flex: 1 1 calc(50% - 10px); min-width: 0; }
    .filtroGrupo.filtroAcciones { flex: 1 1 100%; margin-left: 0; }
    .filtroPair input { width: 100%; }
    .filtroRef input { width: 100%; }
}
