/* Location messages in chats and the location picker. */
.zk-loc { display: block; width: 270px; max-width: 100%; overflow: hidden; border: 1px solid var(--dc-border, rgba(127, 127, 127, .25)); border-radius: 18px; background: var(--dc-bg-secondary, #1a1d2b); color: var(--dc-text-normal, #e7e9f3); text-align: start; text-decoration: none !important; transition: filter .12s ease; }
.zk-loc:hover { filter: brightness(1.06); }
.zk-loc-map { position: relative; display: block; height: 136px; overflow: hidden; background: linear-gradient(135deg, #24405c, #1d5a56); }
html.light .zk-loc-map { background: linear-gradient(135deg, #cfe3f5, #d7ecd9); }
.zk-loc-map img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
html:not(.light) .zk-loc-map img { filter: brightness(.78) saturate(.9) contrast(1.05); }
.zk-loc-pin { position: absolute; left: 50%; top: 50%; width: 30px; height: 38px; margin: -36px 0 0 -15px; color: #111318; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
.zk-loc-text { display: block; padding: 10px 13px 12px; }
.zk-loc-text b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.25; }
.zk-loc-text small { display: -webkit-box; margin-top: 2px; overflow: hidden; font-size: 12.5px; line-height: 1.35; color: var(--dc-text-muted, #a3a8c2); -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.zk-loc-text small:empty { display: none; }

.zk-locp { position: fixed; inset: 0; z-index: 2147482000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0, 0, 0, .6); animation: zkLocFade .15s ease-out; }
.zk-locp-box { --lp-bg: #17191f; --lp-text: #f1f2f6; --lp-muted: #a2a6b4; --lp-line: rgba(255, 255, 255, .1); --lp-btn: #fff; --lp-btn-text: #111318; display: flex; width: 100%; max-width: 640px; height: min(760px, 100%); flex-direction: column; overflow: hidden; border-radius: 20px; background: var(--lp-bg); color: var(--lp-text); box-shadow: 0 24px 70px rgba(0, 0, 0, .5); }
html.light .zk-locp-box { --lp-bg: #fff; --lp-text: #14151b; --lp-muted: #60646f; --lp-line: #e4e5ea; }
.zk-locp-head { display: flex; flex: none; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; }
.zk-locp-mark { display: flex; width: 36px; height: 36px; flex: none; align-items: center; justify-content: center; border-radius: 50%; background: #0a84ff; color: #fff; }
.zk-locp-mark svg { width: 19px; height: 19px; }
.zk-locp-title { flex: 1; min-width: 0; margin: 0; overflow: hidden; font-size: 18px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; color: var(--lp-text); }
.zk-locp-x { display: flex; width: 44px; height: 44px; flex: none; align-items: center; justify-content: center; border-radius: 50%; color: var(--lp-text); }
.zk-locp-x:hover { background: var(--lp-line); }
.zk-locp-x svg { width: 20px; height: 20px; }
.zk-locp-search { position: relative; flex: none; padding: 0 12px 10px; }
.zk-locp-search input { width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid var(--lp-line); border-radius: 12px; background: transparent; color: var(--lp-text); font-size: 15px; }
.zk-locp-results { position: absolute; left: 12px; right: 12px; top: 48px; z-index: 5; max-height: 240px; overflow-y: auto; border: 1px solid var(--lp-line); border-radius: 12px; background: var(--lp-bg); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.zk-locp-results button { display: block; width: 100%; min-height: 44px; padding: 10px 14px; font-size: 13.5px; line-height: 1.3; text-align: start; color: var(--lp-text); }
.zk-locp-results button:hover { background: var(--lp-line); }
.zk-locp-results p { margin: 0; padding: 12px 14px; font-size: 13px; color: var(--lp-muted); }
.zk-locp-map { position: relative; flex: 1; min-height: 0; background: #1f3b52; }
.zk-locp-map > .zk-locp-gl { position: absolute; inset: 0; }
.zk-locp-center { position: absolute; left: 50%; top: 50%; z-index: 3; width: 38px; height: 48px; margin: -46px 0 0 -19px; color: #111318; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .5)); pointer-events: none; }
.zk-locp-dot { width: 18px; height: 18px; border: 3px solid #fff; border-radius: 50%; background: #0a84ff; box-shadow: 0 0 0 7px rgba(10, 132, 255, .25), 0 1px 4px rgba(0, 0, 0, .4); }
.zk-locp-fabs { position: absolute; right: 14px; bottom: 16px; z-index: 4; display: flex; flex-direction: column; gap: 12px; }
.zk-locp-fab { display: flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 50%; background: var(--lp-btn); color: var(--lp-btn-text); box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.zk-locp-fab svg { width: 24px; height: 24px; }
.zk-locp-fab.is-on { background: #0a84ff; color: #fff; }
.zk-locp-note { position: absolute; left: 12px; right: 78px; top: 12px; z-index: 4; padding: 9px 12px; border-radius: 12px; background: rgba(12, 14, 20, .86); color: #fff; font-size: 12.5px; line-height: 1.35; }
.zk-locp-note:empty { display: none; }
.zk-locp-foot { flex: none; padding: 12px; }
.zk-locp-addr { margin: 0 2px 10px; font-size: 13px; line-height: 1.35; color: var(--lp-muted); overflow-wrap: anywhere; }
.zk-locp-addr:empty { display: none; }
.zk-locp-err { margin: 0 2px 10px; font-size: 13px; color: #fb7185; }
.zk-locp-send { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: center; gap: 8px; border-radius: 9999px; background: #0a84ff; color: #fff !important; font-size: 15.5px; font-weight: 600; text-decoration: none !important; }
.zk-locp-send:hover { filter: brightness(1.08); }
.zk-locp-send:disabled { opacity: .55; cursor: not-allowed; }
.zk-locp-send.is-alt { margin-top: 8px; background: var(--lp-line); color: var(--lp-text) !important; }
.zk-locp .maplibregl-ctrl-attrib { font-size: 10px; }
@keyframes zkLocFade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 639.98px) {
    .zk-locp { padding: 0; }
    .zk-locp-box { max-width: none; height: 100%; height: 100dvh; border-radius: 0; }
    .zk-locp-foot { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
}

/* Check-in card in posts: map picture with the pin, then the kind of place, its name and friends who have been here */
.zk-checkin-card { display: block; width: 100%; margin-top: .75rem; overflow: hidden; padding: 0; border: 1px solid var(--zinkly-border, rgba(255,255,255,.08)); border-radius: 1rem; background: var(--zinkly-surface, #14161f); text-align: left; cursor: pointer; transition: border-color .15s; }
.zk-checkin-card:hover { border-color: rgba(124, 92, 255, .5); }
.zk-checkin-card .zk-loc-map { height: 190px; }
@media (min-width: 640px) { .zk-checkin-card .zk-loc-map { height: 230px; } }
html .zk-checkin-card .zk-loc-pin, html.zk-human .zk-checkin-card .zk-loc-pin { color: #f43f5e; width: 34px; height: 43px; margin: -41px 0 0 -17px; }
.zk-checkin-body { display: flex; align-items: center; gap: .85rem; padding: .8rem .95rem; }
.zk-checkin-ic { display: flex; width: 3rem; height: 3rem; flex: none; align-items: center; justify-content: center; border-radius: 9999px; background: rgba(148, 163, 184, .2); color: #e2e8f0; }
.zk-checkin-ic svg { width: 1.6rem; height: 1.6rem; }
.zk-checkin-type { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--zk-faint, #a1a1aa); }
.zk-checkin-card b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; font-weight: 700; color: #fff; }
.zk-checkin-sub { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; color: var(--zk-muted, #a1a1aa); }
html.light .zk-checkin-card { background: #fff; border-color: #e4e4e7; }
html.light .zk-checkin-card b { color: #18181b; }
html.light .zk-checkin-ic { background: #e2e8f0; color: #475569; }
