/* FIND Outdoors Logbook — front-end styles */
.folb-wrap { max-width: 880px; margin: 0 auto; font-family: inherit; color: #1d2b30; }
.folb-h2 { font-size: 1.5rem; margin: 0 0 1rem; color: #1d3f4a; }
.folb-h3 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; color: #1d3f4a; }
.folb-label { display: block; font-weight: 600; font-size: .9rem; margin: .75rem 0; color: #2c5260; }
.folb-label input, .folb-label select, .folb-label textarea {
  display: block; width: 100%; margin-top: .35rem; padding: .55rem .65rem;
  border: 1px solid #c8d2d6; border-radius: 6px; font-size: 1rem; font-family: inherit;
  background: #faf5ee; box-sizing: border-box;
}
.folb-label input:focus, .folb-label select:focus, .folb-label textarea:focus {
  outline: none; border-color: #3b6c7d; box-shadow: 0 0 0 3px rgba(59,108,125,.18);
}
.folb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 540px) { .folb-row { grid-template-columns: 1fr; } }

.folb-btn {
  background: #e8543d; color: #fff; border: 0; border-radius: 6px;
  padding: .75rem 1.4rem; font-size: 1rem; font-weight: 700; cursor: pointer;
  margin-top: .5rem; transition: background .15s ease;
}
.folb-btn:hover { background: #c8412c; }
.folb-btn:disabled { opacity: .6; cursor: not-allowed; }

.folb-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.folb-hint { font-weight: 400; color: #88979d; font-size: .85rem; margin-left: .25rem; }

.folb-check {
  display: flex; align-items: flex-start; gap: .6rem;
  margin: .85rem 0 .25rem; cursor: pointer;
  font-size: .95rem; color: #2c5260; line-height: 1.45;
}
.folb-check input[type=checkbox] {
  margin-top: .2rem; flex-shrink: 0;
  width: 18px; height: 18px; accent-color: #e8543d; cursor: pointer;
}

.folb-status { margin-top: .75rem; font-size: .95rem; min-height: 1.25rem; }
.folb-status.ok  { color: #1d6f3a; }
.folb-status.err { color: #b53825; }

.folb-recent-list { list-style: none; padding: 0; margin: 0; }
.folb-recent-list li {
  padding: .65rem .85rem; border-bottom: 1px solid #e3dccd;
  display: flex; flex-direction: column; gap: .15rem;
}
.folb-recent-list li:last-child { border-bottom: 0; }
.folb-recent-name { font-weight: 700; color: #1d3f4a; }
.folb-recent-meta { font-size: .85rem; color: #5b6a70; }
.folb-recent-note { font-size: .95rem; color: #1d2b30; margin-top: .15rem; font-style: italic; }
.folb-muted { color: #88979d; font-style: italic; }

/* Map */
.folb-mapbar { display: flex; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.folb-mapbar .folb-label { margin: 0; min-width: 220px; }
.folb-count { font-size: .9rem; color: #5b6a70; padding-bottom: .35rem; }
.folb-map { width: 100%; height: 560px; border-radius: 8px; border: 1px solid #c8d2d6; overflow: hidden; }
@media (max-width: 540px) { .folb-map { height: 420px; } }

/* Map marker (coral-ring teardrop with F badge) */
.folb-pin { background: transparent; border: 0; }
.folb-pin svg {
  width: 100%; height: 100%; display: block;
  filter: drop-shadow(0 2px 3px rgba(29,43,48,.4));
}
.folb-popup b { color: #1d3f4a; }
.folb-popup small { color: #5b6a70; }

/* ---- Kiosk variant (on-site logbook) -------------------------------------- */
.folb-kiosk { max-width: 720px; margin: 0 auto; }
.folb-kiosk .folb-h2 { font-size: 1.8rem; }
.folb-kiosk .folb-kiosk-site { color: #1d3f4a; font-size: 1.1rem; margin-top: -.5rem; margin-bottom: 1rem; }
.folb-kiosk .folb-kiosk-site strong { color: #e8543d; }
.folb-kiosk input, .folb-kiosk select, .folb-kiosk textarea {
  font-size: 1.05rem; padding: .65rem .75rem;
}
.folb-kiosk .folb-btn { font-size: 1.15rem; padding: .85rem 1.5rem; }
.folb-kiosk .folb-status.ok { font-size: 1.15rem; padding: 1rem; background: #faf5ee; border-radius: 8px; }

/* ---- Map kiosk layout with live feed sidebar ----------------------------- */
.folb-map-layout { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.folb-mapwrap-kiosk .folb-map-layout { grid-template-columns: 1fr 320px; }
.folb-mapwrap-kiosk .folb-map { height: 78vh; min-height: 520px; }
@media (max-width: 900px) {
  .folb-mapwrap-kiosk .folb-map-layout { grid-template-columns: 1fr; }
  .folb-mapwrap-kiosk .folb-map { height: 50vh; }
}

.folb-livefeed {
  background: #faf5ee; border: 1px solid #e6d9c4; border-radius: 8px;
  padding: 1rem; max-height: 78vh; overflow-y: auto;
}
.folb-livefeed .folb-h3 { margin: 0 0 .75rem 0; color: #1d3f4a; }
.folb-live-list { list-style: none; padding: 0; margin: 0; }
.folb-live-item {
  padding: .65rem .5rem; border-bottom: 1px solid #ebe0c9;
}
.folb-live-item:last-child { border-bottom: 0; }
.folb-live-item.folb-onsite { background: rgba(232, 84, 61, 0.06); border-radius: 6px; }
.folb-live-row1 { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.folb-live-name { font-weight: 700; color: #1d2b30; }
.folb-live-meta { font-size: .85rem; color: #5b6a70; margin-top: .15rem; }
.folb-live-when { font-size: .75rem; color: #88979d; margin-top: .1rem; }
.folb-badge-here {
  display: inline-block; font-size: .7rem; font-weight: 700;
  color: #fff; background: #e8543d; padding: .15rem .45rem;
  border-radius: 999px; letter-spacing: .02em;
}
.folb-live-foot { font-size: .8rem; color: #5b6a70; margin: .75rem 0 0 0; }
.folb-live-foot .folb-badge-here { margin-right: .35rem; }

/* ---- All Visitors map (1.3.0) -------------------------------------------- */
.folb-mapall { max-width: 1100px; }
.folb-layer-toggles { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; padding-bottom: .35rem; }
.folb-layer-toggles label { display: inline-flex; align-items: center; gap: .4rem; font-size: .95rem; cursor: pointer; }
.folb-key { display: inline-block; border-radius: 50%; }
.folb-key-all { width: 16px; height: 16px; background: rgba(232,84,61,.45); border: 2px solid #e8543d; }
.folb-key-recent { width: 9px; height: 9px; background: #1f3a5f; border: 1.5px solid #fff; box-shadow: 0 0 0 1px #1f3a5f; }
.folb-stats { margin: .25rem 0 .75rem; font-size: 1rem; color: #1d2b30; }
.folb-stats strong { font-size: 1.15rem; }
.folb-map-foot { margin-top: .5rem; font-size: .85rem; color: #5f6b7a; }
.folb-mapall .folb-map { height: 640px; }
@media (max-width: 540px) { .folb-mapall .folb-map { height: 460px; } }

/* ---- Your pin after signing + drop animation (1.4.0) --------------------- */
.folb-yourpin { margin: 1.5rem 0; }
.folb-yourpin[hidden] { display: none; }
.folb-yourpin-map { height: 360px; }
.folb-kiosk .folb-yourpin-map { height: 320px; }
.folb-pin-drop svg { animation: folb-pin-drop .65s cubic-bezier(.3, 1.45, .6, 1) both; transform-origin: 50% 100%; }
@keyframes folb-pin-drop {
  0%   { transform: translateY(-70px) scale(.85); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .folb-pin-drop svg { animation: none; } }
