/* Food Explorer — fullscreen map overlay (Phase 1) */

:root {
  --food-explorer-radius: 20px;
  --food-explorer-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --food-explorer-sidebar-width: clamp(360px, 32vw, 420px);
  --food-explorer-accent: #3f7dff;
}

body.food-explorer-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.food-explorer {
  position: fixed;
  inset: 0;
  z-index: 99;
  padding-top: var(--food-explorer-nav-offset, 3.25rem);
  pointer-events: none;
}

.food-explorer[hidden] {
  display: none !important;
}

.food-explorer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 20, 24, 0.34);
  opacity: 0;
  transition: opacity 220ms var(--food-explorer-ease);
}

.food-explorer.is-open {
  pointer-events: auto;
}

.food-explorer.is-open .food-explorer__backdrop {
  opacity: 1;
}

.food-explorer__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  background: #f7f6f3;
  border-radius: var(--food-explorer-radius) var(--food-explorer-radius) 0 0;
  box-shadow: 0 -12px 48px rgba(16, 18, 22, 0.14);
  opacity: 0;
  transform: scale(0.98);
  transform-origin: center top;
  transition:
    opacity 220ms var(--food-explorer-ease),
    transform 220ms var(--food-explorer-ease);
  overflow: hidden;
}

.food-explorer.is-open .food-explorer__panel {
  opacity: 1;
  transform: scale(1);
}

.food-explorer__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1c1f24;
  font-size: 1.5rem;
  line-height: 1;
  box-shadow: 0 4px 18px rgba(16, 18, 22, 0.1);
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.food-explorer__close:hover,
.food-explorer__close:focus-visible {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(16, 18, 22, 0.14);
  outline: none;
}

.food-explorer__layout {
  display: grid;
  grid-template-columns: var(--food-explorer-sidebar-width) minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}

.food-explorer__sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
  padding: 1.35rem 1.1rem 1.35rem 1.35rem;
  background: linear-gradient(180deg, #faf9f7 0%, #f4f3f0 100%);
}

.food-explorer__filters {
  min-height: 0;
}

.food-explorer__filter-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.food-explorer__filter {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.food-explorer__filter-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.food-explorer__filter-select {
  width: 100%;
  padding: 0.62rem 0.75rem;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 12px rgba(16, 18, 22, 0.05);
  font: inherit;
  font-size: 0.9rem;
  color: var(--color-text);
}

.food-explorer__phase3-slot {
  display: none;
}

.food-explorer__count {
  margin: 0.5rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.86rem;
  font-weight: 500;
}

.food-explorer__toolbar {
  display: flex;
  align-items: stretch;
  gap: 0.55rem;
}

.food-explorer__search {
  display: block;
  flex: 1;
  min-width: 0;
}

.food-explorer__reset {
  flex: 0 0 auto;
  align-self: center;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(16, 18, 22, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 8px rgba(16, 18, 22, 0.04);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.food-explorer__reset:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(16, 18, 22, 0.12);
  color: var(--color-text);
  box-shadow: 0 2px 12px rgba(16, 18, 22, 0.07);
}

.food-explorer__reset:focus-visible {
  outline: 2px solid rgba(63, 125, 255, 0.45);
  outline-offset: 2px;
}

.food-explorer__reset:disabled,
.food-explorer__reset.is-idle {
  opacity: 0.42;
  cursor: default;
  box-shadow: none;
}

.food-explorer__search-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 14px rgba(16, 18, 22, 0.06);
  font: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
}

.food-explorer__search-input:focus-visible {
  outline: 2px solid rgba(63, 125, 255, 0.45);
  outline-offset: 2px;
}

.food-explorer__search-input::placeholder {
  color: var(--color-text-muted);
}

.food-explorer__intro {
  padding-right: 2.5rem;
}

.food-explorer__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.food-explorer__subtitle {
  margin: 0.35rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.food-explorer__list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 0;
  padding-right: 0.2rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.food-explorer__empty {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.food-explorer-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  padding: 0.75rem;
  border: none;
  border-left: 3px solid transparent;
  border-radius: var(--food-explorer-radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 20px rgba(16, 18, 22, 0.06);
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.food-explorer-card:hover,
.food-explorer-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(16, 18, 22, 0.1);
  outline: none;
}

.food-explorer-card.is-active,
.food-explorer-card[aria-selected="true"] {
  border-left-color: var(--food-explorer-accent);
  background: rgba(63, 125, 255, 0.08);
  box-shadow: 0 10px 30px rgba(63, 125, 255, 0.14);
  transform: translateY(-1px);
}

.food-explorer-card.is-active:hover,
.food-explorer-card[aria-selected="true"]:hover {
  transform: translateY(-2px);
}

.food-explorer-card__media {
  margin: 0;
  width: 96px;
  height: 96px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(20, 24, 28, 0.06);
}

.food-explorer-card__media--empty {
  background: linear-gradient(145deg, rgba(20, 24, 28, 0.05), rgba(20, 24, 28, 0.1));
}

.food-explorer-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.food-explorer-card__body {
  min-width: 0;
  padding-right: 0.25rem;
}

.food-explorer-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.2;
}

.food-explorer-card__location {
  margin: 0.35rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.86rem;
}

.food-explorer-card__rating {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
}

.food-explorer-card__rating-label {
  color: var(--color-text-muted);
  font-weight: 500;
}

.food-explorer-card__rating-max {
  color: var(--color-text-muted);
  font-weight: 500;
}

.food-explorer__count {
  transition: opacity 220ms var(--food-explorer-ease);
}

.food-explorer__count.is-updating {
  opacity: 0.72;
}

.food-explorer__list.is-filtering .food-explorer-card {
  opacity: 0.55;
  transform: translateY(6px);
  transition:
    opacity 180ms var(--food-explorer-ease),
    transform 180ms var(--food-explorer-ease);
}

@keyframes food-explorer-card-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.food-explorer-card--enter {
  animation: food-explorer-card-enter 220ms var(--food-explorer-ease) both;
  animation-delay: var(--card-enter-delay, 0ms);
}

.food-explorer-best {
  position: absolute;
  z-index: 4;
  width: min(320px, calc(100% - 2rem));
  padding: 1.1rem 1.15rem 1rem;
  border: 1px solid rgba(32, 30, 28, 0.08);
  border-radius: 18px;
  background: rgba(253, 252, 250, 0.94);
  box-shadow:
    0 24px 48px rgba(15, 23, 42, 0.12),
    0 8px 20px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition:
    opacity 240ms var(--food-explorer-ease),
    transform 240ms var(--food-explorer-ease);
}

.food-explorer-best:not([hidden]).is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.food-explorer-best__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #1f1e1c;
}

.food-explorer-best__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.food-explorer-best__item {
  margin: 0;
}

.food-explorer-best__button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  width: 100%;
  padding: 0.55rem 0.5rem;
  border: none;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    transform 180ms var(--food-explorer-ease);
}

.food-explorer-best__button:hover,
.food-explorer-best__button:focus-visible {
  background: rgba(32, 30, 28, 0.04);
  outline: none;
}

.food-explorer-best__button:active {
  transform: scale(0.992);
}

.food-explorer-best__rank {
  min-width: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.35;
}

.food-explorer-best__copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.food-explorer-best__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  color: #1f1e1c;
}

.food-explorer-best__score {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: #6f6c67;
}

.food-explorer-best__stars {
  letter-spacing: 0.04em;
  color: #4a4844;
}

.food-explorer-best__value {
  font-weight: 600;
  color: #3d3c39;
}

.food-explorer__map-wrap {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: #e8e6e1;
}

.food-map--explorer {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: 0;
}

.food-map--explorer .food-map-marker-wrap .food-map-marker {
  transition:
    transform 220ms var(--food-explorer-ease),
    box-shadow 220ms var(--food-explorer-ease),
    opacity 220ms var(--food-explorer-ease);
}

.food-map--explorer .food-map-marker-wrap--enter .food-map-marker {
  opacity: 0;
  transform: scale(0.9);
}

.food-map--explorer .food-map-marker-wrap:hover .food-map-marker,
.food-map--explorer .food-map-marker-wrap:focus-visible .food-map-marker {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(63, 125, 255, 0.42);
}

@keyframes food-map-marker-pulse {
  0%,
  100% {
    box-shadow: 0 2px 10px rgba(63, 125, 255, 0.34);
  }

  50% {
    box-shadow: 0 5px 18px rgba(63, 125, 255, 0.46);
  }
}

.food-map--explorer .food-map-marker-wrap--selected .food-map-marker {
  transform: scale(1.04);
  animation: food-map-marker-pulse 2.6s ease-in-out infinite;
}

.food-map--explorer .leaflet-cluster-anim .leaflet-marker-icon,
.food-map--explorer .leaflet-cluster-anim .leaflet-marker-shadow {
  transition:
    transform 320ms var(--food-explorer-ease),
    opacity 320ms var(--food-explorer-ease);
}

@keyframes food-map-popup-in-explorer {
  from {
    opacity: 0;
    transform: scale(0.98);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.food-map--explorer .food-map-popup-shell .leaflet-popup-content-wrapper {
  animation: food-map-popup-in-explorer 220ms var(--food-explorer-ease);
  transform-origin: center bottom;
}

.food-map--explorer .leaflet-popup.food-map-popup-shell {
  transition: opacity 180ms var(--food-explorer-ease);
}

.food-map--explorer .food-map-popup-shell--closing {
  opacity: 0;
}

@keyframes food-map-popup-kenburns {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.03);
  }
}

.food-map--explorer .food-map-popup__image--kenburns {
  animation: food-map-popup-kenburns 20s ease-out forwards;
  transform-origin: center center;
}

.food-map--explorer .food-map-popup-shell .leaflet-popup-content-wrapper {
  max-width: min(320px, calc(100vw - 2.5rem));
}

.food-map--explorer .food-map-popup-shell .leaflet-popup-content {
  margin: 0.65rem 0.75rem;
}

@media (min-width: 901px) {
  .food-explorer__filter-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .food-explorer-card {
    transition:
      transform 220ms var(--food-explorer-ease),
      box-shadow 220ms var(--food-explorer-ease),
      background 220ms var(--food-explorer-ease),
      border-color 220ms var(--food-explorer-ease);
  }

  .food-explorer-card:hover,
  .food-explorer-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(16, 18, 22, 0.12);
  }

  .food-explorer-card:active {
    transform: translateY(-2px) scale(0.992);
    transition-duration: 120ms;
  }
}

@media (min-width: 1024px) {
  .food-explorer-best {
    right: 1.25rem;
    bottom: 1.25rem;
  }
}

@media (max-width: 900px) {
  .food-explorer__panel {
    border-radius: 0;
    height: 100%;
    min-height: 0;
  }

  .food-explorer__layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
  }

  .food-explorer__sidebar {
    order: 2;
    flex: 1 1 auto;
    gap: 0;
    min-height: 0;
    max-height: 55vh;
    border-radius: var(--food-explorer-radius) var(--food-explorer-radius) 0 0;
    box-shadow: 0 -10px 36px rgba(16, 18, 22, 0.1);
    padding: 1.35rem 1.25rem 1.25rem;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .food-explorer__toolbar {
    display: contents;
  }

  .food-explorer__intro {
    order: 1;
    flex: 0 0 auto;
    margin: 0 0 0.85rem;
    padding-right: 2.75rem;
  }

  .food-explorer__title {
    margin-bottom: 0.25rem;
  }

  .food-explorer__subtitle {
    margin: 0 0 0.35rem;
  }

  .food-explorer__count {
    margin: 0;
  }

  .food-explorer__search {
    order: 2;
    flex: 0 0 auto;
    margin: 0 0 0.875rem;
  }

  .food-explorer__filters {
    order: 3;
    flex: 0 0 auto;
    margin: 0 0 0.875rem;
  }

  .food-explorer__filter-row {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
  }

  .food-explorer__filter {
    gap: 0;
    margin: 0;
  }

  .food-explorer__filter-label {
    display: block;
    margin: 0 0 0.375rem;
    line-height: 1.2;
  }

  .food-explorer__filter-select,
  .food-explorer__search-input {
    min-height: 3rem;
    border-radius: 16px;
  }

  .food-explorer__reset {
    order: 4;
    flex: 0 0 auto;
    align-self: flex-start;
    margin: 0 0 0.875rem;
  }

  .food-explorer__list {
    order: 5;
    flex: 0 0 auto;
    min-height: 0;
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    overflow: visible;
  }

  .food-explorer__map-wrap {
    order: 1;
    flex: 0 0 45vh;
    height: 45vh;
    max-height: 50vh;
    min-height: 0;
  }

  .food-explorer__close {
    top: calc(var(--food-explorer-nav-offset, 3.25rem) + 0.65rem);
    right: 0.75rem;
    background: rgba(255, 255, 255, 0.96);
  }
}

@media (max-width: 768px) {
  .food-explorer__map-wrap {
    flex-basis: 48vh;
    height: 48vh;
    max-height: 50vh;
  }

  .food-explorer__sidebar {
    max-height: 52vh;
    padding: 1.375rem 1.5rem 1.25rem;
  }

  .food-explorer__intro {
    margin-bottom: 1rem;
  }

  .food-explorer__search,
  .food-explorer__filters,
  .food-explorer__reset {
    margin-bottom: 0.875rem;
  }

  .food-explorer__filter-select,
  .food-explorer__search-input {
    min-height: 3.125rem;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }

  .food-explorer__list {
    margin-top: 1.125rem;
    padding-top: 0;
    gap: 0.75rem;
  }

  .food-explorer-card:first-child {
    margin-top: 0;
  }

  /* Explorer map popup — mobile only; inline /food map unchanged */
  .food-map--explorer .food-map-popup-shell .leaflet-popup-content-wrapper {
    max-width: min(260px, calc(100vw - 72px));
    border-radius: 14px;
  }

  .food-map--explorer .food-map-popup-shell .leaflet-popup-content {
    width: min(260px, calc(100vw - 72px)) !important;
    max-width: min(260px, calc(100vw - 72px)) !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .food-map--explorer .food-map-popup {
    max-width: min(260px, calc(100vw - 72px));
  }

  .food-map--explorer .food-map-popup__layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
  }

  .food-map--explorer .food-map-popup__media {
    flex: none;
    width: 100%;
  }

  .food-map--explorer .food-map-popup__image {
    height: 100px;
    min-height: 0;
    max-height: 110px;
    aspect-ratio: auto;
    border-radius: 14px 14px 0 0;
  }

  .food-map--explorer .food-map-popup__content {
    gap: 0.3rem;
    padding: 0.75rem 0.875rem 0.875rem;
  }

  .food-map--explorer .food-map-popup:not(.food-map-popup--has-media) .food-map-popup__content {
    padding: 0.75rem 0.875rem;
  }

  .food-map--explorer .food-map-popup__title {
    font-size: 1.625rem;
    line-height: 1.12;
    padding-right: 1.85rem;
  }

  .food-map--explorer .food-map-popup__meta {
    font-size: 0.82rem;
    line-height: 1.3;
  }

  .food-map--explorer .food-map-popup__meta--rating {
    font-size: 0.82rem;
  }

  .food-map--explorer .food-map-popup__link {
    margin-top: 0.2rem;
    font-size: 0.84rem;
  }

  .food-map--explorer .food-map-popup-shell .leaflet-popup-close-button {
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    line-height: 26px;
    font-size: 1.1rem;
    color: #8a8a8a;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 6px rgba(16, 18, 22, 0.08);
  }
}

@media (min-width: 1200px) {
  .food-map--explorer .leaflet-popup.food-map-popup-shell {
    max-width: min(960px, calc(100vw - 3rem));
    margin-bottom: 20px;
    overflow: visible;
  }

  .food-map--explorer .food-map-popup-shell .leaflet-popup-content-wrapper {
    max-width: min(960px, calc(100vw - 3rem));
    border: 1px solid rgba(32, 30, 28, 0.07);
    border-radius: 24px;
    background: #fdfcfa;
    overflow: visible;
    box-shadow:
      0 52px 104px -24px rgba(15, 23, 42, 0.2),
      0 28px 56px -16px rgba(15, 23, 42, 0.14),
      0 12px 28px rgba(15, 23, 42, 0.08),
      0 2px 8px rgba(15, 23, 42, 0.04);
  }

  .food-map--explorer .food-map-popup-shell .leaflet-popup-tip-container {
    display: none;
  }

  .food-map--explorer .food-map-popup-shell .leaflet-popup-content {
    width: 920px !important;
    max-width: min(960px, calc(100vw - 3rem)) !important;
    min-width: 0;
    margin: 0 !important;
  }

  .food-map--explorer .food-map-popup {
    max-width: min(960px, calc(100vw - 3rem));
    color: #1f1e1c;
  }

  .food-map--explorer .food-map-popup__layout {
    grid-template-columns: minmax(0, 45%) minmax(0, 55%);
    gap: 0;
    height: 400px;
    min-height: 400px;
    max-height: 400px;
    border-radius: 24px;
    background: #fdfcfa;
    overflow: hidden;
  }

  .food-map--explorer .food-map-popup__media {
    display: flex;
    align-self: stretch;
    min-width: 0;
    min-height: 400px;
    max-height: 400px;
    background: #ebe8e3;
    overflow: hidden;
  }

  .food-map--explorer .food-map-popup__image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 400px;
    max-height: 400px;
    object-fit: cover;
    object-position: center;
    border-radius: 24px 0 0 24px;
  }

  .food-map--explorer .food-map-popup__content {
    box-sizing: border-box;
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 400px;
    min-height: 400px;
    max-height: 400px;
    gap: 0;
    padding: 2.5rem 2.125rem 0 2rem;
  }

  .food-map--explorer .food-map-popup:not(.food-map-popup--has-media) .food-map-popup__content {
    height: 400px;
    min-height: 400px;
    padding: 2.625rem 2.375rem 0;
  }

  .food-map--explorer .food-map-popup__title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 3cqi + 1rem, 3rem);
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: -0.02em;
    padding-right: 1.5rem;
    margin: 0 0 1.25rem;
    text-wrap: balance;
    overflow-wrap: break-word;
  }

  .food-map--explorer .food-map-popup--title-short .food-map-popup__title {
    font-size: clamp(2.75rem, 3.5cqi + 1rem, 3rem);
  }

  .food-map--explorer .food-map-popup--title-medium .food-map-popup__title {
    font-size: clamp(2.625rem, 3cqi + 0.875rem, 2.875rem);
  }

  .food-map--explorer .food-map-popup--title-long .food-map-popup__title {
    font-size: clamp(2.25rem, 2.5cqi + 0.75rem, 2.625rem);
  }

  .food-map--explorer .food-map-popup__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    margin: 0;
    white-space: nowrap;
  }

  .food-map--explorer .food-map-popup__meta > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }

  .food-map--explorer .food-map-popup__meta--location {
    margin-top: 0;
    margin-bottom: 0.85rem;
    font-size: 1.0625rem;
    line-height: 1.45;
    color: #8c8983;
  }

  .food-map--explorer .food-map-popup__meta--location .food-map-popup__meta-icon {
    width: 14px;
    height: 14px;
    opacity: 0.7;
  }

  .food-map--explorer .food-map-popup__meta--rating {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.0625rem;
    line-height: 1.45;
    font-weight: 600;
    color: #353432;
  }

  .food-map--explorer .food-map-popup__meta--rating .food-map-popup__meta-icon {
    width: 14px;
    height: 14px;
    opacity: 0.92;
  }

  .food-map--explorer .food-map-popup__link {
    margin-top: auto;
    margin-bottom: 2.5rem;
    padding-top: 0;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.005em;
    color: #3f7dff;
    background-size: 0 1px;
  }

  .food-map--explorer .food-map-popup__link:hover,
  .food-map--explorer .food-map-popup__link:focus-visible {
    color: #2f66db;
    background-size: 100% 1px;
  }

  .food-map--explorer .food-map-popup__link-arrow {
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .food-map--explorer .food-map-popup__link:hover .food-map-popup__link-arrow,
  .food-map--explorer .food-map-popup__link:focus-visible .food-map-popup__link-arrow {
    transform: translateX(4px);
  }

  .food-map--explorer .food-map-popup-shell .leaflet-popup-close-button {
    top: -12px;
    right: -12px;
    width: 38px;
    height: 38px;
    line-height: 36px;
    font-size: 1.35rem;
    font-weight: 300;
    color: #6f6c67;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    box-shadow:
      0 6px 20px rgba(15, 23, 42, 0.12),
      0 2px 6px rgba(15, 23, 42, 0.06);
    transform: scale(1);
    transition:
      transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
      color 180ms ease,
      background-color 180ms ease,
      box-shadow 180ms ease;
  }

  .food-map--explorer .food-map-popup-shell .leaflet-popup-close-button:hover,
  .food-map--explorer .food-map-popup-shell .leaflet-popup-close-button:focus-visible {
    color: #3d3c39;
    background: rgba(255, 255, 255, 0.96);
    transform: scale(1.08);
    outline: none;
    box-shadow:
      0 10px 28px rgba(15, 23, 42, 0.16),
      0 4px 10px rgba(15, 23, 42, 0.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .food-explorer__backdrop,
  .food-explorer__panel,
  .food-explorer-card,
  .food-explorer-best,
  .food-explorer__count {
    transition: none;
  }

  .food-explorer-card--enter,
  .food-map--explorer .food-map-marker-wrap--selected .food-map-marker,
  .food-map--explorer .food-map-popup__image--kenburns,
  .food-map--explorer .food-map-popup-shell .leaflet-popup-content-wrapper {
    animation: none;
  }

  .food-map--explorer .food-map-marker-wrap .food-map-marker,
  .food-map--explorer .leaflet-cluster-anim .leaflet-marker-icon,
  .food-map--explorer .leaflet-cluster-anim .leaflet-marker-shadow {
    transition: none;
  }
}
