.ba-map-widget,
.ba-recipes-grid,
.ba-recipe-info {
  --ba-blue: #001eff;
  --ba-black: #111111;
  --ba-gray: #6d6d6d;
  --ba-border: #111111;
  --ba-card-border: #e6e6e6;
  --ba-white: #ffffff;
  font-family: inherit;
}

.ba-map-widget__filters,
.ba-recipes-grid__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 36px;
}

.ba-map-widget__filter,
.ba-recipes-grid__filter {
  appearance: none;
  border: 1px solid var(--ba-border);
  border-radius: 999px;
  background: var(--ba-white);
  color: var(--ba-black);
  padding: 12px 20px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.ba-map-widget__filter:hover,
.ba-map-widget__filter:focus-visible,
.ba-recipes-grid__filter:hover,
.ba-recipes-grid__filter:focus-visible {
  border-color: var(--ba-blue);
  color: var(--ba-blue);
  outline: none;
}

.ba-map-widget__filter.is-active,
.ba-recipes-grid__filter.is-active {
  background: var(--ba-blue);
  border-color: var(--ba-blue);
  color: var(--ba-white);
}

.ba-map-widget__filter[style*="--ba-term-color"].is-active {
  background: var(--ba-term-color);
  border-color: var(--ba-term-color);
}

.ba-map-widget__map {
  width: 100%;
  min-height: 320px;
  height: 640px;
  background: #f3f1ec;
  z-index: 1;
}

.ba-map-widget__notice {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ba-gray);
}

.ba-map-marker {
  background: transparent;
  border: 0;
}

.ba-map-marker__dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 2px 6px rgba(0,0,0,.25);
}

.ba-map-popup-wrapper .leaflet-popup-content-wrapper {
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,.22);
}

.ba-map-popup-wrapper .leaflet-popup-content {
  margin: 0;
  width: 240px !important;
}

.ba-map-popup-wrapper .leaflet-popup-tip {
  display: none;
}

.ba-map-popup {
  position: relative;
  padding: 24px 22px 22px;
  background: var(--ba-white);
  color: var(--ba-black);
}

.ba-map-popup__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: var(--ba-black);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.ba-map-popup__title {
  margin: 0 0 8px;
  color: var(--ba-blue);
  font-size: 16px;
  line-height: 1.2;
}

.ba-map-popup__terms {
  margin: 0 0 12px;
  color: var(--ba-black);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.ba-map-popup__address {
  position: relative;
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--ba-black);
  font-size: 12px;
  line-height: 1.45;
}

.ba-map-popup__address::before {
  content: '';
  position: absolute;
  left: 0;
  top: .25em;
  width: 9px;
  height: 13px;
  background: var(--ba-blue);
  border-radius: 7px 7px 7px 0;
  transform: rotate(-45deg);
}

.ba-map-popup__maps-link {
  color: var(--ba-blue);
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
}

.ba-recipes-grid__items {
  --ba-recipes-columns: 4;
  display: grid;
  grid-template-columns: repeat(var(--ba-recipes-columns), minmax(0, 1fr));
  gap: 24px;
}

.ba-recipe-card {
  border: 1px solid var(--ba-card-border);
  background: var(--ba-white);
  transition: opacity 180ms ease, transform 180ms ease;
}

.ba-recipe-card[hidden] {
  display: none !important;
}

.ba-recipe-card__link {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.ba-recipe-card__media {
  margin: 0;
  overflow: hidden;
  background: #f3f1ec;
}

.ba-recipe-card__image {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: center;
}

.ba-recipe-card__image--placeholder {
  background: linear-gradient(135deg, #f4f4f4, #e9e9e9);
}

.ba-recipe-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 18px;
}

.ba-recipe-card__title {
  margin: 0;
  color: var(--ba-black);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.ba-recipe-card__icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--ba-black);
  font-size: 14px;
  line-height: 1;
}

.ba-recipe-card__link:hover .ba-recipe-card__title,
.ba-recipe-card__link:focus-visible .ba-recipe-card__title {
  color: var(--ba-blue);
}

.ba-recipes-grid__empty,
.ba-recipe-info__empty {
  margin: 0;
  color: var(--ba-gray);
}

.ba-recipe-info {
  display: flex;
  flex-direction: column;
  gap: 40px;
  color: var(--ba-black);
}

.ba-recipe-info__author {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}

.ba-recipe-info__author span {
  margin-right: .25em;
}

.ba-recipe-info__section {
  margin: 0;
}

.ba-recipe-info__heading {
  margin: 0 0 18px;
  color: var(--ba-black);
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.ba-recipe-info__content > *:first-child,
.ba-recipe-info__step-text > *:first-child {
  margin-top: 0;
}

.ba-recipe-info__content > *:last-child,
.ba-recipe-info__step-text > *:last-child {
  margin-bottom: 0;
}

.ba-recipe-info__content,
.ba-recipe-info__step-text {
  font-size: 17px;
  line-height: 1.65;
}

.ba-recipe-info__ingredients ul,
.ba-recipe-info__ingredients ol {
  margin: 0;
  padding-left: 1.2em;
}

.ba-recipe-info__steps-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: recipe-step;
}

.ba-recipe-info__step-title {
  margin: 0 0 8px;
  color: var(--ba-black);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

@media (max-width: 1024px) {
  .ba-recipes-grid__items {
    --ba-recipes-columns: 2;
  }
}

@media (max-width: 767px) {
  .ba-map-widget__filters,
  .ba-recipes-grid__filters {
    gap: 10px;
    margin-bottom: 24px;
  }

  .ba-map-widget__filter,
  .ba-recipes-grid__filter {
    padding: 10px 14px 9px;
    font-size: 11px;
  }

  .ba-recipes-grid__items {
    --ba-recipes-columns: 1;
  }

  .ba-map-widget__map {
    height: 460px;
  }
}
