/**
 * Square equipment imagery — catalog grid, type page, provider listing page.
 */

.eq-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f1f5f9;
    isolation: isolate;
}

.eq-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.eq-media img[src*="placeholders/"] {
    object-fit: contain;
    padding: 1.25rem;
    background: #f8fafc;
}

.eq-media--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.eq-media--placeholder i {
    font-size: clamp(2rem, 8vw, 3rem);
}

/* Catalog card — flush with card top, rounded via parent overflow */
.eq-card .eq-media {
    border-radius: 0;
}

.eq-card > .eq-media-wrap {
    flex-shrink: 0;
}

/* Type / provider detail hero */
.eq-media--hero {
    max-width: 100%;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.07);
}

@media (min-width: 768px) {
    .eq-media--hero.eq-media--hero-narrow {
        max-width: 360px;
    }
}

/* Provider row on equipment type page */
.eq-offer-card {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.eq-offer-card:hover {
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1);
}

.eq-offer-card__layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

@media (min-width: 576px) {
    .eq-offer-card__layout {
        flex-direction: row;
    }
}

.eq-offer-card__media {
    flex-shrink: 0;
    width: 100%;
}

@media (min-width: 576px) {
    .eq-offer-card__media {
        width: 140px;
    }
}

@media (min-width: 768px) {
    .eq-offer-card__media {
        width: 160px;
    }
}

.eq-offer-card__media .eq-media {
    height: 100%;
    min-height: 140px;
    aspect-ratio: auto;
}

@media (min-width: 576px) {
    .eq-offer-card__media .eq-media {
        aspect-ratio: 1 / 1;
        min-height: 0;
        height: auto;
    }
}

.eq-offer-card__body {
    padding: 1rem 1.15rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

@media (min-width: 576px) {
    .eq-offer-card__body {
        padding: 1.15rem 1.25rem;
    }
}
