/* Lamp — фонарь: спокойный жёлтый свет, панели как у Quay */

:root {
  --font-display: "Montserrat Alternates", sans-serif;
  --font-body: "Montserrat", sans-serif;
  --ink: #2a2c2e;
  --paper: #f4f2ea;
  --accent: #e8c12a;
  --accent-ink: #2a2c2e;
  --accent-2: #f6ebc4;
  --mist: #fffdf6;
  --map-filter: saturate(0.96) contrast(1.02) hue-rotate(6deg);
}

body { background: #e8e4d6; }

.app {
  height: 100vh;
  display: grid;
  grid-template:
    "map" 1fr
    / 1fr;
}

.top, .filters, .feed, .map-tools { position: absolute; z-index: 6; }

.map-stage { grid-area: map; height: 100vh; }

.top {
  top: 16px; left: 16px; right: 16px;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 16px;
  background: color-mix(in srgb, var(--mist) 88%, transparent);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(42, 44, 46, 0.1);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.04em;
}
.logo span { color: var(--accent); }

.search {
  flex: 1;
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px;
  height: 40px;
  background: #fff;
  border-radius: 999px;
}
.search input { border: 0; outline: 0; width: 100%; background: transparent; }
.search svg { width: 16px; height: 16px; opacity: 0.45; flex-shrink: 0; }

.create, .city, .me {
  height: 40px; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 14px; border-radius: 999px; font-weight: 650;
}
.create { background: var(--accent); color: var(--accent-ink); }
.city, .me { background: transparent; }
.me i {
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-2); color: var(--ink);
  font-style: normal; font-weight: 700; font-size: 0.8rem;
}

.filters {
  top: 80px; left: 16px; bottom: 24px;
  width: 268px;
  overflow: auto;
  padding: 16px;
  background: color-mix(in srgb, var(--mist) 92%, transparent);
  backdrop-filter: blur(12px);
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(42, 44, 46, 0.08);
}

.filters h2 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; margin: 0 0 12px; }
.block { margin-bottom: 16px; }
.block h3 { margin: 0 0 8px; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.55; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip, .cat {
  border: 0; background: #fff; border-radius: 999px;
  padding: 6px 10px; cursor: pointer; font-size: 0.8rem; font-weight: 600;
}
.chip.is-on, .cat.is-on { background: var(--accent); color: var(--accent-ink); }
.subcats { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px 8px; }
.radio-row, .check-row { display: flex; gap: 8px; align-items: center; font-size: 0.82rem; margin: 4px 0; cursor: pointer; }
.link-more { font-size: 0.8rem; font-weight: 700; color: var(--ink); }

.feed {
  top: 80px; right: 16px; bottom: 24px;
  width: 320px;
  overflow: auto;
  padding: 14px;
  background: color-mix(in srgb, var(--mist) 92%, transparent);
  backdrop-filter: blur(12px);
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(42, 44, 46, 0.08);
}
.feed header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.feed h2 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; margin: 0; }
.feed header span { font-size: 0.78rem; opacity: 0.6; }

.card {
  display: grid; grid-template-columns: 56px 1fr; gap: 10px;
  width: 100%; text-align: left; border: 0; background: #fff;
  border-radius: 16px; padding: 10px; margin-bottom: 8px; cursor: pointer;
}
.card.is-on { box-shadow: 0 0 0 2px var(--accent); }
.thumb {
  border-radius: 12px; background: var(--accent-2); color: var(--ink);
  display: grid; place-items: center;
}
.thumb svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: 0.88rem; font-weight: 650; }
.meta, .row { font-size: 0.75rem; opacity: 0.7; }

.pin {
  background: #fff; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(42, 44, 46, 0.16);
}
.pin-ico { border-radius: 50%; background: var(--accent-2); color: var(--ink); }
.pin.is-on { background: var(--accent); color: var(--accent-ink); }
.pin.is-on .pin-ico { background: #fff; color: var(--ink); }
.cluster { border-radius: 50%; background: var(--accent); color: var(--accent-ink); }

.map-caption { display: none; }
.map-tools {
  right: 352px; bottom: 24px;
  display: flex; flex-direction: column; gap: 6px;
}
.map-tools a, .map-tools button {
  width: 40px; height: 40px; border: 0; border-radius: 12px;
  background: #fff; cursor: pointer; display: grid; place-items: center; font-weight: 700;
}
.map-tools .to-list { width: auto; padding: 0 12px; font-size: 0.78rem; }

/* C2 */
.event .app, body.event .app {
  height: auto; min-height: 100vh;
  display: block;
  background: linear-gradient(180deg, #efe9d4, var(--paper));
}
body.event .map-stage, body.event .filters, body.event .feed, body.event .map-tools { display: none; }
body.event .top { position: sticky; top: 12px; margin: 12px 16px 0; }

.event-main { max-width: 960px; margin: 0 auto; padding: 88px 20px 64px; }
.back { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; color: var(--ink); margin-bottom: 18px; }
.event-hero h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 6px 0 8px;
}
.kicker { font-size: 0.8rem; font-weight: 700; color: #b89614; letter-spacing: 0.04em; text-transform: uppercase; }
.event-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; }
.panel {
  background: #fff; border-radius: 22px; padding: 20px;
  box-shadow: 0 10px 30px rgba(42, 44, 46, 0.06);
}
.panel h2 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; margin: 0 0 12px; }
.fact { display: flex; gap: 10px; margin: 8px 0; font-size: 0.92rem; }
.fact svg { width: 18px; height: 18px; flex-shrink: 0; color: #c9a31d; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.tag { background: var(--accent-2); border-radius: 999px; padding: 4px 10px; font-size: 0.75rem; font-weight: 650; }
.tag.is-on { background: var(--accent); color: var(--accent-ink); }
.desc { line-height: 1.5; margin: 0; }
.mini-map {
  margin-top: 14px; height: 140px; border-radius: 16px;
  background: url("../assets/map-spb.jpg") 48% 42% / 180% no-repeat;
  position: relative;
}
.mini-map::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); transform: translate(-50%, -50%);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 30%, transparent);
}
.org { display: flex; gap: 12px; align-items: center; }
.avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent-2); font-weight: 700;
}
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.slot { background: var(--mist); border-radius: 14px; padding: 10px; }
.slot strong { display: block; font-size: 1.2rem; font-family: var(--font-display); }
.slot span { font-size: 0.75rem; opacity: 0.65; }
.actions { display: flex; flex-direction: column; gap: 8px; }
.btn-main {
  height: 48px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 700;
}
.btn-ghost { height: 40px; display: grid; place-items: center; font-weight: 650; }
.note { font-size: 0.78rem; opacity: 0.65; }
.people { list-style: none; padding: 0; margin: 0; }
.people li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid #eee8d6; }
.badge { margin-left: auto; font-size: 0.68rem; font-weight: 700; background: var(--accent-2); padding: 2px 8px; border-radius: 999px; }
.wait { display: flex; justify-content: space-between; align-items: center; background: var(--mist); border-radius: 14px; padding: 12px; }
.wait strong { font-family: var(--font-display); font-size: 1.4rem; }

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