/* Discover stays first; place content opens in its own neighbouring panel. */
.map-shell { --drawer-material: #f4f3ed; --drawer-accent: #52684b; }
.map-is-active .map-sheet { --drawer-material: #f4f3ed; }
.map-is-active .map-sheet-heading { border: 0; min-height: 60px; }
.map-is-active .map-sheet-toggle { height: 60px; min-height: 60px; padding: 17px 20px 9px; }
.map-is-active .sheet-toggle-copy strong { font-size: 22px; letter-spacing: -.55px; }
.map-sheet-pull { color: #41463b; }
.map-sheet-pull:hover { color: var(--drawer-accent); }
.map-is-active .map-sheet .map-inspector.is-discover { padding-top: 5px; }
.map-discover-card { background: #fffefa; box-shadow: 0 0 0 1px #30352a09; border: 0; }
.map-discover-card .meetup-fact > .icon, .map-discover-card .capacity { color: #68705e; }
.map-discover-card .detail-link { color: #52684b; background: #eef0e7; }
.map-discover-card .intent-badge { background: #f4e7df; color: #a34f43; }
.map-discover-card .intent-badge.social { background: #e9eddf; color: #52684b; }
.map-discover-card.map-card-selected { background: #f1f3e9; box-shadow: 0 0 0 2px #7b8c6c; }
.map-discover-card.map-card-selected .plan-title { color: #465a40; }
.map-discover-card .plan-place-peek {
  display: grid; grid-template-columns: 38px minmax(0, 1fr) 12px; gap: 7px;
  width: 100%; min-height: 54px; padding: 7px; margin: 0 0 2px;
  border: 0; border-radius: 13px; background: #eef0e7; color: #465a40;
  text-align: left; align-items: center;
}
.map-discover-card .plan-place-peek > img {
  width: 38px; height: 42px; object-fit: cover; border-radius: 7px;
  outline: 1px solid #0000001a; outline-offset: -1px;
}
.map-discover-card .plan-place-peek > span { min-width: 0; gap: 2px; }
.map-discover-card .plan-place-peek strong { font-size: 12px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.map-discover-card .plan-place-peek small { font-size: 10px; line-height: 1.3; color: #68705e; }
.map-discover-card .plan-place-peek > .icon { width: 12px; height: 12px; }
.map-discover-card .plan-place-peek:hover { background: #e4e9d9; }
.map-discover-card .plan-place-peek:focus-visible { outline: 2px solid #52684b; outline-offset: 3px; }
@media (max-width: 340px) {
  .map-is-active .map-discover-card .meetup-content { grid-template-columns: minmax(0, 1fr); }
}
.map-context-sheet { position: absolute; display: flex; flex-direction: column; z-index: 990;
  top: 112px; bottom: 24px; left: var(--context-left, 420px); width: 390px;
  max-width: calc(100% - var(--context-left, 420px) - 92px); min-height: 0;
  border-radius: 24px; background: var(--drawer-material); overflow: hidden;
  box-shadow: 0 2px 6px #2528210a, 0 8px 24px #25282120;
  animation: context-enter 220ms cubic-bezier(.2,.7,.2,1);
  transition: left 280ms cubic-bezier(.2,.7,.2,1);
}
.map-context-sheet[hidden] { display: none; }
.map-context-heading { display: flex; align-items: center; gap: 7px; flex: none; padding: 9px 12px 3px; }
.map-context-heading h2 { font-size: 20px; letter-spacing: -.5px; }
.map-context-heading .icon { width: 19px; height: 19px; }
.map-is-active .map-context-sheet .map-inspector { flex: 1; min-height: 0; padding: 12px;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  scrollbar-color: #c7c9c0 transparent; border: 0; margin: 0; border-radius: 0;
  background: transparent; box-shadow: none;
}
.map-is-active .map-context-sheet.is-place .map-inspector { padding: 0; }
.map-context-sheet .place-detail { background: #fffefa; }
.map-context-sheet .place-plans { background: var(--drawer-material); }
.map-context-sheet .place-plan-card { box-shadow: 0 0 0 1px #30352a09; }
.map-dialog-open .map-context-sheet { visibility: hidden; }
@keyframes context-enter { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: translateX(0); } }
@media (max-width: 1100px) and (min-width: 801px) {
  .map-context-sheet { width: 370px; }
  .map-context-sheet .place-plan-card .meetup-content { grid-template-columns: 96px minmax(0, 1fr); gap: 9px; }
  .map-context-sheet .place-plan-card { padding-inline: 12px; }
}
@media (max-width: 800px) {
  .map-context-sheet { top: calc(158px + env(safe-area-inset-top)); bottom: calc(24px + env(safe-area-inset-bottom)); left: 8px;
    width: min(390px, calc(100% - 56px)); max-width: none; height: auto; max-height: none;
  }
  .map-is-active .context-open .map-sheet { visibility: hidden; pointer-events: none; }
  .map-is-active .map-sheet-heading, .map-is-active .map-sheet-toggle { min-height: 56px; height: 56px; }
  .map-is-active .map-sheet-toggle { padding-top: 14px; }
}
@media (max-width: 800px) and (orientation: landscape) {
  .map-context-sheet { top: 94px; bottom: 20px; height: auto; max-height: none; width: min(370px, 52vw); }
}
@media (prefers-reduced-motion: reduce) { .map-context-sheet { animation: none; transition: none; } }
