/* One scrolling place sheet: gatherings come first, details stay within reach. */
body{font-weight:500}.icon{stroke-width:1.9}
.location-modal,.city-aside.aside-place{display:block;overflow-x:hidden;overflow-y:auto;background:var(--solid)!important;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--muted) transparent;scroll-padding-top:58px}
.location-modal{width:440px;height:min(900px,94dvh);max-height:94dvh;border-radius:24px;transition:transform .2s ease}
.location-modal.sheet-dragging{transition:none;user-select:none}
.location-modal>.modal-close{display:none}
.location-sheet-controls{position:sticky;top:0;height:44px;z-index:12;display:flex;align-items:center;justify-content:flex-end;background:var(--solid);padding:0 8px}
.location-sheet-controls .place-sheet-close{height:40px;width:40px;border-radius:50%;color:var(--text)}
.location-sheet-controls .sheet-handle-button{height:44px}.location-sheet-controls .sheet-handle-button span{background:var(--muted);opacity:.65}
.location-cover,.location-modal .location-cover{height:152px;min-height:152px;background-size:cover;background-position:center;position:relative;isolation:isolate}
.location-modal .location-cover{height:130px;min-height:130px}
.location-cover>.venue-cover-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1}
.location-cover-shade{background:linear-gradient(180deg,#0d091b10 0%,#0d091b45 30%,#0d091beb 100%)}
.location-cover-copy,.location-modal .location-cover-copy{left:18px;right:18px;bottom:16px}
.location-cover-copy h2{font-size:26px;line-height:1.17;font-weight:800;letter-spacing:-.6px;text-align:left;text-wrap:balance;color:#fff}
.location-cover-copy p{font-size:12px;line-height:1.45;font-weight:600;color:#f1eaf6;margin-top:5px}
.location-close{right:12px;top:10px;width:44px;height:44px;background:#1e1829d9;color:#fff;border:1px solid #ffffff50}
.sheet-handle-button{position:absolute;z-index:8;top:0;left:calc(50% - 42px);width:84px;height:28px;display:grid;place-items:center;touch-action:none}
.sheet-handle-button span{width:36px;height:4px;border-radius:4px;background:#fff9}
.sheet-handle-button:focus-visible{outline-offset:-5px}
.place-reputation{display:flex;align-items:center;gap:8px;min-height:52px;padding:4px 16px;border-bottom:1px solid var(--line);background:var(--solid)}
.place-reputation>button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:44px;font-size:12px;font-weight:700;padding:0 4px;border-radius:10px;white-space:nowrap}
.place-reputation>button:first-child{margin-right:auto;color:var(--text)}
.place-reputation>button:first-child .icon{color:#bd8c45}
.place-visit.visited .icon{color:var(--green)}
.place-map-preview{width:40px;flex-shrink:0;color:var(--muted)}
.place-reputation>button:hover{background:var(--soft)}
.location-tabs{position:sticky;top:0;z-index:9;display:flex;gap:20px;padding:0 18px;background:var(--solid);border-bottom:1px solid var(--line)}
.location-modal .location-tabs{top:44px;padding-right:18px;gap:20px}
.location-tabs>button{font-size:12px;font-weight:700;min-height:48px;padding:10px 0;gap:4px;color:var(--muted)}
.location-tabs>button.active{color:var(--text)}
.location-tabs>button.active:after{background:var(--accent)}
.location-tabs span{font-size:10px;color:var(--muted);background:var(--soft);padding:1px 4px}
.location-body,.location-modal .location-body{overflow:visible;flex:none;min-height:0;height:auto;padding:18px 16px 24px;font-size:14px;line-height:1.6}
.place-plans-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.place-plans-heading h3{font-size:17px;font-weight:800;letter-spacing:-.3px}
.place-plans-heading .button{min-height:44px;font-size:12px;padding:10px 12px;flex-shrink:0}
.place-date-tabs{display:flex;gap:6px;margin:0 0 16px;padding:0;border:0}
.place-date-tabs>button{min-height:42px;padding:8px 12px;border-radius:12px;background:transparent;border:1px solid var(--line);color:var(--muted);font-size:12px;font-weight:600}
.place-date-tabs>button.active{background:var(--text);color:var(--solid);border-color:transparent}
.place-incoming{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;font-size:12px;padding:10px 12px;margin-bottom:14px;background:var(--soft);border-radius:12px;text-align:left}
.place-incoming>.icon:last-child{margin-left:auto}
.place-plan-list{display:grid;gap:14px}
.place-match-note{margin-top:18px;font-size:11px;color:var(--muted);line-height:1.6}
.location-body .empty{padding:25px 12px 30px}
.location-body .empty h3{font-size:18px}
.place-closed-note{padding:12px 18px;font-size:12px;line-height:1.6;background:var(--soft);color:var(--text);margin:0}
.location-about{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;overflow-wrap:anywhere}
.location-about>h3{font-size:20px}.location-about>p{font-size:13px;line-height:1.6}
.place-address{display:grid;gap:5px;font-size:14px}.place-address b{font-size:12px;color:var(--muted)}
.location-about .button{min-height:44px;white-space:normal;text-align:left}
.location-about .place-practical-note{font-size:12px;color:var(--muted)}
.place-photo-credit{font-weight:500;font-size:11px;line-height:1.6;color:var(--muted);border-top:1px solid var(--line);padding-top:10px}
.place-photo-credit summary{cursor:pointer;min-height:36px;display:flex;align-items:center}
.place-photo-credit p{margin:7px 0}.place-photo-credit a{text-decoration:underline;text-underline-offset:3px}
.location-panel .location-state{font-size:14px;line-height:1.6}.location-help{font-size:13px!important;line-height:1.65}
.personal-info>p,.detail-description,.post-body>p,.message-bubble{font-weight:500}
.topbar .icon-button,.mobile-nav .icon{stroke-width:2}
@media(max-width:700px){
 .modal-backdrop:has(.location-modal){align-items:flex-end;padding:0}
 .location-modal{width:100%;height:calc(100dvh - 8px);max-height:calc(100dvh - 8px);border-radius:24px 24px 0 0;padding-bottom:env(safe-area-inset-bottom,0px)}
 .telegram-mini-app .modal-backdrop:has(.location-modal){top:var(--orbita-tg-top);bottom:0;padding:0}
 .telegram-mini-app .location-modal{height:calc(var(--orbita-tg-height,100dvh) - var(--orbita-tg-top));max-height:calc(var(--orbita-tg-height,100dvh) - var(--orbita-tg-top));padding-bottom:var(--orbita-tg-bottom)}
}
@media(max-width:360px){.location-modal .location-tabs{gap:10px;padding-left:14px}.location-tabs>button{font-size:11px}.place-plans-heading h3{font-size:16px}.location-body{padding-inline:12px}.place-reputation{padding-inline:10px;gap:4px}}
@media(prefers-reduced-motion:reduce){.location-modal{transition:none}}

.place-rating-dialog .muted{font-size:14px;margin:12px 0 22px}.rating-stars{display:flex;gap:9px;padding:0;border:0;margin:18px 0 24px}.rating-stars legend{font-size:13px;font-weight:700;margin-bottom:12px}.rating-stars label{position:relative;flex:1;min-width:0;text-align:center;cursor:pointer}.rating-stars input{position:absolute;opacity:0;width:100%;height:100%;inset:0;margin:0;cursor:pointer}.rating-stars span{display:block;font-size:32px;border:1px solid var(--line);border-radius:14px;padding:5px 0;color:var(--muted)}.rating-stars input:checked+span{background:#b991cf2e;color:#b97834;border-color:#c38c46}.rating-stars input:focus-visible+span{outline:2px solid var(--text)}.rating-stars small{display:block;margin-top:5px;font-size:12px}.place-rating-hint,.place-visit-copy{font-size:13px;line-height:1.7;color:var(--muted);margin:18px 0 22px}.place-visit-cancel{margin-top:12px}.profile-level{display:flex;align-items:center;gap:10px;margin:22px 0 6px;padding:12px 15px;border:1px solid #80628e30;border-radius:16px;background:#ffffff36;color:inherit;max-width:100%;text-align:left}.profile-level>span:nth-child(2){flex:1}.profile-level b{display:block;font-size:13px}.profile-level small{font-size:11px;color:inherit;opacity:.75}.level-mark{font-size:27px;color:#89649e}.progress-dialog{text-align:center}.level-emblem{display:block;font-size:58px;margin-bottom:10px;color:#bca0cf}.progress-dialog>p{margin:12px 0}.progress-dialog progress{width:100%;height:9px;border:0;border-radius:9px;overflow:hidden;accent-color:#b99bcf}.progress-rules{text-align:left;margin:26px 0;padding:20px;background:var(--soft);border-radius:20px}.progress-rules h3{font-size:15px}.progress-rules p{font-size:13px;color:var(--muted);line-height:1.7;margin-top:12px}
.rating-stars label:has(~ label input:checked) span{color:#b97834;background:#b991cf15}

.venue-photo-trigger{position:absolute;inset:0;z-index:2;width:100%;height:100%;border:0;background:transparent;color:#fff;cursor:zoom-in}
.venue-photo-trigger:focus-visible{outline-offset:-4px}
.location-cover-copy{pointer-events:none}
.location-cover>.location-close{z-index:4}
.venue-photo-viewer[open]{position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100%;max-height:none;box-sizing:border-box;display:grid;grid-template-rows:auto minmax(0,1fr);padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom);background:#101015;color:#fff;border:0}
.venue-photo-viewer::backdrop{background:#101015}
.venue-photo-viewer header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px}
.venue-photo-viewer header button{flex:none;width:44px;height:44px;border-radius:50%;color:#fff;background:#ffffff17}
.venue-photo-viewer img{width:100%;height:100%;object-fit:contain}
.venue-photo-viewer p:not([hidden]){place-self:center}

.place-address-link{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;padding:8px 18px;text-align:left;color:var(--muted);border-bottom:1px solid var(--line)}
.place-address-link span{flex:1;min-width:0;font-size:.85rem;font-weight:600;line-height:1.35;overflow-wrap:anywhere}
.place-address-link .icon{flex:none}
.location-cover-copy h2,.location-cover-copy p{overflow-wrap:anywhere}
.place-review-action .icon{color:#c39a53}
.place-plan-list:has(.empty)>.button{justify-self:center;min-height:44px}
.place-plan-list:has(.empty){gap:0;margin-bottom:16px}
.place-plan-list .empty{padding:18px 12px}
.venue-match .venue-result-plans{font-size:.76rem;font-weight:700;margin-top:5px}

.venue-activities{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.venue-activities:empty{display:none}
.venue-activities button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:4px 10px;border:1px solid var(--line);border-radius:13px;background:transparent;color:var(--text);font:650 13px/1.2 Manrope,system-ui,sans-serif}
.venue-activities button[aria-pressed="true"]{background:var(--accent,#dfc8f2);border-color:transparent;color:#251c32}
.venue-activities button>span{display:grid;place-items:center;width:23px;height:23px;background:#332b40;border-radius:7px}
.venue-activities svg,.venue-match-icon>svg{width:86%;height:86%;display:block}
.venue-match-icon{position:relative;background:#322b40}
.venue-match-icon>img{position:absolute;inset:0}
.venue-match .venue-result-plans{display:inline-flex;align-items:center;gap:6px;line-height:1.4;color:var(--text)}
.venue-result-plans>.icon{width:15px;height:15px;color:var(--accent);flex:none}
.venue-match:has(.venue-result-plans){padding-block:13px}
@media(max-height:550px){.venue-search-modal .venue-finder{gap:6px;max-height:calc(var(--orbita-tg-height,100dvh) - 40px)}.venue-search-modal .venue-matches{min-height:54px}}
@media(max-width:365px){.venue-activities{gap:4px}.venue-activities button{padding-inline:6px;font-size:12px}}

.location-sheet-controls .venue-results-back{margin-right:auto;padding:0 10px}
.city-page .aside-place .location-cover .venue-results-back{position:absolute;top:10px;left:12px;z-index:4;padding:0 12px;color:white;border-radius:999px;background:#231b2ddd;border:1px solid #ffffff4d}
.location-modal :is(button,a):focus-visible,.aside-place :is(button,a):focus-visible{outline:2px solid var(--text);outline-offset:-3px}
.city-page .city-aside.aside-place{width:clamp(318px,32vw,448px);max-width:calc(100% - 16px)}
@media(max-width:700px){
 .location-modal .location-cover{min-height:120px;height:auto;padding-top:14px}
 .location-modal .location-cover-copy{position:relative;inset:auto;padding:20px 18px 14px}
 .location-modal .location-cover-copy h2{font-size:clamp(21px,6vw,26px);text-wrap:pretty}
 .modal-backdrop:has(.location-modal){backdrop-filter:none;-webkit-backdrop-filter:none;background:#1a142c59}
 .modal-backdrop .location-modal{height:min(38rem,88dvh);max-height:calc(100dvh - max(12px,env(safe-area-inset-top)))}
 .telegram-mini-app .modal-backdrop .location-modal{height:min(38rem,88dvh);max-height:calc(var(--orbita-tg-height,100dvh) - var(--orbita-tg-top))}
 .location-modal .location-sheet-controls,.location-modal .location-tabs{flex-shrink:0}
 .location-modal :is(.location-tabs,.place-plans-heading,.place-date-tabs){flex-wrap:wrap;row-gap:0}
}
@media(min-width:701px){
 .aside-place .location-cover{height:auto;min-height:140px;display:grid;align-items:end;padding-top:52px}
 .aside-place .location-cover-copy{position:relative;inset:auto;padding:4px 18px 16px}
 .aside-place .location-cover-copy h2{text-wrap:pretty}
}
