/* ============================================================
   AGP Store Locator — All rules scoped to #mbf-sl-wrap
   so they never bleed into Elementor or theme elements.
   ============================================================ */

/* Reset only inside the plugin wrapper */
#mbf-sl-wrap *,
#mbf-sl-wrap *::before,
#mbf-sl-wrap *::after {
    box-sizing: border-box;
}

/* Wrapper */
#mbf-sl-wrap {
    width: 100%;
    font-family: inherit;          /* use Hub/WP theme font */
    color: inherit;
    line-height: 1.5;
}

/* ---- Container: constrains the outlet list (theme page-container spec) ---- */
.mbf-sl-container {
    max-width: 1376px;
    margin: 0 auto;
    padding: 0 25px;
    position: relative;
}

/* ---- Panel ---- */
.mbf-sl-panel {
    padding: 28px 0 0;
}

/* Section label */
.mbf-sl-label {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 14px;
    padding: 0;
    color: inherit;
}

/* ---- Cards grid ---- */
.mbf-sl-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
}

/* ---- Individual card ---- */
.mbf-sl-card {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.18s;
}

.mbf-sl-card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.10);
}

/* Card image */
.mbf-sl-card__img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f0f0f0;
    flex-shrink: 0;
}

.mbf-sl-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    box-shadow: none;
}

/* Placeholder when no image */
.mbf-sl-card__img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8e5d8 0%, #fcd4b8 100%);
    padding: 1rem;
}

.mbf-sl-card__img--placeholder span {
    font-size: 13px;
    font-weight: 600;
    color: #b35a10;
    text-align: center;
}

/* Card body */
.mbf-sl-card__body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.mbf-sl-card__name {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px;
    padding: 0;
    color: inherit;
    line-height: 1.3;
    border: none;
    background: none;
}

.mbf-sl-card__address,
.mbf-sl-card__phone,
.mbf-sl-card__hours {
    font-size: 13px;
    margin: 0;
    padding: 0;
    color: #555;
    line-height: 1.5;
}

.mbf-sl-card__actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

/* ---- Buttons ---- */
.mbf-sl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 22px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    line-height: 1;
    border: 2px solid transparent;
    white-space: nowrap;
}

.mbf-sl-btn--primary {
    background: #f66e18;
    color: #fff !important;
    border-color: #f66e18;
}

.mbf-sl-btn--primary:hover {
    background: #d95e10;
    border-color: #d95e10;
    color: #fff !important;
}

.mbf-sl-btn--outline {
    background: transparent;
    color: #333 !important;
    border-color: #333;
}

.mbf-sl-btn--outline:hover {
    background: #333;
    color: #fff !important;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .mbf-sl-cards {
        grid-template-columns: 1fr;
    }
}
