/* cusco.briaan.com — flat, white, hairlines. body 16px for phones in the street. */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: #111;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
::selection { background: #ffdd00; }
a { color: #3600ff; }
button { font: inherit; }

.meta, .views button, .item .where, .sub, footer, .cat-head .count {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

header { padding: 20px 16px 0; }
h1 { font-size: 22px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.sub { color: #555; margin: 4px 0 0; }
.meta { color: #999; margin: 2px 0 0; }
.meta a { color: #999; }

.views { margin: 14px 0 0; border-bottom: 1px solid #e4e4e4; }
.views button {
  appearance: none; background: none; border: 0; border-bottom: 2px solid transparent;
  color: #555; padding: 6px 0; margin: 0 18px 0 0; cursor: pointer;
}
.views button.on { color: #111; border-bottom-color: #111; }
.views button:focus-visible { outline: 2px solid #3600ff; outline-offset: 2px; }

/* layout: mobile = sticky map on top, list under; desktop = list left, map right */
.wrap { display: flex; flex-direction: column; }
#map { position: sticky; top: 0; z-index: 10; height: 42vh; border-bottom: 1px solid #e4e4e4; background: #f2efe9; }
main { flex: 1; }

@media (min-width: 900px) {
  .wrap { flex-direction: row-reverse; align-items: flex-start; }
  #map { height: 100vh; flex: 1; border-bottom: 0; border-left: 1px solid #e4e4e4; }
  main { width: 430px; flex: none; }
}

/* list */
.cat-head {
  display: flex; align-items: baseline; gap: 8px;
  margin: 0; padding: 22px 16px 6px;
  font-size: 16px; font-weight: 600;
}
.cat-head .dot { position: relative; top: -1px; }
.cat-head .count { color: #999; font-weight: 400; }

.dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,.15); flex: none;
}
.dot.none { background: #fff !important; border: 1px dashed #999; }

.item {
  display: block; width: 100%; text-align: left; appearance: none;
  background: none; border: 0; border-top: 1px solid #efefef;
  padding: 10px 16px; cursor: pointer; color: inherit;
}
.item:hover { background: #fafafa; }
.item:focus-visible { outline: 2px solid #3600ff; outline-offset: -2px; }
.item.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 30% { background: #ffdd00; } 100% { background: transparent; } }

.item .name { font-weight: 500; display: flex; align-items: center; gap: 8px; }
.item .note { color: #444; margin: 2px 0 0 18px; }
.item .where { color: #999; margin: 3px 0 0 18px; }

.advice { padding: 4px 16px 10px; border-top: 1px solid #efefef; }
.advice p { margin: 6px 0; color: #444; }

footer { padding: 18px 16px 28px; border-top: 1px solid #e4e4e4; }
footer .meta { margin: 0; }

/* map bits */
.leaflet-container { font: inherit; }
.leaflet-popup-content-wrapper { border-radius: 0; box-shadow: 0 1px 6px rgba(0,0,0,.18); }
.leaflet-popup-content { margin: 12px 14px; font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.pop .name { font-weight: 600; }
.pop .note { color: #444; margin-top: 2px; }
.pop .links { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; margin-top: 8px; }
.pop .cat { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: #999; margin-top: 6px; }

/* review mode */
#review {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: #fff; border-top: 2px solid #111; padding: 10px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px;
  max-height: 40vh; overflow: auto;
}
#review button { border: 1px solid #111; background: #fff; padding: 3px 10px; cursor: pointer; margin: 2px 6px 2px 0; }
#review button:hover { background: #ffdd00; }
#review textarea { width: 100%; height: 90px; font: inherit; margin-top: 8px; }
