Files
xbcr/static/css/map-discovery.css
T

97 lines
9.5 KiB
CSS

/* Discovery tools reuse the existing porcelain / charcoal theme. */
.discovery-toolbar { position:absolute; z-index:130; top:12px; left:12px; width:min(400px, calc(100% - 140px)); padding:10px; border:1px solid var(--ui-line-strong); border-radius:16px; background:var(--ui-surface); box-shadow:var(--ui-shadow-md); font-size:13px; }
.place-search-wrap { position:relative; }
.place-search-row { display:flex; align-items:center; gap:6px; }
.place-search-row input { min-width:0; flex:1; width:100%; background:var(--ui-surface-raised); color:var(--ui-ink); border:1px solid var(--ui-line-strong); border-radius:9px; padding:10px; font-size:14px; }
.discovery-toolbar button,.discovery-toolbar summary,.nearby-panel button,.location-status button,.theme-options button,.order-filters button,.order-load-more,.sub-rule button { min-height:44px; border:1px solid var(--ui-line-strong); border-radius:9px; padding:8px 10px; background:var(--ui-surface-raised); color:var(--ui-ink); font:inherit; cursor:pointer; }
.discovery-actions { display:flex; gap:6px; align-items:center; margin-top:6px; }
.discovery-actions > button { flex:1; white-space:nowrap; }
.discovery-actions details > summary { list-style:none; display:flex; align-items:center; justify-content:center; }
.discovery-actions details > summary::-webkit-details-marker { display:none; }
.discovery-filter-fields { position:absolute; left:0; right:0; top:100%; margin-top:7px; padding:14px; background:var(--ui-surface); border:1px solid var(--ui-line-strong); border-radius:14px; box-shadow:var(--ui-shadow-md); display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.discovery-filter-fields label { display:flex; flex-direction:column; gap:7px; color:var(--ui-muted); }
.discovery-filter-fields .checkbox-label { flex-direction:row; align-items:center; grid-column:1/-1; color:var(--ui-ink); min-height:36px; }
.discovery-filter-fields select,.nearby-sort select,.order-filters input,.order-filters select { min-height:44px; width:100%; min-width:0; background:var(--ui-surface-raised); color:var(--ui-ink); border:1px solid var(--ui-line-strong); border-radius:8px; padding:7px; font:inherit; }
.discovery-filter-fields input[type=checkbox] { width:20px; height:20px; }
.discovery-origin { width:100%; text-align:left; border:0!important; background:transparent!important; color:var(--ui-muted)!important; padding:7px 2px 0!important; min-height:30px!important; font-size:12px!important; }
.place-results { position:absolute; z-index:3; top:calc(100% + 6px); width:100%; max-height:280px; overflow-y:auto; border-radius:12px; border:1px solid var(--ui-line-strong); background:var(--ui-surface); box-shadow:var(--ui-shadow-md); }
.place-results button { display:flex; justify-content:space-between; align-items:center; width:100%; border:0; border-radius:0; border-bottom:1px solid var(--ui-line); background:transparent; text-align:left; gap:12px; }
.place-results small,.discovery-muted { color:var(--ui-muted); font-size:12px; }
.favorite-places { display:flex; gap:6px; overflow-x:auto; scrollbar-width:thin; padding-top:6px; }
.favorite-place { display:flex; flex:none; border:1px solid var(--ui-line); border-radius:9px; overflow:hidden; }
.favorite-place button { border:0; border-radius:0; background:transparent; white-space:nowrap; min-height:36px; }
.favorite-place button:last-child { min-width:36px; padding:6px; color:var(--ui-muted); }
.nearby-panel { position:absolute; z-index:155; left:12px; bottom:12px; width:min(400px,calc(100% - 24px)); max-height:52%; display:flex; flex-direction:column; padding:14px; border:1px solid var(--ui-line-strong); border-radius:18px; background:var(--ui-surface); box-shadow:var(--ui-shadow-lg); font-size:13px; }
[hidden] { display:none!important; }
.nearby-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.nearby-heading h2 { font-size:17px; letter-spacing:-.3px; }
.nearby-heading button { min-width:44px; }
.nearby-summary { color:var(--ui-muted); padding:5px 0 10px; font-size:12px; line-height:1.6; }
.nearby-sort { display:flex; align-items:center; gap:10px; padding-bottom:8px; }
.nearby-sort select { width:auto; flex:1; }
.nearby-list { overflow-y:auto; min-height:80px; overscroll-behavior:contain; }
.nearby-row { display:flex; justify-content:space-between; width:100%; text-align:left; gap:12px; background:transparent!important; border-width:0 0 1px!important; border-radius:0!important; padding:12px 2px!important; }
.nearby-row strong { font-size:15px; font-variant-numeric:tabular-nums; }
.nearby-row-meta { display:block; margin-top:5px; color:var(--ui-muted); font-size:12px; }
.nearby-row-end { display:flex; flex-direction:column; align-items:flex-end; gap:5px; color:var(--ui-muted); font-size:12px; }
.vehicle-status { color:var(--ui-ink); font-weight:600; }
.vehicle-status.available { color:var(--discovery-available,#237947); }
.vehicle-status.lowbattery,.vehicle-status.locked { color:var(--discovery-warning,#9a5a08); }
.discovery-empty { padding:15px 4px; line-height:1.8; color:var(--ui-muted); }
.discovery-empty strong { color:var(--ui-ink); }
.discovery-empty button { margin-top:10px; }
.location-status { position:absolute; z-index:125; bottom:14px; left:50%; transform:translateX(-50%); width:min(400px,calc(100% - 130px)); padding:10px 12px; border:1px solid var(--ui-line-strong); border-radius:12px; background:var(--ui-surface); color:var(--ui-ink); box-shadow:var(--ui-shadow-sm); font-size:12px; line-height:1.6; }
.location-status-actions { display:flex; gap:8px; margin-top:5px; }
.stats-card { top:auto!important; bottom:14px; }
.legend summary { cursor:pointer; min-height:32px; font-size:12px; color:var(--ui-muted); }
.legend:not([open]) .legend-item { display:none; }
.theme-options { display:flex; gap:8px; padding:12px 0; }
.theme-options button { flex:1; }
.theme-options button[aria-pressed=true] { background:var(--ui-solid); color:var(--ui-on-solid); }
.order-filters { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:10px 0 14px; }
.order-filters label { display:flex; flex-direction:column; gap:6px; color:var(--ui-muted); font-size:12px; min-width:0; }
.order-filter-actions { display:flex; gap:8px; grid-column:1/-1; }
.order-load-more { margin-top:12px; }
.sub-rule { border-bottom:1px solid var(--ui-line); padding:12px 0; font-size:13px; line-height:1.7; }
.sub-rule-head { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.sub-rule-meta,.sub-rule-result { color:var(--ui-muted); font-size:12px; margin-top:4px; }
.sub-rule-actions { display:flex; gap:6px; flex-wrap:wrap; margin-top:8px; }
.sub-rule-actions button { min-height:40px; padding:6px 12px; }
.sub-rule-actions .danger { color:var(--danger); }
.sub-editor-heading { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.sub-editor-heading button { min-height:40px; padding:6px 10px; border:1px solid var(--ui-line); border-radius:8px; background:var(--ui-surface); color:var(--ui-ink); }
.preview-notice { display:flex; align-items:center; justify-content:space-between; padding:6px 16px; gap:12px; background:#f6edd6; color:#624608; font-size:12px; line-height:1.6; z-index:170; flex-shrink:0; }
.preview-notice button,.preview-login { border:1px solid currentColor; border-radius:8px; padding:7px 12px; color:inherit; background:transparent; min-height:40px; cursor:pointer; }
.preview-login { display:block; width:100%; margin-top:12px; color:var(--ui-ink); border-color:var(--ui-line-strong); }
.preview-notice a { color:inherit; }
.discovery-welcome { display:flex; gap:12px; padding:14px; margin:10px 0; background:var(--ui-surface-raised); border-radius:12px; color:var(--ui-muted); font-size:13px; line-height:1.7; }
.discovery-welcome strong { color:var(--ui-ink); }
.bike-card:not(.show) { visibility:hidden; pointer-events:none; }
.bike-card.show { visibility:visible; }
.auth-modal:not(.show),.qr-modal:not(.show),.unlock-confirm-modal:not(.show),.return-confirm-modal:not(.show),.token-expired-modal:not(.show),.lost-modal:not(.show),.return-modal:not(.show),.bell-modal:not(.show) { visibility:hidden; }
html,body { overflow:clip; }
body { animation:none!important; }
.locate-btn.locate-fab { min-width:44px; min-height:44px; }
.auth-close,.bike-card-close,.qr-close { min-width:44px; min-height:44px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
button:disabled { cursor:wait; opacity:.65; }
@media (max-width:768px) {
.discovery-toolbar { width:calc(100% - 24px); padding:8px; }
.legend { top:auto!important; bottom:74px!important; right:12px!important; padding:7px 10px!important; }
.legend summary { min-height:30px; }
.stats-card { bottom:12px; left:12px!important; }
.location-status { bottom:65px; width:calc(100% - 24px); }
.nearby-panel { max-height:56%; }
.locate-btn.locate-fab { width:auto; height:44px; padding:8px 12px; bottom:92px; right:12px; }
.locate-fab-label { display:inline!important; font-size:12px; }
.favorite-places { max-height:46px; }
.preview-notice { padding:5px 12px; }
.preview-notice button { min-height:32px; padding:4px 8px; }
}
@media (prefers-reduced-motion:reduce) { .nearby-panel,.discovery-toolbar { transition:none; } }
.battery-unknown .battery-unit { display:none; }
body:has(#nearby-panel:not([hidden])) .locate-fab { display:none; }
.preview-notice > span { flex:1; }
@media(max-width:768px){ .preview-notice { flex-wrap:wrap; gap:4px 8px; } .preview-notice > span { flex-basis:100%; } .preview-notice button { min-height:32px; } }