/* ── Pup Listings — Available Puppies Grid ── */

/* Always 2 columns, even with a single card — each card is exactly 50% wide */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 15px;
    /* Don't let auto-fill/auto-fit collapse to 1 column on wide screens */
    max-width: 100%;
}

@media (max-width: 600px) {
    .listing-grid {
        grid-template-columns: 1fr;
    }
}

.listing-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* Ensure card never exceeds its grid cell */
    width: 100%;
    min-width: 0;
}

.listing-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.listing-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.listing-title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
}

.listing-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.listing-price {
    font-size: 1rem;
    font-weight: 600;
    color: #0b7a34;
}

.listing-description {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
    line-height: 1.4;
}

.listing-button {
    display: inline-block;
    padding: 8px 14px;
    background: maroon;
    border: 2px solid maroon;
    color: #fff;
    opacity: 0.7;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    margin-top: 8px;
}

.listing-button:hover {
    background: maroon;
    border: 2px solid white;
    opacity: 1;
    color: #fff;
}
