.animal-card {
    transition: transform 0.2s;
}

.animal-card:hover {
    transform: translateY(-5px);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.rating-stars {
    color: #ffc107;
}

.filter-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.animal-gallery img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.status-badge {
    font-size: 0.8rem;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* Улучшенные стили карточек животных */
.animal-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    background: white;
}

.animal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.card-img-container {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.card-img-top {
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.animal-card:hover .card-img-top {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.status-badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    transition: all 0.3s ease;
    z-index: 2;
}

.favorite-btn:hover {
    transform: scale(1.1);
    background: white;
}

.favorite-btn.active {
    background: #dc3545;
    color: white;
}

.card-body {
    padding: 1.25rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: #2d3748;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-text {
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.animal-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

.feature-badge {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.animal-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
}

.price-currency {
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
}

.seller-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

.seller-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: #4a5568;
}

.seller-name {
    font-size: 0.8rem;
    color: #718096;
    font-weight: 500;
}

.seller-name-animal {
    color: #ffffff !important;
    font-weight: 500;
    font-size: 20px;
}

.rating-stars {
    color: #fbbf24;
    font-size: 0.8rem;
}

.rating-value {
    color: #718096;
    font-size: 0.75rem;
    margin-left: 4px;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animal-card {
    animation: fadeInUp 0.5s ease-out;
}

/* Адаптивность */
@media (max-width: 768px) {
    .animal-card {
        margin-bottom: 1rem;
    }
    
    .card-img-container {
        height: 200px;
    }
    
    .animal-features {
        gap: 6px;
    }
    
    .feature-badge {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
}

/* Скелетон-загрузка */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}


/* Компактная статистика */
.stat-item {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.stat-item:hover {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    transform: translateY(-2px);
}

.stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.05);
}

.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Цвета для иконок статистики */
.stat-card:nth-child(1) .stat-icon-wrapper {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
}

.stat-card:nth-child(2) .stat-icon-wrapper {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    color: #388e3c;
}

.stat-card:nth-child(3) .stat-icon-wrapper {
    background: linear-gradient(135deg, #e3f2fd 0%, #b3e5fc 100%);
    color: #0288d1;
}

.stat-card:nth-child(4) .stat-icon-wrapper {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #f57c00;
}

/* Адаптивность для статистики */
@media (max-width: 768px) {
    .stat-number {
        font-size: 1.1rem !important;
    }
    
    .stat-icon-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .stat-item {
        padding: 0.5rem !important;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card {
    animation: fadeInUp 0.5s ease-out;
}

/* Стили для карточек услуг */
.service-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.card-img-container {
    position: relative;
    overflow: hidden;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

.feature-badge {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Компактные карточки животных/услуг */
.compact-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    margin-bottom: 12px;
}

.compact-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.compact-card-img {
    height: 80px;
    object-fit: cover;
    border-radius: 6px 6px 0 0;
}

.compact-card-body {
    padding: 12px;
}

.compact-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.2;
}

.compact-card-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 8px;
    line-height: 1.2;
}

.compact-card-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #198754;
}

.compact-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
}

/* Компактная статистика со всеми данными */
.compact-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin: 10px 0;
}

.compact-stat-item {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 4px;
    text-align: center;
    transition: all 0.2s ease;
}

.compact-stat-item:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.compact-stat-icon {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 4px;
    font-size: 0.8rem;
}

.compact-stat-number {
    font-size: 1rem;
    font-weight: 700;
    color: #4f46e5;
    line-height: 1;
    margin-bottom: 2px;
}

.compact-stat-label {
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 500;
    line-height: 1.2;
}

/* Цвета для иконок */
.stat-animals { background: #e0f2fe; color: #0369a1; }
.stat-services { background: #f0fdf4; color: #16a34a; }
.stat-walks { background: #fef7cd; color: #ca8a04; }
.stat-favorites { background: #fae8ff; color: #c026d3; }
.stat-reviews { background: #ffedd5; color: #ea580c; }
.stat-rating { background: #dcfce7; color: #166534; }


@media (max-width: 468px) {
 .d-flex {
    display: block !important;
} 
}
