.shefa-farm-on-map {
    background: #f8faf8;
}

.shefa-farm-on-map__card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(56, 142, 60, 0.12);
    background: #fff;
}

.shefa-farm-on-map__header {
    padding: 1.75rem 1.75rem 0.75rem;
}

.shefa-farm-on-map__expand {
    white-space: nowrap;
    font-weight: 600;
}

.shefa-farm-map-page {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 120px);
    padding: 0 0 1rem;
}

.shefa-farm-map-page__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem 0.75rem;
}

.shefa-farm-map-page__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-left: auto;
}

.shefa-farm-map-filter {
    position: relative;
}

.shefa-farm-map-filter__toggle {
    font-weight: 600;
    position: relative;
}

.shefa-farm-map-filter__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.15rem;
    height: 1.15rem;
    margin-left: 0.35rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: #fff;
    color: #5b8c51;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
}

.shefa-farm-map-filter__panel {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    z-index: 1200;
    width: min(300px, calc(100vw - 2rem));
    padding: 1rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(91, 140, 81, 0.18);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
}

.shefa-farm-map-filter__panel[hidden] {
    display: none !important;
}

.shefa-farm-map-filter__label {
    margin: 0 0 0.75rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5b8c51;
}

.shefa-farm-map-filter__field {
    margin-bottom: 0.65rem;
}

.shefa-farm-map-filter__field label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #495057;
}

.shefa-farm-map-filter__checks {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0.75rem 0 0.5rem;
}

.shefa-farm-map-filter__check {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    font-size: 0.88rem;
    color: #495057;
    cursor: pointer;
}

.shefa-farm-map-filter__count {
    margin: 0.35rem 0 0.75rem;
    font-size: 0.82rem;
    color: #6c757d;
    font-weight: 600;
}

.shefa-farm-map-filter__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.shefa-farm-map-filter__reset {
    color: #6c757d;
    text-decoration: none;
    padding-left: 0;
}

.shefa-farm-map-page__title {
    color: #5b8c51;
    font-weight: 700;
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
}

.shefa-farm-map-page__hint {
    color: #6c757d;
    font-size: 0.92rem;
}

.shefa-farm-map-page__map-wrap {
    position: relative;
    flex: 1 1 auto;
    min-height: 420px;
    height: calc(100vh - 220px);
    margin: 0 1rem 1rem;
    border-radius: 16px;
    overflow: hidden;
    background: #dce6dc;
    box-shadow: 0 8px 28px rgba(56, 142, 60, 0.12);
}

@media (max-width: 767.98px) {
    .shefa-farm-map-page__map-wrap {
        height: calc(100vh - 260px);
        margin: 0 0.75rem 0.75rem;
    }
}

.shefa-farm-on-map__title {
    color: #5b8c51;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.shefa-farm-on-map__subtitle {
    color: #6c757d;
    margin-bottom: 0;
}

.shefa-farm-on-map__map-wrap {
    position: relative;
    width: 100%;
    height: 420px;
    min-height: 420px;
    background: #dce6dc;
    overflow: hidden;
}

.shefa-farm-on-map__map {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.shefa-farm-on-map__map.leaflet-container,
.shefa-farm-on-map__map .leaflet-container {
    width: 100% !important;
    height: 100% !important;
    background: #dce6dc;
    font-family: inherit;
}

.shefa-farm-on-map__map .leaflet-tile-pane {
    opacity: 1;
}

.shefa-farm-on-map__overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    z-index: 500;
    pointer-events: none;
}

.shefa-farm-on-map__overlay--loading {
    background: rgba(255, 255, 255, 0.88);
    color: #5b8c51;
    font-weight: 600;
}

.shefa-farm-on-map__overlay--empty {
    display: none;
    background: rgba(255, 255, 255, 0.94);
    color: #5b8c51;
    font-weight: 600;
}

.shefa-farm-on-map__overlay.is-visible {
    display: flex;
}

.shefa-farm-on-map__overlay.is-hidden {
    display: none !important;
}

.shefa-farm-map-popup a {
    touch-action: manipulation;
    -webkit-user-drag: none;
}

.shefa-farm-map-popup {
    min-width: 260px;
    max-width: 300px;
}

.shefa-farm-map-popup__title {
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.shefa-farm-map-popup__location {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.shefa-farm-map-popup__desc {
    font-size: 0.85rem;
    color: #495057;
    margin-bottom: 0.75rem;
}

.shefa-farm-map-popup__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.shefa-farm-map-popup__links a {
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    pointer-events: auto;
}

.shefa-farm-map-popup__foods-wrap {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(91, 140, 81, 0.15);
}

.shefa-farm-map-popup__foods-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5b8c51;
    margin-bottom: 0.5rem;
}

.shefa-farm-map-popup__foods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.shefa-farm-map-food-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(91, 140, 81, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    cursor: pointer;
}

.shefa-farm-map-food-card:hover {
    box-shadow: 0 4px 12px rgba(91, 140, 81, 0.18);
    transform: translateY(-1px);
    color: inherit;
    text-decoration: none;
}

.shefa-farm-map-food-card__img {
    width: 100%;
    height: 72px;
    object-fit: cover;
    display: block;
}

.shefa-farm-map-food-card__img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef5ec;
    color: #5b8c51;
    font-size: 1.25rem;
}

.shefa-farm-map-food-card__body {
    padding: 0.4rem 0.5rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.shefa-farm-map-food-card__name {
    font-size: 0.72rem;
    font-weight: 600;
    color: #2e7d32;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shefa-farm-map-food-card__cat {
    font-size: 0.65rem;
    color: #6c757d;
}

.shefa-farm-map-food-card__price {
    font-size: 0.72rem;
    font-weight: 700;
    color: #5b8c51;
}

.shefa-farm-map-popup__foods-all {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #5b8c51;
    text-decoration: none;
}

.shefa-farm-map-popup__foods-all:hover {
    color: #2e7d32;
    text-decoration: underline;
}

.shefa-farm-map-popup__foods-loading,
.shefa-farm-map-popup__foods-empty {
    font-size: 0.82rem;
    color: #6c757d;
    text-align: center;
    padding: 0.5rem 0;
    margin: 0;
}

.shefa-farm-map-popup__foods-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.shefa-farm-map-marker-wrap {
    background: transparent !important;
    border: none !important;
}

.shefa-farm-map-marker {
    display: block;
    background: #5b8c51;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

@media (max-width: 767.98px) {
    .shefa-farm-on-map__map-wrap {
        height: 320px;
        min-height: 320px;
    }
}
