/* maps tab: only what the shared system (ms.css) does not already give.
   Small screens: the map on top (45% of the viewport), the list under it.
   From 900px: the list on the left, the map to its right, bleeding to the window's edge and
   staying in view while the list scrolls. */
.mp{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--s4)}
.mp-map{position:relative;height:45vh;min-height:240px;border:1px solid var(--line);border-radius:var(--r-l);overflow:hidden;background:var(--surface)}
.mp-map .mp-canvas{position:absolute;inset:0}
.mp-map.is-off{height:auto;min-height:0}
.mp-map.is-off .mp-canvas,.mp-map.is-off .mp-attr{display:none}
.mp-msg{position:relative;display:flex;align-items:center;justify-content:center;gap:var(--s2);padding:var(--s4);color:var(--text-2);font-size:var(--fs-s);text-align:left}
.mp-msg svg{flex:none;width:18px;height:18px;color:var(--text-3)}
.mp-area{position:absolute;top:var(--s3);left:50%;transform:translateX(-50%);z-index:2;box-shadow:var(--shadow);white-space:nowrap}
.mp-area svg{width:14px;height:14px}
.mp-attr{position:absolute;right:0;bottom:0;z-index:2;max-width:100%;padding:2px 8px;border-top-left-radius:var(--r-s);background:var(--bg);color:var(--text-2);font-size:11px;line-height:1.5;opacity:.9}
.mp-attr:empty{display:none}
.mp-attr a{color:inherit;text-decoration:underline}
.mp-side{min-width:0}
.mp-side.is-loading{opacity:.55;transition:opacity .15s}
.mp-side.has-detail > :not(.mp-detail){display:none}

@media (min-width:900px){
  #out.custom{margin-right:calc(var(--s5) - max(var(--s5),(100vw - var(--page))/2))}
  .mp{grid-template-columns:minmax(320px,400px) minmax(0,1fr);gap:var(--s5);align-items:start}
  .mp-map{order:2;position:sticky;top:82px;height:calc(100vh - 210px);min-height:420px}
  .mp-map.is-off{min-height:0}
}

/* the "where" line and the place form */
.mp-where{display:flex;flex-direction:column;gap:var(--s1);margin:0 0 var(--s3);color:var(--text-2);font-size:var(--fs-s)}
.mp-where:empty{display:none}
.mp-where b{color:var(--text);font-weight:600}
.mp-link{border:0;background:none;padding:0;color:var(--link);font-size:inherit;min-height:24px}
.mp-link:hover{text-decoration:underline}
.mp-form{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s2);margin-top:var(--s2)}
.mp-form .txt{flex:1 1 220px;height:36px}
.mp-form .btn.small{height:36px}
.mp-form .btn svg{width:14px;height:14px}

/* cards: the shared card, tighter, with a rule between places */
.mp-list{gap:0}
.mp-list .mp-card{padding:var(--s3) 0;border-bottom:1px solid var(--line);cursor:pointer}
.mp-list .mp-card:first-child{padding-top:0}
.mp-list .mp-card.is-boost{padding-left:var(--s3)}
.mp-list .mp-card.is-hot{background:var(--surface);outline:6px solid var(--surface);border-radius:var(--r-s)}
.mp-card .avatar{display:none}
.mp-card .card-site .name{color:var(--text-2)}
.mp-card .crumb:empty{display:none}
.mp-card .card-title{font-size:var(--fs-m);font-weight:600;margin-top:0}
.mp-card .card-snip{font-size:var(--fs-s);-webkit-line-clamp:2}
.mp-name{border:0;background:none;padding:0;color:var(--text);font:inherit;text-align:left;cursor:pointer;overflow-wrap:anywhere}
.mp-name:hover{color:var(--link);text-decoration:underline}
.mp-open{color:var(--accent);font-weight:600}
.mp-closed{color:var(--text-2);font-weight:600}
.mp-next{color:var(--text-3);font-weight:400}
.mp-src{color:var(--text-3);font-size:var(--fs-xs)}
.mp-credits{margin:var(--s5) 0 0;color:var(--text-3);font-size:var(--fs-xs);line-height:1.6}
.mp-credits a{color:inherit;text-decoration:underline}

/* nothing searched yet / "where?" */
.mp-idle{display:flex;flex-direction:column;gap:var(--s2);padding:var(--s2) 0 var(--s5);color:var(--text-2)}
.mp-idle h2{margin:0;font-size:var(--fs-l);font-weight:600;color:var(--text)}
.mp-idle p{margin:0;max-width:46ch}
.mp-hint{margin:var(--s2) 0 0;color:var(--text-3);font-size:var(--fs-s)}
.mp-quick{display:flex;flex-wrap:wrap;gap:var(--s2);margin-top:var(--s2)}
.mp-quick .btn.small{height:34px}

/* one place */
.mp-back{margin:0 0 var(--s2) calc(var(--s2)*-1);height:34px}
.mp-panel-head{display:flex;align-items:flex-start;gap:var(--s2)}
.mp-panel-head h2{flex:1;min-width:0;overflow-wrap:anywhere}
.mp-status{margin:0 0 var(--s3);color:var(--text-2)}
.mp-acts{display:flex;flex-wrap:wrap;gap:var(--s2);margin:var(--s3) 0}
.mp-acts .btn{height:34px;color:var(--text);text-decoration:none}
.mp-socials{display:flex;flex-wrap:wrap;gap:var(--s1) var(--s3)}
.mp-h{margin:var(--s4) 0 var(--s1);font-size:var(--fs-s);font-weight:600;color:var(--text)}
.mp-hours{width:100%;border-collapse:collapse;font-size:var(--fs-s);font-variant-numeric:tabular-nums}
.mp-hours th{padding:3px var(--s3) 3px 0;text-align:left;font-weight:400;color:var(--text-2);white-space:nowrap}
.mp-hours td{padding:3px 0;color:var(--text)}
.mp-hours .today th,.mp-hours .today td{font-weight:600;color:var(--text)}

.mp-map .maplibregl-ctrl-group{border-radius:var(--r-m);overflow:hidden;box-shadow:var(--shadow);background:var(--bg)}
.mp-map .maplibregl-ctrl-group button{width:36px;height:36px}
:root[data-theme="dark"] .mp-map .maplibregl-ctrl-group button .maplibregl-ctrl-icon{filter:invert(1)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .mp-map .maplibregl-ctrl-group button .maplibregl-ctrl-icon{filter:invert(1)}}
.mp-map .maplibregl-ctrl-group button + button{border-top:1px solid var(--line)}

/* ms2: the website link carries the site's icon; with the filter rail on the left the list gives the map room */
.mp-web{display:inline-flex;align-items:center;gap:5px}
@media (min-width:900px){
  .results-wrap.has-rail .mp{grid-template-columns:minmax(260px,340px) minmax(0,1fr);gap:var(--s4)}
}
