/* JEM Venue Card Plugin */

.jem-venue-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    background: #fff;
    max-width: 680px;
}

/* ── Side-by-side layout: image left, info right ── */
.jem-venue-card__inner {
    display: flex;
    align-items: stretch;
}

.jem-venue-card__image {
    flex: 0 0 35%;
    max-width: 35%;
    overflow: hidden;
}

.jem-venue-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.jem-venue-card__body {
    flex: 1 1 65%;
    padding: 1.25rem;
    min-width: 0; /* prevent flex overflow */
}

/* ── When there is no image: body takes full width ── */
.jem-venue-card__inner:not(:has(.jem-venue-card__image)) .jem-venue-card__body {
    flex-basis: 100%;
}

/* ── Collapse to stacked layout on small screens ── */
@media (max-width: 480px) {
    .jem-venue-card__inner {
        flex-direction: column;
    }

    .jem-venue-card__image {
        flex: none;
        max-width: 100%;
        max-height: 200px;
    }
}

/* ── Typography ── */
.jem-venue-card__title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.65rem;
    color: #212529;
}

.jem-venue-card__address,
.jem-venue-card__url,
.jem-venue-card__custom {
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
    color: #495057;
}

.jem-venue-card__url a {
    color: inherit;
    word-break: break-all;
}

.jem-venue-icon {
    display: inline-block;
    width: 1.3em;
    text-align: center;
}

/* ── Footer ── */
.jem-venue-card__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid #dee2e6;
    background: #f8f9fa;
}

/* ── Map modal ── */
#jemVenueMap {
    height: 400px;
    width: 100%;
}
