:root{
  --blue:#1E6FD9; --blue2:#5AB0FF; --blue-d:#1458B5; --bg:#F4F7FB; --card:#fff;
  --ink:#14213D; --mut:#6B7A90; --line:#E3E9F2; --gold:#FFB020; --green:#1DB954; --red:#E5484D;
  --r:20px; --sh:0 6px 20px rgba(20,60,120,.08);
}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html,body{height:100%}
body{font-family:Nunito,"Segoe UI",system-ui,sans-serif;background:#E6ECF5;color:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer}
input,textarea,select{font:inherit;color:inherit}
svg{display:block}
#phone{position:relative;width:390px;height:844px;background:var(--bg);border-radius:44px;overflow:hidden;box-shadow:0 30px 80px rgba(20,50,100,.25),0 0 0 10px #0f1a2c}
.demo-note{font-size:12px;color:var(--mut)}
@media (max-width:500px){body{display:block;background:var(--bg)}#phone{width:100vw;height:100dvh;border-radius:0;box-shadow:none}.demo-note{display:none}}
#view{position:absolute;inset:0 0 78px 0;overflow-y:auto;overflow-x:hidden;scrollbar-width:none}
#view::-webkit-scrollbar{display:none}
.pad{padding:0 18px}

/* tab bar */
#tabs{position:absolute;left:0;right:0;bottom:0;height:78px;background:#fff;display:flex;justify-content:space-around;align-items:flex-start;padding-top:8px;box-shadow:0 -4px 20px rgba(20,60,120,.06);z-index:20}
#tabs button{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11.5px;font-weight:700;color:#8A97AB;padding:6px 10px;border-radius:14px;position:relative}
#tabs button svg{width:24px;height:24px}
#tabs button.on{color:var(--blue);background:#EAF3FF}
#tabs .dot{position:absolute;top:4px;right:12px;width:8px;height:8px;border-radius:50%;background:var(--red)}

/* header */
.hero{background:linear-gradient(135deg,var(--blue) 0%,#3D8FF0 60%,var(--blue2) 100%);color:#fff;padding:54px 18px 22px;border-radius:0 0 28px 28px;position:relative;overflow:hidden}
.hero::after{content:"";position:absolute;right:-60px;top:-40px;width:220px;height:220px;border-radius:50%;background:rgba(255,255,255,.08)}
.brand{display:flex;align-items:center;gap:8px;font-weight:900;font-size:24px;letter-spacing:-.3px}
.brand .go{font-weight:600}
.logo-mark{width:34px;height:34px;flex:none}
.logo-mark.sm{width:26px;height:26px}
.row{display:flex;align-items:center;gap:10px}
.between{justify-content:space-between}
.city-chip{display:inline-flex;align-items:center;gap:4px;background:rgba(255,255,255,.2);padding:6px 12px;border-radius:20px;font-size:13px;font-weight:700}
.city-chip svg{width:15px;height:15px}
.hello{font-size:21px;font-weight:800;margin:12px 0 14px;position:relative;z-index:1}
.search{display:flex;align-items:center;gap:10px;background:#fff;border-radius:16px;padding:0 14px;height:50px;color:var(--mut);box-shadow:var(--sh);position:relative;z-index:1}
.search svg{width:20px;height:20px}
.search input{border:0;outline:0;flex:1;background:none;font-size:15px;color:var(--ink)}
.topbar{background:linear-gradient(135deg,var(--blue),#3D8FF0);color:#fff;padding:50px 18px 16px;display:flex;align-items:center;justify-content:space-between;border-radius:0 0 22px 22px}
.topbar .icons{display:flex;gap:14px}
.topbar svg{width:22px;height:22px}
.back{width:40px;height:40px;border-radius:12px;background:#fff;display:grid;place-items:center;box-shadow:var(--sh);flex:none}
.back svg{width:20px;height:20px}
.ptitle{font-size:24px;font-weight:900;letter-spacing:-.3px}
h3{font-size:17px;font-weight:800;margin:22px 0 12px}
.link{color:var(--blue);font-weight:700;font-size:13.5px}

/* specialties */
.spec{display:grid;grid-template-columns:repeat(4,1fr);gap:14px 6px;margin-top:20px}
.spec button{display:flex;flex-direction:column;align-items:center;gap:7px;font-size:12px;font-weight:700}
.spec .b{width:58px;height:58px;border-radius:50%;display:grid;place-items:center}
.spec .b svg{width:28px;height:28px}

/* cards */
.card{background:var(--card);border-radius:var(--r);box-shadow:var(--sh);padding:16px}
.next .lbl{display:flex;align-items:center;gap:8px;font-weight:800;margin-bottom:12px}
.next .lbl svg{width:20px;height:20px;color:var(--blue)}
.pill{display:inline-flex;align-items:center;gap:6px;background:#EAF3FF;color:var(--ink);font-weight:700;font-size:13px;padding:7px 11px;border-radius:10px}
.pill svg{width:15px;height:15px;color:var(--blue)}
.av{border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:900;flex:none}
.name{font-weight:800;font-size:16px}
.sub{color:var(--mut);font-size:13.5px;font-weight:600}
.stars{display:inline-flex;align-items:center;gap:3px;font-weight:800;font-size:13px}
.stars svg{width:14px;height:14px;color:var(--gold)}
.hscroll{display:flex;gap:12px;overflow-x:auto;margin:0 -18px;padding:2px 18px 10px;scrollbar-width:none}
.hscroll::-webkit-scrollbar{display:none}
.ccard{flex:none;width:168px;background:#fff;border-radius:18px;box-shadow:var(--sh);overflow:hidden;text-align:left}
.cover{height:92px;position:relative;display:grid;place-items:center}
.cover .clogo{width:46px;height:46px;border-radius:14px;box-shadow:0 4px 12px rgba(0,0,0,.12)}
.ccard .in{padding:10px 12px 12px}
.ccard .t{font-weight:800;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.from{display:inline-block;margin-top:7px;background:#EAF3FF;color:var(--blue-d);font-weight:800;font-size:12px;padding:4px 8px;border-radius:8px}
.clogo{display:grid;place-items:center;color:#fff}
.clogo svg{width:60%;height:60%}
.list .lc{display:flex;gap:12px;align-items:center;background:#fff;border-radius:18px;box-shadow:var(--sh);padding:12px;margin-bottom:12px;width:100%;text-align:left}
.list .clogo{width:58px;height:58px;border-radius:16px}
.meta{display:flex;gap:10px;flex-wrap:wrap;margin-top:4px;font-size:12.5px;color:var(--mut);font-weight:700;align-items:center}
.meta svg{width:13px;height:13px;display:inline}
.open{color:var(--green)} .closed{color:var(--red)}
.tag{font-size:11px;font-weight:800;padding:3px 7px;border-radius:7px;background:#E8F8EE;color:#11803C}
.tag.tele{background:#F0EBFF;color:#6B4BD8}

/* buttons */
.btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:54px;border-radius:16px;background:var(--blue);color:#fff;font-weight:800;font-size:16.5px;box-shadow:0 8px 20px rgba(30,111,217,.3)}
.btn svg{width:21px;height:21px}
.btn.light{background:var(--blue2);box-shadow:none}
.btn.out{background:#fff;color:var(--blue);border:2px solid var(--blue);box-shadow:none}
.btn.sm{height:42px;font-size:14px;width:auto;padding:0 16px;border-radius:13px}
.btn:disabled{opacity:.45}
.sticky{position:sticky;bottom:0;padding:14px 18px 16px;background:linear-gradient(to top,var(--bg) 70%,transparent)}

/* clinic */
.ccover{height:200px;position:relative;display:grid;place-items:center;overflow:hidden}
.ccover .bigic{width:120px;height:120px;color:rgba(255,255,255,.25)}
.ccover .tb{position:absolute;top:50px;left:18px;right:18px;display:flex;justify-content:space-between}
.round{width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.92);display:grid;place-items:center;color:var(--ink)}
.round svg{width:20px;height:20px}
.round.fav{color:var(--red)}
.chead{margin:-44px 18px 0;position:relative;display:flex;gap:14px}
.chead .clogo{width:74px;height:74px;border-radius:20px;flex:none}
.verif{display:inline-flex;align-items:center;gap:4px;background:#EAF3FF;color:var(--blue);font-size:12px;font-weight:800;padding:4px 8px;border-radius:8px}
.verif svg{width:13px;height:13px}
.seg{display:flex;gap:6px;margin:16px 18px 0;background:#fff;padding:5px;border-radius:16px;box-shadow:var(--sh)}
.seg button{flex:1;height:38px;border-radius:12px;font-weight:800;font-size:14px;color:var(--mut)}
.seg button.on{background:var(--blue);color:#fff}
.prow{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.prow:last-child{border:0}
.prow .pi{width:34px;height:34px;border-radius:10px;background:#EAF3FF;color:var(--blue);display:grid;place-items:center;flex:none}
.prow .pi svg{width:18px;height:18px}
.prow .pn{flex:1;font-weight:700}
.prow .pd{font-size:12px;color:var(--mut);font-weight:600}
.price{background:#EAF3FF;color:var(--blue-d);font-weight:900;padding:6px 10px;border-radius:10px;font-size:14px;white-space:nowrap}
.docs{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.doc{background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px 6px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:6px}
.doc.on{border-color:var(--blue);box-shadow:0 0 0 2px var(--blue) inset}
.doc .dn{font-weight:800;font-size:12.5px;line-height:1.2}
.rev{padding:14px 0;border-bottom:1px solid var(--line)}
.rev:last-child{border:0}
.rev p{font-size:14px;margin-top:6px;line-height:1.4}
.rtags{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.rtags span{font-size:11.5px;font-weight:700;background:#F0F4FA;padding:4px 8px;border-radius:8px;color:#44536B}
.bigscore{display:flex;align-items:center;gap:14px}
.bigscore b{font-size:44px;font-weight:900;line-height:1}
.kv{display:flex;gap:12px;padding:10px 0;align-items:flex-start;border-bottom:1px solid var(--line)}
.kv:last-child{border:0}
.kv svg{width:19px;height:19px;color:var(--blue);flex:none;margin-top:2px}
.kv .k{color:var(--mut);font-weight:700;font-size:13px;width:70px;flex:none}
.kv .v{font-weight:800;font-size:14px}

/* booking */
.dates{display:flex;gap:8px;overflow-x:auto;margin:0 -18px;padding:2px 18px 6px;scrollbar-width:none}
.dates::-webkit-scrollbar{display:none}
.dates button{flex:none;width:56px;padding:9px 0;border-radius:14px;background:#fff;box-shadow:var(--sh);display:flex;flex-direction:column;align-items:center;font-weight:700;font-size:12px;color:var(--mut)}
.dates button b{font-size:20px;color:var(--ink);font-weight:900;line-height:1.2}
.dates button.on{background:var(--blue);color:#fff}
.dates button.on b{color:#fff}
.dates button:disabled{opacity:.4}
.slots{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.slots button{height:42px;border-radius:12px;background:#fff;border:1px solid var(--line);font-weight:800;font-size:14.5px}
.slots button.on{background:var(--blue);color:#fff;border-color:var(--blue)}
.slots button:disabled{background:#EEF1F5;color:#B3BDCB;border-color:#EEF1F5;text-decoration:line-through}
.toggle2{display:flex;gap:8px;background:#fff;padding:6px;border-radius:16px;box-shadow:var(--sh)}
.toggle2 button{flex:1;height:46px;border-radius:12px;display:flex;align-items:center;justify-content:center;gap:8px;font-weight:800;font-size:14.5px;color:var(--mut)}
.toggle2 button svg{width:19px;height:19px}
.toggle2 button.on{background:var(--blue2);color:#fff}
select.svc{width:100%;height:56px;border-radius:16px;border:0;background:#fff;box-shadow:var(--sh);padding:0 14px;font-weight:800;font-size:15px;outline:0;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236B7A90' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center}

/* confirmation */
.okbig{width:108px;height:108px;border-radius:50%;background:linear-gradient(145deg,var(--blue2),var(--blue));display:grid;place-items:center;margin:30px auto 0;box-shadow:0 16px 36px rgba(30,111,217,.35);position:relative;animation:pop .5s cubic-bezier(.2,1.6,.4,1)}
.okbig svg{width:56px;height:56px;color:#fff}
@keyframes pop{from{transform:scale(.3);opacity:0}}
.confetti{position:absolute;inset:-30px;pointer-events:none}
.confetti i{position:absolute;width:6px;height:16px;border-radius:3px;animation:conf .8s ease-out both}
@keyframes conf{from{transform:translate(0,0) rotate(0);opacity:0}}
.note{display:flex;gap:12px;align-items:center;background:#EAF3FF;border-radius:16px;padding:14px;font-size:13.5px;font-weight:600}
.note svg{width:24px;height:24px;color:var(--blue);flex:none}

/* review */
.rstars{display:flex;justify-content:center;gap:10px;margin:6px 0 4px}
.rstars button svg{width:44px;height:44px}
.rstars button{color:#D5DCE6}
.rstars button.on{color:var(--gold)}
.tchips{display:flex;flex-wrap:wrap;gap:8px}
.tchips button{display:inline-flex;align-items:center;gap:6px;padding:9px 13px;border-radius:12px;border:1.5px solid var(--line);font-weight:800;font-size:13.5px;background:#fff}
.tchips button svg{width:15px;height:15px;display:none}
.tchips button.on{background:#EAF3FF;border-color:#BFDBFF;color:var(--blue-d)}
.tchips button.on svg{display:block}
textarea.rv{width:100%;height:110px;border:1.5px solid var(--line);border-radius:16px;padding:12px 14px;resize:none;outline:0;font-size:14.5px;background:#fff}
textarea.rv:focus{border-color:var(--blue2)}
.sw{width:50px;height:30px;border-radius:20px;background:#D5DCE6;position:relative;transition:.2s;flex:none}
.sw::after{content:"";position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;transition:.2s;box-shadow:0 2px 4px rgba(0,0,0,.15)}
.sw.on{background:var(--blue)}
.sw.on::after{left:23px}

/* appointments, misc */
.subtabs{display:flex;gap:8px;margin-top:16px}
.subtabs button{padding:9px 16px;border-radius:12px;background:#fff;font-weight:800;font-size:14px;color:var(--mut);box-shadow:var(--sh)}
.subtabs button.on{background:var(--blue);color:#fff}
.empty{text-align:center;color:var(--mut);font-weight:700;padding:30px 10px}
.mrow{display:flex;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}
.mrow .clogo{width:48px;height:48px;border-radius:14px}
.badge{min-width:22px;height:22px;border-radius:11px;background:var(--blue);color:#fff;font-size:12px;font-weight:900;display:grid;place-items:center;padding:0 6px}
.menu .mi{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--line);font-weight:800;width:100%;text-align:left}
.menu .mi svg{width:22px;height:22px;color:var(--blue)}
.menu .mi span{flex:1}
.menu .mi .chev{width:18px;height:18px;color:#A6B2C4}
#toast{position:absolute;left:18px;right:18px;bottom:96px;background:#14213D;color:#fff;padding:14px 16px;border-radius:14px;font-weight:700;font-size:14px;z-index:50;box-shadow:0 10px 30px rgba(0,0,0,.25);animation:tin .25s}
@keyframes tin{from{transform:translateY(10px);opacity:0}}

/* ---------- 3D map ---------- */
#maplayer{position:absolute;inset:0 0 78px 0;overflow:hidden;background:linear-gradient(#CFE6FF,#EAF4FF 40%)}
#map3d{position:absolute;inset:0}
.mk{cursor:pointer;display:flex;flex-direction:column;align-items:center;transition:opacity .2s}
.mk .pb{display:flex;align-items:center;gap:7px;background:#fff;border-radius:16px;padding:5px 10px 5px 5px;box-shadow:0 8px 20px rgba(20,50,100,.25);white-space:nowrap;transition:transform .2s;transform-origin:50% 100%;position:relative}
.mk .pb::after{content:"";position:absolute;left:50%;bottom:-7px;margin-left:-8px;border:8px solid transparent;border-bottom:0;border-top-color:#fff}
.mk .pb .clogo{width:30px;height:30px;border-radius:10px}
.mk .pb b{font-size:12.5px;font-weight:800;display:block;line-height:1.1}
.mk .pb .stars{font-size:11.5px}
.mk .pb .stars svg{width:11px;height:11px}
.mk .tip{display:block;width:12px;height:12px;border-radius:50%;border:3px solid #fff;margin-top:9px;box-shadow:0 2px 6px rgba(0,0,0,.3)}
.mk.sel .pb{transform:scale(1.18);box-shadow:0 10px 26px rgba(30,111,217,.45),0 0 0 3px var(--blue)}
.mk.dim{opacity:.2;pointer-events:none}
.maplibregl-ctrl-bottom-left{bottom:4px}
.maplibregl-ctrl-attrib{font-size:10px}
.map-top{position:absolute;top:0;left:0;right:0;padding:48px 14px 10px;background:linear-gradient(rgba(234,244,255,.95) 60%,rgba(234,244,255,0));z-index:5}
.map-brand{display:flex;align-items:center;gap:8px;font-weight:900;font-size:20px;color:var(--blue);margin-bottom:10px}
.map-brand .city-chip{margin-left:auto;background:#fff;color:var(--ink);box-shadow:var(--sh)}
.search.on-map{height:46px}
.chips{display:flex;gap:8px;overflow-x:auto;margin-top:10px;scrollbar-width:none;padding-bottom:4px}
.chips::-webkit-scrollbar{display:none}
.chips button{flex:none;display:inline-flex;align-items:center;gap:6px;background:#fff;padding:8px 12px;border-radius:12px;font-weight:800;font-size:13px;box-shadow:var(--sh)}
.chips button svg{width:16px;height:16px;color:var(--blue)}
.chips button.on{background:var(--blue);color:#fff}
.chips button.on svg{color:#fff}
.chips .gdot{width:8px;height:8px;border-radius:50%;background:var(--green)}
.locate{position:absolute;right:14px;bottom:20px;width:48px;height:48px;border-radius:50%;background:#fff;box-shadow:var(--sh);display:grid;place-items:center;color:var(--blue);z-index:5}
.locate svg{width:24px;height:24px}
.sheet{position:absolute;left:10px;right:10px;bottom:10px;background:#fff;border-radius:24px;padding:10px 16px 16px;box-shadow:0 -6px 30px rgba(20,50,100,.18);z-index:6;animation:tin .25s}
.sheet .grab{width:40px;height:5px;border-radius:3px;background:#D5DCE6;margin:0 auto 10px}
.sheet .clogo{width:62px;height:62px;border-radius:18px}
.sheet + .locate{bottom:170px}
.hint{position:absolute;left:50%;bottom:74px;transform:translateX(-50%);background:rgba(20,33,61,.8);color:#fff;font-size:12.5px;font-weight:700;padding:8px 14px;border-radius:20px;z-index:4;pointer-events:none;white-space:nowrap}
#map3d.far .mk:not(.sel) .pb{padding:5px}
#map3d.far .mk:not(.sel) .pb > div:not(.clogo){display:none}
#map3d.far .mk:not(.sel) .pb .clogo{width:34px;height:34px;border-radius:11px}
