@font-face { font-family: "Host Grotesk"; src: url("asset/host-grotesk.woff2") format("woff2"); font-style: normal; font-weight: 300 800; font-display: swap; }

:root {
    --green: #19808C;
    --green-hover: #146B75;
    --green-dark: #1D606A;
    --warm: #FDFDFB;
    --page: #F4F8F8;
    --surface: #EAF4F5;
    --surface-accent: #DCEFF1;
    --ink: #17383D;
    --muted: #5E7377;
    --line: #D4E4E6;
    --input: #B7CFD2;
    --success: #238C97;
    --success-soft: #E2F1F2;
    --danger: #A64D59;
    --danger-dark: #7E3944;
    --danger-soft: #F7E9EB;
    --unknown: #667B80;
    --unknown-dark: #40555A;
    --unknown-soft: #E9EFF0;
    --warning: #C58B36;
    --warning-dark: #70501E;
    --warning-soft: #F7F0E2;
    --shadow: 0 8px 30px rgba(29, 96, 106, .16);
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { font-family: "Host Grotesk", system-ui, sans-serif; font-weight: 400; color: var(--ink); background: var(--warm); }
button, input { font: inherit; }
button { touch-action: manipulation; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

#map { position: fixed; inset: 0; z-index: 0; background: var(--surface); }
.leaflet-control-attribution {
    margin: 0 0 max(5px, env(safe-area-inset-bottom)) 6px !important;
    padding: 2px 5px !important;
    border: 0;
    border-radius: 4px;
    color: rgba(29,96,106,.78);
    background: rgba(253,253,251,.78) !important;
    box-shadow: none;
    font-size: 9px;
    line-height: 1.2;
}
.leaflet-control-attribution a { color: inherit; font-weight: 500; text-decoration: underline; text-decoration-thickness: .5px; text-underline-offset: 1px; }
.leaflet-control-attribution a:hover, .leaflet-control-attribution a:focus { text-decoration: underline; }
.leaflet-bottom.leaflet-right .leaflet-control-zoom { margin: 0 16px 136px 0 !important; overflow: hidden; border: 0 !important; border-radius: 14px !important; box-shadow: var(--shadow) !important; }
.leaflet-control-zoom a { width: 42px !important; height: 42px !important; line-height: 42px !important; color: var(--green-dark) !important; background: rgba(253,253,251,.98) !important; border-color: var(--line) !important; font-weight: 500 !important; }
.leaflet-control-zoom-in { border-radius: 13px 13px 0 0 !important; }
.leaflet-control-zoom-out { border-radius: 0 0 13px 13px !important; }

.topbar { position: fixed; z-index: 900; top: max(14px, env(safe-area-inset-top)); left: 18px; right: 18px; height: 56px; display: flex; justify-content: center; pointer-events: none; }
.brand, .header-tools { pointer-events: auto; }
.brand { position: absolute; left: 50%; transform: translateX(calc(-50% - 12.5px)); height: 56px; display: flex; align-items: center; padding: 0 16px; color: var(--green-dark); background: rgba(253,253,251,.98); border: 1px solid rgba(29,96,106,.08); border-radius: 17px; box-shadow: var(--shadow); text-decoration: none; font-size: 24px; font-weight: 750; white-space: nowrap; }
.brand-lockup { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.brand-drop { display: block; flex: 0 0 16px; width: 16px; height: 21px; object-fit: contain; }
.drop-mini { display: block; flex: none; width: 10px; height: 14px; object-fit: contain; filter: brightness(0) invert(1); }

.header-tools { position: absolute; inset: 0; height: 56px; display: block; pointer-events: none; }
.header-icon { height: 56px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(29,96,106,.08); border-radius: 17px; color: var(--green); background: rgba(253,253,251,.98); box-shadow: var(--shadow); cursor: pointer; pointer-events: auto; }
.header-icon:hover { background: var(--surface); }
.menu-toggle { position: absolute; left: 0; width: auto; grid-template-columns: auto auto; gap: 8px; padding: 0 14px; color: var(--green); font-weight: 600; }
.menu-character { color: var(--green); font-size: 22px; font-weight: 500; line-height: 1; }
.search-toggle { position: absolute; right: 0; width: auto; display: grid; grid-template-columns: 20px auto; gap: 10px; padding: 0 15px; color: var(--green); font-weight: 600; }

.search { position: fixed; top: calc(max(14px, env(safe-area-inset-top)) + 70px); left: 50%; width: min(520px, calc(100% - 36px)); display: none; align-items: center; height: 52px; padding: 3px 4px 3px 12px; transform: translateX(-50%); background: rgba(253,253,251,.98); border: 1px solid rgba(29,96,106,.08); border-radius: 16px; box-shadow: var(--shadow); pointer-events: auto; }
.search.open { display: flex; }
.search-icon { width: 17px; height: 17px; border: 2px solid var(--green); border-radius: 50%; flex: none; position: relative; }
.search-icon::after { content: ""; position: absolute; width: 7px; height: 2px; right: -5px; bottom: -3px; background: var(--green); transform: rotate(45deg); border-radius: 2px; }
.search input { min-width: 0; flex: 1; height: 38px; padding: 0 10px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; }
.search input::placeholder { color: var(--muted); }
.search:focus-within { outline: 3px solid rgba(25,128,140,.18); }
.search > button[type="submit"] { height: 40px; padding: 0 14px; border: 0; border-radius: 11px; color: #fff; background: var(--green); font-weight: 600; cursor: pointer; }
.search > button[type="submit"]:hover { background: var(--green-hover); }
.search-results { position: absolute; top: calc(100% + 7px); left: 0; right: 0; max-height: 260px; overflow-y: auto; padding: 6px; background: var(--warm); border-radius: 15px; box-shadow: var(--shadow); }
.search-result { width: 100%; min-height: 48px; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.search-result:last-child { border-bottom: 0; }
.search-result:hover, .search-result:focus { background: var(--green); color: #fff; outline: 0; border-radius: 10px; }

.site-menu { position: fixed; z-index: 1150; top: 0; left: 0; bottom: 0; width: min(360px, calc(100% - 44px)); display: flex; flex-direction: column; overflow-y: auto; padding: max(20px, env(safe-area-inset-top)) 20px 24px; background: var(--warm); box-shadow: 14px 0 36px rgba(29,96,106,.2); transform: translateX(-110%); transition: transform .22s ease; }
.site-menu.open { transform: translateX(0); }
.site-menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.site-menu-head h2 { margin: 0; color: var(--green-dark); font-size: 28px; }
.site-menu-head button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--surface); color: var(--green-dark); font-size: 26px; cursor: pointer; }
.community-add-button { width: 100%; min-height: 54px; display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 10px; margin: 18px 0 0; padding: 8px 13px; border: 0; border-radius: 14px; color: #fff; background: var(--green); text-align: left; cursor: pointer; }
.community-add-button:hover { background: var(--green-hover); }
.community-add-button > span { font-size: 26px; font-weight: 400; line-height: 1; }
.community-add-button strong { font-size: 16px; font-weight: 650; }
.site-menu nav { display: grid; gap: 0; }
.site-menu nav a { min-height: 50px; display: flex; align-items: center; padding: 0; border-bottom: 1px solid rgba(29,96,106,.11); color: var(--green-dark); text-decoration: none; font-size: 17px; font-weight: 600; }
.site-menu nav a:first-child { border-top: 1px solid rgba(29,96,106,.11); }
.site-menu nav a:hover { color: var(--green); }
.site-menu nav p { color: var(--muted); }
.social-links { display: grid; margin-top: auto; padding-top: 28px; }
.social-links a { min-height: 50px; display: flex; align-items: center; gap: 10px; color: var(--green-dark); text-decoration: none; font-weight: 500; }
.social-links a + a { border-top: 1px solid rgba(29,96,106,.11); }
.social-links a:hover { color: var(--green); }
.social-links img { width: 20px; height: 20px; flex: none; }
.menu-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 14px 2px 0; color: rgba(29,96,106,.72); font-size: 9.5px; line-height: 1.35; }
.menu-legal a { color: inherit; font-weight: 500; text-decoration: underline; text-decoration-thickness: .5px; text-underline-offset: 2px; }
.menu-backdrop { position: fixed; z-index: 1100; inset: 0; background: rgba(29,96,106,.28); }
.menu-backdrop[hidden] { display: none; }

.map-actions { position: fixed; z-index: 700; right: 12px; bottom: max(18px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 9px; }
.community-pin { position: fixed; z-index: 820; top: 50%; left: 50%; width: 42px; height: 50px; transform: translate(-50%,-100%); pointer-events: none; filter: drop-shadow(0 5px 9px rgba(29,96,106,.3)); }
.community-pin[hidden], .community-picker[hidden] { display: none; }
.community-picker { position: fixed; z-index: 850; left: 50%; bottom: max(18px,env(safe-area-inset-bottom)); width: min(440px,calc(100% - 24px)); padding: 14px; border-radius: 17px; background: var(--warm); box-shadow: var(--shadow); transform: translateX(-50%); }
.community-picker p { margin: 0 0 10px; color: var(--green-dark); text-align: center; font-size: 14px; }
.community-picker > div, .community-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.community-picker button, .community-choice button { min-height: 44px; border: 1px solid var(--green); border-radius: 11px; font-weight: 600; cursor: pointer; }
.community-picker .main, .community-choice .main { color: #fff; background: var(--green); }
.community-picker .secondary, .community-choice .secondary { color: var(--green); background: transparent; }
.community-picking .map-actions { display: none; }
.round-button, .primary-action, .install-action { min-height: 50px; border: 0; box-shadow: var(--shadow); cursor: pointer; }
.round-button { position: absolute; right: 0; bottom: calc(100% + 9px); width: 50px; border-radius: 50%; background: var(--warm); color: var(--green); }
.round-button::after { content: ""; position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border: 2px solid #fff; border-radius: 50%; background: var(--unknown); }
.round-button.active::after { background: var(--success); }
.round-button.unavailable::after { background: var(--warning); }
.primary-action { display: flex; align-items: center; gap: 9px; padding: 0 18px; border-radius: 16px; background: var(--green); color: #fff; font-weight: 650; }
.primary-action:hover { background: var(--green-hover); }
.install-action { display: flex; align-items: center; gap: 8px; padding: 0 15px; border-radius: 16px; background: var(--warm); color: var(--green-dark); font-weight: 600; white-space: nowrap; }
.install-action:hover { background: var(--surface); }
.install-action[hidden] { display: none; }
.download-icon { display: block; width: 18px; height: 18px; flex: none; }
.location-icon { display: block; width: 22px; height: 22px; margin: auto; }

.fountain-marker, .cluster-marker { background: none; border: 0; }
.place-marker { background: none; border: 0; }
.place-marker img { display: block; width: 48px; height: 56px; object-fit: contain; filter: drop-shadow(0 5px 8px rgba(29,96,106,.3)); }
.marker-img { display: block; width: 42px; height: 50px; filter: drop-shadow(0 5px 7px rgba(29,96,106,.25)); }
.cluster-badge { width: 52px; height: 52px; display: grid; place-items: center; padding: 0 3px; border: 3px solid #fff; border-radius: 50%; color: #fff; background: var(--green); box-shadow: 0 5px 18px rgba(29,96,106,.28); font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap; }
.cluster-badge.large { font-size: 11px; }
.user-marker { display: block; width: 32px; height: 32px; border-radius: 50%; filter: drop-shadow(0 0 7px rgba(40,121,232,.45)); }
.sheet { position: fixed; z-index: 1000; left: 0; right: 0; bottom: 0; max-height: min(78vh, 650px); overflow-y: auto; padding: 12px 20px calc(22px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: var(--warm); box-shadow: 0 -10px 35px rgba(29,96,106,.2); transform: translateY(110%); transition: transform .24s ease; }
.sheet.open { transform: translateY(0); }
.sheet-backdrop { position: fixed; z-index: 900; inset: 0; background: rgba(29,96,106,.2); }
.sheet-handle { width: 45px; height: 5px; margin: 0 auto 12px; border-radius: 5px; background: var(--line); }
.sheet-close { position: absolute; z-index: 3; top: 17px; right: 17px; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--surface); color: var(--green-dark); font-size: 26px; line-height: 1; cursor: pointer; }
.sheet-close span { display: block; line-height: 1; transform: translateY(-1px); }
.sheet-close svg { display: block; width: 22px; height: 22px; overflow: visible; }
.sheet-close svg path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sheet h2 { margin: 8px 50px 6px 0; color: var(--green-dark); font-size: 24px; font-weight: 650; line-height: 1.15; }
.sheet-address { margin: 0 0 14px; color: var(--muted); font-size: 16px; }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; background: var(--success-soft); color: var(--green-dark); font-size: 14px; font-weight: 600; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.status.inactive { background: var(--danger-soft); color: var(--danger-dark); }
.status.inactive::before { background: var(--danger); }
.status.unknown { background: var(--unknown-soft); color: var(--unknown-dark); }
.status.unknown::before { background: var(--unknown); }
.status-row { display: flex; align-items: center; gap: 8px; }
.report-trigger { min-height: 34px; padding: 4px 8px; border: 0; border-radius: 10px; color: var(--green); background: transparent; font-size: 14px; font-weight: 600; cursor: pointer; }
.report-trigger:hover { background: var(--surface); }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.sheet-actions button, .sheet-actions a { min-height: 50px; display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--green); border-radius: 14px; text-decoration: none; font-weight: 600; cursor: pointer; }
.sheet-actions .main { background: var(--green); color: #fff; }
.sheet-actions .secondary { background: transparent; color: var(--green); }
.fountain-actions { grid-template-columns: minmax(0,1fr) 90px 82px; align-items: stretch; gap: 8px; }
.thanks-control { position: relative; min-width: 0; }
.thanks-counter { position: absolute; right: 0; bottom: calc(100% + 5px); left: 0; display: block; color: var(--muted); font-size: 10.5px; font-weight: 600; line-height: 1; text-align: center; white-space: nowrap; }
.thanks-counter strong { color: inherit; font: inherit; }
.fountain-actions .thanks-button { width: 100%; height: 100%; min-height: 50px; padding: 0; color: var(--green); background: var(--page); line-height: 1; }
.thanks-icon { display: block; width: 22px; height: 22px; }
.thanks-icon path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.thanks-button.thanked .thanks-icon path { fill: currentColor; }
.fountain-actions .thanks-button.thanked { color: #fff; background: var(--green); }
.fountain-actions .thanks-button:disabled { opacity: .65; cursor: wait; }
.route-summary { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; margin-top: 10px; padding: 13px 15px; border-radius: 14px; background: var(--success-soft); color: var(--green-dark); }
.route-summary span { color: var(--muted); font-size: 14px; }
.route-summary strong { font-weight: 650; text-align: right; }
.place-cover { width: calc(100% + 40px); max-height: 220px; display: block; margin: -12px -20px 16px; border-radius: 24px 24px 0 0; object-fit: cover; }
.place-category { margin: 0 0 4px; color: var(--green); font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }
.place-description { margin: 14px 0 0; color: var(--ink); line-height: 1.5; white-space: pre-line; }
.place-hours { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.place-hours summary { color: var(--green); font-weight: 650; cursor: pointer; }
.place-hours div { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding-top: 9px; font-size: 14px; }
.place-hours div span { color: var(--muted); }
.place-links { display: grid; gap: 0; margin-top: 16px; border-top: 1px solid var(--line); }
.place-links a { min-height: 42px; display: grid; grid-template-columns: 25px 1fr; align-items: center; gap: 8px; padding: 5px 4px; border-bottom: 1px solid var(--line); color: var(--green); text-decoration: none; }
.place-links a:hover { background: var(--page); }
.place-links strong { min-width: 0; overflow: hidden; color: var(--green); font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.place-link-icon { width: 18px; height: 18px; display: grid; place-items: center; object-fit: contain; justify-self: center; }
.place-link-icon.text-icon { color: var(--green); font-size: 19px; font-weight: 500; line-height: 1; }
.nearby-sheet { max-height: min(72vh, 540px); }
.nearby-panel { position: relative; }
.nearby-panel > h2 { margin-right: 50px; }
.nearby-list { display: grid; gap: 8px; margin-top: 14px; }
.nearby-item { display: grid; grid-template-columns: minmax(0,1fr) 44px; gap: 8px; align-items: stretch; min-height: 60px; padding: 5px 6px 5px 0; border: 1px solid var(--line); border-radius: 15px; background: #fff; transition: border-color .16s ease, background .16s ease; }
.nearby-item:hover, .nearby-item:focus-within { border-color: var(--input); background: var(--page); }
.nearby-select { min-width: 0; min-height: 50px; display: grid; grid-template-columns: 32px minmax(0,1fr); align-items: center; gap: 10px; padding: 6px 4px 6px 10px; border: 0; border-radius: 14px 0 0 14px; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.nearby-select:focus-visible, .nearby-route:focus-visible, .nearby-more:focus-visible { outline: 3px solid rgba(25,128,140,.2); outline-offset: 2px; }
.nearby-order { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-size: 13px; font-weight: 750; }
.nearby-details { min-width: 0; display: grid; gap: 2px; }
.nearby-details strong { color: var(--green-dark); font-size: 16px; font-weight: 700; }
.nearby-details small { color: var(--muted); font-size: 13px; }
.nearby-route { width: 44px; min-height: 44px; align-self: center; display: grid; place-items: center; padding: 0; border: 0; border-radius: 12px; color: #fff; background: var(--green); cursor: pointer; }
.nearby-route:hover { background: var(--green-hover); }
.nearby-route img { display: block; width: 22px; height: 22px; }
.nearby-item.unknown { border-color: var(--line); background: var(--unknown-soft); }
.nearby-item.unknown:hover, .nearby-item.unknown:focus-within { border-color: var(--input); background: var(--unknown-soft); }
.nearby-item.unknown .nearby-order, .nearby-item.unknown .nearby-route { background: var(--unknown); }
.nearby-item.unknown .nearby-details strong { color: var(--unknown-dark); }
.nearby-item.unknown .nearby-route:hover { background: var(--unknown-dark); }
.nearby-more { width: 100%; min-height: 44px; margin-top: 10px; border: 1px solid var(--input); border-radius: 12px; color: var(--green); background: transparent; font-weight: 650; cursor: pointer; }
.nearby-more:hover { background: var(--surface); }
.nearby-more[hidden] { display: none; }
.install-copy { margin: 0 0 14px; color: var(--muted); }
.install-steps { margin: 16px 0 0; padding-left: 22px; }
.install-steps li { margin: 9px 0; }
.location-retry { width: 100%; min-height: 48px; margin-top: 16px; border: 0; border-radius: 13px; color: #fff; background: var(--green); font-weight: 650; cursor: pointer; }
.location-retry:hover { background: var(--green-hover); }
.install-qr { display: block; width: min(240px, 80vw); height: auto; margin: 18px auto 10px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.download-url { display: block; color: var(--green); text-align: center; word-break: break-all; }
.report-dialog { width: min(440px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 20px; color: var(--ink); background: var(--warm); box-shadow: 0 18px 60px rgba(29,96,106,.3); }
.report-dialog::backdrop { background: rgba(29,96,106,.35); }
.report-dialog form { display: grid; gap: 16px; padding: 26px; }
.community-dialog-step { display: grid; gap: 16px; padding: 26px; }
.community-dialog-step h2 { margin: 0 45px 0 0; color: var(--green-dark); font-size: 24px; }
.community-dialog-step p { margin: -7px 0 2px; color: var(--muted); line-height: 1.5; }
.community-coordinates { padding: 10px 12px; border-radius: 10px; color: var(--green-dark); background: var(--surface); text-align: center; font-variant-numeric: tabular-nums; }
.optional-label { display: inline-block; margin-left: 5px; padding: 2px 6px; border-radius: 999px; color: var(--muted); background: var(--unknown-soft); font-size: 10px; font-weight: 650; letter-spacing: .03em; text-transform: uppercase; vertical-align: 1px; }
.field-help { color: var(--muted); font-size: 12px; font-weight: 450; line-height: 1.4; }
.author-preview { display: grid; gap: 3px; margin-top: -5px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.author-preview > span { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.author-preview strong { color: var(--green-dark); font-size: 15px; font-weight: 650; }
.community-summary { display: grid; gap: 0; margin: 0; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.community-summary div { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.community-summary div:last-child { border-bottom: 0; }
.community-summary dt { color: var(--muted); font-size: 13px; }
.community-summary dd { min-width: 0; margin: 0; color: var(--green-dark); font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.report-dialog h2 { margin: 0 45px 0 0; color: var(--green-dark); font-size: 24px; }
.report-dialog p { margin: -7px 0 2px; color: var(--muted); }
.report-dialog label { display: grid; gap: 7px; color: var(--green-dark); font-size: 14px; font-weight: 600; }
.report-dialog input, .report-dialog select { width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid var(--input); border-radius: 11px; background: #fff; color: var(--ink); font: inherit; }
.report-dialog input:focus, .report-dialog select:focus { border-color: var(--green); outline: 3px solid rgba(25,128,140,.14); }
.report-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; color: var(--green-dark); background: var(--surface); font-size: 25px; cursor: pointer; }
.report-submit { min-height: 50px; border: 0; border-radius: 13px; color: #fff; background: var(--green); font-weight: 650; cursor: pointer; }
.report-submit:disabled { opacity: .55; cursor: wait; }
.toast { position: fixed; z-index: 1200; left: 50%; bottom: 88px; max-width: calc(100% - 30px); padding: 11px 16px; border-radius: 12px; transform: translateX(-50%); color: #fff; background: var(--green-dark); box-shadow: var(--shadow); text-align: center; }
.loading { display: inline-block; width: 17px; height: 17px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 901px) {
    .search { position: absolute; top: 0; right: 0; left: auto; width: 52px; height: 56px; display: flex; padding: 3px 4px 3px 12px; transform: none; opacity: 0; visibility: hidden; pointer-events: none; transition: width .24s ease, opacity .16s ease, visibility 0s linear .24s; }
    .search.open { width: min(520px, calc(50vw - 130px)); opacity: 1; visibility: visible; pointer-events: auto; transition: width .24s ease, opacity .16s ease; }
}

@media (min-width: 720px) {
    .leaflet-bottom.leaflet-right .leaflet-control-zoom { margin-right: 26px !important; margin-bottom: 140px !important; }
    .map-actions { right: 22px; bottom: 22px; }
    .sheet { left: auto; right: 20px; bottom: 20px; width: 390px; max-height: calc(100vh - 40px); border-radius: 22px; transform: translateX(120%); }
    .sheet.open { transform: translateX(0); }
    .sheet-handle { display: none; }
}

@media (min-width: 901px) {
    .sheet { top: auto; left: 50%; right: auto; bottom: 20px; width: 410px; max-height: calc(100vh - 40px); transform: translate(-50%, calc(100% + 40px)); }
    .sheet.open { transform: translate(-50%, 0); }
}

@media (max-width: 900px) {
    .topbar { top: max(10px, env(safe-area-inset-top)); left: 12px; right: 12px; height: 54px; display: flex; justify-content: center; padding: 3px; border: 1px solid rgba(29,96,106,.08); border-radius: 17px; background: rgba(253,253,251,.98); box-shadow: var(--shadow); }
    .brand { position: absolute; top: 3px; left: 50%; transform: translateX(-50%); height: 48px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 21px; }
    .brand-lockup { gap: 7px; }
    .brand-drop { flex-basis: 14px; width: 14px; height: 19px; }
    .header-tools { position: absolute; inset: 3px; width: auto; height: 46px; display: block; pointer-events: none; }
    .header-icon { height: 46px; border: 0; border-radius: 13px; background: transparent; box-shadow: none; pointer-events: auto; }
    .header-icon:hover { background: var(--surface); }
    .menu-toggle { position: absolute; left: 0; width: 46px; grid-template-columns: 1fr; gap: 0; padding: 0; color: var(--green); }
    .menu-toggle > span:last-child { display: none; }
    .menu-character { font-size: 18px; }
    .search-toggle { position: absolute; right: 0; width: 46px; display: grid; grid-template-columns: 1fr; gap: 0; padding: 0; }
    .search-toggle-label { display: none; }
    .search-toggle .search-icon { display: block; margin: 0 3px 3px 0; }
    .search { position: fixed; top: calc(max(10px, env(safe-area-inset-top)) + 64px); left: 12px; right: 12px; width: auto; display: none; transform: none; }
    .search.open { display: flex; }
}

@media (max-width: 520px) {
    .leaflet-control-attribution {
        max-width: min(47vw, 175px);
        margin: 0 0 max(2px, env(safe-area-inset-bottom)) 3px !important;
        padding: 1px 3px !important;
        border-radius: 3px;
        color: rgba(29,96,106,.66);
        background: rgba(253,253,251,.58) !important;
        font-size: 7px;
        line-height: 1.05;
    }
    .leaflet-control-attribution a { font-weight: 500; }
    .search { padding-left: 10px; }
    .search > .search-icon { display: none; }
    .search input { padding: 0 8px; font-size: 15px; }
    .search > button[type="submit"] { padding: 0 11px; }
    .install-action, .primary-action { min-height: 48px; padding: 0 12px; font-size: 14px; }
    .install-action { gap: 6px; }
    .map-actions { gap: 7px; }
    .fountain-actions { grid-template-columns: minmax(90px,1fr) 80px 68px; gap: 6px; margin-top: 12px; }
    .fountain-actions button, .fountain-actions a { min-height: 44px; padding: 0 8px; border-radius: 12px; font-size: 13px; }
    .fountain-actions .thanks-control { height: 44px; }
    .fountain-actions .thanks-counter { z-index: 1; top: 7px; bottom: auto; color: var(--green); font-size: 10px; line-height: 1; pointer-events: none; }
    .fountain-actions .thanks-counter-label, .fountain-actions .thanks-counter.is-zero { display: none; }
    .fountain-actions .thanks-button { min-height: 44px; padding-top: 14px; }
    .fountain-actions .thanks-button.thanked { color: var(--green); background: var(--success-soft); }
    .fountain-actions .thanks-icon { width: 18px; height: 18px; transform: translateY(3px); }
}

@media (max-width: 370px) {
    .search { padding-left: 5px; }
    .search input { padding: 0 5px; }
    .search > button[type="submit"] { padding: 0 8px; font-size: 14px; }
    .install-action, .primary-action { padding: 0 9px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) { .sheet { transition: none; } .loading { animation-duration: 1.5s; } }
