#map { position: fixed; inset: 0; z-index: 0; }
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 500; display: flex; justify-content: space-between; align-items: center;
  padding: calc(env(safe-area-inset-top) + 10px) 14px 10px; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.logo { background: #fff; padding: 8px 14px; border-radius: 16px; box-shadow: var(--shadow); display: flex; align-items: center; }
.logo img { height: 28px; display: block; }
.badge { background: var(--jus); color: var(--nuit); border-radius: 999px; padding: 1px 7px; font-size: 12px; }
.locate { position: fixed; right: 14px; bottom: calc(46vh + 14px); z-index: 500; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: #fff; box-shadow: var(--shadow); font-size: 22px; cursor: pointer; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 600; height: 46vh; background: var(--card); border-radius: 28px 28px 0 0;
  box-shadow: 0 -8px 30px rgba(16,24,40,.12); padding: 8px 16px calc(env(safe-area-inset-bottom) + 12px); display: flex; flex-direction: column;
  transition: height .25s; max-width: 640px; margin: 0 auto; }
.sheet.expanded { height: 82vh; }
.grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 4px auto 12px; cursor: pointer; }
.actions { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: #f2f4f7; border-radius: 12px; padding: 4px; margin: 12px 0 6px; }
.seg button { border: 0; background: transparent; padding: 9px; border-radius: 9px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.list { overflow-y: auto; flex: 1; margin: 0 -4px; padding: 0 4px; }
.st { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.st:last-child { border-bottom: 0; }
.st .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 17px; flex: none; }
.st .ico.ok { background: var(--brand-soft); color: var(--brand-ink); }
.st .ico.low { background: var(--zeste-pale); color: var(--zeste-encre); }
.st .ico.none { background: #f2f4f7; color: #98a2b3; }
.st .meta { flex: 1; min-width: 0; }
.st .name { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st .sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.st .dist { font-weight: 600; font-size: 14px; color: var(--muted); }

.modal { position: fixed; inset: 0; z-index: 1000; background: rgba(16,24,40,.45); display: flex; align-items: flex-end; justify-content: center; }
.modal-card { position: relative; background: #fff; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
  border-radius: 22px 22px 0 0; padding: 22px 18px calc(env(safe-area-inset-bottom) + 18px); animation: up .2s ease-out; }
@media (min-width: 700px) { .modal { align-items: center; } .modal-card { border-radius: 22px; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.close { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #f2f4f7; cursor: pointer; }
h2 { margin: 0 34px 4px 0; font-size: 21px; letter-spacing: -.3px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.kv > div { background: #f9fafb; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.kv b { display: block; font-size: 24px; letter-spacing: -.5px; }
.kv span { font-size: 13px; color: var(--muted); }
.nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 14px; }
.price { background: var(--brand-soft); color: var(--brand-ink); border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.5; margin: 12px 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #344054; margin: 12px 0; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); }
#payment-element { margin: 14px 0; }
.timer { text-align: center; margin: 18px 0 8px; }
.timer .big { font-family: var(--font-display); font-size: 46px; font-weight: 700; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; }
.slotbig { text-align: center; background: var(--nuit); color: #fff; border-radius: 18px; padding: 18px; margin: 14px 0; }
.slotbig b { font-family: var(--font-display); color: var(--jus); font-size: 54px; display: block; line-height: 1; }
.rent-row { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 10px 0; cursor: pointer; }
#qr-reader { width: 100%; border-radius: 14px; overflow: hidden; margin-top: 12px; }
.pin { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); color: #fff;
  font-weight: 800; font-size: 13px; border: 2px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.pin span { transform: rotate(45deg); }
.pin.ok { background: var(--jus); color: var(--nuit); } .pin.low { background: var(--zeste); color: var(--nuit); } .pin.none { background: var(--brume); }
.me-dot { width: 18px; height: 18px; background: var(--blue); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 6px rgba(46,144,250,.25); }

.price b, .kv b { font-family: var(--font-display); }
.tarif { display: inline-block; background: var(--zeste); color: var(--nuit); font-family: var(--font-display); font-weight: 700; border-radius: 999px; padding: 2px 10px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; padding: 10px 0 4px; font-size: 12px; color: var(--brume); border-top: 1px solid var(--line); margin-top: 6px; }
.foot-links a { color: var(--brume); text-decoration: none; }
.foot-links a.host { color: var(--jus-fonce); font-weight: 600; }
