.story-map-demo{--ui-font:"Unbounded","Noto Sans Georgian",-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Helvetica,Arial,sans-serif;--glass:rgba(251,252,255,.70);--ink:#202329;--edge:rgba(255,255,255,.74);--panel:#f8f9fb;--muted:#787d86;--selected:rgba(37,41,48,.94);--selected-ink:#fff;--glass-shadow:0 3px 14px #18202d0b,inset 0 1px 0 #ffffff80;--group:rgba(255,255,255,.40);--line:rgba(37,41,48,.08)}
.reference-screen .single-date small,.reference-screen .date-ribbon small{font:500 12px/14px var(--ui-font)!important;color:var(--muted)}
.reference-screen .single-date b,.reference-screen .date-ribbon b{font:600 24px/26px var(--ui-font)!important;letter-spacing:-1px}
.reference-screen .date-mask{position:relative;top:auto;right:auto;margin:0;width:46px;height:260px;max-height:calc(100dvh - 290px);padding:0;border:0;border-radius:0;background:transparent;backdrop-filter:none;overflow:hidden;mask-image:linear-gradient(to bottom,transparent,#000 4%,#000 92%,transparent);-webkit-mask-image:linear-gradient(to bottom,transparent,#000 4%,#000 92%,transparent)}
.reference-screen .date-ribbon{display:flex;flex-direction:column;gap:5px;height:100%;width:46px;padding:2.5px 0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scroll-snap-type:y proximity;scroll-padding-top:2.5px;scrollbar-width:none;touch-action:pan-y}
.reference-screen .date-ribbon button{width:46px;height:47px;min-height:47px;flex:0 0 47px;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;scroll-snap-align:start;color:var(--ink)!important;background:var(--glass)!important;border:1px solid var(--edge)!important;box-shadow:var(--glass-shadow);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.reference-screen .date-ribbon button.selected{background:var(--selected)!important;color:var(--selected-ink)!important}.reference-screen .date-ribbon button.selected small{color:inherit;opacity:.72}
.reference-screen .map-actions .near{width:220px;height:53px;padding:0;background:none!important;border:0;box-shadow:none;animation:none;border-radius:0;flex:none;font-size:0}
.reference-screen .near:before,.reference-screen .near:after{display:none!important}
.reference-screen .near img{width:100%;height:100%;object-fit:fill;display:block}

.reference-screen .map-actions .near{height:66px;overflow:visible;clip-path:none!important;border-radius:0!important}

.story-map .story-map-demo { grid-column: 1; grid-row: 1; }
.story-map .story-map-copy { grid-column: 2; grid-row: 1; }
.story-map-demo .date-control { position: absolute; top: 12%; right: 10%; z-index: 2; direction: ltr; }
.story-map-demo .date-mask { max-height: none; }
.story-map-demo .single-date {
 width: 46px; height: 47px; display: flex; align-items: center; justify-content: center;
 flex-direction: column; border-radius: 14px; color: var(--ink); background: var(--glass);
 border: 1px solid var(--edge); box-shadow: var(--glass-shadow); backdrop-filter: blur(18px);
}
.story-map-demo .map-actions { margin-block-start: -20px; position: relative; direction: ltr; }
.story-map-demo .map-actions .near { display: block; max-width: 78vw; }
.story-map-demo .near[aria-pressed="true"] img { filter: saturate(1.24); }
.story-map-demo .near:active { transform: scale(.96); }
.story-map-demo .near:focus-visible, .story-map-demo .date-control button:focus-visible { outline-color: #547bb3; }

.story-posters { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: .55rem; padding-block: 1rem; }
.story-poster {
 min-height: 5rem; display: flex; justify-content: space-between; align-items: end; gap: .4rem;
 padding: .65rem .75rem; border-block: 1px solid currentColor;
 font: 500 clamp(.8rem,1.6vw,1.35rem)/1.13 Unbounded,Arial,sans-serif;
}
.story-poster time { font: 500 .72rem/1 ui-monospace,monospace; }
.story-poster:nth-child(1) { grid-column: 1 / 9; color: #963b84; transform: rotate(-6deg); }
.story-poster:nth-child(2) { grid-column: 5 / 13; color: #956019; transform: rotate(5deg); }
.story-poster:nth-child(3) { grid-column: 2 / 10; color: #246998; transform: rotate(-3deg); }
@media (max-width:700px) {
 .story-map .story-map-copy { grid-column: 1; grid-row: 1; }
 .story-map .story-map-demo { grid-column: 1; grid-row: 2; min-height: 19rem; }
 .story-map-demo .date-control { top: 0; }
}
.story-poster {
 min-height: clamp(4.1rem, 7vw, 7rem);
 position: relative;
 overflow: hidden;
 isolation: isolate;
 padding: .8rem 1rem;
 border: 0;
}
.story-poster::after {
 content: "";
 position: absolute;
 z-index: -1;
 inset: 0;
 opacity: .28;
}
.story-poster div { display: grid; gap: .55em; }
.story-poster small { font: 500 .7rem/1 Arial,sans-serif; letter-spacing: .04em; }
.story-poster:nth-child(1) { border-radius: 6px 22px 22px; background: #eee6ef; }
.story-poster:nth-child(1)::after { background: repeating-radial-gradient(circle at 84% 90%,transparent 0 8px,#ae76b2 9px 10px,transparent 11px 16px); }
.story-poster:nth-child(2) { background: #ede5d7; }
.story-poster:nth-child(2)::after { background: repeating-linear-gradient(143deg,transparent 0 14px,#ba985d 15px 16px,transparent 17px 25px); }
.story-poster:nth-child(3) { border: 1px solid #c0d4de; background: #edf2f5; }
.story-poster:nth-child(3)::after { background: repeating-linear-gradient(90deg,#80aec0 0 7px,transparent 7px 14px) left 5% top 6px/90% 3px no-repeat; }
.story-map { direction: ltr; }
.product-story[dir="rtl"] .story-map-copy { direction: rtl; }

.reference-screen .real-event-pin{z-index:5;display:flex;flex-direction:row;align-items:center;gap:8px;max-width:none;padding:4px 10px 4px 4px;min-width:160px;min-height:62px;border-radius:18px;background:var(--glass);color:var(--ink);border:1px solid var(--edge);box-shadow:0 3px 12px #00000010;outline:none!important;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);transform:translate(-50%,-100%)}
.pin-photo{display:block;width:53px;height:53px;flex:none;border-radius:14px;overflow:hidden;border:1.5px solid #ffffffbb}.real-event-pin .pin-photo img{display:block;width:100%;height:100%;object-fit:cover}.pin-copy{display:flex;flex-direction:column;align-items:flex-start;gap:3px}.real-event-pin .pin-copy strong{font-size:13px;font-weight:650}.real-event-pin .pin-copy>span{font-size:12px;color:var(--muted)}.real-event-pin .pin-copy small{font-size:10px;padding:2px 7px;border-radius:8px;background:var(--group);color:var(--ink)}
.reference-screen .real-event-pin.selected{border-color:var(--selected);box-shadow:0 4px 15px #00000015}
.reference-screen .concert-preview{bottom:151px;left:14px;right:14px;min-height:152px;padding:12px;display:grid;grid-template-columns:100px 1fr;gap:12px;background:var(--glass)!important;color:var(--ink)!important;border:1px solid var(--edge);box-shadow:0 8px 30px #00000012;backdrop-filter:blur(26px) saturate(120%);-webkit-backdrop-filter:blur(26px) saturate(120%)}
.concert-preview .preview-art{width:100px;height:128px;border-radius:16px;padding:0;background:transparent;overflow:hidden;grid-row:1/3;box-shadow:none}.preview-art img{width:100%;height:100%;object-fit:cover;display:block}.concert-preview .preview-copy{padding:2px 23px 0 0}.concert-preview .preview-title{background:none;color:var(--ink);font-size:20px;font-weight:650;letter-spacing:-.5px;text-align:left;line-height:1.15}.concert-preview p{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:4px;margin:5px 0}.concert-preview p svg{width:12px;height:12px}.concert-preview .tag-row{gap:5px;margin:7px 0 5px}.concert-preview .tag-row span{background:var(--group);color:var(--ink);border:1px solid var(--edge);padding:4px 8px;border-radius:20px;font-size:11px}.demo-label{display:block;font-size:10px!important;color:var(--muted);letter-spacing:.5px;text-transform:uppercase}.concert-preview .preview-close{position:absolute;right:9px;top:9px;width:26px;height:26px;border-radius:50%;background:var(--group);color:var(--ink);padding:5px}.concert-preview .preview-close svg{width:16px;height:16px}.concert-preview .heart{position:absolute;right:123px;bottom:12px;width:32px;height:32px;background:var(--group);color:var(--ink);border:1px solid var(--edge);border-radius:50%}.concert-preview .heart svg{width:18px;height:18px}.concert-preview .view-event{position:absolute;right:12px;bottom:12px;height:32px;padding:0 12px;border:1px solid var(--edge);border-radius:20px;background:var(--group);color:var(--ink);font-size:11px;text-transform:none;letter-spacing:0;font-weight:500;box-shadow:none;display:flex;gap:4px;align-items:center}.concert-preview .view-event svg{width:13px;height:13px}
.reference-screen .real-event-pin:after{content:"";position:absolute;left:25px;bottom:-13px;width:9px;height:9px;border-radius:50%;background:#9dafc8;border:1.5px solid var(--edge);box-shadow:none}
.reference-screen .pin-copy small{background:#dfeafb!important;color:#31415c!important}
.story-map-demo { min-width: 0; padding-bottom: 0; }
.story-map-demo .story-map-diagram { height: clamp(350px, 43vw, 590px); }
.paris-map { position: relative; width: 100%; height: 100%; background: #ebeff1; }
.story-map-demo .date-control { top: 7%; right: 8%; z-index: 8; }
.story-map-demo .map-actions { z-index: 7; }
.story-map-demo .map-status {
 position: absolute;
 z-index: 6;
 top: 35%;
 inset-inline: 12%;
 margin: 0;
 text-align: center;
 font: 1rem/1.4 Arial, sans-serif;
 pointer-events: none;
}
.story-map-demo .real-event-pin.maplibregl-marker {
 position: absolute;
 z-index: 3;
}
.story-map-demo .real-event-pin:is(:hover,:focus-visible,.selected) { z-index: 6; }
.story-map-demo .real-event-pin:focus-visible { outline: 2px solid #547bb3 !important; }
.story-map-demo .concert-preview {
 position: absolute;
 z-index: 8;
 bottom: 72px;
 left: 5%;
 right: 5%;
 min-height: 114px;
 grid-template-columns: 1fr;
 direction: ltr;
}
.story-map-demo .concert-preview.with-art { grid-template-columns: 82px minmax(0,1fr); }
.story-map-demo .concert-preview .preview-art { width: 82px; height: 100px; grid-row: auto; }
.story-map-demo .concert-preview .preview-title { margin: 0; }
.story-map-demo .maplibregl-ctrl-bottom-right { right: 9%; bottom: 11%; }
.story-map-demo .maplibregl-ctrl-attrib { font: 10px/1.2 Arial,sans-serif; }
.story-map-demo .story-map-diagram { mask-image: none; }
.story-map-demo .maplibregl-canvas {
 mask-image: radial-gradient(ellipse at 50% 48%, #000 43%, #000d 63%, transparent 83%);
}
.paris-map { background: radial-gradient(ellipse at center, #ebeff1, transparent 77%); }
.story-map { grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); gap: clamp(12px,2vw,36px); }
.story-map-demo { margin-left: min(calc(-1 * var(--gutter)), calc((100rem - 100vw) / 2 - var(--gutter))); }
.story-map-demo .story-map-diagram { height: clamp(420px,49vw,690px); }
.story-map-demo .maplibregl-canvas {
 mask-image: linear-gradient(to right,transparent,#000 8%,#000 78%,transparent),
             linear-gradient(to bottom,transparent,#000 12%,#000 85%,transparent);
 mask-composite: intersect;
}
.story-map-demo .maplibregl-ctrl-top-left { top: 9%; left: max(18px,5%); }
.story-map-demo .paris-map { background: transparent; }
.story-map-demo .real-event-pin.selected { border-color: var(--edge); box-shadow: 0 3px 12px #00000010; }
.story-map-demo .concert-preview { border-radius: 24px; max-width: 480px; margin-inline: auto; }
.story-map-demo .concert-preview .tag-row { display: flex; gap: 6px; flex-wrap: wrap; }
.story-map-demo :is(.pin-copy,.tag-row) .map-genre {
 display: inline-flex; font: 600 10px/1.32 var(--ui-font); white-space: pre;
 background: linear-gradient(150deg,#edf6ff2b,#e4f0ff10) !important;
 border: 1px solid #fff9; border-radius: 100px; padding: 3px 6px;
}
.story-map-demo .map-genre > span {
 display: inline; padding: 0; border: 0; border-radius: 0;
 font: inherit; background: var(--genre-gradient); background-clip: text; color: transparent;
}
.story-map-demo .map-price {
 font: 600 10px/1.3 var(--ui-font); white-space: nowrap; padding: 3px 5px;
}
.story-map-demo .map-price.is-free { color: #28734d; border-radius: 100px; background: #d7ebdc; }
.map-demo-note { font: 11px/1.2 Arial,sans-serif; color: #626773; margin-top: .35rem; }
.flow-wire { position: relative; background: none; }
.flow-wire::after { content:""; position:absolute; inset-inline-end:0; bottom:-4px; width:7px; height:7px; border-top:1px solid #8b91a3; border-right:1px solid #8b91a3; transform:rotate(45deg); }
[dir="rtl"] .flow-wire::after { transform:rotate(-135deg); }
.flow-pins {
 border: 1px solid #d7dce5; border-radius: 6px;
 background: linear-gradient(156deg,transparent 43%,#cbdfe9 44% 52%,transparent 53%),
             repeating-linear-gradient(32deg,transparent 0 10px,#d3d8df 10px 11px,transparent 11px 18px),
             repeating-linear-gradient(116deg,#eef1f4 0 12px,#fff 12px 15px,#eef1f4 15px 20px);
}
.flow-pins i { border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.story-business .icon-code { width:auto; height:auto; min-width:3.1em; font:.43em/1.25 ui-monospace,monospace; white-space:nowrap; }
.icon-code b { color:#8e407d; }
.icon-code i { color:#286382; font-style:normal; }
@media (max-width:700px) {
 .story-map { grid-template-columns: minmax(0,1fr); }
 .story-map-demo { margin-inline: calc(-1 * var(--gutter)); }
}
.story-flow { grid-template-columns: minmax(0,1fr) minmax(0,1.2fr) minmax(0,1fr) minmax(0,1.2fr) minmax(0,1fr); gap: clamp(4px,1vw,16px); }
.flow-connector { display:grid; gap:.55rem; align-content:start; padding-block-start:.25rem; }
.flow-connector span { color:#505863; font: .83rem/1.32 Arial,sans-serif; text-align:center; }
.flow-connector .flow-wire { height: 1px; }
@media(max-width:620px) {
 .story-flow { grid-template-columns: 1fr; gap: 1rem; }
 .flow-connector { justify-items:center; }
 .flow-connector .flow-wire { width:1px; height:1.1rem; border:0; background:#8b91a3; }
 .flow-connector .flow-wire::after, [dir="rtl"] .flow-connector .flow-wire::after { inset-inline-end:-3px; bottom:0; transform:rotate(135deg); }
}
