:root {
  --brand: #0E6BA8; --brand-d: #0A5586; --brand-tint: #E4F0F8;
  --text: #16181D; --dim: #5E6472; --faint: #9AA0AC;
  --bg: #FFFFFF; --soft: #F1F2F5; --line: #E6E8EE;
  --ad: #B4650B; --ad-tint: #FCEBD2; --sos: #D8342C;
  --radius: 16px;
  --shadow: 0 1px 3px rgba(20, 24, 40, .06), 0 6px 18px rgba(20, 24, 40, .06);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: #E9ECF1; }
body { font: 15px/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; color: var(--text); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img { max-width: 100%; display: block; }
.ic { flex: none; }

.app { max-width: 520px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; background: var(--bg); padding-bottom: calc(100px + var(--safe-b)); position: relative; }

/* ---------- Brand band (home) ---------- */
.band { display: flex; align-items: center; gap: 10px; padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top, 0px)); background: var(--brand); color: #fff; }
.logo { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.brand { display: flex; flex-direction: column; min-width: 0; }
.brand b { font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.brand b span { color: #FFD166; }
.brand small { font-size: 12.5px; font-weight: 600; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Language menu ---------- */
.lang { position: relative; flex: none; }
.lang summary { list-style: none; display: flex; align-items: center; gap: 3px; padding: 7px 11px; border-radius: 12px; background: rgba(255, 255, 255, .2); font-weight: 800; font-size: 14px; cursor: pointer; user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.topbar .lang summary { background: var(--soft); color: var(--text); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; color: var(--text); border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); padding: 6px; z-index: 50; min-width: 170px; }
.lang-menu a { display: block; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 14.5px; }
.lang-menu a:hover, .lang-menu a[aria-current] { background: var(--brand-tint); color: var(--brand); }

/* ---------- Home ---------- */
.home { padding: 16px 16px 8px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { position: relative; height: 140px; border-radius: var(--radius); overflow: hidden; background: var(--brand); box-shadow: var(--shadow); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .25) 100%); }
.tile-label { position: absolute; z-index: 1; left: 12px; top: 10px; right: 10px; color: #fff; font-weight: 800; font-size: 15px; line-height: 1.2; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.tile-go { position: absolute; z-index: 1; left: 9px; bottom: 9px; color: #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); }

.icons-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 30px) / 4); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 18px -16px 0; padding: 0 16px 4px; scrollbar-width: none; }
.icons-row::-webkit-scrollbar { display: none; }
.ic-btn { display: flex; flex-direction: column; align-items: center; gap: 7px; scroll-snap-align: start; text-align: center; }
.ic-circle { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; background: color-mix(in srgb, var(--c) 14%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 18%, transparent); }
.ic-btn.on .ic-circle { box-shadow: 0 0 0 2.5px var(--c); background: color-mix(in srgb, var(--c) 24%, #fff); }
.ic-label { font-size: 12.5px; line-height: 1.2; color: var(--text); }

.near-btn { margin-top: 18px; width: 100%; height: 52px; border-radius: var(--radius); background: var(--soft); display: flex; align-items: center; gap: 10px; padding: 0 16px; color: var(--brand); }
.near-title { flex: 1; text-align: left; color: #5A6070; font-size: 16px; font-weight: 600; }
.near-hint { color: var(--faint); font-size: 13px; }

.sec-h { font-size: 19px; font-weight: 800; color: var(--brand-d); margin: 24px 0 12px; }
.hscroll { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.tip-card { flex: none; width: 78%; max-width: 330px; scroll-snap-align: start; display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(135deg, #fff, var(--brand-tint)); box-shadow: var(--shadow); }
.tip-card img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex: none; }
.tip-card b { display: block; font-size: 16px; color: var(--brand-d); line-height: 1.2; }
.tip-card small { display: block; color: var(--dim); font-size: 13.5px; margin-top: 4px; }

.foot { text-align: center; color: var(--faint); font-size: 12px; padding: 22px 10px 6px; }
.foot a { color: var(--brand); }

/* ---------- Inner pages ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar h1 { flex: 1; min-width: 0; margin: 0; font-size: 18px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.round-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--soft); display: flex; align-items: center; justify-content: center; flex: none; color: var(--text); }
.page { padding: 12px 16px 8px; }
.note { color: var(--dim); font-size: 13px; margin: -4px 0 12px; }
.pill-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); font-weight: 700; font-size: 14px; margin: 4px 0 2px; }

.card { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); margin-bottom: 10px; }
.thumb { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; flex: none; }
.thumb-empty { display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c, #9AA0AC) 14%, #fff); color: var(--faint); font-size: 36px; }
.card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.card-title, .card-body b { font-weight: 700; font-size: 15.5px; line-height: 1.25; }
.card-body small { color: var(--dim); font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-chev { color: var(--faint); }
.badge-ad { display: inline-block; vertical-align: 2px; margin-left: 6px; background: var(--ad-tint); color: var(--ad); font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 6px; letter-spacing: .02em; }
.call-card { padding: 14px; }
.call-btn { flex: none; display: flex; align-items: center; gap: 6px; background: var(--sos); color: #fff; font-weight: 800; font-size: 16px; padding: 11px 14px; border-radius: 12px; }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 8px; padding-top: 8px; }
.cat-item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; line-height: 1.2; }

/* ---------- Place page ---------- */
.hero { position: relative; aspect-ratio: 16 / 10; background: var(--brand-tint); overflow: hidden; }
.hero-empty { aspect-ratio: auto; height: calc(64px + env(safe-area-inset-top, 0px)); }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero .round-btn { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); background: rgba(255, 255, 255, .92); box-shadow: var(--shadow); }
.hero-back { left: 14px; }
.hero-fav { right: 14px; }
.hero-fav.on { color: #E0455F; }
.hero-fav.on svg { fill: #E0455F; }
.place { margin-top: -18px; position: relative; background: #fff; border-radius: 22px 22px 0 0; padding-top: 16px; }
.hero-empty + .place { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 10px; color: color-mix(in srgb, var(--c) 80%, #000); background: color-mix(in srgb, var(--c) 13%, #fff); }
.chips .badge-ad { margin: 0; }
.place-name { font-size: 23px; font-weight: 800; line-height: 1.2; margin: 10px 0 8px; }
.about { color: #3A3F4B; font-size: 15.5px; line-height: 1.55; margin: 0 0 10px; }
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin: 16px 0; }
.act { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 11px 4px; border-radius: 14px; background: var(--soft); font-size: 12.5px; font-weight: 700; color: var(--brand); text-align: center; }
.act-main { background: var(--brand); color: #fff; }
.info { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.info-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; color: var(--brand); }
.info-row + .info-row { border-top: 1px solid var(--line); }
.info-row span { color: var(--text); font-size: 15px; }
.info-row small { display: block; color: var(--faint); font-size: 12px; }
.info-row a { color: var(--brand); font-weight: 700; }
.info:empty { display: none; }
.mini-map { height: 190px; border-radius: var(--radius); overflow: hidden; margin-top: 14px; background: var(--soft); }

.credits { padding-left: 18px; font-size: 13px; color: var(--dim); }
.credits li { margin-bottom: 6px; }
.credits a { color: var(--brand); word-break: break-word; }

/* ---------- Tab bar ---------- */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 520px; z-index: 30; display: flex; align-items: flex-end; justify-content: space-around; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + var(--safe-b)); }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #8A909C; font-size: 11px; font-weight: 600; }
.tab.on { color: var(--brand); }
.tab-sos { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: -26px; color: var(--sos); font-size: 11px; font-weight: 800; }
.sos-btn { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #F0555F, #C62A2A); color: #fff; font-weight: 900; font-size: 15px; letter-spacing: .02em; display: flex; align-items: center; justify-content: center; border: 4px solid #fff; box-shadow: 0 6px 16px rgba(216, 52, 44, .4); }

/* ---------- «Near you» sheet ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 100; background: rgba(15, 18, 30, .45); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease; }
.sheet { width: 100%; max-width: 520px; height: calc(100% - 44px - env(safe-area-inset-top, 0px)); background: #fff; border-radius: 26px 26px 0 0; display: flex; flex-direction: column; padding: 16px 16px calc(12px + var(--safe-b)); animation: up .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.sheet-head b { flex: 1; font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.sheet-head b .ic { color: var(--brand); }
.map-box { position: relative; flex: 1; min-height: 200px; border-radius: 18px; overflow: hidden; background: var(--soft); }
.map-box .map { position: absolute; inset: 0; }
.locate-btn { position: absolute; right: 10px; bottom: 26px; z-index: 500; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.map-msg { position: absolute; left: 10px; right: 10px; top: 10px; z-index: 500; background: rgba(22, 24, 29, .85); color: #fff; font-size: 13px; padding: 8px 12px; border-radius: 10px; text-align: center; }
.pin-card { position: absolute; left: 10px; right: 64px; bottom: 26px; z-index: 500; display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 14px; padding: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.pin-card img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; }
.pin-card .card-body b { font-size: 14.5px; }
.pin-card .pin-acts { display: flex; gap: 6px; margin-top: 4px; }
.pin-card .pin-acts a { font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 9px; background: var(--brand-tint); color: var(--brand); }
.pin-card .pin-acts a:first-child { background: var(--brand); color: #fff; }
.sheet-sub { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 10px; color: var(--dim); font-size: 14px; }
.sheet-sub button { color: var(--brand); font-weight: 700; display: flex; align-items: center; gap: 2px; }
.sheet .icons-row { margin-top: 0; }
.sheet .ic-circle { width: 58px; height: 58px; font-size: 29px; }

.pin { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 17px; background: var(--c); border: 2.5px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.you { width: 18px; height: 18px; border-radius: 50%; background: #2F80ED; border: 3px solid #fff; box-shadow: 0 0 0 8px rgba(47, 128, 237, .2); }
.leaflet-container { font: inherit; background: var(--soft); }
.leaflet-tile-pane { filter: saturate(.75) brightness(1.04); }
.leaflet-control-attribution { font-size: 9px !important; }

.more-note { margin-top: 14px; }
.src-note { margin: 12px 0 0; font-size: 12px; }
.pin-ad { position: absolute; top: -8px; right: -10px; background: var(--ad); color: #fff; font-size: 9px; font-weight: 800; padding: 1px 5px; border-radius: 6px; }
.pin-wrap { position: relative; }
.pin-big .pin { width: 42px; height: 42px; font-size: 21px; border-width: 3px; }
.pin-thumb { width: 56px; height: 56px; border-radius: 10px; font-size: 28px; }

/* ---------- Home: MedKomfort layout, one screen, grey placeholders ---------- */
.app-home { height: 100vh; height: 100dvh; min-height: 0; padding-bottom: 0; display: flex; flex-direction: column; overflow: hidden; }
.app-home .band { flex: none; height: calc(47px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 15px 0; gap: 12px; }
.band-logo { flex: none; display: flex; }
.band-slogan { flex: 1; min-width: 0; text-align: center; font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-home .lang summary { padding: 5px 9px; font-size: 12.5px; border-radius: 10px; }
.app-home .home { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 23px 15px 0; }
.app-home .tiles { flex: 1 1 auto; min-height: 180px; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 7px; }
.app-home .tile { height: auto; background: #E4E6EB; box-shadow: none; }
.app-home .tile::after { display: none; }
.app-home .tile-label { color: #3A3F4B; text-shadow: none; font-size: 11px; left: 11px; top: 11px; }
.app-home .tile-go { color: #3A3F4B; filter: none; }
/* 4 icons fully visible + a sliver of the 5th at the screen edge = "you can swipe" */
.app-home .icons-row { flex: none; display: grid; grid-auto-flow: column; grid-template-columns: none; grid-template-rows: auto;
  grid-auto-columns: calc((100% - 24px) / 4.3); gap: 6px; margin: 16px -15px 0 0; padding: 0 15px 2px 0;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 0; }
.app-home .ic-btn { gap: 8px; scroll-snap-align: start; }
.app-home .ic-circle { width: 62px; height: 62px; border-radius: 18px; background: var(--brand-tint); color: var(--brand); box-shadow: inset 0 0 0 1px rgba(14, 107, 168, .08); }
.app-home .ic-label { font-size: 12px; font-weight: 600; line-height: 1.2; color: var(--text); }
.app-home .near-btn { flex: none; margin-top: 16px; height: 43px; border-radius: 16px; background: #F1F2F5; padding: 0 16px; }
.app-home .near-title { font-size: 14.5px; }
.app-home .near-hint { font-size: 12px; }
.memo-h { flex: none; margin: 28px 0 12px; font-size: 15px; font-weight: 800; color: var(--brand-d); }
.app-home .hscroll { flex: none; margin: 0 -15px; padding: 0 15px 24px; gap: 10px; }
.app-home .tip-card { width: 200px; height: 86px; padding: 10px 12px; gap: 12px; background: #fff; border: 1px solid var(--line); box-shadow: none; border-radius: 16px; }
.tip-pic { flex: none; width: 61px; height: 61px; border-radius: 17px; background: #E4E6EB; }
.app-home .tip-card b { font-size: 12px; }
.app-home .tip-card small { font-size: 10.5px; margin-top: 3px; }
.app-home .tabbar { position: relative; left: auto; transform: none; flex: none; }

/* ---------- Tours ---------- */
.big-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 16px; background: var(--brand); color: #fff; font-size: 16px; font-weight: 800; text-align: center; box-shadow: 0 6px 16px rgba(14, 107, 168, .28); margin: 14px 0 0; }
.big-btn small { font-weight: 600; opacity: .85; font-size: 13px; }
.big-btn-soft { background: var(--brand-tint); color: var(--brand); box-shadow: none; }
.big-btn[hidden] { display: none; }

.tour-card { position: relative; display: block; height: 190px; border-radius: 22px; overflow: hidden; margin-bottom: 14px; background: #1b2a38; box-shadow: var(--shadow); }
.tour-card img { width: 100%; height: 100%; object-fit: cover; }
.tour-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.72)); }
.tour-card-body { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px; color: #fff; }
.tour-card-body b { display: block; font-size: 20px; font-weight: 800; line-height: 1.15; }
.tour-card-body small { opacity: .9; font-size: 13px; }

.tour-hero { position: relative; height: 330px; background: #1b2a38; overflow: hidden; }
.tour-hero img { width: 100%; height: 100%; object-fit: cover; }
.tour-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.78) 100%); }
.tour-hero .round-btn { position: absolute; z-index: 2; top: calc(12px + env(safe-area-inset-top, 0px)); left: 14px; background: rgba(255,255,255,.92); }
.tour-hero-text { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 34px; color: #fff; }
.tour-hero-text h1 { margin: 4px 0 0; font-size: 30px; line-height: 1.1; font-weight: 900; letter-spacing: -.01em; }
.tour-hero-text small { font-size: 13px; font-weight: 700; opacity: .9; }
.tour { margin-top: -20px; position: relative; background: #fff; border-radius: 22px 22px 0 0; padding-top: 18px; }
.tour-intro { font-size: 16px; line-height: 1.6; color: #3A3F4B; margin: 0; }

.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--brand-tint), var(--brand), var(--brand-tint)); border-radius: 2px; }
.tl-part { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px -22px; font-weight: 800; font-size: 15px; color: var(--brand-d); }
.tl-part span { width: 20px; text-align: center; background: #fff; }
.tl-stop, .next-card { position: relative; display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.tl-dot { position: absolute; left: -24px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.tl-thumb { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; flex: none; }
.tl-thumb-empty { display: flex; align-items: center; justify-content: center; background: #E4E6EB; font-size: 30px; }
.tl-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tl-time { color: var(--brand); font-weight: 800; font-size: 12px; }
.tl-body b { font-size: 16px; line-height: 1.2; }
.tl-lead { color: var(--dim); font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tl-move { display: inline-flex; margin: 10px 0 10px 6px; padding: 5px 11px; border-radius: 20px; background: var(--soft); color: var(--dim); font-size: 12.5px; font-weight: 700; }
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.rating small { color: var(--faint); }
.stars { display: inline-flex; gap: 1px; font-size: var(--s, 15px); line-height: 1; }
.stars i { font-style: normal; color: #D5D8DE; }
.stars i.on { color: #F5B301; }

/* stop page */
.stop-bar { position: sticky; top: 0; z-index: 25; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px 8px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.stop-bar-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.stop-bar-title small { color: var(--brand); font-weight: 800; font-size: 11.5px; }
.stop-bar-title b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress { flex-basis: 100%; display: flex; gap: 4px; }
.progress i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.progress i.on { background: var(--brand); }

.gallery { display: grid; gap: 4px; height: 300px; }
.gallery.g1 { grid-template-columns: 1fr; }
.gallery.g2 { grid-template-columns: 2fr 1fr; }
.gallery.g3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery.g3 .g-item:first-child { grid-row: span 2; }
.g-item { overflow: hidden; background: #E4E6EB; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.g-item:active img { transform: scale(1.03); }
.g-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: #E4E6EB; color: var(--faint); }
.g-empty span { font-size: 64px; }
.g-empty small { font-weight: 700; }
.stop-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.part-chip { font-size: 12.5px; font-weight: 800; padding: 5px 10px; border-radius: 10px; background: var(--brand-tint); color: var(--brand); }
.part-chip.adult { background: #FDE2E0; color: #C0392B; }
.stop-title { font-size: 27px; line-height: 1.12; font-weight: 900; letter-spacing: -.01em; margin: 10px 0 8px; }
.stop-lead { font-size: 17px; line-height: 1.45; color: #2E333D; margin: 0 0 8px; font-weight: 500; }
.hl-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 2px; }
.hl { font-size: 13px; font-weight: 700; padding: 7px 11px; border-radius: 12px; background: var(--soft); }
.start-btn { flex-direction: column; gap: 0; min-height: 60px; font-size: 18px; margin-top: 16px; }
.stop-body p { font-size: 15.5px; line-height: 1.65; color: #3A3F4B; margin: 14px 0 0; }
.video-box { margin-top: 16px; aspect-ratio: 16 / 9; border-radius: 18px; background: #E4E6EB; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--faint); overflow: hidden; }
.video-box span { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--brand); }
.video-box small { font-weight: 700; }
.video-box video { width: 100%; height: 100%; object-fit: cover; }
.tip-box { margin-top: 16px; padding: 14px 16px; border-radius: 18px; background: #FFF6E0; }
.tip-box b { font-size: 14px; }
.tip-box p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.5; color: #5A4A1E; }
.stop .info { margin-top: 14px; }

.rate-box { margin-top: 22px; padding: 18px 16px; border-radius: 20px; background: linear-gradient(135deg, #EAF4FB, #FFF8E6); text-align: center; }
.rate-title { font-size: 19px; font-weight: 900; }
.rate-box > p { margin: 6px 0 10px; color: var(--dim); font-size: 14px; line-height: 1.45; }
.rate-stars { display: flex; justify-content: center; gap: 6px; }
.rate-stars button { font-size: 40px; line-height: 1; color: #D5D8DE; transition: transform .15s, color .15s; }
.rate-stars button.on { color: #F5B301; transform: scale(1.08); }
.rate-box textarea, .rate-box input { display: none; width: 100%; margin-top: 10px; font: inherit; font-size: 15px; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; resize: vertical; }
.rate-box.open textarea, .rate-box.open input { display: block; }
.rate-box .big-btn { display: none; }
.rate-box.open .big-btn { display: flex; }
.rate-box.done .rate-stars, .rate-box.done textarea, .rate-box.done input, .rate-box.done .big-btn { display: none; }
.rate-msg { margin: 12px 0 0; font-weight: 800; color: var(--brand-d); }
.reviews .review { padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); margin-bottom: 8px; }
.review b { margin-left: 8px; font-size: 14px; }
.review p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.45; color: #3A3F4B; }
.next-box { margin-top: 22px; }
.next-box .tl-move { margin-left: 0; }
.finish-box { margin-top: 22px; padding: 20px; border-radius: 20px; background: var(--brand-tint); text-align: center; }
.finish-box b { font-size: 21px; }
.finish-box p { color: var(--dim); }

/* top map sheet («Start») */
.topsheet-bg { position: fixed; inset: 0; z-index: 110; background: rgba(15, 18, 30, .45); display: flex; justify-content: center; align-items: flex-start; animation: fade .2s ease; }
.topsheet { position: relative; width: 100%; max-width: 520px; max-height: 92%; display: flex; flex-direction: column; background: #fff; border-radius: 0 0 26px 26px; overflow: hidden; animation: down .32s cubic-bezier(.2, .8, .2, 1); padding-bottom: 14px; }
.topsheet-bg.closing .topsheet { animation: upout .25s ease forwards; }
@keyframes down { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes upout { to { transform: translateY(-100%); } }
.topsheet .map-box { flex: none; height: 40vh; min-height: 210px; border-radius: 0; }
.ts-body { padding: 14px 16px 0; overflow-y: auto; }
.ts-body .sheet-head b { font-size: 18px; }
.ts-list { margin-top: 14px; }
.ts-h { display: block; color: var(--faint); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.ts-item { width: 100%; display: grid; grid-template-columns: 1fr auto; text-align: left; gap: 0 10px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line); margin-bottom: 6px; }
.ts-item b { font-size: 14.5px; }
.ts-item small { grid-column: 1; color: var(--dim); font-size: 12.5px; }
.ts-item span { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 800; color: var(--brand); font-size: 14px; }
.ts-item.on { border-color: var(--brand); background: var(--brand-tint); }
.ts-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ts-acts .big-btn { margin-top: 0; font-size: 15px; }
.ts-here { width: 100%; margin-top: 12px; padding: 12px; border-radius: 14px; background: #EAF7EE; color: #1D7B34; font-weight: 800; font-size: 14.5px; }
.ts-grip { position: absolute; left: 50%; bottom: 5px; transform: translateX(-50%); width: 40px; height: 4px; border-radius: 4px; background: var(--line); }

.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.94); display: flex; align-items: center; justify-content: center; animation: fade .2s ease; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-close { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; }
.lb-count { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); color: #fff; font-weight: 700; font-size: 14px; }

.audio-box { margin-top: 16px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(135deg, #1C2C44, #2E4A6E); color: #fff; }
.audio-box > span { width: 48px; height: 48px; flex: none; border-radius: 50%; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.audio-box b { display: block; font-size: 16px; }
.audio-box small { opacity: .8; font-size: 13px; }
.audio-box audio { width: 100%; margin-top: 8px; }

.app-home a.memo-h { display: block; }
.coll-intro { margin: 4px 0 14px; font-size: 14px; line-height: 1.5; }
.coll-item { margin-bottom: 10px; }

/* «Tasty spots» category chips — scroll sideways */
.chip-row { position: sticky; top: calc(59px + env(safe-area-inset-top, 0px)); z-index: 15; display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.cat-chip { flex: none; display: flex; align-items: center; gap: 7px; padding: 9px 14px 9px 10px; border-radius: 14px; background: var(--soft); font-weight: 700; font-size: 14px; white-space: nowrap; }
.cat-chip span { width: 30px; height: 30px; border-radius: 9px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.cat-chip.on { background: var(--brand); color: #fff; }

.app-home .ic-circle.ic-img { background: none; box-shadow: none; }
.ic-circle.ic-img { overflow: visible; }
/* every picture has the same drawing height; wide ones are simply wider */
.ic-circle.ic-img img { height: 52px; width: auto; max-width: none; object-fit: contain; }

/* «Near you» sheet: the same 8 icons as on the home page — 4 visible + a sliver of the 5th */
.sheet .icons-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 4.3); gap: 6px; margin: 0 -16px 0 0; padding: 0 16px 2px 0; overflow-x: auto; scroll-snap-type: x mandatory; }
.sheet .ic-btn { gap: 6px; scroll-snap-align: start; }
.sheet .ic-circle { width: 58px; height: 58px; border-radius: 16px; }
.sheet .ic-circle.ic-img { background: none; box-shadow: none; overflow: visible; }
.sheet .ic-circle.ic-img img { height: 48px; width: auto; max-width: none; transition: transform .15s; }
.sheet .ic-btn .ic-label { font-size: 12px; font-weight: 600; color: var(--dim); }
.sheet .ic-btn.on .ic-circle.ic-img { box-shadow: none; background: none; }
.sheet .ic-btn.on .ic-circle.ic-img img { transform: scale(1.12); }
.sheet .ic-btn.on .ic-label { color: var(--brand); font-weight: 800; }
.sheet .ic-btn.on .ic-label::after { content: ''; display: block; width: 22px; height: 3px; border-radius: 3px; background: var(--brand); margin: 3px auto 0; }
.pin-pic { background: #fff; border-color: #fff; }
.pin-pic img { width: 26px; height: 26px; object-fit: contain; }

/* ---------- Section page (modern) ---------- */
.sec-hero { position: relative; height: 210px; overflow: hidden; background: linear-gradient(135deg, #DCEBF7, #F4F8FC); }
.sec-hero-img { width: 100%; height: 100%; object-fit: cover; }
.sec-hero:not(.sec-hero-plain)::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,0) 40%, rgba(0,0,0,.7)); }
.sec-hero-icon { position: absolute; right: 18px; bottom: 26px; height: 120px; width: auto; }
.sec-hero-emoji { position: absolute; right: 22px; bottom: 30px; font-size: 90px; }
.sec-hero .hero-back { position: absolute; z-index: 2; top: calc(12px + env(safe-area-inset-top, 0px)); left: 14px; background: rgba(255,255,255,.92); }
.sec-hero-lang { position: absolute; z-index: 2; top: calc(12px + env(safe-area-inset-top, 0px)); right: 14px; }
.sec-hero-lang .lang summary { background: rgba(255,255,255,.92); color: var(--text); }
.sec-hero-text { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 30px; color: #fff; }
.sec-hero-plain .sec-hero-text { color: var(--text); right: 150px; }
.sec-hero-text h1 { margin: 0; font-size: 28px; font-weight: 900; line-height: 1.1; }
.sec-hero-text small { font-size: 14px; font-weight: 700; opacity: .85; }
.sec-chips { top: 0; margin-top: -16px; border-radius: 18px 18px 0 0; position: relative; }
.sec-page { padding-top: 4px; }
.pick-row { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pick-row::-webkit-scrollbar { display: none; }
.pick-card { position: relative; flex: none; width: 250px; height: 175px; border-radius: 20px; overflow: hidden; scroll-snap-align: start; background: #E4E6EB; box-shadow: var(--shadow); }
.pick-card > img { width: 100%; height: 100%; object-fit: cover; }
.pick-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.72)); }
.pick-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 60px; }
.pick-empty img { height: 90px; }
.pick-body { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; color: #fff; }
.pick-body b { display: block; font-size: 17px; line-height: 1.2; }
.pick-body small { display: block; font-size: 12.5px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-ad { position: absolute; z-index: 2; top: 10px; left: 10px; margin: 0; }
.near-card .thumb { width: 64px; height: 64px; }
.thumb-icon { display: flex; align-items: center; justify-content: center; background: #F3F6FA; }
.thumb-icon img { height: 42px; width: auto; }
.near-dist { flex: none; font-weight: 800; color: var(--brand); font-size: 13.5px; }
.map-fab { position: fixed; z-index: 29; left: 50%; transform: translateX(-50%); bottom: calc(92px + var(--safe-b)); display: flex; align-items: center; gap: 6px; padding: 12px 20px; border-radius: 30px; background: #16181D; color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 8px 22px rgba(0,0,0,.28); }

.sec-h-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nearme-btn { flex: none; margin-top: 12px; padding: 7px 12px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); font-weight: 800; font-size: 13px; }
.nearme-btn[hidden] { display: none; }

/* ---------- Place page ---------- */
.place-top { position: relative; }
.place-top .hero-back, .place-top .hero-fav { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); background: rgba(255,255,255,.92); box-shadow: var(--shadow); }
.place-top .hero-back { left: 14px; } .place-top .hero-fav { right: 14px; }
.place-top .hero-fav.on { color: #E0455F; } .place-top .hero-fav.on svg { fill: #E0455F; }
.place-top + .place { margin-top: -18px; }
.g-empty-icon { height: 130px; width: auto; }
.share-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 14px; }
.sh-btn { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 2px; border-radius: 14px; background: var(--soft); font-size: 11px; font-weight: 700; color: var(--dim); }
.sh-btn svg { width: 24px; height: 24px; }
.sh-tg svg { color: #229ED9; } .sh-wa svg { color: #25D366; } .sh-ig svg { color: #E1306C; } .sh-fb svg { color: #1877F2; } .sh-more svg { color: var(--brand); }
.sim-card { flex: none; width: 150px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; }
.sim-card > img, .sim-pic { width: 150px; height: 110px; border-radius: 16px; object-fit: cover; background: #F3F6FA; display: flex; align-items: center; justify-content: center; font-size: 44px; }
.sim-pic img { height: 64px; width: auto; }
.sim-card b { font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sim-card small { color: var(--brand); font-weight: 800; font-size: 12.5px; }
.toast { position: fixed; z-index: 130; left: 50%; bottom: calc(100px + var(--safe-b)); transform: translateX(-50%); max-width: 90%; background: #16181D; color: #fff; padding: 11px 16px; border-radius: 14px; font-weight: 700; font-size: 14px; text-align: center; }
.place .info { margin-top: 14px; }
