/* ===================================
   ESTILOS PARA PÁGINA DE PROPIEDADES
   ===================================*/

/* Page Header - Full Width */
.page-header {
    background: linear-gradient(135deg, #16a085 0%, #138d75 50%, #117a65 100%);
    color: white;
    padding: 6rem 0 4rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: translate(-50%, 50%);
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header-content {
    position: relative;
    z-index: 3;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    line-height: 1.2;
}

.page-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.property-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 1.1rem;
}

.property-count i {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Search and Filter Section */
.search-filters {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
    border: 1px solid #e9ecef;
}

.search-filters .form-control,
.search-filters .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.search-filters .form-control:focus,
.search-filters .form-select:focus {
    border-color: #16a085;
    box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.2);
}

.filter-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-title i {
    color: #16a085;
    font-size: 1.2rem;
}

/* Property Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.property-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: none;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.property-card .image-container {
    position: relative;
    overflow: hidden;
}

.property-card img {
    height: 250px;
    object-fit: cover;
    width: 100%;
    transition: all 0.3s ease;
}

.property-card:hover img {
    transform: scale(1.05);
}

.property-card .type-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #16a085, #52c5b8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.property-card .price-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2;
}

.property-card .card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.property-card .card-title {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.property-card .location {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-card .location i {
    color: #16a085;
}

.property-card .features {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
}

.property-card .features .feature {
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-card .features i {
    color: #16a085;
}

.property-card .description {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.property-card .card-footer {
    background: transparent;
    border: none;
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin-top: auto;
}

.property-card .btn-view {
    background: linear-gradient(135deg, #16a085, #52c5b8);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
}

.property-card .btn-view:hover {
    background: linear-gradient(135deg, #138d75, #45b7b8);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(22, 160, 133, 0.3);
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-results i {
    font-size: 4rem;
    color: #16a085;
    margin-bottom: 1rem;
}

.no-results h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination .page-link {
    color: #16a085;
    border: 2px solid #e9ecef;
    padding: 10px 15px;
    margin: 0 2px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #16a085;
    border-color: #16a085;
    color: white;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background-color: #16a085;
    border-color: #16a085;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .properties-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 4rem 0 3rem 0;
    }
    
    .page-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .property-count {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .property-count i {
        font-size: 1rem;
    }
    
    .page-header::before {
        width: 250px;
        height: 250px;
    }
    
    .page-header::after {
        width: 200px;
        height: 200px;
    }
    
    .search-filters {
        padding: 1.5rem;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .property-card img {
        height: 200px;
    }
}
