/* apps/property/static/css/property_card.css */
.property-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background-color: var(--card-bg);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.property-card:hover {
    border-color: var(--primary-color);
}

.property-image {
    position: relative;
    padding-bottom: 66.67%;
    overflow: hidden;
    background: var(--section-bg);
}

.property-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    background: white;
    color: var(--gray-800);
    box-shadow: var(--shadow-sm);
}

.property-badge.bg-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.property-badge.bg-success {
    background: #198754;
    color: white;
    border-color: #198754;
}

.property-badge.bg-warning {
    background: #ffc107;
    color: var(--gray-800);
    border-color: #ffc107;
}

.property-badge.bg-danger {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.property-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
}

.property-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.property-title a {
    color: var(--gray-800);
    text-decoration: none;
    transition: var(--transition);
}

.property-title a:hover {
    color: var(--primary-color);
}

.property-location {
    color: var(--gray-600);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.property-location svg {
    margin-right: 0.375rem;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--gray-600);
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-200);
}

.property-features span {
    display: flex;
    align-items: center;
}

.property-features i,
.property-features svg {
    margin-right: 0.375rem;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.property-summary {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
    color: var(--gray-600);
}

.property-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-200);
}

.price-display {
    font-size: 0.9rem;
}

.price-display strong {
    font-size: 1.125rem;
    color: var(--primary-color);
    font-weight: 700;
}

.price-display small {
    color: var(--gray-600);
}

.property-footer .btn {
    border-radius: 40px;
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    border: 1px solid transparent;
    overflow: hidden;
}

/* ========== Animations ========== */
.property-card {
    opacity: 0;
    animation: fadeInUp 0.3s ease forwards;
}

/* Задержки для плавного появления */
.property-card:nth-child(1) { animation-delay: 0s; }
.property-card:nth-child(2) { animation-delay: 0.05s; }
.property-card:nth-child(3) { animation-delay: 0.1s; }
.property-card:nth-child(4) { animation-delay: 0.15s; }
.property-card:nth-child(5) { animation-delay: 0.2s; }
.property-card:nth-child(6) { animation-delay: 0.25s; }
.property-card:nth-child(7) { animation-delay: 0.3s; }
.property-card:nth-child(8) { animation-delay: 0.35s; }

/* ========== КОНТЕЙНЕРЫ ========== */
.properties-section .row,
.properties-grid {
    padding: 2px;
}

.property-card-wrapper {
    padding: 2px;
}

/* ========== Адаптивность ========== */
@media (max-width: 767px) {
    .property-content {
        padding: 1rem;
    }
    
    .property-title {
        font-size: 1rem;
    }
    
    .property-features {
        gap: 0.75rem;
        font-size: 0.8rem;
    }
    
    .price-display strong {
        font-size: 1rem;
    }
    
    .property-footer .btn {
        padding: 0.375rem 1rem;
        font-size: 0.8rem;
    }
}

/* ========== Поддержка темной темы ========== */
/*@media (prefers-color-scheme: dark) {
    .property-card {
        background: var(--card-bg-dark, #2d3748);
        border-color: var(--gray-700, #4a5568);
    }
    
    .property-content {
        background: var(--card-bg-dark, #2d3748);
    }
    
    .property-title a {
        color: var(--gray-100, #f7fafc);
    }
    
    .property-location,
    .property-features,
    .property-summary,
    .price-display small {
        color: var(--gray-400, #cbd5e0);
    }
    
    .property-features,
    .property-footer {
        border-top-color: var(--gray-700, #4a5568);
    }
}*/