.villas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
}

.villa-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
}

.card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.card h3 {
    font-size: 1.1rem;
    text-align: center;
    color: var(--blue-main);
    margin: 0;
}

.card p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
    text-align: left;
}

.price-row {
    background: #f2f2f2;
    padding: 8px 10px;
    font-size: 0.85rem;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.price-row span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .villa-img {
        height: 120px;
    }

    .card h3 {
        font-size: 1rem;
    }

    .card p,
    .price-row {
        font-size: 0.85rem;
    }

    .price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
