/* BSK نقشہ: front end. Phone first, 16px side gutter, no horizontal scroll. */
.bskmap-open {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 12px;
  border: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  color: #1d2433;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}
.bskmap-open svg { color: #1f6feb; }
/* Single listing page: the photo count is bottom right, so the map button goes top left. */
.bskmap-open.bskmap-open--top { top: 10px; right: auto; bottom: auto; left: 10px; }
.bskmap-open:focus-visible,
.bskmap-close:focus-visible,
.bskmap-gbtn:focus-visible {
  outline: 3px solid #1f6feb;
  outline-offset: 2px;
}

.bskmap-block { margin: 24px 0; padding: 0 16px; box-sizing: border-box; }
.bskmap-block h2 { margin: 0 0 10px; font-size: 20px; }
.bskmap-canvas {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  background: #eef2f7;
}
.bskmap-note { margin: 8px 0 0; font-size: 13px; color: #5b6270; line-height: 1.7; }

.bskmap-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  background: rgba(15, 20, 30, 0.6);
}
.bskmap-modal[hidden] { display: none; }
.bskmap-panel {
  width: 100%;
  max-width: 760px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 16px;
  border-radius: 14px;
  box-sizing: border-box;
  background: #fff;
  color: #1d2433;
}
.bskmap-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bskmap-title { margin: 0; font-size: 18px; }
.bskmap-close {
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #c9d1de;
  border-radius: 10px;
  background: #fff;
  color: #1d2433;
  font-size: 14px;
  cursor: pointer;
}
.bskmap-canvas-modal { height: min(60vh, 460px); margin-top: 12px; }
.bskmap-loading,
.bskmap-fallback { padding: 24px 16px; text-align: center; color: #374151; font-size: 14px; line-height: 1.8; }
.bskmap-gbtn {
  display: inline-block;
  min-height: 44px;
  margin-top: 12px;
  padding: 0 16px;
  border-radius: 10px;
  background: #1f6feb;
  color: #fff;
  line-height: 44px;
  text-decoration: none;
}
.bskmap-lock { overflow: hidden; }

@media (max-width: 480px) {
  .bskmap-canvas:not(.bskmap-canvas-modal) { height: 260px; }
  .bskmap-open { min-height: 44px; }
}
