/* Club — секция: эмалевые значки и доска объявлений */

:root {
  --font-display: "Onest", sans-serif;
  --font-body: "Nunito Sans", sans-serif;
  --ink: #10233d;
  --paper: #eef3f1;
  --accent: #12355b;
  --accent-2: #d5e8c8;
  --lime: #b7e04c;
  --map-filter: saturate(0.92);
}

body { background: #d9e2dc; }

.app {
  height: 100vh;
  display: grid;
  grid-template:
    "top" 70px
    "body" 1fr
    / 1fr;
  padding: 12px;
  gap: 10px;
  position: relative;
}

.top {
  grid-area: top;
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px;
  background: var(--accent);
  color: #fff;
  border-radius: 18px;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.2);
}
.logo { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.logo span { color: var(--lime); }
.search { flex: 1; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; background: #fff; color: var(--ink); border-radius: 12px; }
.search input { border: 0; outline: 0; width: 100%; background: transparent; }
.search svg { width: 16px; height: 16px; }
.create { height: 38px; padding: 0 14px; background: var(--lime); color: #10233d; font-weight: 800; border-radius: 12px; }
.city, .me { height: 38px; border: 0; background: transparent; color: #fff; display: inline-flex; gap: 8px; align-items: center; cursor: pointer; font-weight: 700; }
.me i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--lime); color: var(--ink); font-style: normal; font-weight: 800; }

.body-wrap { display: contents; }

.map-stage {
  grid-area: body;
  border-radius: 18px;
  box-shadow: inset 0 0 0 10px #c5d0c8, 0 8px 0 rgba(18,53,91,.15);
}

.filters {
  position: absolute; z-index: 6; left: 28px; top: 96px; bottom: 28px; width: 240px;
  overflow: auto; padding: 14px;
  background: color-mix(in srgb, #fff 92%, transparent);
  border-radius: 16px;
}
.filters h2 { font-family: var(--font-display); margin: 0 0 10px; font-size: 1rem; }
.block h3 { margin: 0 0 6px; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.55; }
.chips, .subcats { display: flex; flex-wrap: wrap; gap: 6px; }
.chip, .cat { border: 0; background: var(--paper); padding: 5px 10px; border-radius: 99px; cursor: pointer; font-weight: 700; font-size: 0.78rem; }
.chip.is-on, .cat.is-on { background: var(--accent); color: #fff; }
.radio-row, .check-row { display: flex; gap: 8px; font-size: 0.8rem; margin: 3px 0; cursor: pointer; }
.link-more { color: var(--accent); font-weight: 800; font-size: 0.78rem; }

.feed {
  position: absolute; z-index: 6; right: 28px; top: 96px; bottom: 28px; width: 300px;
  overflow: auto; padding: 12px;
  background: color-mix(in srgb, #fff 92%, transparent);
  border-radius: 16px;
}
.feed header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.feed h2 { margin: 0; font-family: var(--font-display); font-size: 1rem; }
.card { display: grid; grid-template-columns: 48px 1fr; gap: 8px; width: 100%; text-align: left; border: 0; background: #fff; padding: 8px; border-radius: 14px; margin-bottom: 8px; cursor: pointer; }
.card.is-on { box-shadow: 0 0 0 3px var(--lime); }
.thumb { border-radius: 12px; background: var(--accent); color: var(--lime); display: grid; place-items: center; }
.thumb svg { width: 20px; height: 20px; }
.card h3 { margin: 0; font-size: 0.88rem; font-family: var(--font-display); }
.meta, .row { font-size: 0.75rem; }

.pin { background: transparent; padding: 0 !important; box-shadow: none; }
.pin-ico {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--lime);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.25), 0 4px 0 rgba(0,0,0,.12);
  border: 3px solid #f4f7f2;
}
.pin-rate { background: #fff; border-radius: 99px; padding: 2px 6px; font-size: 0.75rem; }
.pin.is-on .pin-ico { background: var(--lime); color: var(--ink); }
.cluster { background: var(--lime); color: var(--ink); border-radius: 50%; font-weight: 800; box-shadow: 0 4px 0 rgba(0,0,0,.15); }

.map-caption { display: none; }
.map-tools { position: absolute; z-index: 6; right: 344px; bottom: 28px; display: flex; flex-direction: column; gap: 6px; }
.map-tools a, .map-tools button { width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 800; cursor: pointer; }
.map-tools .to-list { width: auto; padding: 0 10px; font-size: 0.75rem; }

body.event .app { height: auto; min-height: 100vh; grid-template: "top" 70px "main" 1fr / 1fr; }
body.event .filters, body.event .feed, body.event .map-stage { display: none; }
.event-main { width: 100%; max-width: 920px; margin: 0 auto; padding: 12px 8px 48px; }
.back { font-weight: 800; color: var(--accent); }
.event-hero h1 { font-family: var(--font-display); font-size: 2rem; margin: 8px 0; }
.kicker { color: var(--accent); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.72rem; }
.event-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 12px; }
.panel { background: #fff; padding: 16px; border-radius: 18px; }
.panel h2 { font-family: var(--font-display); margin: 0 0 10px; }
.fact { display: flex; gap: 8px; margin: 8px 0; }
.fact svg { width: 18px; color: var(--accent); flex-shrink: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: var(--paper); padding: 4px 10px; border-radius: 99px; font-size: 0.75rem; font-weight: 700; }
.tag.is-on { background: var(--lime); }
.mini-map { height: 130px; margin-top: 12px; border-radius: 16px; background: url("../assets/map-spb.jpg") 48% 42% / 180% no-repeat; position: relative; box-shadow: inset 0 0 0 6px #c5d0c8; }
.mini-map::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--lime); border: 3px solid var(--accent); transform: translate(-50%,-50%); }
.org { display: flex; gap: 10px; align-items: center; }
.avatar { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--lime); font-weight: 800; }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.slot { background: var(--paper); padding: 10px; border-radius: 12px; }
.slot strong { display: block; font-family: var(--font-display); font-size: 1.3rem; }
.btn-main { height: 48px; display: grid; place-items: center; background: var(--lime); color: var(--ink); font-weight: 800; border-radius: 14px; }
.btn-ghost { display: grid; place-items: center; height: 36px; font-weight: 700; }
.note { font-size: 0.78rem; opacity: 0.7; }
.people { list-style: none; padding: 0; margin: 0; }
.people li { display: flex; gap: 8px; padding: 8px 0; border-top: 1px solid #e6eee8; align-items: center; }
.badge { margin-left: auto; background: var(--lime); padding: 2px 8px; border-radius: 99px; font-size: 0.68rem; font-weight: 800; }
.wait { display: flex; justify-content: space-between; background: var(--accent); color: #fff; padding: 12px; border-radius: 14px; margin-top: 8px; }
.wait strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--lime); }

@media (max-width: 900px) {
  .filters, .feed { display: none; }
  .map-tools { right: 28px; }
  .event-grid { grid-template-columns: 1fr; }
}
