/* About a place: the line under a place in the plan, the sheet it opens, tips, and reports. */

/* Under the place, inside its card. */
.place-line { display: flex; flex-direction: column; gap: 3px; width: 100%; margin-top: 6px; padding: 7px 0 0; border: 0; border-top: 1px dashed var(--line); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.place-text { font-size: .86rem; line-height: 1.4; color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.place-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: .76rem; color: var(--muted); }
.place-src { font-weight: 600; letter-spacing: .01em; }
.place-tips { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--accent); }
.place-more { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; font-weight: 600; color: var(--accent); }
.place-line:not(.has-about) { border-top: 0; padding-top: 0; margin-top: 4px; }
.place-line:not(.has-about) .place-more { margin-left: 0; }
.place-line:hover .place-more { text-decoration: underline; }
.place-line:focus-visible { outline: 2.5px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

/* The sheet. */
.place .view-head > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.place-about { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.place-about p { margin: 0; line-height: 1.5; }
.place-about small, .place-contact small { color: var(--muted); font-size: .8rem; }
.place-contact { display: flex; flex-direction: column; gap: 8px; }
.place-contact p { margin: 0; }
.place-contact a { overflow-wrap: anywhere; }
.place-links { display: flex; flex-wrap: wrap; gap: 8px; }
.place-links a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: .86rem; text-decoration: none; }
.place-links a:hover { background: var(--surface-2); }
.place-links a .icon { color: var(--accent); }
.place-wrong { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; color: var(--muted); font-size: .84rem; }
.place-report { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); }
.place-report .field-hint { margin: 0; }
.place-hidden { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px 10px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--coral) 10%, var(--surface)); font-size: .9rem; line-height: 1.45; }
.place-hidden .icon { color: var(--coral); margin-top: 3px; flex: none; }
.place-hidden span { flex: 1 1 220px; }

/* Tips. */
.tips-h { display: flex; align-items: center; gap: 8px; font: 600 1.05rem var(--display); margin: 6px 0 0; }
.tips-h .icon { color: var(--accent); }
.tips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tip { display: flex; gap: 10px; align-items: flex-start; }
.tip.editing { flex-direction: column; align-items: stretch; }
.tip-main { flex: 1 1 auto; min-width: 0; padding: 10px 12px; border-radius: 4px 14px 14px 14px; background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.tip-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.tip-head small { color: var(--muted); font-size: .78rem; }
.tip-main p { margin: 4px 0 0; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.tip-actions { display: flex; gap: 14px; margin-top: 4px; }
.tip-actions .link-btn { font-size: .8rem; }
.tag.was-there { background: color-mix(in srgb, var(--good) 16%, var(--surface)); color: var(--good); }
.tip-new { display: flex; flex-direction: column; gap: 6px; }
.tip-new .field-hint { margin: 0; }

/* For the person who runs GangPlan: what has been reported. */
.flags-note { display: flex; align-items: center; gap: 12px; max-width: 640px; margin: 0 0 22px; padding: 12px 16px; }
.flags-note .icon { color: var(--coral); flex: none; }
.flags-note span { flex: 1 1 auto; }
.flag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.flag-list li { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.flag-list small { color: var(--muted); font-size: .8rem; }
.flag-list p { margin: 0; line-height: 1.45; }
.flag-shown { font-size: .9rem; }
.flag-note { font-style: italic; }
.flag-list .actions { flex-wrap: wrap; }
