/* QUICANTIERI V. 1.0: retain the construction-site amber/slate identity. */
.version-label{display:inline-block;margin-left:8px;color:#ffcf70;font-size:12px;letter-spacing:0;white-space:nowrap}
body #list{top:calc(var(--qc-header-height,70px) + 10px)}
#list{max-height:min(75dvh,var(--qc-search-height,75dvh));display:none;flex-direction:column;z-index:1040;overflow:hidden}
#list [hidden],#pointPanel[hidden],#mapPickHint[hidden]{display:none!important}
.search-top{display:flex;align-items:center;justify-content:space-between;padding:12px 14px 8px;gap:10px;color:#1f2937}
.search-top strong{font-size:16px}.search-top button{min-width:44px;min-height:44px}
.search-tabs{display:flex;gap:5px;padding:0 12px 10px;border-bottom:1px solid #e4e6e9}
.search-tabs button{flex:1;min-height:44px;padding:9px 6px;background:#eef1f4;color:#374151;font-size:13px}
.search-tabs button[aria-selected=true]{background:#f59e0b;color:#17202c}
.search-panel{max-height:calc(min(75dvh,var(--qc-search-height,75dvh)) - 120px);overflow:auto;overscroll-behavior:contain;min-height:0}
#sourceSearchForm{margin:0;background:transparent}
#sourceSearchForm .list-head{display:flex;align-items:flex-end;gap:8px}
#sourceSearchForm label{flex:1;min-width:0}
#sourceSearchSubmit{min-height:44px;flex:none;max-width:105px}
#sourceSearchStatus{padding:0 14px;min-height:0}
#sourceSearchStatus:empty{display:none}
#listSearch,#addressQuery{font-size:16px}
.search-panel #listItems{max-height:none}
.search-catalog{padding:12px 14px;border-top:1px solid #e4e6e9}.search-catalog button{min-height:44px;background:#fff0ce;color:#775000;width:100%;text-align:left}
.address-form{padding:16px;border:0;margin:0;background:#fff}
.address-form label{font-weight:700;font-size:14px;color:#273244}
.address-form button{min-height:44px}
.search-note{font-size:13px;line-height:1.5;color:#596474;margin:0 0 10px}
.search-note a{color:#80500c}.search-status{display:block;min-height:20px;color:#775000;font-size:13px;line-height:1.5}
.address-result{display:block;width:100%;text-align:left;border-radius:0;background:white;color:#1f2937;border-top:1px solid #e4e6e9;min-height:56px;padding:12px 16px;font-size:14px;line-height:1.4}
.address-result:hover,.address-result:focus-visible{background:#fff4dc}
.nearby-panel{padding:16px}.nearby-panel button{min-height:44px}.nearby-panel h3{font-size:16px;margin:0 0 8px}
#pointPanel{position:fixed;z-index:1040;bottom:24px;left:14px;width:min(440px,calc(100vw - 28px));background:#fff;border:1px solid #e2e5e9;border-radius:16px;padding:16px;box-shadow:0 8px 35px #10203433;color:#263244}
.point-head{display:flex;align-items:flex-start;gap:10px}.point-head>div{flex:1;min-width:0}
.point-head h2{font-size:17px;margin:0 0 5px;overflow-wrap:anywhere;max-height:4.2em;overflow:auto}.point-head button{min-height:44px;min-width:44px}
.point-coordinates{font:13px ui-monospace,monospace;color:#586374}
.point-note{font-size:13px;line-height:1.5;color:#596474;margin:12px 0}
.share-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.share-actions button,.share-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 13px;border-radius:10px;font:600 13px system-ui,sans-serif;background:#374151;color:white;text-decoration:none}
.share-actions .share-primary{background:#f59e0b;color:#17202c}
#pointLink{font-size:12px;margin-top:12px;background:#f7f8fa;color:#3e4959;min-height:40px}
#mapPickHint{position:fixed;left:50%;transform:translateX(-50%);top:calc(var(--qc-header-height,76px) + 10px);z-index:995;background:#1f2937;color:#fff;padding:12px 14px;border-radius:12px;max-width:calc(100vw - 24px);width:max-content;box-shadow:0 3px 18px #1114;font-size:14px}
#mapPickHint button{margin-left:10px;min-height:40px}.map-selecting #map{cursor:crosshair}.map-selecting #layerControl{visibility:hidden}
#selectPointButton{white-space:nowrap}
#sheet .site-share-actions{display:flex;clear:both;margin-top:10px}
#shareSiteButton{min-height:44px;background:#f59e0b;color:#17202c}
#sheet.chat-focus .site-share-actions{display:none}
.preview-version-note{position:fixed;z-index:480;bottom:32px;left:14px;max-width:310px;padding:10px 12px;border-radius:10px;background:#fff4dc;color:#704607;border:1px solid #eacb8f;font-size:12px;line-height:1.4}
.support-project{margin:16px 0 20px;padding:16px;background:#f3f6fb;border:1px solid #dce3ed;border-radius:12px}
.privacy-content .support-project h3{margin:0 0 8px}
.kofi-support-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:12px 16px;border-radius:8px;background:#72a4f2;color:#17202c!important;font-weight:700;text-decoration:none}
.kofi-support-button:hover{background:#91b9f7}
.privacy-content .kofi-support-button{text-decoration:none}
.privacy-content .support-privacy{font-size:13px;line-height:1.5;color:#465365;margin-bottom:0}
#reportSiteButton{background:#f59e0b;color:#17202c}
#privacyOverlay :focus-visible,#selectPointButton:focus-visible,.share-actions :focus-visible{outline:3px solid #80500c;outline-offset:3px}
@media(max-width:650px){#pointPanel{bottom:calc(env(safe-area-inset-bottom) + 12px);padding:14px;max-height:60dvh;overflow:auto}#mapPickHint{font-size:13px}#selectPointButton{grid-column:2;grid-row:1;font-size:12px;white-space:normal;max-width:108px;min-height:44px;line-height:1.25}header .brand-word{font-size:15px}.version-label{font-size:12px}.header-actions button{flex:1 1 0;min-width:0;min-height:44px;padding:8px 5px;white-space:normal;font-size:12px;line-height:1.25}#list{max-height:min(72dvh,var(--qc-search-height,72dvh))}.search-panel{max-height:calc(min(72dvh,var(--qc-search-height,72dvh)) - 120px)}}
/* r5: search owns the foreground; results, not the whole form, scroll. */
body.searching::after{content:"";position:fixed;inset:0;background:#11182766;z-index:1590;pointer-events:none}
body.searching #list{position:fixed;display:flex!important;flex-direction:column;z-index:1700;top:calc(var(--qc-search-top,0px) + env(safe-area-inset-top) + 8px);left:50%;right:auto;bottom:auto;transform:translateX(-50%);width:min(760px,calc(100vw - 20px));height:calc(var(--qc-search-height,100dvh) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px);max-height:none;overflow:hidden;border-radius:14px;background:#fff;box-shadow:0 8px 40px #11182755}
body #list .search-top{flex:none;padding:8px 12px 4px}
body #list .search-tabs{flex:none;padding:0 10px 8px}
body #list .search-panel{flex:1;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain}
body #list #search-sources:not([hidden]),body #list #search-address:not([hidden]){display:flex;flex-direction:column;overflow:hidden}
body #list #sourceSearchForm,body #list .address-form{flex:none}
body #list #sourceSearchForm{padding:0;border:0;gap:0}
body #list #sourceSearchForm .list-head{padding:10px 12px;gap:8px}
body #list #sourceSearchForm input{margin-top:4px;min-height:44px}
body #list #sourceSearchStatus{flex:none;padding:2px 12px 6px;line-height:1.4}
body #list #listItems,body #list #addressResults{flex:1;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;scroll-padding-top:8px}
body #list .search-catalog{flex:none;padding:7px 12px}
body #list .search-catalog button{min-height:36px;padding:7px 9px;font-size:12px}
.search-source-info{display:block;margin-top:5px;padding:3px 0;color:#704600;font-size:12px;line-height:1.4;text-decoration:underline}
.search-filters{flex:none;border-block:1px solid #e4e6e9;font-size:13px;max-height:35%;overflow:auto}
.search-filters summary{padding:8px 12px;min-height:36px;cursor:pointer;color:#374151;font-weight:600}
body #list .search-filters .list-tools,body #list .search-filters .list-visit-tools{padding:6px 12px}
body #list .address-form{padding:10px 12px 6px}
body #list .address-form input{margin-block:4px;min-height:44px}
body #list .address-form>button{width:100%;margin-block:5px}
body #list .address-form .search-status{min-height:0}
.search-tips{font-size:12px;max-height:120px;overflow:auto;color:#465365}
.search-tips summary{cursor:pointer;padding:4px 0}
body #list .search-tips .search-note{font-size:12px;margin:4px 0}
.source-disclaimer{padding:10px 12px;background:#fff5df;color:#273244;border:1px solid #ead3a5;border-radius:8px;font-size:13px;line-height:1.5}
.source-disclaimer a{color:#704600;text-decoration:underline}
@media(max-width:400px){body #list #sourceSearchSubmit{font-size:12px;max-width:92px;padding:7px}body #list .search-top strong{font-size:15px}body #list .search-tabs button{font-size:12px}}
@media(max-height:550px){body #list .search-catalog .search-source-info{display:none}body #list .search-catalog{padding-block:5px}body #list .search-top{padding-top:4px}body #list .search-top button{min-height:40px}}
