.property-wrapper-grid .property-box {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 1px;
}

/* Desktop: imagen a la izquierda, detalles a la derecha */
@media(min-width: 992px){
    .property-wrapper-grid .property-box { flex: 0 0 100% !important; }
    .property-list-view .property-box {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 12px;
        align-items: stretch !important;
    }
    .property-box .property-details {
        flex: 1;
        padding-left: 15px;
    }
    .property-box.row { display: flex !important; flex-wrap: nowrap !important; align-items: stretch !important; gap: 15px; }
    .property-box .property-image { height: 100% !important; display: flex; flex-direction: column; overflow: hidden; }
}
/* Móvil: imagen arriba, detalles abajo */
@media(max-width: 991px){
    .property-list-view .property-box {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px;
    }
    .property-box .property-image {
        width: 100%;
        max-height: 200px;
    }
    .property-box .property-details {
        padding: 10px 0;
    }
    .property-box h3 {
        font-size: 18px;
        margin-bottom: 5px;
    }
    .property-box h5, .property-box label, .property-box h6 {
        font-size: 14px;
    }
    .property-box ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        padding-left: 0;
        margin-bottom: 10px;
        list-style: none;
    }
    .property-box ul li {
        font-size: 12px;
        gap: 3px;
    }
    .property-btn {
        flex-direction: column;
        gap: 10px;
    }
    .property-btn button {
        width: 100%;
    }
    .property-btn span {
        font-size: 12px;
    }
}
.property-slider,
.property-slider .slick-list,
.property-slider .slick-track,
.property-slider .slick-slide > div,
.property-slider a {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
}
.property-box .property-details { flex: 1 !important; height: auto; }

.barra-urbania-v2 {
    background:#fff;
    padding:12px 10px;
    border-bottom:1px solid #e5e5e5;
    box-shadow:0 3px 12px rgba(0,0,0,0.05);
    position: sticky;
    top:0;
    z-index:11;
}
.filtro-input {
    width:100%;
    height:44px;
    border:1px solid #A6122D;
    border-radius:10px;
    background:#fff;
    font-size:14px;
    padding:8px 14px;
    text-align:left;
    transition:all .2s;
}
.filtro-input:hover {
    border-color:#C71A39;
}
.filtro-input:focus {
    border-color:#7D0E24;
    box-shadow:0 0 0 2px rgba(166,18,45,0.25);
    outline: none;
}
.input-icon{
    position:relative;
}
.input-icon i{
    position:absolute;
    top:50%;
    left:12px;
    transform:translateY(-50%);
    font-size:16px;
    color:#888;
}
.input-icon .filtro-input{
    padding-left:38px;
}
.filtro-dropdown .dropdown-toggle::after {
    float:right;
    margin-top:6px;
}
.dropdown-menu {
    border-radius:10px;
    border:1px solid #ddd;
    max-height: 200px;
    overflow-y: auto;
}
.dropdown-item {
    padding:10px 14px;
    font-size:14px;
    cursor: pointer;
}
.dropdown-item:hover {
    background:#f5f5f5;
}
.btn-more-filters {
    height:44px;
    border-radius:10px;
    background:#A6122D;
    border:none;
    color:#fff;
    font-size:14x;
    transition:all .2s;
    position: relative;
}
.btn-more-filters:hover {
    background:#8F0E26;
}
.btn-alerta{
    height:44px;
}

/* AUTOCOMPLETE */
.autocomplete-items {
    border-radius:10px;
    box-shadow:0 4px 10px rgba(0,0,0,0.12);
    background: #fff;
    /*border:1px solid #ddd;*/
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    z-index: 9999;
    top: 100%;
    width: 100%;
    left: 0;
    right: 0;
}
.autocomplete-items div {
    padding:10px 10px;
    font-size:14px;
    cursor: pointer;
}
.autocomplete-items div:hover {
    background: #f5f5f5;
}
.price-range {
    margin-bottom: 0;
}
@media(max-width:768px){
    .filtro-input,
    .btn-more-filters{
        height:48px;
    }
}
.panel-filtros{
  display:none;
  position:absolute;
  top:calc(100% + 8px); /* justo debajo del botón */
  right:0;
  width:520px;
  max-width:calc(100vw - 40px);
  background:#fff;
  border-radius:10px;
  padding:16px;
  box-shadow:0 8px 30px rgba(0,0,0,0.12);
  z-index:12000;
  max-height:420px;
  overflow:auto;
}
.panel-filtros.active { display: block; }
.panel-filtros.open { display: block;}
.panel-filtros .panel-head{border-bottom:1px solid #eee;padding-bottom:8px}
.panel-filtros .panel-content{padding-top:10px}
/* mobile: transform panel en drawer fullscreen parcial */
@media (max-width: 991px){
  .panel-filtros{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    top:auto;
    width:100%;
    max-width: 100%;
    height:38%;
    max-height:38%;
    border-radius:14px 14px 0 0;
    transform: translateY(100%);
    transition: transform .28s ease;
    padding:18px;
    z-index: 99999;  
  }
  /* overlay (filtro oscuro) agregado vía JS añadiendo clase .mobile-open al body */
  body.mobile-open::before{
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    pointer-events: none;
    z-index: 13 !important;
    backdrop-filter: none !important;
  }
  .panel-filtros.open {
    transform: translateY(0);
  }
}
.panel-actions .btn {height:44px}
.panel-filtros label{font-size:12px;color:#555}
.price-range input[readonly]{width:100%;border:1px solid #eee;padding:5px;border-radius:8px;font-size: 12px;}

