/* Locations archive grid — auto-fit so 2 → 3 cards is zero layout work. */
.mma-locations-grid .wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--wp--preset--spacing--large);
    list-style: none;
    padding: 0;
    margin: 0;
}

.mma-location-card {
    background: var(--wp--preset--color--white, #fff);
    border: 1px solid var(--wp--preset--color--porcelain, #e5e7eb);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mma-location-card__map img {
    display: block;
    width: 100%;
    height: auto;
    border-bottom: 1px solid var(--wp--preset--color--porcelain, #e5e7eb);
}

.mma-location-card__body {
    padding: var(--wp--preset--spacing--large, 24px);
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.mma-location-card__title {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 600;
}

.mma-location-card__title a {
    color: var(--wp--preset--color--pickled-bluewood, #2b3a55);
    text-decoration: none;
}

.mma-location-card__address {
    font-style: normal;
    color: var(--wp--preset--color--neutral-dark, #4a5568);
    line-height: 1.4;
}

.mma-location-card__hours {
    margin: 0;
    color: var(--wp--preset--color--mountain-meadow, #2c8a5b);
    font-weight: 500;
}

.mma-location-card__phone {
    color: var(--wp--preset--color--pickled-bluewood, #2b3a55);
    text-decoration: none;
    font-weight: 500;
}

.mma-location-card__cta {
    margin-top: auto;
    padding: 10px 16px;
    background: var(--wp--preset--color--pickled-bluewood, #2b3a55);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    align-self: flex-start;
}

.mma-location-card__cta:hover { opacity: 0.92; }

/* Single location page */
.mma-location-detail { gap: var(--wp--preset--spacing--x-large); }

.mma-location-meta__address,
.mma-location-meta__hours,
.mma-location-meta__phone,
.mma-location-meta__fax {
    display: block;
    margin-bottom: 12px;
    line-height: 1.5;
}

.mma-location-meta__directions {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 20px;
    background: var(--wp--preset--color--mountain-meadow, #2c8a5b);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
}

.mma-location-meta__directions:hover { opacity: 0.92; }

.mma-location-map {
    display: block;
    width: 100%;
    height: 360px;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .mma-location-map {
        height: 280px;
    }
}
