.theme-farmyard .directions.location-card {
    display: block;
    padding: 0;
    margin: 0;
    border-radius: 28px 28px 6px 6px;
    background: #f8f4e9;
    isolation: isolate;
}

.location-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
}

.location-card-head > a {
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.location-map {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 390px;
    background: #e2e7dc;
    color: #321126;
    font: 14px/1.5 Arial, sans-serif;
}

.location-map-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 12px;
    padding: 24px;
    margin: 0;
    text-align: center;
}

.location-map-fallback > p { margin: 0; }
.location-map-fallback .location-map-disclosure { max-width: 350px; font: 12px/1.6 Arial, sans-serif; }
.location-map-fallback .button { justify-self: center; width: auto; gap: 12px; }
.location-map-fallback[hidden] { display: none; }
.location-map[data-map-state="unavailable"] .location-map-fallback { z-index: 1000; background: #e2e7dc; }
.location-map img.leaflet-tile { max-width: none; }
.location-map .leaflet-control-attribution { font-size: 10px; }
.location-map .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; color: #321126; background: #fffaf0; }
.location-map:focus-visible,
.yarmarka-location-pin:focus-visible { outline: 3px solid #b64d31; outline-offset: -3px; }
.location-map .leaflet-popup-content { font: 14px/1.5 Arial, sans-serif; }
.location-map .leaflet-popup-content strong { font: 600 15px/1.4 Arial, sans-serif; }
.location-map .leaflet-popup-content p { margin: 5px 0 0; font-size: 13px; }
.yarmarka-location-pin > span { display: block; width: 28px; height: 28px; border: 3px solid #fffaf0; border-radius: 50% 50% 50% 0; background: #321126; transform: rotate(-45deg); box-shadow: 0 2px 7px #32112670; }
.yarmarka-location-pin > span::after { content: ''; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #fffaf0; left: 8px; top: 8px; }

.location-actions { padding: 18px 20px; }
.location-actions .button { width: 100%; }
.location-map-status { margin: 0 0 12px; font-size: 12px; line-height: 1.5; }
.location-map-status:empty { display: none; }
.location-map-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin-top: 12px; color: #64735a; font-size: 10px; }
.location-map-meta a { text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 760px) {
    .location-map { height: 330px; }
    .location-card-head { align-items: flex-start; }
}
