/* ZuriCool styles */
:root {
  --ink: #111418;
  --text: #2B3038;
  --mute: #6B7280;
  --line: #E3E6EA;
  --bg: #F3F5F7;
  --card: #FFFFFF;
  --fountain: #2563EB;
  --indoor: #D9392B;
  --outdoor: #1E8A4C;
  --ok: #1E8A4C;
  --warn: #B45309;
  --err: #C62828;
  --alert-bg: #FEF6E4;
  --alert-line: #F6DFA8;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(17, 20, 24, .10), 0 1px 3px rgba(17, 20, 24, .08);
  --btn-bg: #111418; --btn-fg: #FFFFFF; --btn-hover: #2A2F36;
  --field-line: #D5D9DF; --soft: #EEF0F3; --soft2: #E7EAEE; --art: #E9EEF3;
  --street: #FFFFFF; --river: #C9DDF0; --lake: #CFE0F1;
  --attr-bg: rgba(255,255,255,.85); --halo: #FFFFFF;
  color-scheme: light;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Inter Tight', 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); font-size: 14.5px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; letter-spacing: -0.02em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* logo */
.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none; }
.logo i { width: 28px; height: 28px; border-radius: 8px; background: #111418; display: grid; place-items: center; }
.logo i svg { width: 15px; height: 15px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--btn-bg); background: var(--btn-bg); color: var(--btn-fg);
  border-radius: 9px; padding: 10px 16px; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn:hover { background: var(--btn-hover); }
.btn.block { width: 100%; padding: 12px 16px; }
.btn.light { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn.light:hover { background: var(--bg); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; color: var(--ink); font-weight: 600; text-decoration: underline; cursor: pointer; }
.icon-btn { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.icon-btn:hover { background: var(--bg); }

/* forms */
.field { margin-bottom: 16px; }
.field label, .field .label { display: flex; justify-content: space-between; font-weight: 600; font-size: 13px; color: var(--ink); margin-bottom: 6px; }
.field label .opt { font-weight: 400; color: var(--mute); }
.input { width: 100%; border: 1px solid var(--field-line); background: var(--card); border-radius: 9px; padding: 10px 12px; font-size: 14.5px; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17,20,24,.08); }
.input.bad { border-color: var(--err); box-shadow: 0 0 0 3px rgba(198,40,40,.08); }
textarea.input { min-height: 84px; resize: vertical; }
.with-icon { position: relative; }
.with-icon .input { padding-right: 42px; }
.with-icon .eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; cursor: pointer; padding: 6px; color: var(--mute); }
.err-msg { color: var(--err); font-size: 12.5px; margin-top: 6px; display: flex; gap: 6px; align-items: flex-start; }
.err-msg:empty { display: none; }
.rules { list-style: none; padding: 0; margin: 8px 0 0; font-size: 12.5px; }
.rules li { display: flex; gap: 7px; align-items: center; color: var(--mute); padding: 1.5px 0; }
.rules li::before { content: ''; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid #A3AAB4; flex: none; }
.rules li.ok { color: var(--ok); }
.rules li.ok::before { border: 0; width: 12px; height: 12px; background: no-repeat center/12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.3l2.6 2.5L10 3.3' fill='none' stroke='%231E8A4C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.counter { text-align: right; font-size: 12px; color: var(--mute); margin-top: 4px; }

/* segmented yes / maybe / no */
.qrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--soft); }
.qrow:last-of-type { border-bottom: 0; }
.qrow span { font-weight: 600; color: var(--ink); font-size: 13.5px; }
.seg { display: inline-flex; background: var(--soft); border-radius: 9px; padding: 3px; gap: 2px; flex: none; }
.seg button { border: 0; background: none; padding: 6px 14px; border-radius: 7px; font-size: 13px; cursor: pointer; color: var(--mute); }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.12); }

/* ============ auth screens ============ */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { position: relative; background: var(--art); overflow: hidden; padding: 32px; display: flex; flex-direction: column; }
.auth-art svg.streets { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-art > * { position: relative; }
.auth-art .pitch { margin: auto 0; max-width: 420px; }
.auth-art .pitch h1 { font-size: clamp(30px, 3.3vw, 44px); line-height: 1.06; }
.auth-art .pitch p { margin: 14px 0 0; font-size: 15px; color: var(--text); }
.legend { display: flex; gap: 18px; font-size: 13px; color: var(--text); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.auth-side { background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 32px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h2 { font-size: 26px; }
.auth-card .sub { color: var(--mute); margin: 6px 0 22px; }
.lockbar { display: flex; gap: 8px; align-items: center; background: var(--soft2); border-radius: 9px; padding: 8px 12px; font-size: 13px; color: var(--text); margin-bottom: 22px; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--text); }
.auth-note { text-align: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--mute); }

/* reset */
.reset-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; background: var(--card); border-bottom: 1px solid var(--line); }
.reset-wrap { max-width: 460px; margin: 48px auto; padding: 0 20px; }
.reset-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps { display: flex; gap: 8px; margin-bottom: 18px; }
.steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.steps span.on { background: var(--ink); }
.step-title { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.step-title b { width: 22px; height: 22px; border-radius: 50%; background: var(--btn-bg); color: var(--btn-fg); display: grid; place-items: center; font-size: 12px; }
.demo-mail { border: 1px dashed #C9CED6; border-radius: 10px; background: var(--bg); margin-bottom: 18px; overflow: hidden; }
.demo-mail .tag { font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 8px 12px; border-bottom: 1px dashed #C9CED6; display: flex; gap: 8px; align-items: center; }
.demo-mail dl { display: grid; grid-template-columns: 62px 1fr; gap: 3px 8px; margin: 0; padding: 10px 12px; font-size: 12.5px; border-bottom: 1px dashed #C9CED6; }
.demo-mail dt { color: var(--mute); }
.demo-mail dd { margin: 0; }
.demo-mail .body { padding: 10px 12px 14px; font-size: 13px; }
.demo-mail .code { font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: .14em; color: var(--ink); margin-top: 8px; }
.code-inputs { display: flex; gap: 8px; margin-bottom: 16px; }
.code-inputs input { width: 46px; height: 52px; text-align: center; font-size: 20px; font-weight: 600; border: 1px solid var(--field-line); border-radius: 9px; background: var(--card); }
.code-inputs input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17,20,24,.1); }
.success { background: #E8F5EC; color: var(--ok); border-radius: 9px; padding: 10px 12px; font-size: 13.5px; display: flex; gap: 8px; }

/* ============ map app ============ */
.app { position: fixed; inset: 0; }
#map { position: absolute; inset: 0; background: #EEF0EC; }
.float { position: absolute; z-index: 500; }
.chip-card { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); }
.brand { top: 16px; left: 16px; padding: 8px 12px; }
.account { top: 16px; right: 16px; display: flex; align-items: center; gap: 6px; padding: 5px 5px 5px 12px; font-size: 13px; }
.account .email { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account button { border: 0; background: var(--bg); border-radius: 8px; padding: 6px 10px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; font-weight: 500; }
.account button:hover { background: var(--soft2); }

.weather-card { top: 68px; left: 16px; width: 300px; padding: 14px; }
.wc-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.wc-head h3 { font-size: 14.5px; }
.wc-head small { color: var(--mute); font-size: 12px; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 10px; }
.slot { text-align: center; padding: 6px 2px; border-radius: 8px; }
.slot.now { background: var(--bg); }
.slot small { display: block; font-size: 11px; color: var(--mute); }
.slot b { display: block; font-family: var(--display); font-size: 20px; color: var(--ink); line-height: 1.2; }
.slot b.hot { color: var(--warn); }
.slot em { font-style: normal; font-size: 11px; color: var(--mute); }
.alerts { display: grid; gap: 6px; }
.alert { display: flex; gap: 9px; align-items: flex-start; background: var(--alert-bg); border: 1px solid var(--alert-line); border-radius: 8px; padding: 7px 10px; font-size: 12.5px; color: #5B4210; }
.alert svg { flex: none; width: 15px; height: 15px; margin-top: 1px; color: var(--warn); }
.alert.off { background: #F4F5F7; border-color: var(--line); color: var(--mute); }
.alert.off svg { color: var(--mute); }
.alert .ref { margin-left: auto; font-size: 11px; white-space: nowrap; }
.no-alerts { font-size: 12.5px; color: var(--mute); padding: 4px 0; }
.wc-more { margin-top: 10px; display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: 13px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); }

.layers { top: 68px; right: 16px; width: 240px; padding: 12px 14px; }
.layers h4 { margin: 0 0 8px; font-size: 12.5px; font-weight: 500; color: var(--mute); }
.layer { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13.5px; cursor: pointer; }
.layer .ring { width: 20px; height: 20px; border-radius: 50%; border: 2px solid; flex: none; }
.layer .name { flex: 1; }
.layer .count { color: var(--mute); font-size: 12px; }
.switch { position: relative; width: 34px; height: 20px; flex: none; }
.switch input { opacity: 0; position: absolute; inset: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; background: #C9CED6; border-radius: 20px; transition: .15s; pointer-events: none; }
.switch span::after { content: ''; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: .15s; }
.switch input:checked + span { background: var(--btn-bg); }
.switch input:checked + span::after { transform: translateX(14px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(17,20,24,.2); }
.filters { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; }
.filters h4 { margin-bottom: 6px; }
.fchips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.fchip { border: 1px solid var(--line); background: var(--card); border-radius: 20px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.fchip[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.fchip .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }

.zoom { right: 16px; bottom: 76px; display: flex; flex-direction: column; gap: 6px; }
.zoom .stack { display: flex; flex-direction: column; background: var(--card); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.zoom .stack button { width: 38px; height: 38px; border: 0; background: var(--card); font-size: 18px; cursor: pointer; color: var(--ink); }
.zoom .stack button + button { border-top: 1px solid var(--line); }
.zoom .stack button:hover { background: var(--bg); }
.zoom .stack button.on { color: var(--fountain); }
.add-btn { right: 16px; bottom: 20px; border-radius: 22px; padding: 11px 18px; box-shadow: var(--shadow); }
.tip { left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--card); border-radius: 20px; padding: 7px 14px; font-size: 12.5px; box-shadow: var(--shadow); white-space: nowrap; }
.tip u { font-weight: 600; }
.leaflet-control-attribution { font-size: 10.5px !important; background: var(--attr-bg) !important; color: var(--mute); border-radius: 6px 0 0 0; }

/* markers */
.pin { width: 30px; height: 38px; }
.pin svg { width: 30px; height: 38px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.me-dot { width: 16px; height: 16px; border-radius: 50%; background: #111418; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.drop-pin svg { width: 26px; height: 36px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }

/* leaflet popup restyle */
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--card); color: var(--text); }
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--shadow); padding: 0; }
.leaflet-popup-content { margin: 0; width: 290px !important; font-family: var(--font); font-size: 13px; line-height: 1.45; }
.leaflet-popup-close-button { display: none; }
.pcard { padding: 14px 16px 12px; }
.pcard .kind { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--mute); }
.pcard .kind i { width: 8px; height: 8px; border-radius: 50%; }
.pcard h3 { font-size: 16.5px; margin: 6px 0 2px; }
.pcard .addr { color: var(--mute); margin: 0 0 10px; font-size: 12.5px; }
.pcard .x { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 7px; border: 0; background: var(--bg); cursor: pointer; font-size: 14px; color: var(--ink); }
.prow { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--soft); }
.prow span:first-child { color: var(--text); }
.prow b { font-weight: 600; color: var(--ink); text-align: right; }
.prow b.yes { color: var(--ok); } .prow b.maybe { color: var(--warn); } .prow b.no { color: var(--err); }
.pnote { background: var(--bg); border-radius: 8px; padding: 8px 10px; margin-top: 8px; color: var(--text); }
.pmeta { font-size: 11.5px; color: var(--mute); margin-top: 8px; }
.add-here { padding: 14px 16px; }
.add-here h3 { font-size: 15px; }
.add-here p { margin: 2px 0 10px; color: var(--mute); font-size: 12.5px; }
.add-here .where { display: flex; gap: 8px; background: var(--bg); border-radius: 9px; padding: 9px 10px; margin-bottom: 12px; font-weight: 600; color: var(--ink); }
.add-here .row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }

/* modal */
.backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(17,20,24,.35); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: var(--card); border-radius: 16px; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal.wide { max-width: 520px; }
.mhead { display: flex; align-items: flex-start; gap: 10px; padding: 16px 16px 12px; border-bottom: 1px solid var(--line); }
.mhead .titles { flex: 1; }
.mhead small { font-size: 12px; color: var(--mute); font-weight: 500; }
.mhead h2 { font-size: 19px; display: flex; align-items: center; gap: 8px; }
.mhead h2 i { width: 10px; height: 10px; border-radius: 50%; }
.mbody { padding: 16px; overflow: auto; }
.mfoot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.kindopt { position: relative; text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 14px; cursor: pointer; }
.kindopt[aria-pressed="true"] { border: 2px solid var(--ink); padding: 13px; }
.kindopt .bub { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; margin-bottom: 10px; box-shadow: 0 0 0 3px var(--card), 0 0 0 4px currentColor; }
.kindopt b { display: block; color: var(--ink); font-size: 15px; }
.kindopt small { color: var(--mute); font-size: 12.5px; }
.kindopt .check { position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-radius: 50%; background: var(--btn-bg); color: var(--btn-fg); display: none; place-items: center; font-size: 11px; }
.kindopt[aria-pressed="true"] .check { display: grid; }
.addr-hint { display: flex; gap: 8px; align-items: center; background: var(--bg); border-radius: 9px; padding: 9px 12px; font-size: 12.5px; color: var(--text); }
.addr-input { position: relative; }
.addr-input .input { padding-left: 34px; padding-right: 86px; }
.addr-input .pinico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--mute); }
.addr-input .from { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 11.5px; font-weight: 600; border: 0; border-radius: 6px; background: var(--soft); padding: 4px 8px; }

/* weather details */
.wx-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.wx-table th { text-align: right; font-weight: 600; color: var(--text); padding: 6px 4px; font-size: 12px; }
.wx-table th small { display: block; color: var(--mute); font-weight: 400; }
.wx-table th:first-child, .wx-table td:first-child { text-align: left; }
.wx-table td { text-align: right; padding: 9px 4px; border-top: 1px solid var(--soft); }
.wx-table td:first-child { font-weight: 600; color: var(--ink); }
.wx-table td small { display: block; font-weight: 400; color: var(--mute); font-size: 11px; }
.wx-table td.hit { color: var(--warn); font-weight: 700; }
.wx-cards { display: none; grid-template-columns: 1fr 1fr; gap: 8px; }
.wx-cards .c { border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 12.5px; }
.wx-cards .c b { font-family: var(--display); font-size: 20px; color: var(--ink); display: block; margin: 2px 0 4px; }
.wx-cards .c div { display: flex; justify-content: space-between; }
.wx-cards .hit { color: var(--warn); font-weight: 700; }
.wx-foot { font-size: 11.5px; color: var(--mute); margin-top: 12px; }
.section-label { font-size: 12.5px; color: var(--mute); margin: 16px 0 4px; font-weight: 500; }

/* mobile bars */
.m-bar, .m-seg { display: none; }

#toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%) translateY(10px); background: var(--btn-bg); color: var(--btn-fg); padding: 10px 18px; border-radius: 20px;
  font-weight: 500; opacity: 0; pointer-events: none; transition: .2s; z-index: 2000; max-width: calc(100% - 32px); text-align: center; }
#toast.show { opacity: 1; transform: translateX(-50%); }

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { min-height: auto; padding: 22px 20px 26px; }
  .auth-art .pitch { margin: 26px 0 0; }
  .auth-art .legend { display: none; }
  .auth-side { align-items: flex-start; padding: 24px 20px 40px; }
}
@media (max-width: 720px) {
  .brand { top: 10px; left: 10px; }
  .account { top: 10px; right: 10px; }
  .account .email { display: none; }
  .weather-card, .layers, .tip { display: none; }
  .m-seg { display: flex; top: 60px; left: 10px; right: 10px; gap: 6px; }
  .m-seg button { flex: 1; border: 0; background: var(--card); border-radius: 20px; padding: 8px 6px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow); display: inline-flex; gap: 6px; align-items: center; justify-content: center; color: var(--mute); }
  .m-seg button[aria-pressed="true"] { color: var(--ink); }
  .m-seg button i { width: 9px; height: 9px; border-radius: 50%; opacity: .35; }
  .m-seg button[aria-pressed="true"] i { opacity: 1; }
  .m-bar { display: flex; top: 104px; left: 10px; right: 10px; padding: 10px 14px; justify-content: space-between; align-items: center; font-size: 13.5px; cursor: pointer; border: 0; }
  .m-bar b { color: var(--ink); }
  .m-bar .pill { background: var(--alert-bg); color: var(--warn); border-radius: 20px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
  .zoom { bottom: 80px; right: 10px; }
  .add-btn { left: 10px; right: 10px; bottom: 16px; }
  .backdrop { align-items: flex-end; padding: 0; }
  .modal, .modal.wide { max-width: none; border-radius: 18px 18px 0 0; max-height: 92vh; }
  .leaflet-popup-content { width: 260px !important; }
  .wx-table { display: none; }
  .wx-cards { display: grid; }
}

/* soften the swisstopo base map so pins and dots stand out */
.swiss-tiles { filter: grayscale(1) contrast(.42) brightness(1.32); }

.pfoot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; }
.pfoot .pmeta { margin-top: 0; }
.del-btn { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #F1C9C5; background: #FDF1F0; color: var(--err); border-radius: 8px; padding: 5px 10px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.del-btn:hover { background: #FBE3E1; }
.btn.danger { background: var(--err); border-color: var(--err); }
.btn.danger:hover { background: #A61F1F; }
.maplibregl-canvas { outline: none; }

/* ============ theme toggle ============ */
.theme-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 20px; padding: 6px 11px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.theme-btn:hover { border-color: var(--mute); }
.theme-fab { position: fixed; top: 24px; right: 24px; z-index: 50; box-shadow: var(--shadow); }
.account .theme-btn { border: 0; background: var(--bg); padding: 6px 9px; }
.reset-top .right { display: flex; gap: 14px; align-items: center; }
@media (max-width: 860px) { .theme-fab { top: 16px; right: 16px; } }

/* ============ dark theme ("neon") ============ */
[data-theme="dark"] {
  color-scheme: dark;
  --ink: #EEF2F8; --text: #C9D2DE; --mute: #8C97A8; --line: #243045; --bg: #0A0F1A; --card: #111827;
  --btn-bg: #22D3EE; --btn-fg: #06121A; --btn-hover: #67E8F9;
  --field-line: #2C3A52; --soft: #1A2333; --soft2: #1E293B; --art: #0B1220;
  --street: #16233A; --river: #0EA5E9; --lake: #0B2A4A;
  --alert-bg: #241C0B; --alert-line: #5C4512; --warn: #FBBF24; --ok: #34D399; --err: #F87171;
  --attr-bg: rgba(10,15,26,.8); --halo: #070B14;
  --shadow: 0 8px 30px rgba(0,0,0,.55), 0 0 0 1px rgba(34,211,238,.08);
}
[data-theme="dark"] body { background: var(--bg); }
[data-theme="dark"] .alert { color: #FDE68A; }
[data-theme="dark"] .alert.off { background: var(--soft); color: var(--mute); }
[data-theme="dark"] .logo i { background: #070B14; box-shadow: 0 0 0 1px #22D3EE, 0 0 14px rgba(34,211,238,.55); }
[data-theme="dark"] .streets .river { filter: drop-shadow(0 0 10px rgba(14,165,233,.8)); }
[data-theme="dark"] .success { background: #0D2A20; }
[data-theme="dark"] .del-btn { background: #2A1215; border-color: #5B1F25; }
[data-theme="dark"] .prow b.yes { color: var(--ok); }
[data-theme="dark"] .pin svg { filter: drop-shadow(0 0 7px var(--glow)) drop-shadow(0 0 2px var(--glow)); }
[data-theme="dark"] .me-dot { background: #22D3EE; border-color: #070B14; box-shadow: 0 0 12px #22D3EE; }
[data-theme="dark"] .drop-pin svg { filter: drop-shadow(0 0 8px #22D3EE); }
[data-theme="dark"] .drop-pin path { fill: #22D3EE; stroke: #070B14; }
[data-theme="dark"] .swiss-tiles { filter: invert(1) hue-rotate(180deg) grayscale(.3) brightness(.75) contrast(1.1); }
[data-theme="dark"] .leaflet-container { background: #070B14; }
[data-theme="dark"] .add-btn { box-shadow: 0 0 22px rgba(34,211,238,.45); }
[data-theme="dark"] .slot.now { background: var(--soft); }
[data-theme="dark"] .rules li.ok::before { filter: hue-rotate(10deg) brightness(1.6); }
[data-theme="dark"] .kindopt[aria-pressed="true"] { border-color: #22D3EE; box-shadow: 0 0 14px rgba(34,211,238,.25); }
[data-theme="dark"] .input:focus { border-color: #22D3EE; box-shadow: 0 0 0 3px rgba(34,211,238,.18); }
