.map-page {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: #fff;
}

.map-page span[data-key] {
  min-height: 0;
}

.map-toolbar {
  flex: 0 0 auto;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.map-toolbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 24px 12px;
}

.map-toolbar-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.map-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding-right: 16px;
  border-right: 1px solid #e2e8f0;
}

.map-logo img {
  display: block;
  height: 44px;
  width: auto;
}

.map-title {
  min-width: 0;
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: #0f172a;
}

.map-store-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  padding: 6px 6px 6px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  font-size: 13px;
  color: #64748b;
}

.map-store-chip-name {
  min-width: 0;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
}

.map-store-chip-name:hover {
  text-decoration: underline;
}

.map-store-chip-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
}

.map-store-chip-clear:hover {
  background: #0f172a;
  color: #fff;
}

.map-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.map-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  margin: 0;
  padding: 0 14px;
  border: 1.5px solid #111827;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}

.map-btn i {
  flex: 0 0 auto;
  width: 16px;
  font-size: 15px;
  line-height: 1;
  text-align: center;
}

.map-btn:hover {
  background: #000;
  color: #fff;
}

.map-btn--secondary {
  background: #fff;
  color: #0f172a;
  border-color: #e2e8f0;
}

.map-btn--secondary:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
}

.map-btn:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.map-lang span {
  letter-spacing: .05em;
}

.map-btn[hidden] {
  display: none;
}

.map-frame {
  position: relative;
  flex: 1 1 auto;
  min-height: 480px;
  background: #f1f5f9;
}

.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}

.map-frame:fullscreen,
.map-frame:-webkit-full-screen {
  background: #fff;
}

.map-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: rgba(255, 255, 255, .94);
  color: #475569;
  font-size: 14px;
  text-align: center;
}

.map-overlay[hidden] {
  display: none;
}

.map-overlay p {
  margin: 0;
}

.map-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e2e8f0;
  border-top-color: #111827;
  border-radius: 50%;
  animation: mapSpin .9s linear infinite;
}

@keyframes mapSpin {
  to { transform: rotate(360deg); }
}

.map-error-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.map-error-hint {
  max-width: 420px;
}

.map-error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

@media (max-width: 767px) {
  .map-toolbar-inner {
    padding: 10px 16px;
  }

  .map-toolbar-row {
    gap: 8px 10px;
  }

  .map-logo {
    padding-right: 10px;
  }

  .map-logo img {
    height: 32px;
  }

  .map-title {
    flex: 1 1 0;
    font-size: 15px;
    line-height: 1.25;
  }

  .map-store-chip {
    order: 3;
    flex-basis: 100%;
  }

  .map-store-chip-name {
    max-width: none;
  }

  .map-btn {
    height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }

  .map-actions .map-btn span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .map-actions .map-btn {
    width: 36px;
    padding: 0;
    justify-content: center;
    position: relative;
  }

  .map-actions .map-lang {
    width: auto;
    padding: 0 10px;
  }

  .map-actions .map-lang i {
    display: none;
  }

  .map-actions .map-lang span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }

  .map-frame {
    min-height: 420px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-spinner {
    animation: none;
  }
}

.map-fs-exit {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 24, 39, .92);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  cursor: pointer;
}

.map-fs-exit i {
  flex: 0 0 auto;
  width: 16px;
  font-size: 15px;
  line-height: 1;
  text-align: center;
}

.map-fs-exit:hover {
  background: #000;
}

.map-fs-exit:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.map-fs-exit[hidden] {
  display: none;
}

.map-frame::backdrop {
  background: #fff;
}

@media (max-width: 767px) {
  .map-fs-exit {
    top: calc(12px + env(safe-area-inset-top, 0px));
    right: calc(12px + env(safe-area-inset-right, 0px));
  }
}

#header.header,
#mobileMenuDrawer,
.map-page ~ .site-silhouette,
.map-page ~ footer {
  display: none !important;
}
