/* Property Showcase Grid - 4 columns × 5 rows */

.profiles-grid-section {
    padding: 48px 0 80px;
}

.profiles-grid-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Remove scroll container styles and use grid */
.scroll-container {
    width: 100%;
    overflow: visible; /* Changed from hidden to visible */
}

.scroll-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns */
    gap: 1.5rem;
    animation: none; /* Remove animation */
    cursor: default; /* Remove grab cursor */
}

/* Show only 20 cards (4×5 grid) */
.scroll-content .showcase-card:nth-child(n+21) {
    display: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .scroll-content {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on tablets */
    }
    
    .scroll-content .showcase-card:nth-child(n+16) {
        display: none; /* Show 15 cards (3×5) */
    }
}

@media (max-width: 768px) {
    .scroll-content {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    }
    
    .scroll-content .showcase-card:nth-child(n+11) {
        display: none; /* Show 10 cards (2×5) */
    }
}

@media (max-width: 480px) {
    .scroll-content {
        grid-template-columns: 1fr; /* 1 column on small mobile */
    }
    
    .scroll-content .showcase-card:nth-child(n+6) {
        display: none; /* Show 5 cards */
    }
}

/* Show More Button */
.show-more-container {
    text-align: center;
    margin-top: 3rem;
}

.show-more-btn {
    background: linear-gradient(135deg, #7c3aed 0%, #6b21a8 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.show-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.show-more-btn:active {
    transform: translateY(0);
}

.show-more-btn i {
    transition: transform 0.3s ease;
}

.show-more-btn:hover i {
    transform: translateY(3px);
}

/* Card Styles */
.showcase-card {
    background: var(--profile-card-bg, rgba(255, 255, 255, 0.95));
    border-radius: 16px;
    border: 1px solid var(--profile-card-border, rgba(124, 58, 237, 0.2));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
}

.showcase-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.2);
    border-color: #7c3aed;
}

.showcase-card:focus-visible {
    outline: 3px solid #7c3aed;
    outline-offset: 4px;
}

.showcase-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #f3f0ff 0%, #e5e0ff 100%);
}

.showcase-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.showcase-card:hover .showcase-card__image img {
    transform: scale(1.1);
}

.showcase-card__price {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(124, 58, 237, 0.95);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.showcase-card__content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.showcase-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.showcase-card__location {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.85rem;
}

.showcase-card__location i {
    color: #7c3aed;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.showcase-card__location span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    line-height: 1.4;
}

.showcase-card__meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #4b5563;
}

.showcase-card__meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.showcase-card__meta i {
    color: #7c3aed;
}

.showcase-card__description {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}
