/* Property detail-page map (assets/property_detail_map.js).
 * Brand for this component: BOT navy #1b2a4a / gold #b8860b. */

.bot-detail-map-wrap {
  position: relative;
  margin-top: 20px;
  border: 1px solid #D6CBB5;
  border-radius: 10px;
  overflow: hidden;
}
.bot-detail-map {
  width: 100%;
  height: 350px;
  background: #E9E4D8;   /* land tone while tiles stream in */
  z-index: 0;
}
/* Inside the photo+map hero row, match the building picture's height exactly
   (same clamp/breakpoint as .bot-building-hero-img in bot-theme.css). */
.bot-hero-map-row .bot-detail-map-wrap {
  margin-top: 0;
  height: clamp(300px, 34vw, 400px) !important;
  border-radius: 12px;
}
.bot-hero-map-row .bot-detail-map { height: 100% !important; }
@media (max-width: 767px) {
  .bot-hero-map-row .bot-detail-map-wrap { height: 300px !important; }
}

/* ── property pins ─────────────────────────────────────────────── */
.bdm-ico { background: none; border: 0; }
.bdm-dot {
  position: absolute;
  top: 0; left: 0;
  border-radius: 50%;
  box-sizing: border-box;
}
.bdm-primary .bdm-dot {
  width: 22px; height: 22px;
  background: #b8860b;
  border: 3px solid #1b2a4a;
  box-shadow: 0 1px 6px rgba(27, 42, 74, .5);
}
.bdm-primary .bdm-dot::after {          /* subtle pulse */
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid #b8860b;
  animation: bdm-pulse 2.2s ease-out infinite;
}
@keyframes bdm-pulse {
  0%   { transform: scale(1);   opacity: .8; }
  70%  { transform: scale(2.1); opacity: 0; }
  100% { transform: scale(2.1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bdm-primary .bdm-dot::after { animation: none; display: none; }
}
.bdm-secondary .bdm-dot {
  width: 14px; height: 14px;
  background: #1b2a4a;
  border: 2px solid #b8860b;
  box-shadow: 0 1px 4px rgba(27, 42, 74, .4);
}
.bdm-lbl {                               /* permanent name labels */
  position: absolute;
  left: 26px; top: 1px;
  white-space: nowrap;
  background: #1b2a4a;
  color: #fff;
  font: 700 12px/1 Arial, Helvetica, sans-serif;
  padding: 4px 8px;
  border-radius: 5px;
  border: 1px solid #b8860b;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.bdm-primary .bdm-lbl {
  background: #b8860b;
  color: #1b2a4a;
  border-color: #1b2a4a;
  font-size: 13px;
  padding: 5px 9px;
}
.bdm-secondary .bdm-lbl {
  left: 18px; top: -1px;
  font-weight: 600;
  font-size: 11px;
  opacity: .95;
}
/* labelDir config: stagger labels of close-together secondary pins */
.bdm-lbl-below.bdm-secondary .bdm-lbl { left: -8px; top: 20px; }
.bdm-lbl-above.bdm-secondary .bdm-lbl { left: -8px; top: -26px; }
.bdm-lbl-belowleft.bdm-secondary .bdm-lbl { left: 10px; top: 18px; transform: translateX(-100%); }

/* ── freeway shields ───────────────────────────────────────────── */
.bdm-shield-wrap { background: none; border: 0; }
.bdm-shield {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: #1b2a4a;
  color: #fff;
  font: 700 11px/1.15 Arial, Helvetica, sans-serif;
  padding: 4px 8px;
  border-radius: 6px 6px 8px 8px;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
  white-space: nowrap;
  opacity: .93;
  pointer-events: none;
}
.bdm-shield small {
  font-size: 8.5px;
  font-weight: 600;
  opacity: .85;
  letter-spacing: .02em;
}
.bdm-tollway { border-color: #b8860b; }

/* ── landmark (Park Eight Place) ───────────────────────────────── */
.bdm-lm { background: none; border: 0; }
.bdm-diamond {
  position: absolute;
  top: 0; left: 0;
  width: 16px; height: 16px;
  background: #b8860b;
  border: 2px solid #1b2a4a;
  transform: rotate(45deg);
  box-shadow: 0 1px 4px rgba(27, 42, 74, .5);
}
.bdm-lm-pill {
  position: absolute;
  left: 24px; top: -2px;
  white-space: nowrap;
  background: #1b2a4a;
  color: #b8860b;
  font: 700 11.5px/1 Arial, Helvetica, sans-serif;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid #b8860b;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}

/* ── popups ────────────────────────────────────────────────────── */
.bdm-pop { font: 13px/1.45 Arial, Helvetica, sans-serif; color: #1F2733; }
.bdm-pop img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  margin-bottom: 7px;
}
.bdm-pop-name { font-weight: 800; color: #1b2a4a; font-size: 14px; }
.bdm-pop-addr { color: #5C564F; font-size: 12px; margin-top: 1px; }
.bdm-pop-desc { margin: 6px 0 0; font-size: 12.5px; }
.bdm-pop-dist {
  margin-top: 6px;
  font-weight: 700;
  font-size: 12px;
  color: #8A6D0F;
}
.bdm-pop-btn {
  display: inline-block;
  margin-top: 8px;
  background: #1b2a4a;
  color: #fff !important;
  font-weight: 700;
  font-size: 12.5px;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 6px;
  border-bottom: 2px solid #b8860b;
}
.bdm-pop-btn:hover { background: #24365c; }

/* ── zoom presets (top-right) ──────────────────────────────────── */
.bdm-presets {
  display: flex;
  overflow: hidden;
  border: 0 !important;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .35);
  border-radius: 7px;
}
.bdm-presets button {
  appearance: none;
  border: 0;
  background: #1b2a4a;
  color: #fff;
  font: 700 12px/1 Arial, Helvetica, sans-serif;
  padding: 8px 11px;
  cursor: pointer;
  border-right: 1px solid rgba(255, 255, 255, .18);
}
.bdm-presets button:last-child { border-right: 0; }
.bdm-presets button:hover { background: #24365c; }
.bdm-presets button.is-active { background: #b8860b; color: #1b2a4a; }
.bdm-presets button:focus-visible { outline: 3px solid #b8860b; outline-offset: -3px; }
.bdm-presets .bdm-reset { font-size: 14px; padding: 8px 10px; }

/* ── interaction hint ──────────────────────────────────────────── */
.bdm-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 500;
  background: rgba(27, 42, 74, .88);
  color: #fff;
  font: 600 12px/1 Arial, Helvetica, sans-serif;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #b8860b;
  pointer-events: none;
  transition: opacity .3s;
}
.bdm-live .bdm-hint { opacity: 0; }
.bdm-hint-flash .bdm-hint { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .bdm-hint { transition: none; } }

/* ── small screens (~380px) ────────────────────────────────────── */
@media (max-width: 480px) {
  .bot-detail-map { height: 300px; }
  .bdm-secondary .bdm-lbl { display: none; }   /* avoid label pile-up on phones */
  .bdm-shield { font-size: 10px; padding: 3px 6px; }
  .bdm-shield small { display: none; }
  .bdm-presets button { padding: 7px 8px; font-size: 11px; }
  .bdm-lm-pill { font-size: 10.5px; }
}
