:root{
  /* palette: royal blue + soft pink on a pale blue-grey ground */
  --primary:#2D5BFF; --tint:#E6ECFF; --bg:#F2F5FD; --text:#1B1D3A; --muted:#666C85; --muted2:#4F5572;
  --line:#E8ECF6; --chip:#EEF0F6; --pink:#FF5C8A; --pink-bg:#FFE1EA; --pink-ink:#B4174F;
  --free:#17734A; --free-bg:#DDF5E8;
  --shadow:0 6px 22px rgba(45,91,255,.08);
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font-family:Rubik,system-ui,sans-serif}
button,a{font-family:inherit}
a{color:inherit;text-decoration:none}
button{cursor:pointer}
:focus-visible{outline:3px solid var(--primary);outline-offset:2px}
.screen{max-width:480px;margin:0 auto;min-height:100vh;display:flex;flex-direction:column}
h1{margin:0}

/* top bars */
.topbar{display:flex;align-items:center;gap:8px;padding:16px 22px 8px}
.topbar h1{font-size:24px;font-weight:400}
.back{width:44px;height:44px;margin-inline-start:-12px;display:flex;align-items:center;justify-content:center;font-size:22px;color:var(--primary)}

/* feed header */
.hero{position:relative;overflow:hidden;background:var(--primary);color:#fff;margin:14px 14px 0;border-radius:8px;padding:12px 20px 18px;display:flex;flex-direction:column;gap:14px}
.hero-top{display:flex;justify-content:space-between;align-items:center;font-size:14px;gap:8px}
.hero-links{display:flex;gap:12px}
/* header icon buttons: #5788FF circle with a white icon (hit area stays 44px) */
.hero-links a.iconbtn{position:relative;width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;background:#5788FF}
.hero-links a.iconbtn::after{content:"";position:absolute;inset:-4px}
.hero-links a.iconbtn:hover{background:#6B98FF}
.hero-links a.iconbtn svg{display:block;width:17px;height:17px}
.hero h1{font-size:26px;font-weight:400;line-height:1.2}
.tabs{display:flex;background:rgba(255,255,255,.18);border-radius:8px;padding:4px}
.tabs button{flex:1;border:0;min-height:44px;border-radius:8px;font-weight:400;font-size:15px;background:transparent;color:#fff}
.tabs button[aria-pressed=true]{background:#fff;color:var(--primary)}

/* week */
.hero{padding-bottom:16px}
.daystrip{position:sticky;top:0;z-index:5;display:flex;gap:6px;overflow-x:auto;padding:10px 14px;background:var(--bg);box-shadow:0 1px 0 var(--line);scrollbar-width:none}
.daystrip::-webkit-scrollbar{display:none}
.pill{flex:1 1 0;min-width:40px;min-height:56px;border:0;border-radius:8px;background:#fff;box-shadow:var(--shadow);color:var(--text);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:6px 4px}
.pill-day{font-size:13px;font-weight:400}
.pill-date{font-size:12px;color:var(--muted2)}
.pill[data-count=empty]{opacity:.55}
.pill[aria-current=true]{background:var(--primary);color:#fff;opacity:1;box-shadow:0 6px 16px rgba(45,91,255,.35)}
.pill[aria-current=true] .pill-date{color:#fff}
.day{display:flex;flex-direction:column;gap:12px;scroll-margin-top:84px}
.day h2{margin:6px 4px 0;font-size:18px;font-weight:400;display:flex;gap:8px;align-items:baseline}
.day h2 .date{font-size:13px;font-weight:400;color:#fff;background:var(--primary);border-radius:4px;padding:2px 9px}
.empty.small{padding:8px 4px 12px;text-align:start;font-size:14px}
.list{gap:22px}

/* cards */
.list{flex:1;padding:18px 14px 28px;display:flex;flex-direction:column;gap:12px}
.card{display:flex;gap:12px;padding:10px;background:#fff;border-radius:8px;box-shadow:var(--shadow)}
.thumb{width:84px;height:96px;flex-shrink:0;border-radius:8px;background:repeating-linear-gradient(135deg,#E3EAFF 0 6px,#F1F5FF 6px 12px);overflow:hidden;border-radius:8px}
.thumb img{width:100%;height:100%;object-fit:cover}
.card-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.card .time{font-size:13px;color:var(--primary);font-weight:400}
.card .title{font-size:16px;font-weight:400;line-height:1.3}
.card .meta{font-size:13px;color:var(--muted)}
.chips{display:flex;gap:6px;margin-top:2px;flex-wrap:wrap}
.chip{font-size:12px;font-weight:400;padding:3px 9px;border-radius:4px;background:var(--chip);color:var(--muted2)}
/* every tag has its own colour */
.chip.free{background:#DDF5E8;color:#17734A}      /* free: green */
.chip.paid{background:#FFF0C9;color:#8A5300}      /* paid: amber */
.chip.in{background:#E4EBFF;color:#2B4FD8}        /* indoors: blue */
.chip.out{background:#D8F3F1;color:#0B6B66}       /* outdoors: teal */
.chip.reg{background:#FFE1EA;color:#B4174F}       /* registration: pink */
.chip.age{background:#ECE5FF;color:#5B34C8}       /* age: purple */
.heart{width:44px;height:44px;flex-shrink:0;border:0;background:none;color:#C9CDDA;display:flex;align-items:center;justify-content:center;transition:color .15s}
.heart svg{display:block}
.heart[aria-pressed=true]{color:var(--pink)}
.heart.pop svg{animation:pop .35s ease-out}
@keyframes pop{0%{transform:scale(1)}40%{transform:scale(1.35)}100%{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.heart.pop svg{animation:none}}
.empty{text-align:center;color:var(--muted);padding:40px 20px;font-size:15px;line-height:1.6}
.note{margin:0 14px;color:var(--muted);font-size:13px;text-align:center}

/* details */
.detail{background:#fff}
.detail-img{height:260px;flex-shrink:0;position:relative;background:repeating-linear-gradient(135deg,#E2E5F7 0 8px,#EEF0FB 8px 16px)}
.detail-img img{width:100%;height:100%;object-fit:cover}
.detail-img .back{position:absolute;top:14px;right:14px;margin:0;border-radius:50%;border:1px solid rgba(255,255,255,.55);background:rgba(255,255,255,.38);-webkit-backdrop-filter:blur(12px) saturate(1.4);backdrop-filter:blur(12px) saturate(1.4);box-shadow:0 4px 14px rgba(27,29,58,.18)}
.detail-body{flex:1;padding:20px 22px;display:flex;flex-direction:column;gap:16px}
.detail-body h1{font-size:26px;font-weight:400;line-height:1.25}
.row{display:flex;gap:12px;align-items:center}
.icon{width:44px;height:44px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.icon img{width:32px;height:32px;object-fit:contain;display:block}
.row b{display:block;font-size:15px;font-weight:400}
.row span{display:block;font-size:13px;color:var(--muted)}
.detail-body p{margin:0;font-size:15px;line-height:1.6;color:#363A57}
.bar{position:sticky;bottom:0;background:#fff;padding:12px 18px calc(16px + env(safe-area-inset-bottom));display:flex;gap:10px;border-top:1px solid var(--line)}
.btn{flex:1;text-align:center;padding:16px;border-radius:8px;font-weight:400;font-size:16px;border:0}
.btn.primary{background:var(--primary);color:#fff}
.btn.soft{background:var(--tint);color:var(--primary)}
.btn.soft[aria-pressed=true]{background:var(--free-bg);color:var(--free)}

.more{flex:none;width:100%;margin-top:4px;background:#E4EBFF;color:var(--primary);border-radius:8px}
.srclink{border:2px solid var(--tint);background:#fff;color:var(--primary);font-weight:400;font-size:15px;min-height:48px;border-radius:8px;display:flex;align-items:center;justify-content:center;padding:0 16px}

/* settings */
.sheet{flex:1;padding:0 18px 28px;display:flex;flex-direction:column;gap:14px}
.group{background:#fff;border-radius:8px;padding:6px 16px;box-shadow:var(--shadow)}
.group.pad>*{min-width:0}
.group.pad{padding:14px 16px;display:flex;flex-direction:column;gap:10px}
.kv{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line);font-size:15px}
.kv:last-child{border-bottom:0}
.kv span:first-child,.lbl{color:var(--muted);font-size:15px}
.kv span:last-child{font-weight:400}
.seg{display:flex;gap:8px}
.seg button{flex:1;border:0;min-height:44px;padding:10px;border-radius:8px;font-size:15px;background:var(--chip);color:var(--muted)}
.seg button[aria-pressed=true]{background:var(--tint);color:var(--primary);font-weight:400}

/* settings: chips, regions */
.wrap{display:flex;flex-wrap:wrap;gap:8px}
.tg{border:0;min-height:44px;padding:0 14px;border-radius:8px;font-size:14px;background:var(--chip);color:var(--muted2)}
.tg[aria-pressed=true]{background:var(--tint);color:var(--primary);font-weight:400}
.hint{font-size:13px;color:var(--muted);line-height:1.5}
.region{border-top:1px solid var(--line);padding-top:6px}
.region summary{min-height:44px;display:flex;align-items:center;justify-content:space-between;font-size:15px;font-weight:400;cursor:pointer;list-style:none}
.region summary::-webkit-details-marker{display:none}
.region summary::after{content:"▾";color:var(--muted);margin-inline-start:8px}
.region[open] summary::after{content:"▴"}
.region .count{margin-inline-start:auto;font-size:13px;font-weight:400;color:var(--muted)}
.region-actions{display:flex;gap:16px;padding:0 0 10px}
.link{border:0;background:none;color:var(--primary);font-size:14px;font-weight:400;min-height:44px;padding:0}

/* whatsapp / reminders */
.switch-row{display:flex;justify-content:space-between;align-items:center;min-height:44px;font-size:15px;font-weight:400}
.switch{width:52px;height:32px;border-radius:40px;border:0;background:#D9DBE6;display:flex;justify-content:flex-start;padding:3px;align-items:center}
.switch span{width:26px;height:26px;border-radius:50%;background:#fff;display:block}
.switch[aria-checked=true]{background:var(--primary);justify-content:flex-end}
.timein{display:block;width:100%;max-width:100%;min-width:0;height:48px;line-height:44px;border:2px solid var(--tint);border-radius:8px;padding:0 14px;margin:0;font:inherit;font-size:16px;line-height:44px;color:var(--text);background:#fff;-webkit-appearance:none;appearance:none;text-align:start}
/* iOS Safari puts the value at the top of a time input once its native look is removed: give the inner parts the same line height so it centres */
.timein::-webkit-date-and-time-value{text-align:start;line-height:44px;min-height:0;height:44px;margin:0;padding:0}
.timein::-webkit-datetime-edit{padding:0;line-height:44px;height:44px}
.timein::-webkit-datetime-edit-fields-wrapper{padding:0}

.days{gap:6px}
.days .tg{min-width:40px;padding:0 6px;text-align:center}

/* booking, calendar, e-mail */
.chip.booked{background:#17734A;color:#fff}
.booked-box{display:flex;flex-direction:column;gap:10px}
.booked-box .btn{flex:none}
.favtabs{margin:6px 14px 0}
.favactions{display:flex;flex-direction:column;gap:10px;margin-top:6px}
.favactions .btn{flex:none;text-align:center}
.favactions .note{margin:0}
.timein::placeholder{color:var(--muted);opacity:1}

.group.pad .btn{flex:none;text-align:center}

.booked-box .note{margin:0;text-align:start}
.booked-box .link{align-self:flex-start}

/* Google Calendar button: #EEB868 with dark text (white on this colour is too faint to read) */
.booked-box .btn.primary{background:#EEB868;color:var(--text)}

.booked-box .btn:disabled{background:#F4F4F8;color:var(--muted);cursor:default}

/* city picker (bottom sheet) */
.pickrow{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;width:100%;border:2px solid var(--tint);background:#fff;border-radius:8px;padding:0 14px;font-size:15px;color:var(--text);text-align:start}
.pickrow .chev{flex:none;width:9px;height:9px;margin:-4px 4px 0;border:solid var(--muted);border-width:0 2px 2px 0;transform:rotate(45deg);transition:transform .2s}
.pickrow[aria-expanded=true] .chev{margin-top:4px;transform:rotate(-135deg)}
@media (prefers-reduced-motion:reduce){.pickrow .chev{transition:none}}
.picker{position:fixed;inset:0;z-index:50;display:flex;align-items:flex-end;justify-content:center}
.picker-backdrop{position:absolute;inset:0;background:rgba(27,29,58,.45)}
.picker-panel{position:relative;width:100%;max-width:560px;max-height:82vh;display:flex;flex-direction:column;background:#fff;border-radius:16px 16px 0 0;padding:8px 18px calc(14px + env(safe-area-inset-bottom));outline:none}
.picker-panel.fresh{animation:pickerUp .22s ease-out}
@keyframes pickerUp{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.picker-panel.fresh{animation:none}}
.picker-handle{width:40px;height:4px;border-radius:4px;background:var(--line);margin:4px auto 6px}
.picker-head{display:flex;align-items:center;justify-content:space-between}
.picker-head h2{margin:0;font-size:18px;font-weight:400}
.picker-list{overflow-y:auto;flex:1;padding-bottom:8px}
.picker-rhead{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:14px;margin-top:6px}
.picker-item{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;border:0;border-bottom:1px solid var(--line);background:none;font-size:16px;color:var(--text);text-align:start;padding:0}
.picker-item .box{width:22px;height:22px;border-radius:4px;border:2px solid #B9C0D6;display:flex;align-items:center;justify-content:center;color:#fff;font-size:15px;flex:none}
.picker-item[aria-checked=true] .box{background:var(--primary);border-color:var(--primary)}
.picker-done{flex:none;margin-top:10px}

.credit{margin:0;font-size:13px;color:var(--muted);text-align:center}
.credit a{color:var(--muted);text-decoration:underline;text-underline-offset:2px}
