/* Estilos para la página de Propiedades */

/* Box-sizing global para evitar desbordamientos */
* {
    box-sizing: border-box;
}

/* Soluciones específicas para Safari */
@supports (-webkit-appearance: none) {
    .filtros-sidebar {
        -webkit-transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        -webkit-perspective: 1000px;
        transform: translateZ(0);
        backface-visibility: hidden;
        perspective: 1000px;
    }
    
    .filtro-grupo {
        -webkit-transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        transform: translateZ(0);
        backface-visibility: hidden;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        word-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
    }
    
    .caracteristicas-numericas-grid {
        -webkit-transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        transform: translateZ(0);
        backface-visibility: hidden;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .numero-filtro {
        -webkit-transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        transform: translateZ(0);
        backface-visibility: hidden;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .numero-inputs {
        -webkit-transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        transform: translateZ(0);
        backface-visibility: hidden;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        flex-wrap: wrap;
    }
    
    .numero-input {
        -webkit-transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        transform: translateZ(0);
        backface-visibility: hidden;
        min-width: 0;
        flex: 1 1 auto;
        max-width: 100%;
    }
}

/* Breadcrumb */
.breadcrumb {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-container {
    max-width: 88%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #6A6A6A;
}

.breadcrumb a {
    color: #FF5A5F;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #e04a4f;
}

.breadcrumb-separator {
    color: #D9D9D9;
}

/* Contenido principal */
.propiedades-main {
    background: white;
    min-height: calc(100vh - 200px);
}

.propiedades-container {
    max-width: 88%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    margin-top: 50px;
}

/* Asegurar que el contenido de propiedades no tenga max-width que interfiera */
.propiedades-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

/* Sidebar de filtros */
.filtros-sidebar {
    background: white;
    border: 1px solid #D9D9D9;
    border-radius: 12px;
    padding: 1.5rem;
    height: fit-content;
    top: 2rem;
    -webkit-border-radius: 12px;
    -webkit-box-sizing: border-box;
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
}

.filtros-header {
    margin-bottom: 1.5rem;
}

.filtros-titulo {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
    color: #222222;
    margin: 0;
}

.filtros-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Grupos de filtros */
.filtro-grupo {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* Soluciones específicas para Safari */
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.filtro-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 18px;
    color: #222222;
}

.filtro-input,
.filtro-select {
    padding: 0.75rem;
    border: 1px solid #D9D9D9;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #222222;
    background: white;
    transition: border-color 0.3s ease;
    -webkit-border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
}

.filtro-input:focus,
.filtro-select:focus {
    outline: none;
    border-color: #FF5A5F;
    -webkit-tap-highlight-color: transparent;
}

.filtro-input::placeholder {
    color: #6A6A6A;
    -webkit-text-fill-color: #6A6A6A;
}

/* Range sliders */
.range-slider {
    position: relative;
    height: 6px;
    background: #D9D9D9;
    border-radius: 3px;
    margin: 1rem 0;
    -webkit-border-radius: 3px;
}

.range-input {
    position: absolute;
    width: 100%;
    height: 6px;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #FF5A5F;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    -webkit-border-radius: 50%;
    -webkit-tap-highlight-color: transparent;
}

.range-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #FF5A5F;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.range-track {
    position: absolute;
    height: 6px;
    background: #FF5A5F;
    border-radius: 3px;
    pointer-events: none;
    -webkit-border-radius: 3px;
}

.range-values {
    display: flex;
    justify-content: space-between;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #6A6A6A;
}

/* Checkboxes de comodidades */
.comodidades-grid,
.caracteristicas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.5rem;
    -webkit-overflow-scrolling: touch;
    /* Soluciones específicas para Safari */
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    /* Soluciones específicas para Safari */
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.checkbox-input {
    width: 16px;
    height: 16px;
    accent-color: #FF5A5F;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.checkbox-label {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #6A6A6A;
    /* Soluciones específicas para Safari */
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
    overflow: hidden;
    flex: 1;
}

/* Estilos para filtros numéricos */
.caracteristicas-numericas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-right: 0.5rem;
    -webkit-overflow-scrolling: touch;
    /* Soluciones específicas para Safari */
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.numero-filtro {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* Soluciones específicas para Safari */
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.numero-label {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #6A6A6A;
    font-weight: 500;
    /* Soluciones específicas para Safari */
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
    overflow: hidden;
}

.numero-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* Soluciones específicas para Safari */
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    flex-wrap: wrap;
}

.numero-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #D9D9D9;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #222222;
    background: white;
    transition: border-color 0.3s ease;
    -webkit-border-radius: 6px;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    /* Soluciones específicas para Safari */
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.numero-input:focus {
    outline: none;
    border-color: #FF5A5F;
    -webkit-tap-highlight-color: transparent;
}

.numero-input::placeholder {
    color: #999999;
    -webkit-text-fill-color: #999999;
}

.numero-unidad {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    color: #999999;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
    -webkit-border-radius: 4px;
    /* Soluciones específicas para Safari */
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
    flex-shrink: 0;
    max-width: 100%;
    overflow: hidden;
}

/* Estilos para scroll personalizado */
.comodidades-grid::-webkit-scrollbar,
.caracteristicas-grid::-webkit-scrollbar,
.caracteristicas-numericas-grid::-webkit-scrollbar {
    width: 6px;
}

.comodidades-grid::-webkit-scrollbar-track,
.caracteristicas-grid::-webkit-scrollbar-track,
.caracteristicas-numericas-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
    -webkit-border-radius: 3px;
}

.comodidades-grid::-webkit-scrollbar-thumb,
.caracteristicas-grid::-webkit-scrollbar-thumb,
.caracteristicas-numericas-grid::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
    -webkit-border-radius: 3px;
}

.comodidades-grid::-webkit-scrollbar-thumb:hover,
.caracteristicas-grid::-webkit-scrollbar-thumb:hover,
.caracteristicas-numericas-grid::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Botón aplicar filtros */
.btn-aplicar-filtros {
    background: #FF5A5F;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
    -webkit-border-radius: 8px;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
}

.btn-aplicar-filtros:hover {
    background: #e04a4f;
}

/* Contenido de propiedades */
.propiedades-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Header de propiedades */
.propiedades-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.propiedades-info {
    flex: 1;
}

.propiedades-titulo {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 40px;
    color: #222222;
    margin: 0 0 0.5rem 0;
}

.propiedades-resultados {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #6A6A6A;
    margin: 0;
}

.propiedades-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Opciones de vista */
.view-options {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    background: white;
    border: 1px solid #D9D9D9;
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6A6A6A;
    -webkit-border-radius: 6px;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
}

.view-btn:hover,
.view-btn.active {
    background: #FF5A5F;
    border-color: #FF5A5F;
    color: white;
}

/* Opciones de ordenamiento */
.sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid #D9D9D9;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #222222;
    background: white;
    cursor: pointer;
    -webkit-border-radius: 6px;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
}

/* Grid de propiedades - usa los estilos exactos del componente existente */
.propiedades-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px 15px;
    row-gap: 23px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Las tarjetas de propiedad usan los estilos existentes de propiedades-destacadas.css */

/* Responsive */
@media (max-width: 1200px) {
    .propiedades-container {
        grid-template-columns: 280px 1fr;
        gap: 1.5rem;
    }
    
    .propiedades-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 992px) {
    .propiedades-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .filtros-sidebar {
        position: static;
        order: 1;
    }
    
    .propiedades-content {
        order: 2;
    }
    
    .propiedades-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .propiedades-controls {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .propiedades-container {
        max-width: 95%;
        padding: 1rem 0;
    }
    
    .propiedades-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 1rem;
    }
    
    .propiedades-titulo {
        font-size: 28px;
        line-height: 34px;
    }
    
    /* Solucionar desbordamiento horizontal en mobile */
    .filtros-sidebar {
        padding: 1rem;
        overflow-x: hidden;
        overflow-y: visible;
    }
    
    .filtro-grupo {
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .filtro-input,
    .filtro-select {
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
    }
    
    .comodidades-grid,
    .caracteristicas-grid {
        grid-template-columns: 1fr;
        max-height: 250px;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .caracteristicas-numericas-grid {
        max-height: 300px;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .numero-filtro {
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .numero-inputs {
        flex-direction: row;
        gap: 0.5rem;
        width: 100%;
        box-sizing: border-box;
        align-items: center;
    }
    
    .numero-input {
        flex: 1;
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
    }
    
    .numero-unidad {
        font-size: 10px;
        padding: 0.2rem 0.4rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .checkbox-item {
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .propiedades-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .view-options,
    .sort-options {
        width: 100%;
    }
    
    .sort-select {
        width: 100%;
    }
    
    /* Los estilos de propiedad-card ahora están centralizados en propiedad-card.css */
}

@media (max-width: 480px) {
    .filtros-sidebar {
        padding: 0.75rem;
        overflow-x: hidden;
    }
    
    .filtro-grupo {
        gap: 0.25rem;
    }
    
    .filtro-input,
    .filtro-select {
        padding: 0.6rem;
        font-size: 13px;
    }
    
    .numero-input {
        padding: 0.6rem;
        font-size: 13px;
    }
    
    .numero-unidad {
        font-size: 9px;
        padding: 0.15rem 0.3rem;
    }
    
    .btn-aplicar-filtros {
        padding: 0.6rem 1.2rem;
        font-size: 13px;
    }
    
    .caracteristicas-grid,
    .caracteristicas-numericas-grid {
        max-height: 200px;
    }
} 

 