* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.4; }
a { color: var(--deep); }
button { font: inherit; color: inherit; cursor: pointer; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 14px; }

/* ---------- top ---------- */
.top {
  padding: calc(10px + env(safe-area-inset-top)) 0 14px;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 206, 61, .35) 0, rgba(255, 206, 61, 0) 38%),
    radial-gradient(circle at 100% 10%, rgba(95, 177, 221, .28) 0, rgba(95, 177, 221, 0) 40%),
    var(--paper);
  border-bottom: 1px solid var(--border);
}
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { border-radius: 12px; box-shadow: var(--shadow); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.brand-text small { color: var(--ink-mute); font-size: .78rem; font-weight: 600; }
.round { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--deep); color: #fff; font-weight: 800; font-size: 1.1rem; box-shadow: var(--shadow); transition: transform .3s var(--spring); }
.round:active { transform: scale(.92); }
.round .dot { position: absolute; top: -2px; right: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--pink); border: 2px solid var(--paper); }
.round .dot[hidden] { display: none; }
.tag { margin: 14px 0 10px; font-size: 1.5rem; line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; }
@media (min-width: 600px) { .tag { font-size: 1.9rem; } }
.search { position: relative; display: flex; align-items: center; gap: 10px; background: var(--paper); border-radius: 999px; padding: 0 14px 0 16px; height: 54px; box-shadow: var(--shadow); color: var(--ink-mute); }
.search::before { content: ""; position: absolute; inset: 0; padding: 2px; border-radius: 999px; background: var(--g-sky); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.search input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1.05rem; font-weight: 600; color: var(--ink); min-width: 0; }
.search input::placeholder { color: var(--ink-mute); font-weight: 500; }
.search input::-webkit-search-cancel-button { display: none; }
.clear { border: 0; background: var(--border); color: var(--ink); width: 28px; height: 28px; border-radius: 50%; font-size: 1.1rem; line-height: 1; }

.searchbar { background: var(--paper); border-bottom: 1px solid var(--border); padding: 12px 0; }
/* ---------- categories ---------- */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
@media (min-width: 600px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
.cat-grid .cat { min-width: 0; flex-direction: row; align-items: center; gap: 10px; padding: 10px 12px; }
.cat-grid .cat .ico { position: relative; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-size: 1.3rem; background: color-mix(in srgb, var(--c) 16%, var(--tint)); flex: 0 0 auto; overflow: hidden; }
.cat-grid .cat .ico img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-grid .cat.on .ico { background: rgba(255,255,255,.25); }
.cat-grid .cat .txt { display: flex; flex-direction: column; min-width: 0; }
.cat-grid .cat b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-grid .cat.hid { display: none; }
.cat-more { display: block; width: 100%; margin-top: 8px; padding: 10px; border: 0; border-radius: 999px; background: var(--paper); color: var(--deep); font-weight: 800; box-shadow: var(--shadow); }
.cat-more[hidden] { display: none; }

.cats { margin: 14px -14px 0; padding: 0 14px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cats::-webkit-scrollbar { display: none; }
.cat-row { display: flex; gap: 8px; width: max-content; padding: 4px 0 8px; }
.cat {
  --c: var(--cat-other); position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  min-width: 118px; padding: 10px 12px; border: 0; border-radius: var(--radius-sm); background: var(--paper);
  text-align: left; box-shadow: var(--shadow); transition: transform .35s var(--spring), background .2s, color .2s;
}
.cat::before { content: ""; position: absolute; inset: 0; padding: 2px; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--c) 0%, color-mix(in srgb, var(--c) 45%, var(--tint)) 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.cat b { font-size: .86rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; }
.cat small { font-size: .74rem; font-weight: 700; color: var(--c); }
.cat.on { background: var(--c); color: #fff; transform: translateY(-2px); }
.cat.on small { color: rgba(255, 255, 255, .85); }
.cat:active { transform: scale(.96); }

/* ---------- controls ---------- */
.controls { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { position: relative; border: 0; background: var(--paper); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: .88rem; box-shadow: var(--shadow); transition: transform .35s var(--spring); }
.chip::before { content: ""; position: absolute; inset: 0; padding: 1.5px; border-radius: 999px; background: var(--g-sky); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: .7; }
.chip.on { background: var(--deep); color: #fff; }
.chip.link { text-decoration: none; color: var(--deep); background: var(--paper-warm); }
.chip.link::before { background: var(--g-sun); }
.chip.toggle.on { background: var(--sun); color: var(--ink); }
.chip:active { transform: scale(.95); }
.chip b { font-weight: 800; }
.townrow select {
  width: 100%; height: 46px; border: 0; border-radius: var(--radius-sm); background: var(--paper); font: inherit; font-weight: 700; font-size: .95rem;
  padding: 0 40px 0 14px; box-shadow: var(--shadow); color: var(--ink); appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%231F5E8A' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center;
}
.count { margin: 14px 2px 8px; font-size: .86rem; font-weight: 700; color: var(--ink-mute); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.count button { border: 0; background: var(--border); border-radius: 999px; padding: 3px 10px; font-size: .78rem; font-weight: 700; }

/* ---------- cards ---------- */
.list { display: grid; gap: 10px; }
@media (min-width: 700px) { .list { grid-template-columns: 1fr 1fr; } }
.card {
  --c: var(--cat-other); position: relative; display: block; width: 100%; text-align: left; border: 0; background: var(--paper);
  border-radius: var(--radius); padding: 14px 14px 12px; box-shadow: var(--shadow); transition: transform .35s var(--spring), box-shadow .2s;
  animation: pop .45s var(--spring) both;
}
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.card::before { content: ""; position: absolute; inset: 0; padding: 2px; border-radius: var(--radius); background: linear-gradient(135deg, var(--c) 0%, color-mix(in srgb, var(--c) 35%, var(--tint)) 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: .9; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card:active { transform: scale(.985); }
.card.pcard { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px; }
.pcard .body { position: relative; }
.pcard .body h3 { padding-right: 30px; }
.pcard .star { top: -4px; right: -6px; }
.card .cat-pill { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--c); margin-bottom: 4px; }
.card h3 { margin: 0 0 2px; font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; padding-right: 36px; }
.card .emp { font-weight: 600; color: var(--ink-mute); font-size: .9rem; }
.card .facts { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; font-size: .86rem; font-weight: 700; }
.card .facts .pay { color: var(--deep); }
.card .facts .pay.none { color: var(--ink-mute); font-weight: 600; }
.card .when { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: .76rem; font-weight: 600; color: var(--ink-mute); }
.card .when .soon { color: var(--sun-edge); font-weight: 800; }
.star { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; font-size: 1.25rem; color: var(--border-strong); line-height: 1; transition: transform .35s var(--spring), color .2s; z-index: 1; }
.star.on { color: var(--sun-edge); transform: scale(1.15); }
.star:active { transform: scale(.85); }
.more { display: block; width: 100%; margin: 14px 0 6px; padding: 14px; border: 0; border-radius: 999px; background: var(--deep); color: #fff; font-weight: 800; font-size: 1rem; box-shadow: var(--shadow); }
.welcome { background: var(--paper-warm); border-radius: var(--radius); padding: 18px; margin-top: 14px; text-align: center; }
.welcome h2 { margin: 0 0 6px; font-size: 1.1rem; }
.welcome p { margin: 0; color: var(--ink-mute); font-weight: 600; }
.foot { padding: 26px 14px calc(40px + env(safe-area-inset-bottom)); color: var(--ink-mute); font-size: .82rem; font-weight: 600; }
.foot p { margin: 0 0 8px; }

/* ---------- sheet ---------- */
.sheet-wrap { position: fixed; inset: 0; background: rgba(20, 32, 43, .45); display: flex; align-items: flex-end; justify-content: center; z-index: 50; animation: fade .2s both; }
.sheet-wrap[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet { background: var(--paper); border-radius: 24px 24px 0 0; width: 100%; max-width: 620px; max-height: 88vh; overflow: auto; padding: 18px 18px calc(22px + env(safe-area-inset-bottom)); animation: up .45s var(--spring) both; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 640px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 24px; max-height: 84vh; } }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--border); margin: -6px auto 14px; }
.sheet .cat-pill { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; color: var(--c, var(--deep)); }
.sheet h2 { margin: 4px 0 2px; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.sheet .emp { font-weight: 700; color: var(--ink-mute); margin-bottom: 12px; }
.sheet .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 14px; }
.sheet .fact { background: var(--bg); border-radius: var(--radius-sm); padding: 10px 12px; }
.sheet .fact small { display: block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-mute); }
.sheet .fact b { font-size: .95rem; font-weight: 800; }
.sheet .fact.wide { grid-column: 1 / -1; }
.sheet .summary { font-size: .98rem; line-height: 1.5; color: var(--ink); margin: 0 0 14px; }
.sheet .summary.empty { color: var(--ink-mute); font-style: italic; }
.sheet .src { font-size: .78rem; font-weight: 600; color: var(--ink-mute); margin: 0 0 14px; }
.btn { display: block; width: 100%; padding: 14px; border: 0; border-radius: 999px; font-weight: 800; font-size: 1rem; text-align: center; text-decoration: none; margin-top: 8px; transition: transform .35s var(--spring); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--g-sky); color: #fff; box-shadow: var(--shadow-md); }
.btn.secondary { background: var(--paper); color: var(--deep); position: relative; }
.btn.secondary::before { content: ""; position: absolute; inset: 0; padding: 2px; border-radius: 999px; background: var(--g-sky); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.btn.secondary.on { background: var(--sun); color: var(--ink); }
.btn-row { display: flex; gap: 8px; }
.btn-row .btn { margin-top: 8px; }
.help-sheet h2 { margin-top: 6px; }
.help-sheet h3 { margin: 14px 0 4px; font-size: .95rem; }
.help-sheet p, .help-sheet li { font-size: .95rem; line-height: 1.5; }
.help-sheet ul { padding-left: 20px; margin: 0; }
.help-sheet .btn { margin-top: 16px; }

/* ---------- pills ---------- */
.ver { position: fixed; right: 8px; bottom: calc(6px + env(safe-area-inset-bottom)); font-size: .68rem; font-weight: 700; color: var(--ink-mute); opacity: .55; pointer-events: none; }
.update { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--deep); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 800; box-shadow: var(--shadow-md); z-index: 60; cursor: pointer; }
.update[hidden] { display: none; }

.band .round.ghost.on { background: var(--sun); color: var(--ink); }
.band .round.ghost { font-size: .95rem; }

/* ---------- the map view (on the list page, in a box — the Days Out way) ---------- */
body.view-map .cats, body.view-map .controls, body.view-map #count, body.view-map #list, body.view-map #more, body.view-map #welcome { display: none; }
.mapview[hidden] { display: none; }
.mapview { margin-top: 12px; }
.map-cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 4px 14px 10px; -webkit-overflow-scrolling: touch; }
.map-cats::-webkit-scrollbar { display: none; }
.map-cats .chip { flex: 0 0 auto; white-space: nowrap; }
.map-cats .chip.on { background: var(--c); color: #fff; }
.map-cats .chip::before { background: linear-gradient(135deg, var(--c, var(--sky)) 0%, color-mix(in srgb, var(--c, var(--sky)) 45%, var(--tint)) 100%); }
/* never the whole screen: a strip of page always stays in reach to scroll by (one-finger drags pan the map) */
.mapbox { position: relative; height: 72vh; height: 72svh; min-height: 300px; max-height: 760px; border-radius: var(--radius); overflow: hidden; background: #dfeaf2; box-shadow: var(--shadow-md); }
.mapbox::after { content: ""; position: absolute; inset: 0; padding: 2px; border-radius: var(--radius); background: var(--g-sky); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; z-index: 3; }
#mapCanvas { position: absolute; inset: 0; }
.map-loading { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; color: var(--deep); z-index: 2; }
.map-loading[hidden] { display: none; }
.map-note { margin: 10px 2px 0; font-size: .86rem; font-weight: 600; color: var(--ink-mute); }
.map-note b { color: var(--ink); }
#mapCanvas .maplibregl-ctrl-attrib-button { display: none; }
#mapCanvas .maplibregl-ctrl-group { border-radius: 12px; box-shadow: var(--shadow); }

/* the card over the map: centred, so it never hides behind an edge; tap outside / Esc / Back closes it */
.mapcard-wrap { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(20, 32, 43, .42); animation: fade .15s both; }
.mapcard-wrap[hidden] { display: none; }
.mapcard { position: relative; width: 360px; max-width: 100%; max-height: min(74vh, 640px); display: flex; animation: cardpop .3s var(--spring) both; }
@keyframes cardpop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.mapcard-body { flex: 1; overflow: auto; background: var(--paper); border-radius: var(--radius); padding: 16px; box-shadow: 0 18px 50px rgba(20, 32, 43, .35); overscroll-behavior: contain; }
.mapcard h2 { margin: 0; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.mapcard .msub { margin: 2px 0 12px; color: var(--ink-mute); font-weight: 700; font-size: .88rem; }
.mapcard .mback { border: 0; background: var(--bg); color: var(--deep); border-radius: 999px; padding: 6px 12px; font-weight: 800; margin-bottom: 8px; }
.mapcard .mlist { display: grid; gap: 8px; }
.memp, .mjob { --c: var(--sky); position: relative; display: flex; width: 100%; border: 0; text-align: left; background: var(--paper); border-radius: var(--radius-sm); padding: 11px 12px; box-shadow: var(--shadow); transition: transform .3s var(--spring); }
.memp::before, .mjob::before { content: ""; position: absolute; inset: 0; padding: 1.5px; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--c) 0%, color-mix(in srgb, var(--c) 40%, var(--tint)) 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.memp:active, .mjob:active { transform: scale(.97); }
.memp { align-items: center; justify-content: space-between; gap: 10px; }
.memp b { font-weight: 800; font-size: .97rem; }
.memp .n { flex: 0 0 auto; min-width: 30px; text-align: center; background: var(--deep); color: #fff; border-radius: 999px; padding: 4px 9px; font-weight: 800; font-size: .82rem; }
.mjob { flex-direction: column; gap: 3px; }
.mjob small { font-size: .74rem; font-weight: 800; color: var(--ink-mute); }
.mjob b { font-weight: 800; font-size: .97rem; line-height: 1.2; }
.mjob span { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .82rem; font-weight: 700; }
.mjob i { font-style: normal; color: var(--deep); }
.mjob i.none { color: var(--ink-mute); font-weight: 600; }
.mjob em { font-style: normal; color: var(--ink-mute); font-weight: 600; }
.mjob em.soon { color: var(--sun-edge); font-weight: 800; }
.mapcard .btn { margin-top: 12px; }

/* ---------- v5: live counts, back to the map, empty-state hints ---------- */
.cat.zero:not(.on) { opacity: .5; }
.count b { color: var(--ink); font-weight: 800; }
.backbar { position: sticky; top: calc(8px + env(safe-area-inset-top)); z-index: 20; display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 10px 16px 10px 12px; border: 0; border-radius: 999px; background: var(--sun); color: var(--ink); font-weight: 800; font-size: .95rem; box-shadow: var(--shadow-md); transition: transform .35s var(--spring); animation: cardpop .35s var(--spring) both; }
.backbar[hidden] { display: none; }
.backbar .arr { font-size: 1.4rem; line-height: .8; margin-top: -2px; }
.backbar small { font-weight: 700; color: color-mix(in srgb, var(--ink) 65%, transparent); }
.backbar:active { transform: scale(.96); }
.tries { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.pcard .pic .badge { position: absolute; left: 6px; top: 6px; width: 38px; height: 38px; border-radius: 10px; background: var(--paper); box-shadow: 0 2px 8px rgba(0,0,0,.18); overflow: hidden; }
.pcard .pic .badge img { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); object-fit: contain; }
.pcard .pic .badge:not(:has(img)) { display: none; }
.map-cats .chip { display: inline-flex; align-items: center; gap: 6px; padding-left: 6px; }
.map-cats .chip[data-cat=""] { padding-left: 14px; }
.map-cats .chip .cp { position: relative; width: 24px; height: 24px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; background: color-mix(in srgb, var(--c) 25%, var(--tint)); }
.map-cats .chip .cp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- v5: the town card over the map ---------- */
.mapcard { width: 380px; max-height: min(80vh, 680px); }
.mapcard-body { padding: 0; border-radius: 22px; }
.mc-hero { --c: var(--sky); position: relative; height: 150px; overflow: hidden; border-radius: 22px 22px 0 0; background: color-mix(in srgb, var(--c) 30%, var(--tint)); }
.mc-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.mc-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 25, 40, .15) 0%, rgba(10, 25, 40, 0) 35%, rgba(10, 25, 40, .72) 100%); }
.mc-x, .mc-back { position: absolute; top: 10px; z-index: 2; border: 0; background: rgba(255,255,255,.92); color: #14202B; font-weight: 800; box-shadow: 0 2px 10px rgba(0,0,0,.2); transition: transform .3s var(--spring); }
.mc-x { left: 10px; width: 36px; height: 36px; border-radius: 50%; font-size: 1.4rem; line-height: 1; }
.mc-back { left: 54px; height: 36px; border-radius: 999px; padding: 0 14px; font-size: .9rem; }
.mc-x:active, .mc-back:active { transform: scale(.92); }
.mc-title { position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 1; color: #fff; }
.mc-title small { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; opacity: .9; }
.mapcard .mc-title h2 { margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.mc-body { padding: 14px 14px 16px; }
.mc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mc-stats > div { background: var(--bg); border-radius: 14px; padding: 9px 8px; text-align: center; }
.mc-stats b { display: block; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; color: var(--deep); }
.mc-stats small { font-size: .7rem; font-weight: 700; color: var(--ink-mute); }
.mc-soon { margin: 8px 0 0; font-size: .8rem; font-weight: 800; color: var(--sun-edge); text-align: center; }
.mc-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mc-cats span { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 700; color: var(--ink-mute); background: color-mix(in srgb, var(--c) 9%, var(--tint)); border-radius: 999px; padding: 4px 9px; }
.mc-cats i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.mc-cats b { color: var(--ink); }
.mc-h { margin: 16px 2px 8px; font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-mute); }
.memp, .mjob { align-items: center; gap: 10px; padding: 8px 10px 8px 8px; }
.mjob { flex-direction: row; }
.mthumb { position: relative; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 11px; overflow: hidden; background: color-mix(in srgb, var(--c) 25%, var(--tint)); }
.mthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mav { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: 1rem; color: #fff; background: linear-gradient(135deg, var(--c) 0%, color-mix(in srgb, var(--c) 60%, #000) 140%); }
.mtxt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.memp .mtxt small { font-size: .74rem; font-weight: 700; color: var(--ink-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.memp .n { min-width: 0; background: color-mix(in srgb, var(--c) 14%, var(--tint)); color: var(--ink); font-size: .74rem; padding: 4px 8px; }
.chev { flex: 0 0 auto; font-size: 1.4rem; font-weight: 700; color: var(--border-strong); line-height: 1; }

/* ---------- v5: the job sheet ---------- */
.sheet { padding: 0; position: relative; }
.sheet .js-hero { position: relative; height: 190px; overflow: hidden; border-radius: 24px 24px 0 0; background: color-mix(in srgb, var(--c) 30%, var(--tint)); }
.js-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.js-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 25, 40, .25) 0%, rgba(10, 25, 40, 0) 40%, rgba(10, 25, 40, .45) 100%); }
.js-back { position: absolute; z-index: 2; left: 12px; top: 12px; height: 38px; border: 0; border-radius: 999px; padding: 0 16px 0 12px; background: rgba(255,255,255,.94); color: #14202B; font-weight: 800; font-size: .95rem; box-shadow: 0 2px 12px rgba(0,0,0,.22); display: inline-flex; align-items: center; gap: 6px; transition: transform .3s var(--spring); }
.js-back span { font-size: 1.4rem; line-height: .8; margin-top: -2px; }
.js-back:active { transform: scale(.94); }
.js-cat { position: absolute; z-index: 1; right: 14px; bottom: 12px; background: var(--c); color: #fff; border-radius: 999px; padding: 5px 11px; font-size: .72rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.js-main { padding: 0 18px 8px; }
.js-head { display: flex; gap: 12px; align-items: flex-start; margin-top: -26px; position: relative; z-index: 2; }
.js-logo { position: relative; flex: 0 0 auto; width: 60px; height: 60px; border-radius: 16px; background: var(--paper); box-shadow: 0 4px 16px rgba(20, 32, 43, .18); overflow: hidden; display: grid; place-items: center; border: 3px solid var(--paper); }
.js-logo i { font-style: normal; font-weight: 800; font-size: 1.15rem; color: #fff; width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--c) 0%, color-mix(in srgb, var(--c) 60%, #000) 140%); }
.js-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--paper); padding: 4px; }
.js-head > div { padding-top: 32px; min-width: 0; }
.sheet .js-head h2 { margin: 0; font-size: 1.4rem; }
.sheet .js-head .emp { margin: 2px 0 0; }
.js-pay { display: flex; align-items: center; gap: 12px; margin: 16px 0 10px; padding: 12px 14px; border-radius: 16px; background: var(--pay-bg); }
.js-pay svg, .js-fact svg { flex: 0 0 auto; width: 26px; height: 26px; fill: none; stroke: var(--deep); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.js-pay svg { width: 30px; height: 30px; stroke: var(--pay-ink); }
.js-pay small, .js-fact small { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-mute); }
.js-pay b { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.js-pay.none { background: var(--bg); }
.js-pay.none b { font-size: 1rem; color: var(--ink-mute); }
.js-pay.none svg { stroke: var(--ink-mute); }
.js-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.js-fact { display: flex; align-items: center; gap: 10px; background: var(--bg); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.js-fact b { font-size: .92rem; font-weight: 800; display: block; overflow: hidden; text-overflow: ellipsis; }
.js-fact.soon { background: var(--soon-bg); }
.js-fact.soon svg { stroke: var(--sun-edge); }
.js-fact.soon b { color: var(--soon-ink); }
.js-h { margin: 20px 0 6px; font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--c, var(--ink-mute)); }
.sheet .summary { margin: 0; }
.sheet .summary.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.js-more { border: 0; background: none; color: var(--deep); font-weight: 800; padding: 6px 0; }
.js-how { margin: 18px 0 6px; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--sky) 10%, var(--tint)); }
.js-how h3 { margin: 0 0 6px; font-size: .95rem; font-weight: 800; }
.js-how ol { margin: 0 0 8px; padding-left: 20px; font-size: .92rem; font-weight: 600; line-height: 1.5; }
.js-how p { margin: 0; font-size: .8rem; font-weight: 600; color: var(--ink-mute); line-height: 1.45; }
.js-link { display: inline-block; margin: 8px 14px 0 0; font-size: .85rem; font-weight: 800; color: var(--deep); text-decoration: none; }
.js-bar { position: sticky; bottom: 0; display: flex; gap: 8px; align-items: center; padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent 0%, var(--paper) 22%); }
.js-bar .btn { flex: 1; margin: 0; }
.js-icon { flex: 0 0 auto; width: 56px; height: 52px; border: 0; border-radius: 16px; background: var(--bg); color: var(--deep); font-size: 1.3rem; font-weight: 800; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; transition: transform .3s var(--spring); }
.js-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.js-icon small { font-size: .62rem; font-weight: 800; }
.js-icon.on { background: var(--sun); color: var(--ink); }
.js-icon:active { transform: scale(.92); }
.more[hidden], .cat-more[hidden], .welcome[hidden] { display: none; }

/* ---------- v6: the map's fold-away lines of work (Days Out's Filters button) ---------- */
.mapfilter { margin-bottom: 10px; }
.mf-toggle { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 16px 10px 14px; border: 0; border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 800; font-size: .95rem; box-shadow: var(--shadow); text-align: left; transition: transform .3s var(--spring); }
.mf-toggle::before { content: ""; position: absolute; inset: 0; padding: 1.5px; border-radius: 999px; background: var(--g-sky); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.mf-toggle:active { transform: scale(.98); }
.mf-ico { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: var(--deep); stroke-width: 2.2; stroke-linecap: round; }
.mf-label { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-label .cp { position: relative; width: 26px; height: 26px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; box-shadow: 0 0 0 2px var(--c); }
.mf-label .cp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mf-count { font-style: normal; font-size: .8rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--sun); color: #1A2233; }
.mf-chev { width: 8px; height: 8px; border-right: 2.4px solid var(--ink-mute); border-bottom: 2.4px solid var(--ink-mute); transform: rotate(45deg) translateY(-2px); transition: transform .3s var(--spring); }
.mf-toggle[aria-expanded="true"] .mf-chev { transform: rotate(-135deg) translateY(-2px); }
.mf-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.mf-panel.open { grid-template-rows: 1fr; }
.mf-inner { overflow: hidden; min-height: 0; }
.mapfilter .map-cats { flex-wrap: wrap; overflow: visible; margin: 0; padding: 10px 2px 2px; }
@media (prefers-reduced-motion: reduce) { .mf-panel, .mf-chev { transition: none; } }
.help-sheet, .sheet { color: var(--ink); }
.band-sub #meta { vertical-align: middle; }
.mapfilter .map-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mapfilter .map-cats .chip { min-width: 0; font-size: .8rem; padding: 6px 10px 6px 6px; justify-content: flex-start; }
.mapfilter .map-cats .chip[data-cat=""] { grid-column: 1 / -1; justify-content: center; }
.mapfilter .map-cats .chip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; }
.mapfilter .map-cats .chip b { margin-left: auto; padding-left: 4px; }
.mapfilter .map-cats .chip .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* ---------- v7: who's hiring + what the job is ---------- */
.card .via, .js-head .via { display: block; font-size: .74rem; font-weight: 700; color: var(--ink-mute); opacity: .85; margin-top: 1px; }
.card .plain { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; font-size: .86rem; line-height: 1.35; font-weight: 500; color: var(--ink); }
.js-agency { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--cat-office) 10%, var(--tint)); font-size: .9rem; font-weight: 600; line-height: 1.45; }
.js-agency b { display: block; font-weight: 800; margin-bottom: 2px; }
.plainbig { margin: 0; font-size: 1.05rem; line-height: 1.5; font-weight: 600; }
.sheet .summary.quiet { font-size: .9rem; color: var(--ink-mute); }
/* the town card scrolls up and down only — never sideways */
.mapcard { overflow: hidden; }
.mapcard-body { overflow-x: hidden; overflow-y: auto; touch-action: pan-y; overscroll-behavior: contain; max-width: 100%; }
.mapcard-body > * { max-width: 100%; }
.memp, .mjob { max-width: 100%; overflow: hidden; }
.mtxt b { overflow-wrap: anywhere; }
.sheet { overflow-x: hidden; }

/* ---------- v9: cleaner list page (soft tinted tiles, icon in a circle, chevron) ---------- */
.searchbar { background: transparent; border-bottom: 0; padding: 0 0 4px; margin-top: -14px; position: relative; z-index: 2; }
.search { height: 56px; box-shadow: 0 6px 20px rgba(31, 94, 138, .12); }
.search::before { opacity: .55; }
.cat-grid { gap: 10px; }
.cat-grid .cat { padding: 12px; gap: 12px; background: color-mix(in srgb, var(--c) 8%, var(--paper)); border-radius: 18px; box-shadow: none; }
.cat-grid .cat::before { opacity: .45; padding: 1px; }
.cat-grid .cat .ico { width: 46px; height: 46px; border-radius: 50%; background: color-mix(in srgb, var(--c) 18%, var(--paper)); color: var(--c); }
.cat-grid .cat .ico svg { width: 24px; height: 24px; }
.cat-grid .cat .txt { flex: 1; }
.cat-grid .cat b { font-size: .9rem; font-weight: 700; }
.cat-grid .cat small { font-size: .82rem; font-weight: 800; }
.cat-grid .cat .chev { font-size: 1.35rem; color: var(--c); opacity: .8; }
.cat-grid .cat.on { background: linear-gradient(135deg, color-mix(in srgb, var(--c) 85%, #fff) 0%, var(--c) 100%); box-shadow: 0 8px 20px color-mix(in srgb, var(--c) 35%, transparent); }
.cat-grid .cat.on .ico { background: rgba(255,255,255,.95); color: var(--c); }
.cat-grid .cat.on .chev { color: #fff; }
.cat-more { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 14px 18px; border-radius: 18px; text-align: left; font-size: 1rem; color: var(--ink); }
.cat-more span:first-of-type { flex: 1; }
.cat-more .mf-chev.up { transform: rotate(-135deg) translateY(-2px); }
.controls { margin-top: 12px; }
.chip { font-weight: 700; padding: 9px 16px; }
.townrow select { height: 52px; border-radius: 16px; padding-left: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-6.5-6.2-6.5-11.2a6.5 6.5 0 0 1 13 0C18.5 14.8 12 21 12 21Z' fill='none' stroke='%232F7FB6' stroke-width='2.2'/%3E%3Ccircle cx='12' cy='9.8' r='2.4' fill='none' stroke='%232F7FB6' stroke-width='2.2'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l6 6-6 6' fill='none' stroke='%231F5E8A' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-position: 14px center, right 14px center; background-repeat: no-repeat; }
.count { font-size: .95rem; }
.count b { font-size: 1.25rem; letter-spacing: -0.02em; }
.card .cat-pill { padding: 3px 8px; border-radius: 6px; background: color-mix(in srgb, var(--c) 12%, var(--paper)); }
.map-cats .chip .cp, .mf-label .cp { display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 16%, var(--paper)); }
.map-cats .chip .cp svg, .mf-label .cp svg { width: 15px; height: 15px; }
.map-cats .chip.on .cp { background: rgba(255,255,255,.95); }
.mf-label .cp { box-shadow: none; }
.cat-grid .cat b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.15; }
.cat-grid .cat { gap: 10px; padding: 12px 10px 12px 12px; }
.cat-grid .cat .chev { font-size: 1.15rem; margin-left: -4px; }
.card .cat-pill { align-self: flex-start; }
