/* Layout tweaks on top of the base theme — kept separate so a rebuild of
   index-*.css doesn't wipe these out. */

/* Guide + Tour: their own cluster, top-left, visually separate from the
   rest of the toolbar. */
#btn-guide, #btn-tour {
  position: fixed !important;
  top: var(--gap) !important;
  z-index: 10;
}
/* Clear of the left filter panel (var(--panel-w) wide, starting at
   var(--gap)) rather than sitting on top of it. */
#btn-guide { left: calc(var(--panel-w) + var(--gap) * 2) !important; }
#btn-tour  { left: calc(var(--panel-w) + var(--gap) * 2 + 86px) !important; }

/* A visible gap + divider so the pair reads as its own group. */
#btn-guide { margin-right: 10px; }
#btn-guide::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 16px;
  background: var(--line);
}

/* Everything else that was in the centered top toolbar moves to the
   top-right instead. */
.topbar {
  left: auto !important;
  right: var(--gap) !important;
  transform: none !important;
}

/* The bottom-right control stack (layers / locate / home / 2D / zoom) was
   offset by the width of the (usually-hidden) research-log panel. Pin it
   to the true right edge instead. */
.controls {
  right: var(--gap) !important;
  bottom: 110px !important;
}

/* Floating WhatsApp button, same spot as the main site, under the map
   controls on the right. */
.whatsapp-float {
  position: fixed;
  right: var(--gap);
  bottom: 24px;
  z-index: 10;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float svg { width: 30px; height: 30px; color: #fff; }

/* Make the SHOW / LISTINGS toggle tiles and pills read as selectors:
   an explicit checkbox-style indicator, not just a colour change. */
.tile { position: relative; padding-right: 20px; }
.tile::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 13px;
  height: 13px;
  border-radius: 4px;
  border: 1.5px solid var(--chip-line);
  background: var(--chip);
  box-sizing: border-box;
}
.tile.on::after {
  content: '\2713';
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink, #0b0b0c);
  font-size: 10px;
  line-height: 11px;
  text-align: center;
}

.chips .chip, #f-kind ~ .chips .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 3px;
  border: 1.5px solid var(--chip-line);
  background: var(--chip);
  box-sizing: border-box;
  flex: none;
}
.chip.on::before {
  content: '\2713';
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
  font-size: 7px;
  line-height: 8px;
  text-align: center;
}

@media (max-width: 760px) {
  #btn-guide, #btn-tour, .topbar, .controls {
    /* Leave the mobile layout alone until it's been checked on a real
       phone — these rules are desktop-only for now. */
    all: revert;
  }
  .whatsapp-float { display: none; }
}
