.hot-listings-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    position: relative;
}

.hot-listings-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(240, 147, 251, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(245, 87, 108, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hot-listings-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.hot-listings-title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 28px;
    font-weight: 600;
}

.hot-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.hot-listing-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(240, 147, 251, 0.2);
}

.hot-listing-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border-color: rgba(240, 147, 251, 0.5);
}

.hot-listing-image {
    position: relative;
    padding-top: 100%; /* Соотношение сторон 1:1 */
    overflow: hidden;
}

.hot-listing-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hot-listing-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hot-listing-content {
    padding: 12px;
}

.hot-listing-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.hot-listing-city {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.hot-listing-city i {
    color: #ff4757;
    margin-right: 5px;
}

.hot-listing-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.original-price {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 12px;
    opacity: 0.7;
}

.final-price {
    background: linear-gradient(135deg, #ff4757, #ff3742);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 16px;
    text-shadow: 0 2px 4px rgba(255, 71, 87, 0.3);
}

.hot-listing-description {
    display: none; /* Скрываем описание в карточке */
}

.hot-listing-link {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
    border: none;
}

.hot-listing-link:hover {
    background: linear-gradient(135deg, #ff3742, #ff2e3a);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.6);
}

.no-hot-listings {
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-hot-listings i {
    font-size: 48px;
    color: #ff4757;
    margin-bottom: 15px;
}

.error-message {
    text-align: center;
    padding: 20px;
    color: #ff4757;
    font-size: 14px;
}

.error-message i {
    font-size: 20px;
    margin-bottom: 8px;
}

.no-listings {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
}

@media (max-width: 768px) {
    .hot-listings-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
        padding: 5px;
    }
    
    .hot-listing-content {
        padding: 8px;
    }
    
    .hot-listing-content h3 {
        font-size: 12px;
    }
    
    .hot-listing-location {
        font-size: 11px;
    }
    
    .final-price {
        font-size: 12px;
    }
    
    .original-price {
        font-size: 11px;
    }
    
    .days-left-badge {
        font-size: 10px;
        padding: 3px 6px;
    }
}

.hot-listings-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.hot-listing-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.hot-listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hot-listing-card.inactive {
    opacity: 0.7;
}

.hot-listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hot-listing-card:hover .hot-listing-image img {
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4757;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
    z-index: 2;
}

.status-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
    z-index: 2;
}

.status-badge.active {
    background: #2ecc71;
    color: white;
}

.status-badge.inactive {
    background: #95a5a6;
    color: white;
}

.hot-listing-content h3 {
    margin: 0 0 5px;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hot-listing-location {
    color: #666;
    font-size: 12px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hot-listing-location i {
    margin-right: 4px;
    color: #ff4757;
    font-size: 12px;
}

.btn-primary {
    display: none; /* Скрываем кнопку в карточке */
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
}

.days-left-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
    z-index: 2;
} 