[hidden] { display: none !important; }
:root {
  --bg: #05070d;
  --glass: rgba(10, 16, 28, 0.72);
  --glass-strong: rgba(10, 16, 28, 0.9);
  --line: rgba(255, 255, 255, 0.12);
  --text: #eef2f8;
  --muted: #9aa7bb;
  --accent: #4FC3F7;
  --radius: 14px;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Unbounded", "Manrope", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; color: var(--text); font-family: var(--font); }
body { background: radial-gradient(ellipse at 65% 45%, #0e1d3a 0%, #070b16 45%, #03040a 100%); }
button { font: inherit; color: inherit; cursor: pointer; }

#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
#map { position: fixed; inset: 0; z-index: 1; background: transparent; }
.maplibregl-ctrl-attrib { background: rgba(0,0,0,.45) !important; color: #aaa; font-size: 10px; }
.maplibregl-ctrl-attrib a { color: #ccc; }

/* ---------- intro ---------- */
#intro {
  position: fixed; inset: 0; z-index: 30; display: flex; align-items: center;
  padding: 0 0 0 7vw;
  background: linear-gradient(90deg, rgba(3,4,10,.88) 0%, rgba(3,4,10,.55) 38%, rgba(3,4,10,0) 62%);
  transition: opacity 1.2s ease;
}
#intro.gone { opacity: 0; pointer-events: none; }
#intro-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: 0; transition: opacity 1.5s; }
#intro-video.ready { opacity: .8; }
.intro-inner { max-width: 600px; }
.intro-inner > * { opacity: 0; transform: translateY(14px); animation: rise .9s cubic-bezier(.2,.8,.2,1) forwards; }
.intro-inner > :nth-child(2) { animation-delay: .15s; }
.intro-inner > :nth-child(3) { animation-delay: .3s; }
.intro-inner > :nth-child(4) { animation-delay: .45s; }
.intro-inner > :nth-child(5) { animation-delay: .6s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.eyebrow { display: flex; align-items: center; gap: 10px; letter-spacing: .22em; text-transform: uppercase; font-size: 12px; color: var(--accent); margin: 0 0 18px; font-weight: 600; }
#intro h1 {
  font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.2vw, 48px); line-height: 1.1;
  margin: 0 0 18px; letter-spacing: -.01em;
  background: linear-gradient(180deg, #fff 30%, #a9c9ef); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.intro-sub { color: #c8d2e0; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.5; margin: 0 0 28px; }
.intro-stats { display: flex; gap: 28px; margin: 0 0 34px; }
.intro-stats b { display: block; font-family: var(--display); font-size: 30px; font-weight: 600; }
.intro-stats span { font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.btn-primary {
  background: var(--text); color: #05070d; border: 0; border-radius: 999px;
  padding: 15px 28px; font-weight: 700; font-size: 16px;
  box-shadow: 0 0 40px rgba(79,195,247,.35); transition: transform .2s, box-shadow .2s;
}
.btn-primary span { display: inline-block; transition: transform .2s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 60px rgba(79,195,247,.6); }
.btn-primary:hover span { transform: translateX(4px); }
.btn-primary.small { padding: 10px 18px; font-size: 14px; }

img.logo { height: 28px; width: 28px; object-fit: contain; background: #fff; border-radius: 50%; padding: 3px; flex: none; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img.logo { height: 30px; width: 30px; }

/* ---------- top bar ---------- */
#topbar {
  position: fixed; top: 16px; left: 16px; right: 16px; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; pointer-events: none;
}
.brand { font-family: var(--display); font-weight: 600; font-size: 17px; text-shadow: 0 2px 12px rgba(0,0,0,.8); }
.stats { font-size: 13px; color: var(--muted); background: var(--glass); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(10px); }

/* ---------- sidebar ---------- */
#sidebar {
  position: fixed; top: 60px; left: 16px; bottom: 16px; width: 320px; z-index: 10;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(14px); padding: 14px;
}
.filters { display: flex; flex-direction: column; gap: 10px; }
.seg { display: flex; background: rgba(255,255,255,.06); border-radius: 10px; padding: 3px; }
.seg button { flex: 1; background: none; border: 0; padding: 7px 0; border-radius: 8px; font-size: 13px; color: var(--muted); }
.seg button.on { background: rgba(255,255,255,.14); color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px;
  border: 1px solid var(--line); background: none; border-radius: 999px; padding: 5px 10px; color: var(--text);
}
.chip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.chip.off { opacity: .35; }
.list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.list li { display: flex; gap: 12px; align-items: center; padding: 9px 8px; border-radius: 10px; cursor: pointer; }
.list li:hover, .list li.active { background: rgba(255,255,255,.08); }
.list .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--c); margin: 0 7px; }
.list .dot.planned { background: none; border: 2px solid var(--c); }
.list .dot.photo { width: 34px; height: 34px; margin: 0; background-size: cover; background-position: center; border: 2px solid var(--c); }
.list .dot.photo.planned { border-style: dashed; }
.list .t { font-size: 14px; font-weight: 700; }
.list .s { font-size: 12px; color: var(--muted); }
.side-actions { display: flex; gap: 8px; }
.btn-ghost { flex: 1; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 10px; padding: 9px 0; font-size: 13px; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-ghost.on { background: var(--text); color: #05070d; }

/* ---------- markers ---------- */
.pin { position: absolute; width: 18px; height: 18px; cursor: pointer; }
.pin .core { position: absolute; inset: 3px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c), 0 0 0 2px rgba(0,0,0,.4); transition: transform .25s; }
.pin.planned .core { background: rgba(5,7,13,.6); border: 2px solid var(--c); }
.pin::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--c); animation: pulse 2.4s ease-out infinite; }
.pin.planned::after { border-style: dashed; }
/* фото-пин: круглая миниатюра с цветным кольцом */
.pin.photo { width: 46px; height: 46px; }
.pin.photo .core { inset: 0; background-size: cover; background-position: center; border: 3px solid var(--c); box-shadow: 0 0 18px var(--c), 0 4px 14px rgba(0,0,0,.6); }
.pin.photo.planned .core { border-style: dashed; }
.pin.photo .lbl { left: 54px; }
.pin .lbl {
  position: absolute; left: 24px; top: 50%; transform: translateY(-50%); white-space: nowrap;
  font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px;
  background: var(--glass-strong); border: 1px solid var(--line); opacity: 0; transition: opacity .2s; pointer-events: none;
}
.pin:hover .lbl, .pin.active .lbl { opacity: 1; }
.pin:hover .core, .pin.active .core { transform: scale(1.3); }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
.pin-home { position: absolute; width: 28px; height: 28px; pointer-events: none; }
.pin-home .star img { width: 80%; height: 80%; object-fit: contain; }
.pin-home .star { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: #05070d; background: #fff; box-shadow: 0 0 18px rgba(255,255,255,.8); }
.pin-home .lbl { position: absolute; left: 50%; top: 32px; transform: translateX(-50%); white-space: nowrap; font-size: 11px; font-weight: 700; text-shadow: 0 1px 6px #000; }

/* ---------- detail panel ---------- */
#panel {
  position: fixed; top: 16px; right: 16px; bottom: 16px; width: 400px; z-index: 12;
  background: var(--glass-strong); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(16px); overflow-y: auto;
  transform: translateX(calc(100% + 32px)); transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
#panel.open { transform: none; }
.close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0,0,0,.5); font-size: 22px; line-height: 1; }
.hero { height: 200px; background-size: cover; background-position: center; background-color: #0d1a33; position: relative; border-radius: var(--radius) var(--radius) 0 0; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(10,16,28,.97)); border-radius: inherit; }
.pbody { padding: 0 20px 24px; margin-top: -44px; position: relative; }
.pbody h2 { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.15; margin: 0 0 6px; }
.region { color: var(--muted); margin: 0 0 14px; font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tag { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); }
.tag.example { border-color: #FFD54F; color: #FFD54F; }
.summary { font-size: 16px; font-weight: 700; margin: 0 0 10px; }
.desc { color: #c8d2e0; line-height: 1.6; margin: 0 0 18px; }
.pbody h3 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
.facts { margin: 0; padding: 0; list-style: none; }
.facts li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.pbody video { width: 100%; border-radius: 10px; display: block; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; cursor: zoom-in; }
.empty { color: var(--muted); font-size: 13px; border: 1px dashed var(--line); border-radius: 10px; padding: 16px; text-align: center; }

/* ---------- editor ---------- */
#editor-bar { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 20; }
#toast {
  position: fixed; top: 64px; left: 50%; transform: translateX(-50%); z-index: 25; max-width: min(640px, calc(100vw - 32px));
  background: var(--glass-strong); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: 13px; line-height: 1.5;
}
#toast code { display: block; margin-top: 6px; color: var(--accent); word-break: break-all; }

#lightbox { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.92); display: grid; place-items: center; }
#lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
#lightbox img { max-width: 94vw; max-height: 84vh; border-radius: 8px; }
#lightbox figcaption { color: #c8d2e0; font-size: 13px; max-width: 94vw; text-align: center; padding: 0 12px; }
#lightbox figcaption:empty { display: none; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  #intro { align-items: flex-end; padding: 0 16px calc(40px + env(safe-area-inset-bottom));
    background: linear-gradient(0deg, rgba(3,4,10,.92) 0%, rgba(3,4,10,.6) 45%, rgba(3,4,10,0) 70%); }
  .intro-stats { gap: 20px; margin-bottom: 26px; }
  .intro-stats b { font-size: 24px; }
  #topbar { top: 12px; }
  .stats { display: none; }
  .brand { font-size: 13px; max-width: calc(100vw - 32px); }
  .hero { height: 150px; }
}

/* ---------- sidebar views ---------- */
.view { display: flex; flex-direction: column; gap: 12px; flex: 1; min-height: 0; }
.view[hidden] { display: none !important; }
.tabs button { font-weight: 700; }
.list li.none { color: var(--muted); font-size: 13px; cursor: default; }
.list li.none:hover { background: none; }
.list .body { flex: 1; cursor: pointer; }
.list .cmp input { width: 16px; height: 16px; accent-color: var(--accent); }
.chip.on { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); }
.badge { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); vertical-align: 1px; }
.badge.warn { color: #FFD54F; border-color: #FFD54F; }
.badge.ok { color: #81C784; border-color: #81C784; }
.side-foot { display: flex; gap: 8px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; }
.linkish { background: none; border: 0; color: var(--muted); font-size: 12px; text-decoration: underline; padding: 4px 0; margin-left: auto; }
.edit-only { display: none !important; }
body.editor .edit-only { display: flex !important; }
body.editor button.edit-only { display: inline-block !important; }

/* ---------- forms ---------- */
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); margin-bottom: 10px; flex: 1; }
.form input, .form select, .form textarea, #idea-q {
  font: inherit; font-size: 14px; color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; width: 100%;
}
.form select option { background: #0d1626; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus, #idea-q:focus { outline: none; border-color: var(--accent); }
.form .row { display: flex; gap: 8px; }
.form .row[hidden], .form label[hidden] { display: none; }
.form label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); font-size: 13px; }
.form label.check input { width: auto; }
.form fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; }
.form fieldset legend { font-size: 12px; color: var(--muted); padding: 0 4px; }
.form fieldset:not(.private) { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.form fieldset.private { border-color: rgba(255,213,79,.4); }
.form.compact label { margin-bottom: 0; }
.form.compact { display: flex; flex-direction: column; gap: 8px; }
.form .day { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
.form .day b { font-size: 12px; color: var(--muted); }
.pbody.form { margin-top: 0; padding-top: 56px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.actions .btn-ghost { flex: 0 1 auto; padding: 9px 14px; }
.btn-ghost.danger { color: #ff8a80; border-color: rgba(255,138,128,.4); }
.btn-ghost:disabled { opacity: .4; cursor: default; }
.muted { color: var(--muted); font-size: 12px; }

/* ---------- panel content ---------- */
.back { background: none; border: 0; color: var(--accent); font-size: 13px; padding: 0; margin: 0 0 10px; }
.drive { font-size: 14px; margin: 0 0 12px; color: #c8d2e0; }
.trip-cards { display: flex; flex-direction: column; gap: 8px; }
.trip-card { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.trip-card:hover { background: rgba(255,255,255,.1); }
.trip-card b { font-size: 14px; }
.kind { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: #4FC3F7; }
.kind.class_trip { color: #FFB74D; }
.tag.kind { font-size: 11px; letter-spacing: 0; text-transform: none; border-color: currentColor; }
.stars { color: #FFD54F; font-size: 18px; margin: 0 0 10px; letter-spacing: 2px; }
.stars span { color: rgba(255,255,255,.2); }
.program { margin: 0; padding-left: 0; list-style: none; }
.program li { border-left: 2px solid var(--accent); padding: 2px 0 10px 12px; }
.program p { margin: 4px 0 0; color: #c8d2e0; font-size: 14px; line-height: 1.5; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; white-space: pre-line; }
.gallery img.private { outline: 2px dashed rgba(255,213,79,.6); outline-offset: -2px; }
.gallery.edit { grid-template-columns: repeat(2, 1fr); margin-bottom: 10px; }
.gallery.edit .ph { position: relative; }
.gallery.edit .ph label { margin: 4px 0 0; }
.gallery.edit .x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); }

/* что взять с собой / отзывы */
.packing { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 16px; }
.pack-group b { display: block; font-size: 12px; color: var(--accent); margin-bottom: 4px; }
.packing label { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.35; padding: 3px 0; cursor: pointer; }
.packing input { margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.packing label.done span { color: var(--muted); text-decoration: line-through; }
.reviews { display: flex; flex-direction: column; gap: 10px; }
.review { margin: 0; padding: 10px 14px; background: rgba(255,255,255,.05); border-left: 3px solid #FFD54F; border-radius: 0 10px 10px 0; }
.review p { margin: 0 0 6px; color: #dde5f0; line-height: 1.5; font-size: 14px; }
.review footer { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.review footer b { color: var(--text); }
.review .tag { font-size: 10px; padding: 1px 7px; }
.stars-sm { color: #FFD54F; letter-spacing: 1px; }
.review-edit { position: relative; font-size: 13px; padding: 8px 34px 8px 10px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
.review-edit p { margin: 4px 0 0; color: #c8d2e0; }
.review-edit .x { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); }
.demo-login { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); max-width: 360px; }
.demo-login .muted { margin: 0; line-height: 1.5; }
.demo-login .or { margin-top: 6px; }

/* ---------- modal ---------- */
#modal { position: fixed; inset: 0; z-index: 35; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 16px; }
.modal-card { position: relative; background: var(--glass-strong); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; max-width: min(900px, 100%); max-height: 90vh; overflow: auto; backdrop-filter: blur(16px); min-width: min(360px, 100%); }
.modal-card h2 { font-family: var(--display); margin: 0 0 16px; font-size: 22px; }
.cmp-table { overflow-x: auto; }
.cmp-table table { border-collapse: collapse; width: 100%; font-size: 14px; }
.cmp-table th { text-align: left; vertical-align: bottom; padding: 0 12px 10px; min-width: 180px; font-size: 15px; }
.cmp-table td { padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.cmp-table td:first-child { color: var(--muted); white-space: nowrap; padding-left: 0; }
.cmp-hero { height: 90px; border-radius: 8px; background-size: cover; background-position: center; margin-bottom: 8px; }

#idea-filters { display: flex; flex-direction: column; gap: 8px; }
/* ---------- mobile-only / desktop-only helpers ---------- */
.m-only { display: none !important; }
.fab { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass-strong); backdrop-filter: blur(10px); font-size: 17px; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.fab.on { background: var(--text); color: #05070d; }

/* ---------- mobile: bottom sheets ---------- */
@media (max-width: 760px) {
  .m-only { display: flex !important; }
  .d-only { display: none !important; }
  #map-actions { position: fixed; right: 12px; top: 56px; z-index: 9; flex-direction: column; gap: 10px; }
  #map-actions[hidden] { display: none !important; }
  #topbar { left: 12px; right: 12px; }
  .brand { font-size: 12px; gap: 8px; }
  .brand img.logo { width: 26px; height: 26px; }

  /* список — шторка: peek / half / full */
  #sidebar {
    top: auto; left: 0; right: 0; bottom: 0; width: auto; gap: 10px;
    height: clamp(360px, 55dvh, 520px); max-height: calc(100dvh - 56px);
    padding: 0 12px calc(10px + env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0; border-bottom: 0;
    transition: height .35s cubic-bezier(.2,.8,.2,1);
  }
  body[data-sheet=peek] #sidebar { height: calc(96px + env(safe-area-inset-bottom)); }
  body[data-sheet=half] #sidebar { height: clamp(360px, 55dvh, 520px); }
  body:not([data-sheet=full]) #sidebar .side-foot { display: none !important; }
  body[data-sheet=full] #sidebar { height: calc(100dvh - 56px); }
  body[data-sheet=peek] #sidebar .view, body[data-sheet=peek] #sidebar .side-foot { display: none !important; }

  .sheet-handle { justify-content: center; align-items: center; height: 22px; flex: none; cursor: grab; touch-action: none; margin: 0 -12px; }
  .sheet-handle span { width: 40px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.3); }
  .tabs button { padding: 10px 0; font-size: 14px; }

  .view { gap: 8px; }
  .view-head { justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
  .filter-toggle { background: rgba(255,255,255,.08); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 12px; }
  .collapsible { display: none !important; }
  .collapsible.open { display: flex !important; flex-direction: column; gap: 8px; }
  #idea-filters.open { display: flex !important; }
  #idea-q { font-size: 16px; }             /* ≥16px — iOS не зумит поле при фокусе */
  .form input, .form select, .form textarea { font-size: 16px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 12px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .list { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .list li { padding: 11px 6px; }
  .side-foot { padding-top: 8px; }

  /* подбор: поля компактно */
  #planner-view .form.compact { gap: 6px; }
  #planner-view .form label { font-size: 11px; }
  #planner-view .form input, #planner-view .form select { padding: 7px 9px; }
  #planner-view .side-actions { display: flex !important; }

  /* карточка места — своя шторка поверх списка */
  #panel {
    top: auto; left: 0; right: 0; bottom: 0; width: auto;
    height: 62dvh; border-radius: 18px 18px 0 0; border-bottom: 0;
    transform: translateY(105%); transition: transform .45s cubic-bezier(.2,.8,.2,1), height .35s cubic-bezier(.2,.8,.2,1);
    z-index: 14; padding-bottom: env(safe-area-inset-bottom);
  }
  #panel.open { transform: none; }
  #panel.full { height: calc(100dvh - 56px); }
  #panel .sheet-handle { position: sticky; top: 0; z-index: 3; margin: 0; background: linear-gradient(rgba(10,16,28,.95), rgba(10,16,28,0)); }
  #panel .sheet-handle .close { position: absolute; top: 6px; right: 10px; width: 32px; height: 32px; }
  #panel .hero { margin-top: -22px; height: 140px; border-radius: 18px 18px 0 0; }
  .pbody h2 { font-size: 22px; }
  .pbody.form { padding-top: 8px; }
  .form .row { flex-wrap: wrap; }
  .form .row > label { min-width: 130px; }
  #editor-bar { bottom: calc(62dvh + 12px); }
  #toast { top: 56px; }
  .modal-card { padding: 16px; }
  .cmp-table th { min-width: 150px; }
}

/* ссылка на инструкцию */
.guide-link { text-decoration: underline; margin-left: 0; }
.side-foot .guide-link + .linkish { margin-left: auto; }
.intro-guide { margin: 18px 0 0; font-size: 14px; }
.intro-guide a { color: var(--muted); }
.intro-guide a:hover { color: var(--text); }
.side-foot { flex-wrap: wrap; row-gap: 4px; }

/* примеры: приглушённые пины с ярлыком «пример» */
.pin.example .core { filter: grayscale(.9) brightness(.75); }
.pin.example::after { display: none; }
.pin .ex-tag { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 3px); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 1px 5px; border-radius: 5px; background: rgba(255,213,79,.92); color: #1a1400; pointer-events: none; white-space: nowrap; }
.badge.ex { color: #FFD54F; border-color: rgba(255,213,79,.6); font-weight: 600; }
.side-foot #new-place { flex: 1 0 100%; }
