/* One existing place panel; mobile map, list and desktop share its content and actions. */
@media (max-width: 760px) {
  .map-layout[data-view="map"] .map-frame { height: clamp(280px, calc(100svh - 170px), 560px); min-height: 280px; isolation: isolate; }
  .map-layout[data-view="map"] .results-panel { display: none; }
  .map-frame.has-place-sheet .map-caption { display: none; }
  .map-frame .selected-spot.mobile-place-sheet { display: none; }
  .map-frame .selected-spot.mobile-place-sheet.has-selection {
    position: absolute; z-index: 600; inset: auto 8px var(--sheet-bottom, 32px);
    display: flex; flex-direction: column; gap: 0; margin: 0; padding: 10px 12px;
    width: auto; max-height: var(--sheet-room, calc(100% - 40px));
    border: 1px solid var(--line); border-radius: 14px; background: var(--green-soft);
    box-shadow: var(--shadow); overflow: hidden; animation: none; scroll-margin: 0;
  }
  .mobile-place-sheet .selected-summary { flex-shrink: 0; position: relative; min-width: 0; }
  .mobile-place-sheet .detail-close { top: -7px; right: -8px; display: grid; place-items: center; padding: 0; line-height: 1; }
  .mobile-place-sheet .selected-top { padding-right: 34px; gap: 4px 8px; }
  .mobile-place-sheet .selected-tag { font-size: .75rem; }
  .mobile-place-sheet .selected-hint { font-size: .75rem; line-height: 1.5; }
  .mobile-place-sheet .selected-title-row { gap: 4px; align-items: center; flex-wrap: wrap; }
  .mobile-place-sheet .selected-title-row h3 { flex: 1 1 7em; margin: 5px 0; font-size: 1.0625rem; line-height: 1.4; overflow-wrap: anywhere; }
  .mobile-place-sheet .selected-details-toggle { flex: 0 1 auto; max-width: 100%; font-size: .8125rem; min-width: 72px; min-height: 44px; padding: 4px; white-space: normal; overflow-wrap: anywhere; }
  .mobile-place-sheet .selected-actions { flex-shrink: 0; margin-top: 6px !important; padding-top: 2px; }
  .mobile-place-sheet .selected-actions .small-button { min-height: 44px; font-size: .8125rem; padding: 7px 4px; line-height: 1.5; }
  .mobile-place-sheet[data-expanded="true"] { height: var(--sheet-expanded-height, calc(100% - 40px)); }
  .mobile-place-sheet #selectedDetails { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 0 3px 8px 0; touch-action: pan-y; }
  .mobile-place-sheet #selectedDetails p { font-size: 1rem; line-height: 1.75; }
  .mobile-place-sheet .selected-sources a { font-size: .8125rem; }
  .mobile-place-sheet[data-expanded="true"] .selected-actions { border-top: 1px solid var(--line); padding-top: 8px; }
  /* When enlarged type leaves no reading area, scroll the card while keeping actions pinned. */
  .map-frame .selected-spot.mobile-place-sheet.sheet-scroll-all { overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; scroll-padding-block: 8px var(--sheet-action-height, 80px); }
  .mobile-place-sheet.sheet-scroll-all #selectedDetails { flex: none; min-height: 100px; overflow: visible; scrollbar-gutter: auto; }
  .mobile-place-sheet.sheet-scroll-all .selected-actions { position: sticky; bottom: 0; z-index: 2; background: var(--green-soft); padding-bottom: 8px; }
  .mobile-place-sheet [hidden] { display: none !important; }
  .mobile-place-sheet button:focus-visible, .mobile-place-sheet a:focus-visible, .mobile-place-sheet #selectedDetails:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
  .map-layout[data-view="list"] .selected-summary { position: relative; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-place-sheet, .mobile-place-sheet * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
