/* ── World map — iOS premium ── */

.world-map-section {
  padding: 3rem 0 clamp(2rem, 4vw, 3rem);
  background: var(--gray-50);
  border-top: 1px solid var(--border-color);
}

.world-map-section--lead {
  border-top: none;
  padding-top: clamp(2rem, 4vw, 3rem);
}

.world-map-section__subtitle {
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--color-black);
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 1.5rem;
  line-height: 1.35;
}

.world-map-section__header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 20;
}

@media (min-width: 640px) {
  .world-map-section__subtitle {
    font-size: clamp(1.625rem, 2.8vw, 2rem);
    max-width: 42rem;
    line-height: 1.3;
  }
}

.map-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  max-width: 36rem;
  margin: 0.75rem auto 1.25rem;
  position: relative;
  z-index: 25;
  overflow: visible;
}

.map-stat-dropdown:has(.map-stat-panel:not([hidden])) {
  z-index: 30;
}

/* Global search bar — between stats and map */
.map-global-search-wrap {
  max-width: 42rem;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 15;
}

.map-global-search {
  width: 100%;
}

.map-global-search__input {
  width: 100%;
  padding: 1rem 1.25rem;
  font: inherit;
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-black);
  background: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.map-global-search__input::placeholder {
  color: var(--gray-400);
  font-weight: 400;
}

.map-global-search__input:hover {
  border-color: var(--border-color-strong);
}

.map-global-search__input:focus {
  outline: none;
  border-color: var(--color-black);
  box-shadow: var(--shadow-sm);
}

.map-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 0.875rem auto 0;
  padding: 0.625rem 1rem;
  max-width: 100%;
  background: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  font-size: var(--text-sm);
  color: var(--gray-600);
}

.map-filter-bar[hidden] {
  display: none !important;
}

.map-filter-bar__info {
  margin: 0;
  text-align: center;
  line-height: 1.4;
}

.map-filter-bar__prefix {
  margin-right: 0.35rem;
}

.map-filter-bar__label {
  color: var(--color-black);
  font-weight: 600;
}

.map-filter-bar__info--empty {
  font-weight: 600;
  color: var(--gray-600);
}

.map-filter-bar__clear {
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-black);
  background: rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-smooth);
}

.map-filter-bar__clear:hover,
.map-filter-bar__clear:focus-visible {
  background: rgba(0, 0, 0, 0.1);
  outline: none;
}

@media (min-width: 640px) {
  .map-global-search__input {
    padding: 1.125rem 1.375rem;
    font-size: var(--text-lg);
  }
}

@media (max-width: 639px) {
  .map-global-search-wrap {
    margin-bottom: 0.75rem;
  }

  .map-filter-bar {
    flex-direction: column;
    padding: 0.75rem;
  }

  .map-filter-bar__clear {
    width: 100%;
    text-align: center;
  }
}

.map-stat {
  text-align: center;
  padding: 1.25rem 1rem;
  background: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
  transition: transform var(--spring), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
  pointer-events: auto;
}

.map-stat-dropdown {
  position: relative;
  overflow: visible;
}

.map-stat--toggle {
  width: 100%;
  cursor: pointer;
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
  pointer-events: auto;
  touch-action: manipulation;
}

.map-stat--toggle.is-open,
.map-stat--toggle[aria-expanded="true"] {
  border-color: var(--border-color-strong);
  box-shadow: var(--shadow-sm);
}

.map-stat--toggle:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 2px;
}

.map-stat-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  z-index: 40;
  padding: 0.625rem;
  background: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: left;
  animation: map-panel-in 220ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.map-stat-panel[hidden] {
  display: none !important;
}

@keyframes map-panel-in {
  from {
    opacity: 0;
    transform: translateY(-0.35rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.map-stat-panel__search {
  width: 100%;
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.5rem;
  font-size: var(--text-sm);
  font-family: inherit;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-black);
}

.map-stat-panel__search:focus {
  outline: none;
  border-color: var(--gray-400);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.map-stat-panel__search::placeholder {
  color: var(--gray-400);
}

.map-stat-panel__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.map-stat-panel__nav[hidden] {
  display: none !important;
}

.map-stat-panel__nav-btn {
  flex: 1;
  padding: 0.45rem 0.65rem;
  font: inherit;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-black);
  background: var(--gray-50);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-smooth), border-color var(--transition-smooth);
}

.map-stat-panel__nav-btn:hover,
.map-stat-panel__nav-btn:focus-visible {
  background: var(--gray-100);
  border-color: var(--border-color-strong);
  outline: none;
}

.map-stat-panel__nav-btn--reset {
  color: var(--color-white);
  background: var(--color-black);
  border-color: var(--color-black);
}

.map-stat-panel__nav-btn--reset:hover,
.map-stat-panel__nav-btn--reset:focus-visible {
  background: var(--gray-800);
  border-color: var(--gray-800);
}

.map-stat-panel__nav-btn[hidden] {
  display: none !important;
}

.map-stat-panel__context {
  margin: 0 0 0.5rem;
  padding: 0.35rem 0.5rem;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--gray-600);
  background: var(--gray-50);
  border-radius: var(--radius-md);
}

.map-stat-panel__list {
  max-height: 16rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.map-stat-panel__item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-800);
  text-align: left;
  cursor: pointer;
  transition: background var(--transition-smooth), color var(--transition-smooth);
}

.map-stat-panel__item:hover,
.map-stat-panel__item:focus-visible {
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-black);
  outline: none;
}

.map-stat-panel__item--link {
  text-decoration: none;
  color: inherit;
}

.map-stat-panel__item--link:hover .map-stat-panel__item-label,
.map-stat-panel__item--link:focus-visible .map-stat-panel__item-label {
  text-decoration: underline;
}

.map-stat-panel__item--header {
  font-weight: 600;
  color: var(--color-black);
}

.map-stat-panel__item--sub {
  padding-left: 1.25rem;
  font-weight: 500;
  color: var(--gray-700);
}

.map-stat-panel__item-label {
  flex: 1;
  min-width: 0;
}

.map-stat-panel__item-meta {
  font-size: var(--text-xs);
  color: var(--gray-500);
  width: 100%;
  padding-left: 0;
}

.map-stat-panel__item--sub .map-stat-panel__item-meta {
  display: none;
}

.map-stat-panel__item-count {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gray-500);
  white-space: nowrap;
}

.map-stat-panel__group + .map-stat-panel__group,
.map-stat-panel__group + .map-stat-panel__item,
.map-stat-panel__item + .map-stat-panel__group {
  margin-top: 0.25rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--border-color);
}

.map-stat-panel__empty {
  padding: 1rem 0.65rem;
  font-size: var(--text-sm);
  color: var(--gray-500);
  text-align: center;
}

.map-filter-banner {
  display: none;
}

.map-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.map-stat__value {
  display: block;
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--color-black);
  line-height: 1.1;
  transition: opacity 0.3s ease;
}

.map-stat__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  margin-top: 0.4rem;
}

.world-map-section__map-wrap {
  position: relative;
  z-index: 0;
  width: min(100%, var(--max-width));
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--space-6);
}

.world-map-wrap {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  position: relative;
  background: var(--gray-100);
}

/* Shared map canvas size — homepage, services, cuisine */
.world-map,
.category-map {
  width: 100%;
  aspect-ratio: 2.6;
  height: auto;
  max-height: 42rem;
  min-height: 15rem;
  background: var(--gray-100);
  position: relative;
  z-index: 0;
}

.world-map {
  border-radius: inherit;
}

.category-map-wrap {
  margin-bottom: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
  background: var(--gray-100);
}

.category-map {
  border-radius: inherit;
  overflow: hidden;
}

.world-map.google-map-host,
.category-map.google-map-host {
  overflow: visible;
  border-radius: inherit;
  height: auto;
  min-height: 15rem;
  max-height: 42rem;
}

.world-map .gm-style-iw,
.category-map .gm-style-iw {
  z-index: 700;
}

.category-map-selection {
  margin-top: 0;
  margin-bottom: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.category-map-selection[hidden] {
  display: none !important;
}

.category-map-selection__title {
  margin: 0 0 var(--space-1);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-black);
}

.category-map-selection__meta {
  margin: 0 0 var(--space-3);
  font-size: var(--text-sm);
  color: var(--gray-600);
}

.category-map-selection__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-black);
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
}

.category-map-selection__link:hover {
  opacity: 0.9;
}

.map-load-error {
  padding: 2rem;
  text-align: center;
  color: var(--gray-600);
  font-size: var(--text-sm);
  line-height: 1.5;
}

/* Google Maps built-in controls — compact + rounded */
.world-map-wrap,
.category-map-wrap {
  --map-ctrl-size: 1.75rem;
  --map-ctrl-radius: var(--radius-md);
  --map-ctrl-gap: 0.25rem;
}

/* Map / Satellite — two map-type buttons only */
.world-map-wrap .gm-style-mtc-bbw,
.category-map-wrap .gm-style-mtc-bbw {
  margin-top: 0.625rem !important;
  margin-left: 0.625rem !important;
  border-radius: var(--map-ctrl-radius) !important;
  overflow: hidden !important;
  box-shadow: var(--shadow-xs) !important;
}

.world-map-wrap .gm-style-mtc-bbw .gm-style-mtc:nth-child(n + 3),
.category-map-wrap .gm-style-mtc-bbw .gm-style-mtc:nth-child(n + 3) {
  display: none !important;
}

.world-map-wrap .gm-style-mtc-bbw .gm-style-mtc,
.category-map-wrap .gm-style-mtc-bbw .gm-style-mtc {
  margin: 0 !important;
}

.world-map-wrap .gm-style-mtc-bbw button,
.category-map-wrap .gm-style-mtc-bbw button {
  font-family: inherit !important;
  font-size: 0.625rem !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  color: var(--color-black) !important;
  background: var(--color-white) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0.2rem 0.45rem !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  display: inline-block !important;
}

.world-map-wrap .gm-style-mtc-bbw .gm-style-mtc:first-child button,
.category-map-wrap .gm-style-mtc-bbw .gm-style-mtc:first-child button {
  border-top-left-radius: var(--map-ctrl-radius) !important;
  border-bottom-left-radius: var(--map-ctrl-radius) !important;
}

.world-map-wrap .gm-style-mtc-bbw .gm-style-mtc:last-child button,
.category-map-wrap .gm-style-mtc-bbw .gm-style-mtc:last-child button {
  border-top-right-radius: var(--map-ctrl-radius) !important;
  border-bottom-right-radius: var(--map-ctrl-radius) !important;
}

.world-map-wrap .gm-style-mtc-bbw button:hover,
.category-map-wrap .gm-style-mtc-bbw button:hover {
  background: var(--gray-50) !important;
}

.world-map-wrap .gm-style-mtc-bbw button[aria-checked="true"],
.category-map-wrap .gm-style-mtc-bbw button[aria-checked="true"] {
  background: var(--gray-100) !important;
}

.world-map-wrap .gm-style-mtc ul,
.category-map-wrap .gm-style-mtc ul {
  border-radius: var(--map-ctrl-radius) !important;
  overflow: hidden !important;
}

/* Bottom-right controls — scale down as a group (don't override Google sizes) */
.world-map-wrap .gm-bundled-control-on-bottom,
.category-map-wrap .gm-bundled-control-on-bottom {
  position: relative;
  z-index: 10;
  transform: scale(0.875);
  transform-origin: bottom right;
  margin-right: 0.5rem !important;
  margin-bottom: 0.35rem !important;
}

.world-map-wrap .gm-bundled-control-on-bottom > .gmnoprint > div,
.category-map-wrap .gm-bundled-control-on-bottom > .gmnoprint > div {
  border-radius: var(--map-ctrl-radius) !important;
  overflow: hidden !important;
}

.world-map-wrap .gm-bundled-control-on-bottom button,
.category-map-wrap .gm-bundled-control-on-bottom button,
.world-map-wrap .gm-bundled-control-on-bottom gmp-internal-camera-control button,
.category-map-wrap .gm-bundled-control-on-bottom gmp-internal-camera-control button {
  border-radius: var(--map-ctrl-radius) !important;
}

/* Fullscreen — compact + rounded */
.world-map-wrap .gm-fullscreen-control,
.category-map-wrap .gm-fullscreen-control {
  transform: scale(0.875);
  transform-origin: top right;
  margin: 0.5rem !important;
  border-radius: var(--map-ctrl-radius) !important;
  box-shadow: var(--shadow-xs) !important;
}

.world-map-wrap .gm-style-cc,
.category-map-wrap .gm-style-cc {
  font-size: 0.625rem !important;
  opacity: 0.85;
}

/* Custom scale — default: 1500 km on 47 px at world zoom */
.site-map-scale {
  position: absolute;
  left: 0.625rem;
  bottom: 0.35rem;
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  pointer-events: none;
  user-select: none;
}

.site-map-scale__label {
  font-family: Roboto, Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  color: #000;
  text-shadow: 0 0 2px #fff, 0 0 2px #fff;
}

.site-map-scale__bar {
  display: block;
  height: 3px;
  min-width: 1px;
  background: #000;
  box-shadow: 0 0 2px #fff;
}

/* Google Maps InfoWindow popup */
.map-popup-wrap.gm-style-iw-c,
.gm-style-iw-c.map-popup-wrap {
  border-radius: var(--radius-xl) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 0 !important;
  overflow: visible !important;
}

.map-popup-wrap .gm-style-iw-d,
.gm-style-iw-c.map-popup-wrap > .gm-style-iw-d {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  max-height: min(28rem, 72vh) !important;
  padding: 0 !important;
}

.gm-style-iw-d {
  overflow: hidden !important;
  padding: 0 !important;
}

.gm-style-iw-chr {
  display: none !important;
}

.gm-style-iw-tc::after {
  background: var(--color-white) !important;
  box-shadow: none !important;
}

.geo-flag-marker-wrap {
  background: transparent !important;
  border: none !important;
}

.geo-flag-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform var(--transition-smooth);
}

.geo-flag-marker:hover {
  transform: scale(1.12) translateY(-4px);
}

.geo-flag-marker__flag {
  width: 28px;
  height: auto;
  border: 2px solid var(--color-black);
  border-radius: 3px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  background: var(--color-white);
}

.geo-flag-marker__flag svg {
  display: block;
  width: 100%;
  height: auto;
}

.geo-flag-marker__point {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--color-black);
  margin-top: -1px;
}

.map-cluster-wrap {
  background: transparent !important;
  border: none !important;
}

.map-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-black);
  color: var(--color-white);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 50%;
  border: 3px solid var(--color-white);
  box-shadow: var(--shadow-md);
}

.map-cluster-list {
  padding: 0.25rem 0;
}

.map-cluster-list__items {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 240px;
  overflow-y: auto;
}

.map-cluster-list__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0;
  border: 0;
  border-bottom: 1px solid var(--border-color);
  background: transparent;
  color: var(--color-black);
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
}

.map-cluster-list__item:last-child {
  border-bottom: 0;
}

.map-cluster-list__item:hover,
.map-cluster-list__item:focus-visible {
  color: var(--gray-700);
  text-decoration: underline;
  outline: none;
}

.map-popup {
  padding: 0;
  overflow: visible;
  min-width: 260px;
}

.map-popup__thumb {
  max-height: 130px;
  aspect-ratio: 16 / 10;
  background: var(--gray-100);
  overflow: hidden;
}

.map-popup__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.map-popup__title,
.map-popup__meta,
.map-popup__address,
.map-popup__link {
  margin-left: 1.125rem;
  margin-right: 1.125rem;
}

.map-popup__title {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-black);
  margin-top: 0.875rem;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.map-popup__meta,
.map-popup__address {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
}

.map-popup__total {
  font-size: 0.8125rem;
  color: var(--gray-600);
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.map-popup__total strong {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-black);
}

.map-popup__cats {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.map-popup__cats li {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  padding: 0.3rem 0;
  color: var(--gray-600);
}

.map-popup__cats strong {
  color: var(--color-black);
  font-weight: 600;
}

.map-popup__link {
  display: block;
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-black);
  padding: 0.55rem 0.875rem;
  background: var(--gray-50);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  transition: background var(--transition-smooth);
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  pointer-events: auto;
  position: relative;
  z-index: 1;
  text-decoration: none;
}

.map-popup__link:hover {
  background: var(--gray-100);
}

.home-featured {
  padding: 3.5rem 0;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--color-white) 100%);
  border-top: 1px solid var(--border-color);
}

.home-featured__title {
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 2.25rem;
  color: var(--color-black);
}

.home-featured__block {
  margin-bottom: 2.75rem;
}

.home-featured__block:last-child {
  margin-bottom: 0;
}

.home-featured__block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.125rem;
}

.home-featured__subtitle {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-black);
}

@media (max-width: 640px) {
  .map-stats {
    grid-template-columns: 1fr;
    gap: 0.625rem;
  }

  .map-stat-panel {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 300;
    max-height: 55vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 1rem;
    animation: map-panel-slide-up 280ms cubic-bezier(0.25, 0.1, 0.25, 1);
  }

  .map-stat-panel__list {
    max-height: calc(55vh - 4rem);
  }

  @keyframes map-panel-slide-up {
    from {
      opacity: 0;
      transform: translateY(100%);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .world-map,
  .category-map,
  .category-map.google-map-host {
    aspect-ratio: 2.2;
    max-height: 24rem;
    min-height: 13rem;
  }

  .map-stat__value {
    font-size: 1.625rem;
  }
}

/* ── My location control ── */

.map-has-my-location {
  position: relative;
}

.map-my-location-btn {
  position: absolute;
  top: auto;
  right: auto;
  bottom: 2.25rem;
  left: 0.625rem;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-black);
  background: var(--color-white);
  border: 1px solid var(--border-color-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition:
    background var(--transition-smooth),
    border-color var(--transition-smooth),
    box-shadow var(--transition-smooth),
    color var(--transition-smooth);
}

.map-my-location-btn:hover {
  border-color: var(--color-black);
  box-shadow: var(--shadow-md);
}

.map-my-location-btn--active {
  background: var(--color-black);
  border-color: var(--color-black);
  color: var(--color-white);
}

.map-my-location-btn--loading {
  opacity: 0.75;
  cursor: wait;
}

.map-my-location-btn__icon {
  display: flex;
  line-height: 0;
}

@media (max-width: 480px) {
  .map-my-location-btn__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .map-my-location-btn {
    padding: 0.45rem;
    border-radius: var(--radius-md);
  }
}

.map-my-location-toast {
  position: absolute;
  left: 50%;
  bottom: 0.75rem;
  transform: translateX(-50%);
  z-index: 500;
  max-width: calc(100% - 1.5rem);
  padding: 0.5rem 0.875rem;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-black);
  background: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  line-height: 1.4;
}

.map-my-location-toast[hidden] {
  display: none !important;
}

.map-my-location-toast--error {
  color: #991b1b;
  border-color: #fecaca;
  background: #fef2f2;
}

.map-my-location-modal-open {
  overflow: hidden;
}

.map-my-location-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.map-my-location-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}

.map-my-location-modal__dialog {
  position: relative;
  width: min(100%, 24rem);
  padding: 1.5rem;
  background: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
}

.map-my-location-modal__title {
  margin: 0 0 0.75rem;
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-black);
}

.map-my-location-modal__text {
  margin: 0 0 1.25rem;
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--gray-600);
}

.map-my-location-modal__actions {
  display: flex;
  gap: 0.625rem;
  justify-content: flex-end;
}

.map-my-location-modal__cancel,
.map-my-location-modal__accept {
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-lg);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--transition-smooth), border-color var(--transition-smooth);
}

.map-my-location-modal__cancel {
  color: var(--gray-700);
  background: var(--gray-50);
  border-color: var(--border-color);
}

.map-my-location-modal__cancel:hover {
  background: var(--gray-100);
}

.map-my-location-modal__accept {
  color: var(--color-white);
  background: var(--color-black);
  border-color: var(--color-black);
}

.map-my-location-modal__accept:hover {
  background: var(--gray-900);
}

.map-user-marker-wrap {
  background: transparent;
  border: none;
}

.map-user-marker {
  position: relative;
  width: 24px;
  height: 24px;
}

.map-user-marker--pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 40px;
  height: 52px;
}

.map-user-marker__head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2563eb;
  border: 3px solid var(--color-white);
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.55);
}

.map-user-marker__point {
  position: relative;
  z-index: 1;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 13px solid #2563eb;
  margin-top: -3px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.18));
}

.map-user-marker__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  background: #2563eb;
  border: 2px solid var(--color-white);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.45);
}

.map-user-marker--pin .map-user-marker__pulse {
  top: 0;
  left: 50%;
  width: 36px;
  height: 36px;
  margin-left: -18px;
  inset: auto;
}

.map-user-marker__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.25);
  animation: map-user-pulse 2s ease-out infinite;
}

@keyframes map-user-pulse {
  0% {
    transform: scale(0.5);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.map-near-me-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: -0.75rem 0 var(--space-4);
  padding: 0.625rem 0.875rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
}

.map-near-me-banner__text {
  margin: 0;
  font-weight: 500;
  color: #1e3a8a;
}

.map-near-me-banner__clear {
  flex-shrink: 0;
  font: inherit;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  color: var(--color-black);
  background: var(--color-white);
  border: 1px solid #93c5fd;
  border-radius: var(--radius-full);
  cursor: pointer;
}

.map-near-me-banner__clear:hover {
  border-color: #2563eb;
}
