/* Signed-out map browsing (public/guest-map.js): a fixed bar with the way into the register tab and back out.
   Dark ink on the parchment glass (the bar also carries class "glass"); "Köy kur" is the one primary button.
   On phones it sits in the strip the action bar normally owns (bottom: --bar-h), under the #nav card. */
#guest-bar {
  position: fixed; z-index: var(--z-chrome); left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; box-sizing: border-box; max-width: calc(100vw - 20px); padding: 6px 8px;
  color: var(--ink);
}
#guest-bar #guest-note { padding-inline: 6px; color: var(--ink); font: 600 var(--text-sm)/1.3 var(--font-body); }
#guest-bar button {
  min-height: var(--touch-target); padding: 4px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); box-shadow: none;
  font: 700 var(--text-sm)/1.2 var(--font-body); white-space: normal; overflow-wrap: anywhere;
}
#guest-bar #guest-signup { border: 3px double var(--border); background: var(--btn-beige); box-shadow: var(--shadow-sm); }
@media (hover: hover) { #guest-bar button:hover { background: var(--surface-selected); } }

/* The left column the quick dock / chat toggle use is empty for a guest: the map card takes the edge. */
@media (min-width: 761px) { body:has(#guest-bar:not([hidden])) #nav { left: 10px; } }
@media (max-width: 760px) { body:has(#guest-bar:not([hidden])) #nav { left: var(--edge-left); } }

@media (max-width: 760px), (pointer: coarse) and (max-width: 1100px), (max-height: 500px) and (max-width: 1100px) {
  #guest-bar { left: var(--edge-left); right: var(--edge-right); bottom: calc(6px + env(safe-area-inset-bottom)); transform: none; max-width: none; gap: 6px; padding: 4px; }
  #guest-bar #guest-note { display: none; }
  #guest-bar button { flex: 1 1 0; min-width: 0; padding: 4px 6px; font-size: 12px; }
}

/* Desktop: the centred bar reaches the left corner on narrow windows, so the map credits sit just above it. */
@media (min-width: 761px) and (pointer: fine) and (min-height: 501px), (min-width: 1101px) {
  body:has(#guest-bar:not([hidden])) #attrib { bottom: calc(66px + env(safe-area-inset-bottom)); }
}
