/* Featured Listings Section */
.featured-listings-section {
    padding: 40px 0;
}

.featured-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Listing Card */
.listing-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(29, 49, 66, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #c2af97;
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(29, 49, 66, 0.15);
}

.listing-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Listing Image */
.listing-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f7f3ed 0%, #c2af97 100%);
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d3142;
    font-weight: 500;
    font-size: 14px;
}

/* PRICE BADGE - BOTTOM LEFT */
.listing-price-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(198, 169, 105, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

/* STATUS BADGE - TOP RIGHT */
.listing-status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    z-index: 10;
    animation: fadeInBadge 0.5s ease;
}

.listing-status-badge.parduotas {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.listing-status-badge.rezervuotas {
    background: linear-gradient(135deg, #f39c12, #d68910);
    color: white;
}

@keyframes fadeInBadge {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Listing Content */
.listing-content {
    padding: 20px;
}

.listing-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1d3142;
    margin: 0 0 15px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Listing Details */
.listing-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.listing-details > span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #555;
}

.listing-details svg {
    flex-shrink: 0;
    color: #c6a969;
}

.listing-location {
    color: #1d3142;
    font-weight: 500;
}

.listing-area,
.listing-rooms {
    color: #555;
}

/* No Listings Message */
.no-listings {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    color: #1d3142;
    font-size: 16px;
    border: 1px solid #c2af97;
}

/* Responsive Design */
@media (max-width: 768px) {
    .featured-listings-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
        padding: 0 15px;
    }
    
    .listing-image {
        height: 200px;
    }
    
    .listing-price-badge {
        font-size: 1rem;
        padding: 8px 14px;
        bottom: 10px;
        left: 10px;
    }
    
    .listing-status-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
        top: 10px;
        right: 10px;
    }
    
    .listing-content {
        padding: 15px;
    }
    
    .listing-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .featured-listings-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .listing-image {
        height: 180px;
    }
}