body.page-map { overflow-x: clip; }

.map-toolbar-wrap {
  padding: 22px 0 0;
}
.page-map .map-toolbar-wrap .container {
  max-width: 1540px;
  width: 100%;
  padding-inline: clamp(16px, 2vw, 28px);
}
.page-map .map-toolbar-wrap .search-tools {
  margin-bottom: 16px;
}
.page-map .map-shell {
  display: grid;
  grid-template-columns: minmax(280px, 350px) minmax(0, 1fr);
  gap: 16px;
  max-width: 1540px;
  width: 100%;
  padding-inline: clamp(16px, 2vw, 28px);
  padding-bottom: 54px;
}
.map-results { min-height: 0; border: 1px solid var(--fo-border); border-radius: 18px; background: #fff; overflow: hidden; box-shadow: 0 12px 34px rgba(15,23,42,.06); }
.map-results__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 16px; border-bottom: 1px solid var(--fo-border); }
.map-results__head h2 { margin: 0; font-family: var(--fo-font-display); font-size: 1rem; }
.map-results__head a { color: var(--fo-blue-dark); font-size: .76rem; font-weight: 600; }
.map-results__list { display: grid; gap: 0; max-height: 620px; overflow-y: auto; scrollbar-width: thin; }

.map-place { display: grid; grid-template-columns: 104px minmax(0,1fr); gap: 12px; padding: 12px; color: inherit; border-bottom: 1px solid var(--fo-border); transition: background .18s ease; }
.map-place:last-child { border-bottom: 0; }
.map-place:hover, .map-place.is-active { background: #f4f8fd; }
.map-place__image { position: relative; aspect-ratio: 1.1/1; border-radius: 12px; overflow: hidden; background: #e5eaf0; }
.map-place__image img { width: 100%; height: 100%; object-fit: cover; }
.map-place__index {
  position: absolute;
  top: 7px;
  inset-inline-start: 7px;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50% 50% 50% 10%;
  transform: rotate(45deg);
  background: var(--fo-orange);
  color: #fff;
  box-shadow: 0 4px 12px rgba(245,130,32,.3);
  font-size: .68rem;
  font-weight: 700;
}
.map-place__index span { transform: rotate(-45deg); }
.map-place__body { min-width: 0; align-self: center; }
.map-place__rating { margin-bottom: 4px; color: var(--fo-orange); font-size: .75rem; font-weight: 700; }
.map-place__name { margin: 0 0 4px; font-family: var(--fo-font-display); font-size: .87rem; line-height: 1.45; }
.map-place__meta { margin: 0; color: var(--fo-text-muted); font-size: .72rem; line-height: 1.55; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.map-empty { padding: 28px 18px; text-align: center; color: var(--fo-text-muted); }
.map-empty strong { display: block; color: var(--fo-text); font-size: 1rem; margin-bottom: 8px; }
.map-empty p { margin: 0 0 14px; font-size: .85rem; }

.map-canvas {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid #dce5ee;
  border-radius: 18px;
  background: #e7edf3;
  box-shadow: 0 12px 34px rgba(15,23,42,.07);
  direction: ltr;
}
.map-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--fo-text-muted); font-size: .85rem; background: #eef2f6; }
.map-canvas.is-ready .map-loading { display: none; }

@media (max-width: 900px) {
  .map-shell { grid-template-columns: 1fr; }
  .map-canvas { min-height: 480px; order: -1; }
  .map-results__list { display: flex; overflow-x: auto; overflow-y: hidden; max-height: none; padding: 10px; gap: 10px; }
  .map-place { flex: 0 0 290px; border: 1px solid var(--fo-border); border-radius: 14px; }
  .map-empty { flex: 1; }
}
@media (max-width: 600px) {
  .map-toolbar-wrap { padding-top: 14px; }
  .map-canvas { min-height: 420px; border-radius: 14px; }
  .map-shell { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .map-place { transition: none; }
}
