/* Property archive specific styles */

/* Archive header */
.property-archive-header {
    background: #f8f9fa;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.archive-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4B382F;
    margin-bottom: 1rem;
}

.archive-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
}

/* Property grid */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.property-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #4B382F;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.property-badge.featured {
    background: #E1AA05;
}

.property-content {
    padding: 1.5rem;
}

.property-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4B382F;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.property-location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.property-location i {
    margin-right: 0.5rem;
    color: #4B382F;
}

.property-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.property-detail {
    text-align: center;
}

.property-detail i {
    color: #4B382F;
    margin-bottom: 0.25rem;
    display: block;
}

.property-detail span {
    font-size: 0.875rem;
    color: #666;
    display: block;
}

.property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4B382F;
    margin-bottom: 1rem;
}

.property-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-view {
    flex: 1;
    background: #4B382F;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: background 0.3s ease;
}

.btn-view:hover {
    background: #3a2d25;
    color: white;
}

.btn-favorite {
    background: transparent;
    border: 2px solid #4B382F;
    color: #4B382F;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-favorite:hover,
.btn-favorite.active {
    background: #4B382F;
    color: white;
}

/* Filters sidebar */
.property-filters {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-weight: 600;
    color: #4B382F;
    margin-bottom: 0.5rem;
    display: block;
}

.filter-select,
.filter-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: #4B382F;
}

.filter-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-filter {
    flex: 1;
    background: #4B382F;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-filter:hover {
    background: #3a2d25;
}

.btn-reset {
    background: transparent;
    color: #4B382F;
    border: 2px solid #4B382F;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background: #4B382F;
    color: white;
}

/* Pagination */
.property-pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination {
    display: flex;
    gap: 0.5rem;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1rem;
    border: 2px solid #e1e5e9;
    color: #4B382F;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background: #4B382F;
    color: white;
    border-color: #4B382F;
}

/* Loading states */
.property-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #666;
}

.property-loading i {
    margin-right: 0.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .property-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .property-details {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .property-actions {
        flex-direction: column;
    }
    
    .filter-actions {
        flex-direction: column;
    }
}
