* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: #1a1a1a; background: #f6f6f4; }
header { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: #111; color: #fff; }
.brand { font-weight: 700; font-size: 20px; }
.badge { font-size: 11px; font-weight: 500; background: #333; padding: 2px 6px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
#auth-area { display: flex; gap: 8px; align-items: center; font-size: 13px; }

main { display: flex; height: calc(100vh - 52px); }
#panel { width: 420px; max-width: 100%; overflow-y: auto; padding: 12px; background: #fff; border-right: 1px solid #ddd; }
#map { flex: 1; }
@media (max-width: 760px) {
  main { flex-direction: column-reverse; height: auto; }
  #map { height: 40vh; flex: none; }
  #panel { width: 100%; border-right: none; }
}

.search { display: flex; gap: 8px; align-items: center; }
.search input[type=search] { flex: 1; padding: 9px 10px; border: 1px solid #ccc; border-radius: 8px; font-size: 15px; }
.toggle { font-size: 13px; white-space: nowrap; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chip { border: 1px solid #ccc; background: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.chip.on { background: #111; color: #fff; border-color: #111; }

.tabs { display: flex; border-bottom: 1px solid #ddd; margin-bottom: 10px; }
.tabs button { flex: 1; background: none; border: none; padding: 9px 0; font-size: 14px; cursor: pointer; color: #666; border-bottom: 2px solid transparent; }
.tabs button.active { color: #111; font-weight: 600; border-bottom-color: #111; }

.row { display: flex; gap: 8px; margin-bottom: 10px; }
.row select { flex: 1; padding: 6px; border-radius: 6px; border: 1px solid #ccc; }

.list { display: flex; flex-direction: column; gap: 8px; }
.card { border: 1px solid #e3e3e3; border-radius: 10px; padding: 10px 12px; cursor: pointer; background: #fff; }
.card:hover { border-color: #999; }
.card h3 { margin: 0 0 3px; font-size: 15px; }
.meta { font-size: 13px; color: #666; }
.card-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.day-head { font-size: 12px; font-weight: 700; text-transform: uppercase; color: #888; margin: 8px 0 0; }

.pill { display: inline-block; font-size: 11px; padding: 2px 7px; border-radius: 999px; background: #eee; margin: 4px 4px 0 0; }
.pill.open { background: #d9f5df; color: #145c26; }
.pill.closed { background: #f3e1e1; color: #7a1f1f; }

.btn { background: #111; color: #fff; border: none; border-radius: 8px; padding: 9px 14px; cursor: pointer; font-size: 14px; }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn.ghost { background: #fff; color: #111; border: 1px solid #ccc; }
.btn.on { background: #e8c547; color: #111; }
header .btn { background: #fff; color: #111; }

.note { font-size: 13px; color: #777; margin: 4px 0 8px; }
.empty { font-size: 14px; color: #888; padding: 20px 0; text-align: center; }
.banner { padding: 10px 16px; font-size: 14px; }
.banner.error { background: #fbe3e3; color: #7a1f1f; }

.checks { list-style: none; padding: 0; margin: 12px 0; }
.checks li { padding: 7px 0; border-bottom: 1px solid #eee; font-size: 14px; display: flex; gap: 10px; }
.checks .res { font-weight: 700; min-width: 42px; }
.checks .ok { color: #1d7a35; } .checks .fail { color: #b3261e; } .checks .wait { color: #999; }
.checks .detail { color: #666; font-size: 12px; }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 16px; }
.modal-box { background: #fff; border-radius: 12px; padding: 20px; width: 460px; max-width: 100%; max-height: 85vh; overflow-y: auto; position: relative; }
.modal-box h2 { margin: 0 0 4px; font-size: 20px; }
.modal-box h4 { margin: 16px 0 6px; font-size: 13px; text-transform: uppercase; color: #888; }
.close { position: absolute; top: 8px; right: 12px; border: none; background: none; font-size: 24px; cursor: pointer; color: #888; }
.desc { white-space: pre-line; font-size: 14px; line-height: 1.45; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.actions a { text-decoration: none; }
.hours { font-size: 14px; border-collapse: collapse; }
.hours td { padding: 2px 12px 2px 0; }
form.auth { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
form.auth input { padding: 9px 10px; border: 1px solid #ccc; border-radius: 8px; font-size: 15px; }
.msg { font-size: 13px; }
.msg.error { color: #b3261e; } .msg.ok { color: #1d7a35; }
