/* SHABAB MAP site — a familiar map-app layout in OUR look: pill search with the SHABAB MAP icon (top), place chips under it, layers button with a
   picture of the other view (bottom-left: tap = Satellite / Map, long-press = all styles), soft glass panels, navy #0A2E5C + gold, Arabic right-to-left. */
:root { --bg: rgba(255, 255, 255, .82); --bg2: #ffffff; --tx: #10213f; --mu: #66708a; --ln: rgba(16, 33, 63, .1); --ac: #0A2E5C; --acTx: #fff; --gold: #b68b2e; --gold2: #e6bb5c;
  --sh: 0 12px 32px rgba(10, 30, 70, .16), 0 2px 6px rgba(10, 30, 70, .07); --sh2: 0 4px 14px rgba(10, 30, 70, .12); --r: 18px; --blur: blur(18px) saturate(1.5); color-scheme: light; }
[data-ui="dark"] { --bg: rgba(12, 22, 44, .8); --bg2: #101c38; --tx: #eef2fb; --mu: #9aa8c8; --ln: rgba(255, 255, 255, .1); --ac: #e6bb5c; --acTx: #1c1300; --gold: #e6bb5c;
  --sh: 0 14px 34px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .28); --sh2: 0 4px 14px rgba(0, 0, 0, .35); color-scheme: dark; }
* { box-sizing: border-box; } [hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: #0A2E5C; font-family: "Inter", "SF Pro Text", "Segoe UI", system-ui, -apple-system, "Noto Sans Arabic", "Noto Sans", Tahoma, sans-serif; color: var(--tx); -webkit-font-smoothing: antialiased; overflow: hidden; -webkit-tap-highlight-color: transparent; }
#map { position: fixed; inset: 0; }
button, input, textarea { font: inherit; color: inherit; }
.btn, .tbtn, .bar, .panel, .sheet, .chip, .foot, .cat, .layers, .maplibregl-ctrl-group, .ioshint { transition: background-color .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease; }
.btn, .tbtn, .bar, .panel, .sheet, .chip, .foot, .cat { background: var(--bg); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--ln); box-shadow: var(--sh); }
/* top-right: buttons + tools column */
.topr { position: fixed; z-index: 11; top: max(14px, env(safe-area-inset-top)); inset-inline-end: 14px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
[dir="rtl"] .topr { align-items: flex-start; } .topbtns { display: flex; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--tx); border-radius: 14px; padding: 9px 15px; cursor: pointer; font-weight: 650; font-size: 14px; text-decoration: none; white-space: nowrap; min-height: 44px; }
.btn:hover { border-color: rgba(230, 187, 92, .7); } .btn:active { transform: scale(.97); } .btn.round { width: 44px; padding: 0; font-weight: 800; }
.btn.pri { background: var(--ac); color: var(--acTx); border-color: transparent; } .btn.sm { min-height: 32px; padding: 5px 10px; box-shadow: none; background: transparent; border-color: var(--ln); } .btn.ghost { min-width: 34px; }
.btn.gold { background: linear-gradient(135deg, #f6dc98, #e6bb5c 55%, #c99a3a); color: #2a1b00; border-color: rgba(255, 255, 255, .4); } .btn.gold img { border-radius: 5px; }
.lyr { width: 18px; height: 18px; position: relative; } .lyr:before, .lyr:after { content: ""; position: absolute; left: 1px; right: 1px; height: 9px; border-radius: 3px; transform: skewY(-14deg) rotate(-2deg); }
.lyr:before { top: 6px; background: var(--mu); opacity: .55; } .lyr:after { top: 1px; background: var(--gold); box-shadow: 0 1px 0 rgba(0, 0, 0, .15); }
/* search: rounded pill, top-left (like the map apps people know), our icon inside */
.bar { position: fixed; z-index: 13; top: max(14px, env(safe-area-inset-top)); inset-inline-start: 14px; width: min(420px, calc(100vw - 420px)); min-width: 320px; border-radius: 26px; padding: 0; overflow: hidden; }
.grab { display: none; }
.search { position: relative; display: flex; align-items: center; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 14px 6px; font-size: 15.5px; }
.smark { width: 30px; height: 30px; margin-inline-start: 10px; border-radius: 8px; flex: none; }
.lang2 { display: none; }
.search input::-webkit-search-cancel-button { display: none; } .search input::placeholder { color: var(--mu); }
.bar:focus-within { box-shadow: var(--sh), 0 0 0 3px rgba(230, 187, 92, .45); }
.sicon { width: 17px; height: 17px; margin-inline: 4px 18px; flex: none; border: 2.2px solid var(--mu); border-radius: 50%; position: relative; }
.sicon:after { content: ""; position: absolute; width: 7px; height: 2.2px; background: var(--mu); right: -6px; bottom: -3px; transform: rotate(45deg); border-radius: 2px; }
.qx { border: 0; background: transparent; font-size: 20px; padding: 0 8px; cursor: pointer; color: var(--mu); }
.sugg { margin: 0; padding: 6px; list-style: none; border-top: 1px solid var(--ln); max-height: min(60vh, 440px); overflow: auto; animation: fade .18s ease-out; }
.sugg li { display: flex; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 12px; cursor: pointer; }
.sugg li.cathd { cursor: default; font-size: 12px; color: var(--mu); padding: 4px 10px; } .sugg li.cathd:hover { background: none; }
.sugg li[aria-selected="true"], .sugg li:hover { background: rgba(230, 187, 92, .16); }
.sugg .k { margin-inline-start: auto; font-size: 11.5px; color: var(--mu); white-space: nowrap; padding: 3px 8px; border-radius: 999px; background: var(--ln); }
.sugg .sub { font-size: 12px; color: var(--mu); margin-top: 1px; text-align: left; } [dir="rtl"] .sugg .sub { text-align: right; } .sugg .nm { font-weight: 600; font-size: 14.5px; }
.pico { width: 34px; height: 34px; flex: none; border-radius: 50%; background-color: rgba(230, 187, 92, .2); background-repeat: no-repeat; display: grid; place-items: center; }
.pico.dot:before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(230, 187, 92, .3); }
/* place chips under the search */
.cats { position: fixed; z-index: 10; top: calc(max(14px, env(safe-area-inset-top)) + 60px); inset-inline-start: 14px; max-width: calc(100vw - 200px); display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 8px; -webkit-overflow-scrolling: touch; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 5px 14px 5px 6px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--tx); cursor: pointer; box-shadow: var(--sh2); white-space: nowrap; }
.cat .pico { width: 24px; height: 24px; } .cat:hover { border-color: rgba(230, 187, 92, .7); } .cat:active { transform: scale(.96); }
.cat[aria-pressed="true"] { background: var(--ac); color: var(--acTx); border-color: transparent; }
/* layers button: a picture of the OTHER view; tap = switch, long-press = all styles */
.layers { position: fixed; z-index: 9; inset-inline-start: 14px; bottom: 50px; width: 78px; height: 78px; padding: 0; border-radius: 16px; cursor: pointer; overflow: hidden; display: block; box-shadow: var(--sh); border: 3px solid #fff; background: #24324a; -webkit-touch-callout: none; user-select: none; }
[data-ui="dark"] .layers { border-color: #1b2a48; }
.layers .lthumb { position: absolute; inset: 0; overflow: hidden; background: #24324a center/cover no-repeat; }
.layers .lthumb img, .layers .lthumb svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.layers b { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 4px 5px; font-size: 12px; font-weight: 700; color: #fff; text-align: center; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.layers:hover { box-shadow: var(--sh), 0 0 0 2px rgba(230, 187, 92, .8); } .layers:active { transform: scale(.96); }
.layers.press { box-shadow: var(--sh), 0 0 0 3px #e6bb5c; }
/* panels */
.panel, .sheet { position: fixed; z-index: 12; border-radius: var(--r); }
.phd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; } .phd b { font-size: 15.5px; letter-spacing: .2px; }
.x { border: 0; background: var(--ln); font-size: 19px; line-height: 1; cursor: pointer; color: var(--mu); width: 32px; height: 32px; border-radius: 50%; flex: none; } .x:hover { color: var(--tx); }
.styles { top: 74px; inset-inline-end: 14px; width: 352px; padding: 16px; animation: pop .22s cubic-bezier(.2, .9, .3, 1.2); transform-origin: top right; }
[dir="rtl"] .styles { transform-origin: top left; }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.97); } } @keyframes fade { from { opacity: 0; } } @keyframes up { from { opacity: 0; transform: translateY(18px); } }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.card { border: 0; border-radius: 14px; padding: 4px 4px 8px; background: transparent; cursor: pointer; text-align: center; font-size: 12.5px; font-weight: 650; color: var(--tx); transition: transform .15s; }
.card:hover { transform: translateY(-2px); }
.card svg { display: block; width: 100%; height: 66px; border-radius: 12px; box-shadow: 0 3px 10px rgba(0, 0, 0, .18), inset 0 0 0 1px rgba(255, 255, 255, .15); margin-bottom: 7px; outline: 2.5px solid transparent; outline-offset: 2px; transition: outline-color .2s; }
.card[aria-pressed="true"] svg { outline-color: var(--gold2); } .card[aria-pressed="true"] { color: var(--gold); }
.card:focus-visible { outline: 2px solid var(--gold2); outline-offset: 2px; }
.tog { display: flex; align-items: center; gap: 12px; padding: 9px 2px; cursor: pointer; font-size: 14px; border-top: 1px solid var(--ln); } .tog input { position: absolute; opacity: 0; }
.tog span { width: 42px; height: 24px; border-radius: 24px; background: var(--ln); position: relative; transition: .2s; flex: none; }
.tog span:before { content: ""; position: absolute; width: 20px; height: 20px; top: 2px; inset-inline-start: 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); transition: transform .22s cubic-bezier(.3, 1.4, .5, 1); }
.tog input:checked + span { background: linear-gradient(135deg, #f0cd7a, #d9ae4e); } .tog input:checked + span:before { transform: translateX(18px); } [dir="rtl"] .tog input:checked + span:before { transform: translateX(-18px); }
.tog input:focus-visible + span { outline: 2px solid var(--gold2); outline-offset: 2px; }
.beta { font-style: normal; font-size: 10.5px; padding: 1px 7px; border-radius: 6px; background: rgba(230, 187, 92, .2); color: var(--gold); }
.tiny { font-size: 11.5px; color: var(--mu); margin: 8px 0 0; line-height: 1.5; }
/* tools */
.tools { display: flex; flex-direction: column; gap: 8px; }
.styles:not([hidden]) ~ .tools { visibility: hidden; }
.tbtn { width: 44px; height: 44px; border-radius: 14px; color: var(--tx); cursor: pointer; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.tbtn[aria-pressed="true"] { background: var(--ac); color: var(--acTx); border-color: transparent; } .tbtn:active { transform: scale(.95); }
.ruler { width: 20px; height: 8px; border: 2px solid currentColor; border-radius: 2px; background: repeating-linear-gradient(90deg, currentColor 0 1.5px, transparent 1.5px 4px) 0 0/100% 50% no-repeat; }
.chip { position: fixed; z-index: 11; left: 50%; transform: translateX(-50%); top: 124px; display: flex; gap: 6px; align-items: center; padding: 6px 6px 6px 16px; border-radius: 999px; animation: fade .2s; }
.chip b { font-size: 15px; min-width: 70px; }
/* place card */
/* desktop: the place card + the list of places sit on the left under the chips (the layers button stays free at the bottom) */
.sheet { inset-inline-start: 14px; top: calc(max(14px, env(safe-area-inset-top)) + 112px); width: 392px; max-height: calc(100vh - 260px); overflow: auto; overscroll-behavior: contain; padding: 16px; animation: up .26s cubic-bezier(.2, .9, .3, 1.1); }
.lhd { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; } .lhd b { font-size: 14px; color: var(--mu); font-weight: 650; }
.sugg.plain { border: 0; padding: 0; max-height: none; overflow: visible; animation: none; }
.place { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; } .pname { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pname b { font-size: 17px; line-height: 1.25; } .psub { font-size: 13px; color: var(--mu); margin-top: 2px; text-align: left; } [dir="rtl"] .psub { text-align: right; }
.place .pico { width: 44px; height: 44px; }
.coords { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; padding: 10px 12px; border-radius: 12px; background: var(--ln); }
.coords code { font-size: 15.5px; font-weight: 700; direction: ltr; unicode-bidi: isolate; letter-spacing: .2px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; } .pc { font-size: 12px; color: var(--mu); direction: ltr; unicode-bidi: isolate; }
.acts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 9px 2px; border-radius: 14px; border: 1px solid var(--ln); background: transparent; color: var(--tx); cursor: pointer; font-size: 11.5px; font-weight: 650; text-decoration: none; text-align: center; line-height: 1.2; }
.act:hover { background: rgba(230, 187, 92, .12); } .act:active { transform: scale(.96); } .act.pri { background: var(--ac); color: var(--acTx); border-color: transparent; }
.ic { width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; }
.ic-copy { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Crect x='8' y='8' width='12' height='12' rx='2.5'/%3E%3Cpath d='M16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2'/%3E%3C/svg%3E"); }
.ic-link { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M10 14a4.5 4.5 0 0 0 6.4 0l3-3a4.5 4.5 0 0 0-6.4-6.4l-1.2 1.2'/%3E%3Cpath d='M14 10a4.5 4.5 0 0 0-6.4 0l-3 3a4.5 4.5 0 0 0 6.4 6.4l1.2-1.2'/%3E%3C/svg%3E"); }
.ic-out { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9'/%3E%3Cpath d='M18 14v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4'/%3E%3C/svg%3E"); }
.ic-qr { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h8v8H3zm2 2v4h4V5zM13 3h8v8h-8zm2 2v4h4V5zM3 13h8v8H3zm2 2v4h4v-4zM13 13h3v3h-3zM18 13h3v3h-3zM13 18h3v3h-3zM18 18h3v3h-3zM16 16h2v2h-2z'/%3E%3C/svg%3E"); }
.ic-code { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 7l-5 5 5 5M16 7l5 5-5 5M14 4l-4 16'/%3E%3C/svg%3E"); }
.qrcard { margin-top: 12px; display: flex; flex-direction: column; align-items: center; background: linear-gradient(180deg, #0A2E5C, #0b2450); border-radius: 16px; padding: 14px 14px 10px; animation: fade .2s; }
.qrhead { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; } .qrhead img { border-radius: 6px; }
.qr { background: #fff; padding: 10px; border-radius: 12px; } .qr svg { width: 170px; height: 170px; display: block; } .qrcard .tiny { color: #c8d4ee; }
.embed textarea { width: 100%; margin-top: 12px; border-radius: 12px; border: 1px solid var(--ln); background: var(--bg2); padding: 9px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; resize: none; direction: ltr; }
.foot { position: fixed; z-index: 5; inset-inline-start: 14px; bottom: 14px; font-size: 12px; padding: 6px 12px; border-radius: 999px; color: var(--mu); box-shadow: var(--sh2); }
.foot a, .bar-foot a { color: var(--tx); font-weight: 700; text-decoration: none; }
html[dir="rtl"] .foot { left: auto; right: 14px; }
.wmark { position: fixed; z-index: 4; left: 50%; transform: translateX(-50%); bottom: 14px; height: 24px; border-radius: 7px; box-shadow: var(--sh2); pointer-events: none; }
.openbig { position: fixed; z-index: 10; top: 10px; inset-inline-start: 10px; font-size: 12.5px; padding: 7px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--ln); color: var(--tx); text-decoration: none; box-shadow: var(--sh); font-weight: 650; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.toast { position: fixed; z-index: 30; left: 50%; bottom: 80px; transform: translateX(-50%) translateY(16px); opacity: 0; transition: .28s cubic-bezier(.2, .9, .3, 1.1); background: #0A2E5C; color: #fff; padding: 11px 18px; border-radius: 14px; font-size: 14px; box-shadow: 0 10px 28px rgba(0, 0, 0, .3); max-width: min(92vw, 520px); text-align: center; pointer-events: none; border: 1px solid rgba(230, 187, 92, .35); }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
/* loading screen: the official icon (transparent, clean edges on any screen) + the words as real text; a short intro (1.2 s): icon scales in with a
   soft glow, the pin drops onto the folded map with a tiny bounce, a gold shine sweeps the frame; thin gold bar = the real loading; crossfade to the map */
@font-face { font-family: "SB Montserrat"; src: url("/brand/montserrat-900.woff2") format("woff2"); font-weight: 900; font-display: block; }
.skel { position: fixed; inset: 0; z-index: 40; background: radial-gradient(75% 60% at 50% 40%, #0c3d8f 0%, #082b6b 38%, #04194a 72%, #020d2b 100%); overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity .38s ease, visibility .38s; --p: 4%; }
.skel.off { opacity: 0; visibility: hidden; pointer-events: none; }
.sk-art { position: relative; display: flex; flex-direction: column; align-items: center; margin-top: -4vh; }
.sk-glow { position: absolute; width: 360px; height: 360px; top: -70px; left: 50%; margin-left: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 206, 110, .32) 0%, rgba(64, 140, 255, .22) 38%, transparent 70%); filter: blur(6px); animation: skGlow .7s ease-out both; }
.sk-icon { position: relative; width: 210px; height: 210px; animation: skIn .55s cubic-bezier(.2, .9, .3, 1.15) both; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); }
.sk-icon img { position: absolute; inset: 0; width: 100%; height: 100%; }
.sk-pin { animation: skDrop .5s .25s cubic-bezier(.3, .7, .4, 1) both; transform-origin: 50% 72%; }
.sk-full { opacity: 0; animation: skShow .01s .75s forwards; }
.sk-shine { position: absolute; inset: 0; -webkit-mask: url("/icons/splash-icon.png") center/contain no-repeat; mask: url("/icons/splash-icon.png") center/contain no-repeat; overflow: hidden; }
.sk-shine:before { content: ""; position: absolute; inset: -10%; background: linear-gradient(105deg, transparent 34%, rgba(255, 240, 200, .15) 42%, rgba(255, 250, 230, .95) 50%, rgba(255, 240, 200, .15) 58%, transparent 66%); transform: translateX(-130%); animation: skShine .5s .6s ease-in-out both; mix-blend-mode: screen; }
.sk-word { display: flex; flex-direction: column; align-items: center; margin-top: 18px; font-family: "SB Montserrat", "Montserrat", "Arial Black", system-ui, sans-serif; font-weight: 900; line-height: .95; letter-spacing: .01em; animation: skWord .4s .45s ease-out both; }
.sk-word b { display: block; -webkit-background-clip: text; background-clip: text; color: transparent; }
.sk-word .g { font-size: 46px; background-image: linear-gradient(180deg, #fff6cf 0%, #f6d47a 30%, #e2a93a 52%, #b97a14 62%, #f4cf6c 85%, #fde7a4 100%); filter: drop-shadow(0 2px 0 #6e4a08) drop-shadow(0 8px 16px rgba(0, 0, 0, .45)); }
.sk-word .s { font-size: 54px; margin-top: 2px; background-image: linear-gradient(180deg, #ffffff 0%, #eef1f6 35%, #a9b2c0 55%, #7f8a9b 62%, #dfe4ec 85%, #ffffff 100%); filter: drop-shadow(0 2px 0 #3b4352) drop-shadow(0 8px 16px rgba(0, 0, 0, .45)); }
.sk-bottom { position: absolute; left: 0; right: 0; bottom: max(26px, calc(env(safe-area-inset-bottom) + 18px)); display: flex; flex-direction: column; align-items: center; gap: 4px; color: rgba(214, 224, 245, .78); font-size: 12px; letter-spacing: .02em; }
.sk-bottom i { font-style: normal; } .sk-bottom .slow { color: #f3d38a; }
.sk-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .06); }
.sk-bar span { display: block; height: 100%; width: var(--p); background: linear-gradient(90deg, #b8861f, #f6d47a 70%, #fff3c4); box-shadow: 0 0 10px rgba(246, 212, 122, .7); border-radius: 0 3px 3px 0; transition: width .25s ease-out; }
@keyframes skIn { 0% { opacity: 0; transform: scale(.72); } 60% { opacity: 1; transform: scale(1.035); } 100% { opacity: 1; transform: scale(1); } }
@keyframes skGlow { 0% { opacity: 0; transform: scale(.6); } 100% { opacity: 1; transform: scale(1); } }
@keyframes skDrop { 0% { opacity: 0; transform: translateY(-34%) scale(.96); } 35% { opacity: 1; } 68% { transform: translateY(0) scale(1.02, .97); } 84% { transform: translateY(-3.5%) scale(.99, 1.01); } 100% { opacity: 1; transform: none; } }
@keyframes skShow { to { opacity: 1; } }
@keyframes skShine { to { transform: translateX(130%); } }
@keyframes skWord { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: none; } }
@media (max-width: 720px) { .sk-icon { width: 176px; height: 176px; } .sk-glow { width: 300px; height: 300px; margin-left: -150px; top: -62px; } .sk-word .g { font-size: 38px; } .sk-word .s { font-size: 45px; } }
@media (prefers-reduced-motion: reduce) { .sk-icon, .sk-glow, .sk-pin, .sk-word, .sk-shine:before, .pin i { animation: none !important; } .sk-full { opacity: 1; animation: none; } .sk-shine { display: none; } .skel { transition: none; } }
/* map controls + markers */
.maplibregl-ctrl-group { border-radius: 14px !important; overflow: hidden; box-shadow: var(--sh) !important; background: var(--bg) !important; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--ln); }
.maplibregl-ctrl-group button { width: 40px; height: 40px; } .maplibregl-ctrl-group button + button { border-top-color: var(--ln) !important; }
[data-ui="dark"] .maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1) brightness(1.5); }
.maplibregl-ctrl-scale { border-color: var(--tx) !important; color: var(--tx) !important; background: var(--bg) !important; border-radius: 0 0 5px 5px; font-weight: 650; }
.maplibregl-ctrl-attrib-inner { color: var(--mu); } .maplibregl-ctrl-scale { direction: ltr; }
.maplibregl-ctrl-attrib { background: var(--bg) !important; color: var(--tx); border-radius: 12px 0 0 0; font-size: 11px; } .maplibregl-ctrl-attrib a { color: var(--tx) !important; }
.maplibregl-ctrl-attrib.maplibregl-compact { border-radius: 14px; }
.maplibregl-ctrl-bottom-right { bottom: 0; } .maplibregl-ctrl-bottom-right .maplibregl-ctrl { margin: 0 14px 12px 0; }
.maplibregl-ctrl-bottom-left { bottom: 50px; } .maplibregl-ctrl-bottom-left .maplibregl-ctrl { margin-left: 104px; }
[dir="rtl"] .maplibregl-ctrl-bottom-left { bottom: 0; } [dir="rtl"] .maplibregl-ctrl-bottom-left .maplibregl-ctrl { margin: 0 0 12px 14px; } [dir="rtl"] .maplibregl-ctrl-bottom-right { bottom: 50px; } [dir="rtl"] .maplibregl-ctrl-bottom-right .maplibregl-ctrl { margin: 0 104px 0 0; }
.pin { width: 40px; height: 52px; cursor: pointer; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35)); }
.pin i { display: block; width: 100%; height: 100%; animation: drop .55s cubic-bezier(.2, 1.5, .4, 1) both; transform-origin: 50% 100%;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 52'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23f8df9e'/%3E%3Cstop offset='.55' stop-color='%23e6bb5c'/%3E%3Cstop offset='1' stop-color='%23b8861f'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M20 50S3 31 3 19a17 17 0 1 1 34 0c0 12-17 31-17 31z' fill='url(%23g)' stroke='%230A2E5C' stroke-width='2.5'/%3E%3Ccircle cx='20' cy='19' r='8.5' fill='%230A2E5C'/%3E%3Cpath d='M20 12.5l1.6 4.9 4.9 1.6-4.9 1.6-1.6 4.9-1.6-4.9-4.9-1.6 4.9-1.6z' fill='%23f3d38a'/%3E%3C/svg%3E"); }
@keyframes drop { 0% { transform: translateY(-40px) scale(.9); opacity: 0; } 60% { transform: translateY(0) scale(1.04, .94); opacity: 1; } 80% { transform: translateY(-5px) scale(.98, 1.02); } 100% { transform: none; } }
.mdot { width: 12px; height: 12px; border-radius: 50%; background: #e6bb5c; border: 2.5px solid #0A2E5C; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
/* iPhone hint */
.ioshint { position: fixed; z-index: 35; left: 50%; transform: translateX(-50%); bottom: max(18px, env(safe-area-inset-bottom)); width: min(94vw, 420px); display: flex; gap: 12px; align-items: center; padding: 12px 10px 12px 12px; border-radius: 20px; background: rgba(10, 46, 92, .96); color: #fff; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); font-size: 13.5px; line-height: 1.4; border: 1px solid rgba(230, 187, 92, .5); animation: up .3s ease-out; }
.ioshint img { border-radius: 10px; flex: none; } .ioshint .x { color: #c8d2e8; background: rgba(255, 255, 255, .1); }
.ioshint:after { content: ""; position: absolute; bottom: -8px; left: 50%; margin-left: -8px; border: 8px solid transparent; border-bottom: 0; border-top-color: rgba(10, 46, 92, .96); }
.share { flex: none; width: 22px; height: 26px; border: 2.4px solid #8fb7ff; border-top: 0; border-radius: 0 0 5px 5px; position: relative; margin-top: 8px; }
.share:before { content: ""; position: absolute; left: 7.5px; top: -12px; width: 2.4px; height: 16px; background: #8fb7ff; } .share:after { content: ""; position: absolute; left: 4px; top: -12px; width: 7px; height: 7px; border-left: 2.4px solid #8fb7ff; border-top: 2.4px solid #8fb7ff; transform: rotate(45deg); }
@media (display-mode: standalone) { #install { display: none !important; } }
/* low-end phones (html.lite): solid panels instead of glass blur, no small animations */
html.lite { --bg: #ffffff; } html.lite[data-ui="dark"] { --bg: #101c38; }
.lite .btn, .lite .tbtn, .lite .bar, .lite .panel, .lite .sheet, .lite .chip, .lite .foot, .lite .cat, .lite .maplibregl-ctrl-group, .lite .openbig { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.lite .sheet, .lite .styles, .lite .sugg, .lite .pin i { animation: none !important; } .lite .btn, .lite .tbtn, .lite .bar, .lite .panel, .lite .sheet, .lite .chip, .lite .foot, .lite .cat, .lite .layers { transition: none; }
/* embed mode */
.embed-mode .bar, .embed-mode .foot, .embed-mode .tools, .embed-mode .topr, .embed-mode .cats { display: none !important; } .embed-mode .styles { top: 10px; } .embed-mode .sheet { top: 10px; bottom: auto; max-height: calc(100% - 20px); } .embed-mode .wmark { bottom: 12px; } .embed-mode .layers { bottom: 12px; width: 64px; height: 64px; } .embed-mode .maplibregl-ctrl-bottom-left { bottom: 12px; } .embed-mode .maplibregl-ctrl-bottom-left .maplibregl-ctrl { margin-left: 88px; }
/* ---------------- phone: search pill on top, chips scroll sideways, layers button bottom-left, place card = bottom sheet */
@media (max-width: 720px) {
  .bar { top: max(10px, env(safe-area-inset-top)); inset-inline: 10px; width: auto; min-width: 0; }
  .search input { padding: 12px 4px; font-size: 16px; } .sicon { display: none; }
  .lang2 { display: grid; place-items: center; flex: none; width: 38px; height: 38px; margin-inline-end: 5px; border: 0; border-radius: 50%; background: var(--ln); font-weight: 800; cursor: pointer; }
  .sugg { max-height: 62vh; }
  .cats { top: calc(max(10px, env(safe-area-inset-top)) + 56px); inset-inline: 0; max-width: none; padding: 2px 10px 8px; }
  .topr { top: calc(max(10px, env(safe-area-inset-top)) + 108px); inset-inline-end: 10px; } #lang { display: none; } .topbtns { flex-direction: column; gap: 8px; }
  #stylesLbl, #installL { display: none; } .btn { padding: 9px 12px; } .btn.round, #stylesBtn, #install { width: 44px; padding: 0; }
  .foot { inset-inline-start: 50%; transform: translateX(-50%); bottom: max(6px, env(safe-area-inset-bottom)); font-size: 10.5px; padding: 4px 10px; white-space: nowrap; }
  html[dir="rtl"] .foot { left: 50%; right: auto; transform: translateX(-50%); }
  .wmark { display: none; }
  .layers { inset-inline-start: 10px; bottom: calc(max(6px, env(safe-area-inset-bottom)) + 34px); width: 64px; height: 64px; } .layers b { font-size: 11px; }
  .styles { inset-inline: 0; width: auto; top: auto; bottom: 0; border-radius: 24px 24px 0 0; max-height: 78vh; overflow: auto; padding-bottom: max(16px, env(safe-area-inset-bottom)); animation: up .26s cubic-bezier(.2, .9, .3, 1.1); z-index: 14; }
  .sheet { inset-inline: 0; width: auto; top: auto; bottom: 0; border-radius: 24px 24px 0 0; padding: 0 14px max(14px, env(safe-area-inset-bottom)); z-index: 14; max-height: 48vh; overflow: auto;
    transition: max-height .28s cubic-bezier(.2, .9, .3, 1), transform .28s cubic-bezier(.2, .9, .3, 1); will-change: transform; }
  .sheet.full { max-height: 88vh; } .sheet.drag { transition: none; }
  .sheet .grab { display: block; position: sticky; top: 0; z-index: 2; height: 26px; margin: 0 -14px 2px; background: inherit; cursor: grab; touch-action: none; }
  .sheet .grab:before { content: ""; position: absolute; left: 50%; top: 9px; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--mu); opacity: .45; }
  .sheet .place, .sheet .lhd { touch-action: none; }
  .chip { top: 112px; }
  .maplibregl-ctrl-bottom-right, [dir="rtl"] .maplibregl-ctrl-bottom-left { bottom: 34px; } .maplibregl-ctrl-bottom-right .maplibregl-ctrl { margin: 0 10px 6px 0; } [dir="rtl"] .maplibregl-ctrl-bottom-left .maplibregl-ctrl { margin: 0 0 6px 10px; }
  .maplibregl-ctrl-bottom-left, [dir="rtl"] .maplibregl-ctrl-bottom-right { bottom: 40px; } .maplibregl-ctrl-bottom-left .maplibregl-ctrl { margin-left: 84px; } [dir="rtl"] .maplibregl-ctrl-bottom-right .maplibregl-ctrl { margin: 0 84px 0 0; }
  .toast { bottom: 120px; }
}
