/* Optional notes CTA + native dialog. Scoped to Map Share; no legacy card changes. */
.msh-place-details-open {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  max-width: 100%;
  min-height: 42px;
  margin: 2px 0 10px;
  padding: 7px 14px;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  background: #fff7ed;
  color: #9a3412;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.msh-place-details-open:hover { background: #ffedd5; border-color: #fb923c; }
.msh-place-details-open:focus-visible { outline: 3px solid #ea580c; outline-offset: 2px; }
.msh-place-details-open svg { width: 17px; height: 17px; flex-shrink: 0; }

.msh-notes-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(570px, 96vw);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  border: none;
  border-left: 1px solid #e7e5e4;
  border-radius: 20px 0 0 20px;
  color: #292524;
  background: #fff;
  box-shadow: -24px 0 50px rgb(41 37 36 / 16%);
  overscroll-behavior: contain;
}
@keyframes msh-notes-slide-in-right {from {transform:translateX(100%);opacity:.85} to {transform:translateX(0);opacity:1}}
@keyframes msh-notes-slide-in-up {from {transform:translateY(100%);opacity:.85} to {transform:translateY(0);opacity:1}}
.msh-notes-dialog[open] {animation:msh-notes-slide-in-right .23s ease-out both;}
.msh-notes-dialog:not([open]) { display: none; }
.msh-notes-dialog::backdrop { background: rgb(15 23 42 / 50%); }
.msh-notes-dialog .msh-notes-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  overflow: hidden;
}
.msh-notes-dialog [hidden] { display: none !important; }
.msh-notes-dialog .msh-notes-handle { display:none; }
.msh-notes-header {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:26px 27px 17px;
  border-bottom:1px solid #f1f0ef;
}
.msh-notes-heading { min-width:0; }
.msh-notes-eyebrow { font-size:12px; font-weight:600; color:#a34a14; margin-bottom:6px; }
.msh-notes-header h2 { margin:0; font-size:21px; font-weight:700; line-height:1.4; overflow-wrap:anywhere; }
.msh-notes-close { border:0; background:#f5f5f4; border-radius:10px; width:36px; height:36px; font-size:26px; line-height:32px; color:#57534e; cursor:pointer; flex-shrink:0; }
.msh-notes-close:hover {background:#e7e5e4;}
.msh-notes-list-view,.msh-notes-detail-view { display:flex; flex-direction:column; min-height:0; flex:1; }
.msh-notes-tools {padding:14px 25px 12px; border-bottom:1px solid #f5f5f4;}
.msh-notes-search-label {display:block;}
.msh-notes-search {display:block; width:100%; box-sizing:border-box; border:1px solid #e7e5e4; border-radius:10px; background:#fafaf9; padding:12px 14px; font:inherit; font-size:14px; color:#292524; min-height:44px;}
.msh-notes-search:focus {border-color:#ea580c; outline:2px solid rgb(234 88 12 / 13%);}
.msh-notes-filters {display:flex; gap:7px; overflow-x:auto; padding:12px 0 1px; scrollbar-width:thin;}
.msh-notes-filter { flex-shrink:0; background:#fff; color:#57534e; border:1px solid #e7e5e4; border-radius:18px; padding:6px 10px; font:inherit; font-size:12px; white-space:nowrap; cursor:pointer;}
.msh-notes-filter[aria-pressed="true"] {background:#fff7ed; color:#9a3412; border-color:#fdba74;}
.msh-notes-results {min-height:0; flex:1; overflow-y:auto; padding:4px 25px 18px; overscroll-behavior:contain;}
.msh-notes-row {width:100%; display:block; text-align:left; padding:15px 5px; background:none; border:0; border-bottom:1px solid #f1f0ef; cursor:pointer; font:inherit; color:#292524;}
.msh-notes-row:hover {background:#fffbf5;}
.msh-notes-row-head {display:flex; align-items:center; justify-content:space-between; gap:10px;}
.msh-notes-row-name {font-size:15px; line-height:1.45; font-weight:650; flex:1; overflow-wrap:anywhere;}
.msh-notes-row-heat {white-space:nowrap; font-size:11px; color:#78716c; background:#f5f5f4; border-radius:12px; padding:3px 6px;}
.msh-notes-row-summary {display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; color:#78716c; font-size:13px; line-height:1.6; margin-top:5px; overflow-wrap:anywhere;}
.msh-notes-back {align-self:flex-start; border:0; background:transparent; color:#9a3412; padding:16px 26px 8px; font:inherit; cursor:pointer; font-size:14px;}
.msh-notes-back:hover {text-decoration:underline;}
.msh-notes-detail-scroll {min-height:0; flex:1; overflow:auto; padding:8px 27px 32px; overscroll-behavior:contain;}
.msh-notes-detail-name {font-size:23px; line-height:1.45; margin:10px 0 10px; color:#292524; overflow-wrap:anywhere;}
.msh-notes-detail-heat {font-size:13px; color:#a34a14; margin-bottom:16px;}
.msh-notes-detail-text {font:inherit; font-size:15px; line-height:1.85; white-space:pre-line; overflow-wrap:anywhere; margin:0; color:#44403c;}
.msh-notes-footer {padding:15px 26px max(15px, env(safe-area-inset-bottom)); border-top:1px solid #f1f0ef; background:#fff;}
.msh-notes-map-link {display:flex; align-items:center; justify-content:center; min-height:44px; border:1px solid #ea580c; border-radius:9px; background:#ea580c; color:#fff !important; text-decoration:none !important; font-size:14px; font-weight:600;}
.msh-notes-map-link:hover {background:#c2410c; border-color:#c2410c;}
.msh-notes-dialog button:focus-visible,.msh-notes-dialog a:focus-visible {outline:3px solid #ea580c; outline-offset:2px;}
.msh-notes-empty,.msh-notes-loading,.msh-notes-error {font-size:14px; line-height:1.7; color:#78716c; padding:22px 4px;}
.msh-notes-error {color:#b91c1c;}
.msh-visually-hidden {position:absolute !important; height:1px !important; width:1px !important; padding:0 !important; overflow:hidden !important; clip:rect(0,0,0,0) !important; white-space:nowrap !important; border:0 !important;}
@media (max-width:700px) {
  .msh-notes-dialog[open] {animation:msh-notes-slide-in-up .23s ease-out both;}
  .msh-notes-dialog { inset:auto 0 0; width:100%; height:min(90dvh,920px); margin:auto 0 0; border-radius:19px 19px 0 0; border:0; box-shadow:0 -15px 40px rgb(41 37 36 / 20%); }
  .msh-notes-dialog .msh-notes-handle {display:block; align-self:center; width:62px; height:6px; border-radius:8px; background:#d6d3d1; margin:10px 0 4px; touch-action:none; cursor:grab;}
  .msh-notes-header {padding:15px 19px 15px;}
  .msh-notes-header h2 {font-size:19px;}
  .msh-notes-tools {padding:12px 17px 11px;}
  .msh-notes-results {padding:2px 17px 20px;}
  .msh-notes-back {padding:12px 18px;}
  .msh-notes-detail-scroll {padding:5px 19px 20px;}
  .msh-notes-detail-name {font-size:20px;}
  .msh-notes-footer {padding:11px 18px max(12px, env(safe-area-inset-bottom));}
}
@media (prefers-reduced-motion: reduce) {
  .msh-notes-dialog[open] {animation:none !important;}
  .msh-notes-dialog * {scroll-behavior:auto !important;transition:none !important;}
}
