/* Well — двор-колодец: штукатурка и глубокая врезка карты */

:root {
  --font-display: "Oranienbaum", serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --ink: #2a2420;
  --paper: #e4e0d8;
  --accent: #8b3a32;
  --accent-2: #d9cfc3;
  --ivy: #3f5344;
  --map-filter: saturate(0.8);
}

body { background: #cfc8bc; }

.app {
  height: 100vh;
  display: grid;
  grid-template:
    "top top top" 72px
    "filters map feed" 1fr
    / 250px 1fr 300px;
  gap: 0;
  background: radial-gradient(ellipse at 50% 0%, #eeeae2, var(--paper) 55%);
}

.top {
  grid-area: top;
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px;
  background: #efece6;
  border-bottom: 1px solid #c9c2b6;
}
.logo { font-family: var(--font-display); font-size: 1.85rem; }
.logo span { color: var(--accent); }
.search { flex: 1; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; background: #fff; border-radius: 99px; border: 1px solid #c9c2b6; }
.search input { border: 0; outline: 0; width: 100%; background: transparent; }
.search svg { width: 16px; height: 16px; }
.create { height: 38px; padding: 0 16px; background: var(--accent); color: #fff; border-radius: 99px; font-weight: 600; }
.city, .me { height: 38px; border: 0; background: transparent; display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.me i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-2); color: var(--accent); font-style: normal; font-weight: 700; }

.filters {
  grid-area: filters;
  overflow: auto;
  padding: 14px;
  background: #efece6;
  border-right: 1px solid #c9c2b6;
  border-left: 6px solid var(--accent);
}
.filters h2 { font-family: var(--font-display); font-size: 1.35rem; margin: 0 0 8px; }
.block { margin-bottom: 14px; }
.block h3 { margin: 0 0 6px; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ivy); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip, .cat { border: 0; background: #fff; padding: 5px 10px; border-radius: 99px; cursor: pointer; font-size: 0.8rem; }
.chip.is-on, .cat.is-on { background: var(--accent); color: #fff; }
.subcats { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.radio-row, .check-row { display: flex; gap: 8px; font-size: 0.8rem; margin: 3px 0; cursor: pointer; }
.link-more { color: var(--accent); font-weight: 650; font-size: 0.8rem; }

.map-stage {
  grid-area: map;
  min-height: 0;
  box-shadow: inset 0 12px 32px rgba(42, 36, 32, 0.12);
}
.map-caption { display: none; }
.map-tools { position: absolute; right: 10px; bottom: 10px; z-index: 4; display: flex; flex-direction: column; gap: 6px; }
.map-tools a, .map-tools button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #efece6; cursor: pointer; font-weight: 700; }
.map-tools .to-list { width: auto; padding: 0 10px; border-radius: 99px; font-size: 0.75rem; }

.feed {
  grid-area: feed;
  overflow: auto;
  padding: 12px;
  background: #efece6;
  border-left: 1px solid #c9c2b6;
}
.feed header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.feed h2 { margin: 0; font-family: var(--font-display); font-size: 1.1rem; }
.feed header span { font-size: 0.75rem; opacity: 0.6; }
.card { display: grid; grid-template-columns: 44px 1fr; gap: 8px; width: 100%; background: #fff; border: 0; text-align: left; padding: 8px; cursor: pointer; border-radius: 4px 16px 4px 4px; margin-bottom: 8px; }
.card.is-on { outline: 2px solid var(--accent); }
.thumb { background: var(--accent-2); color: var(--accent); display: grid; place-items: center; border-radius: 4px; }
.thumb svg { width: 18px; height: 18px; }
.card h3 { margin: 0; font-family: var(--font-display); font-size: 1rem; }
.meta, .row { font-size: 0.72rem; }

.pin { background: #efece6; border-radius: 50% 50% 50% 0; box-shadow: 0 6px 12px rgba(42,36,32,.2); }
.pin-ico { border-radius: 50%; background: var(--accent); color: #fff; }
.pin.is-on { background: var(--accent); color: #fff; }
.cluster { border-radius: 50%; background: var(--ivy); color: #fff; }

@media (max-width: 900px) {
  .app { grid-template: "top" 72px "map" 1fr / 1fr; }
  .filters, .feed { display: none; }
}
body.event .app {
  height: auto; min-height: 100vh;
  grid-template: "top" 72px "main" 1fr / 1fr;
}
body.event .filters, body.event .feed, body.event .map-stage { display: none; }
.event-main { grid-area: main; max-width: 920px; margin: 0 auto; padding: 8px 8px 48px; width: 100%; }
.back { color: var(--accent); font-weight: 650; }
.event-hero h1 { font-family: var(--font-display); font-size: 2.6rem; font-weight: 400; margin: 6px 0 10px; }
.kicker { color: var(--ivy); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.72rem; }
.event-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 14px; }
.panel { background: #efece6; padding: 18px; border-radius: 4px 28px 4px 4px; }
.panel h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; 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: #fff; border-radius: 99px; padding: 4px 10px; font-size: 0.75rem; }
.tag.is-on { background: var(--accent); color: #fff; }
.mini-map { height: 140px; margin-top: 12px; border-radius: 50% / 12%; box-shadow: inset 0 10px 24px rgba(0,0,0,.2); background: url("../assets/map-spb.jpg") 48% 42% / 180% no-repeat; position: relative; }
.mini-map::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); transform: translate(-50%,-50%); }
.org { display: flex; gap: 10px; align-items: center; }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.slot { background: #fff; padding: 10px; border-radius: 4px 16px 4px 4px; }
.slot strong { display: block; font-family: var(--font-display); font-size: 1.5rem; }
.btn-main { height: 46px; display: grid; place-items: center; background: var(--accent); color: #fff; border-radius: 99px; font-weight: 650; }
.btn-ghost { display: grid; place-items: center; height: 36px; }
.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 #d9cfc3; align-items: center; }
.badge { margin-left: auto; color: var(--ivy); font-size: 0.72rem; font-weight: 700; }
.wait { display: flex; justify-content: space-between; background: #fff; padding: 10px 14px; border-radius: 4px 20px 4px 4px; margin-top: 8px; }
.wait strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--accent); }

@media (max-width: 900px) {
  .app { grid-template: "top" 72px "map" 1fr / 1fr; }
  .filters, .feed { display: none; }
  .event-grid { grid-template-columns: 1fr; }
}
