/* El Gouna Karte – map-first UI. Phone: floating search + pills + draggable bottom sheet. Desktop: floating sidebar. */
:root {
  --brand: #0b6e8a; --brand-2: #0b7896; --brand-ink: #ffffff; --gold: #f2b84b;
  --bg: #ffffff; --bg-2: #f3f5f7; --bg-3: #e9edf1; --ink: #0f1b24; --mut: #5d6b77; --line: rgba(15, 27, 36, .09);
  --glass: rgba(255, 255, 255, .86); --glass-line: rgba(255, 255, 255, .6);
  --ok: #0f7a40; --ok-bg: #e3f6ea; --bad: #c4372b; --bad-bg: #fde9e7; --unk-bg: #eef1f4;
  --sh-1: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 14px rgba(0, 0, 0, .08);
  --sh-2: 0 10px 40px rgba(0, 0, 0, .16), 0 2px 8px rgba(0, 0, 0, .06);
  --r: 18px; --r-s: 12px;
  --sheet-vis: 120px; /* visible height of the bottom sheet, set by JS */
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --brand-2: #1aa3cc; }
  :root {
    --bg: #111a21; --bg-2: #18232c; --bg-3: #223039; --ink: #eef3f6; --mut: #97a6b2; --line: rgba(255, 255, 255, .08);
    --glass: rgba(17, 26, 33, .84); --glass-line: rgba(255, 255, 255, .08);
    --ok: #4ade80; --ok-bg: rgba(74, 222, 128, .14); --bad: #f87171; --bad-bg: rgba(248, 113, 113, .14); --unk-bg: rgba(255, 255, 255, .07);
    --sh-1: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 14px rgba(0, 0, 0, .3);
    --sh-2: 0 10px 40px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg-2); color: var(--ink); }
body { font-size: 15px; line-height: 1.4; -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--brand-2); }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.01em; }
.muted { color: var(--mut); margin: 0; font-size: 13px; }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }
[hidden] { display: none !important; }

#map { position: fixed; inset: 0; }
.maplibregl-ctrl-geolocate, .maplibregl-ctrl-group:empty { display: none !important; }
.maplibregl-ctrl-bottom-left, .maplibregl-ctrl-bottom-right { bottom: calc(var(--sheet-vis) + 4px); transition: bottom .35s var(--ease); }
.maplibregl-ctrl-attrib { font-size: 10px; }
.maplibregl-user-location-dot, .maplibregl-user-location-dot::before { background-color: #1a73e8; }

/* ---------- top: search + pills ---------- */
.top { position: fixed; z-index: 20; top: calc(10px + var(--safe-t)); left: 10px; right: 10px; pointer-events: none; transition: transform .3s var(--ease), opacity .3s; }
.top > * { pointer-events: auto; }
.searchbar { position: relative; display: flex; align-items: center; gap: 4px; height: 50px; padding: 0 6px 0 14px; border-radius: 25px;
  background: var(--glass); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--sh-2); border: 1px solid var(--glass-line); }
.logo { width: 24px; height: 24px; flex: none; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: linear-gradient(135deg, var(--brand-2), var(--brand)); position: relative; }
.logo::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--gold); }
.searchbar input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; padding: 0 6px; }
.searchbar input::placeholder { color: var(--mut); }
.searchbar input::-webkit-search-cancel-button { display: none; }
.ib { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--mut); }
.ib:hover { background: var(--bg-3); }
.langbtn { display: flex; align-items: center; gap: 4px; height: 38px; padding: 0 10px; border-radius: 19px; color: var(--ink); font-size: 13px; }
.langbtn svg.i { width: 17px; height: 17px; color: var(--mut); }
.langbtn:hover { background: var(--bg-3); }
.langmenu { position: absolute; right: 6px; top: 54px; background: var(--bg); border-radius: 14px; box-shadow: var(--sh-2); padding: 6px; display: grid; min-width: 150px; animation: pop .18s var(--ease); }
.langmenu button { text-align: left; padding: 10px 12px; border-radius: 9px; }
.langmenu button:hover, .langmenu button.on { background: var(--bg-2); }
.langmenu button.on { font-weight: 600; color: var(--brand); }
.suggest { margin-top: 8px; background: var(--bg); border-radius: var(--r); box-shadow: var(--sh-2); overflow: hidden auto; max-height: min(60vh, 440px); animation: pop .18s var(--ease); }
.suggest button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 14px; }
.suggest button:hover, .suggest button.hl { background: var(--bg-2); }
.suggest .nm { font-weight: 600; } .suggest small { display: block; color: var(--mut); font-size: 12.5px; }
.suggest .lbl { padding: 10px 14px 4px; font-size: 12px; font-weight: 600; color: var(--mut); text-transform: uppercase; letter-spacing: .04em; }

.pills { display: flex; gap: 8px; margin: 10px -10px 0; padding: 2px 10px 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.pills::-webkit-scrollbar { display: none; }
.pill { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px 0 11px; border-radius: 18px; white-space: nowrap; font-size: 14px; font-weight: 500;
  background: var(--glass); backdrop-filter: blur(16px) saturate(170%); -webkit-backdrop-filter: blur(16px) saturate(170%); box-shadow: var(--sh-1); border: 1px solid var(--glass-line); scroll-snap-align: start;
  transition: background .2s, color .2s, transform .15s; }
.pill svg.i { width: 17px; height: 17px; color: var(--c, var(--mut)); }
.pill:active { transform: scale(.96); }
.pill.on { background: var(--c, var(--brand)); color: #fff; border-color: transparent; }
.pill.on svg.i { color: #fff; }
.pill small { font-size: 11.5px; opacity: .7; font-weight: 600; }
.pill.tog.on { --c: var(--ink); background: var(--ink); color: var(--bg); }
.pill.tog.on svg.i { color: var(--bg); }

/* ---------- floating buttons ---------- */
.fabs { position: fixed; z-index: 15; right: 12px; bottom: calc(var(--sheet-vis) + 14px); display: grid; gap: 10px; transition: bottom .35s var(--ease), opacity .25s; }
.fab { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--ink); box-shadow: var(--sh-2); transition: transform .15s, background .2s, color .2s; }
.fab:active { transform: scale(.93); }
.fab.txt { font-weight: 700; font-size: 13.5px; letter-spacing: .02em; }
.fab.on { color: var(--brand); }
.fab.live { background: #1a73e8; color: #fff; }
.fab.live svg.i { fill: #fff; }
.fab.comp svg.i { fill: none; }
body.sheet-full .fabs { opacity: 0; pointer-events: none; }

/* ---------- sheet (phone = bottom sheet) ---------- */
.sheet { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: calc(100% - 64px - var(--safe-t)); background: var(--bg); border-radius: 22px 22px 0 0; box-shadow: 0 -6px 30px rgba(0, 0, 0, .14);
  display: flex; flex-direction: column; transform: translateY(calc(100% - var(--sheet-vis))); transition: transform .38s var(--ease); will-change: transform; touch-action: none; }
.sheet.dragging { transition: none; }
.handle { flex: none; height: 22px; display: grid; place-items: center; cursor: grab; }
.handle i { width: 38px; height: 5px; border-radius: 3px; background: var(--bg-3); }
.views { flex: 1; min-height: 0; position: relative; }
.view { position: absolute; inset: 0; overflow: hidden auto; overscroll-behavior: contain; padding: 0 16px calc(20px + var(--safe-b)); display: none; touch-action: pan-y; }
.view.on { display: block; animation: fade .25s var(--ease); }
body:not(.sheet-full) .view { overflow-y: hidden; }

.head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 0 12px; }
.head h1 { font-size: 21px; font-weight: 700; }
.ht { min-width: 0; }
.seg { display: flex; background: var(--bg-2); border-radius: 11px; padding: 3px; flex: none; }
.seg button { height: 34px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--mut); }
.seg button.on { background: var(--bg); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

.sec-t { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 10px; font-size: 16px; font-weight: 700; }

/* daily hero */
.daily { position: relative; display: block; width: 100%; text-align: left; border-radius: var(--r); overflow: hidden; color: #fff; padding: 16px; min-height: 140px;
  background: radial-gradient(120% 140% at 100% 0%, rgba(242, 184, 75, .55), transparent 55%), linear-gradient(135deg, #0b6e8a, #083b52); box-shadow: var(--sh-1); }
.daily .kick { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); }
.daily .kick svg.i { width: 15px; height: 15px; fill: var(--gold); stroke: var(--gold); }
.daily h3 { font-size: 22px; margin: 6px 0 4px; }
.daily p { margin: 0; opacity: .85; font-size: 13.5px; }
.daily .go { position: absolute; right: 14px; bottom: 14px; height: 34px; padding: 0 14px; border-radius: 17px; background: rgba(255, 255, 255, .18); backdrop-filter: blur(8px); display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 13.5px; }
.daily .big { position: absolute; right: -8px; top: -6px; opacity: .13; }
.daily .big svg.i { width: 120px; height: 120px; stroke-width: 1.4; }

/* tip carousel */
.carousel { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; touch-action: pan-x pan-y; }
.carousel::-webkit-scrollbar { display: none; }
.tip { flex: none; width: 74%; max-width: 280px; scroll-snap-align: start; border-radius: var(--r); background: var(--bg-2); padding: 14px; text-align: left; display: flex; flex-direction: column; gap: 6px; }
.tip .em { font-size: 24px; line-height: 1; }
.tip h4 { font-size: 15px; }
.tip.open p { -webkit-line-clamp: unset; }
.tip p { margin: 0; font-size: 13.5px; color: var(--mut); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tip .lnk { margin-top: auto; padding-top: 4px; font-size: 13px; font-weight: 600; color: var(--brand-2); display: inline-flex; align-items: center; gap: 4px; }
.tip .lnk svg.i { width: 15px; height: 15px; }

/* list */
.list { list-style: none; margin: 0; padding: 0; }
.item { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-radius: 14px; cursor: pointer; transition: background .15s; }
.item + .item { border-top: 1px solid var(--line); }
.item:hover { background: var(--bg-2); }
.tile { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.tile svg.i { width: 22px; height: 22px; }
.item .tx { flex: 1; min-width: 0; }
.item .nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .sub { font-size: 13px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.item .star { color: var(--gold); }
.st { font-weight: 600; } .st.ok { color: var(--ok); } .st.bad { color: var(--bad); }
.heart { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--mut); flex: none; }
.heart.on { color: #e11d48; } .heart.on svg.i { fill: #e11d48; }
.heart:hover { background: var(--bg-3); }
.empty { padding: 26px 8px; text-align: center; color: var(--mut); }
.more { display: block; width: 100%; margin: 8px 0; height: 42px; border-radius: 12px; background: var(--bg-2); font-weight: 600; color: var(--brand-2); }
.skel { height: 64px; border-radius: 14px; margin: 8px 0; background: linear-gradient(90deg, var(--bg-2), var(--bg-3), var(--bg-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }

.foot { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--mut); }
.foot p { margin: 0 0 6px; } .foot a { color: inherit; }

/* ---------- place view ---------- */
.pl-hero { position: relative; margin: 0 -16px; padding: 4px 16px 0; }
.pl-top { display: flex; align-items: flex-start; gap: 12px; }
.pl-top .tile { width: 52px; height: 52px; border-radius: 16px; }
.pl-top .tile svg.i { width: 26px; height: 26px; }
.pl-top h2 { font-size: 22px; font-weight: 700; line-height: 1.2; }
.pl-top .cat { color: var(--mut); font-size: 14px; margin-top: 2px; }
.pl-top .tx { flex: 1; min-width: 0; }
.x { width: 34px; height: 34px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; flex: none; color: var(--mut); }
.x svg.i { width: 18px; height: 18px; }
.chipsrow { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 2px; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 12.5px; font-weight: 600; background: var(--unk-bg); color: var(--mut); }
.tag svg.i { width: 14px; height: 14px; }
.tag.ok { background: var(--ok-bg); color: var(--ok); } .tag.bad { background: var(--bad-bg); color: var(--bad); }
.tag.gold { background: rgba(242, 184, 75, .18); color: #875600; }
.about { margin: 12px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.actions { display: flex; gap: 8px; margin: 16px -16px 6px; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; touch-action: pan-x pan-y; }
.actions::-webkit-scrollbar { display: none; }
.act { flex: none; min-width: 72px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--brand-2); text-decoration: none; }
.act .c { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--brand-2) 12%, transparent); transition: transform .15s; }
.act:active .c { transform: scale(.92); }
.act.pri .c { background: var(--brand); color: #fff; }
.act.pri { color: var(--brand); }
.act.on .c { color: #e11d48; background: rgba(225, 29, 72, .1); } .act.on .c svg.i { fill: #e11d48; }
.act.on { color: #e11d48; }
.rows { margin-top: 10px; border-top: 1px solid var(--line); }
.row { display: flex; gap: 14px; align-items: flex-start; padding: 13px 2px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.row svg.i { color: var(--brand-2); margin-top: 1px; }
.row .rt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.row small { display: block; color: var(--mut); font-size: 12.5px; }
a.row:hover { background: var(--bg-2); }
.row .ext { color: var(--mut); width: 16px; height: 16px; }
.hrs { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-size: 13.5px; margin-top: 4px; }
.hrs .d { color: var(--mut); }

/* ---------- navigation ---------- */
.navtop { position: fixed; z-index: 40; top: calc(10px + var(--safe-t)); left: 10px; right: 10px; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r);
  background: #0b5a72; color: #fff; box-shadow: var(--sh-2); animation: drop .3s var(--ease); }
.navtop .ar { width: 44px; height: 44px; flex: none; display: grid; place-items: center; }
.navtop .ar svg.i { width: 36px; height: 36px; stroke-width: 2.4; }
.navtop b { font-size: 18px; display: block; line-height: 1.25; }
.navtop small { opacity: .8; font-size: 14px; }
.navbottom { position: fixed; z-index: 40; left: 10px; right: 10px; bottom: calc(10px + var(--safe-b)); display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 16px; border-radius: var(--r);
  background: var(--bg); box-shadow: var(--sh-2); animation: rise .3s var(--ease); }
.navbottom .tm { font-size: 22px; font-weight: 700; color: var(--ok); }
.navbottom .meta { flex: 1; min-width: 0; }
.navbottom .meta small { display: block; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.navbottom .stop { height: 44px; padding: 0 16px; border-radius: 22px; background: var(--bad); color: #fff; font-weight: 700; }
body.nav .top, body.nav .sheet { opacity: 0; pointer-events: none; }
body.nav .sheet { transform: translateY(100%); }
body.nav { --sheet-vis: 86px; }

svg.i.sm { display: inline; width: 14px; height: 14px; vertical-align: -2px; }
.navtop .nt { min-width: 0; }
.navtop .dd { display: block; font-size: 15px; font-weight: 700; opacity: .9; }
.navtop .then { display: flex; align-items: center; gap: 5px; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.18); }
.navtop .then svg.i { width: 15px; height: 15px; }
.nb-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--ink); flex: none; }
.recenter { position: fixed; z-index: 41; left: 12px; bottom: calc(132px + var(--safe-b)); display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px 0 14px; border-radius: 23px;
  background: var(--bg); color: #1a73e8; font-weight: 700; box-shadow: var(--sh-2); animation: rise .25s var(--ease); }
.recenter svg.i { width: 19px; height: 19px; fill: #1a73e8; }
body.nav .fabs { opacity: 0; pointer-events: none; }
body.nav .maplibregl-user-location-dot, body.nav .maplibregl-user-location-accuracy-circle { display: none; }
.puck { width: 22px; height: 22px; pointer-events: none; }
.puck .acc { position: absolute; left: 50%; top: 50%; width: var(--a, 40px); height: var(--a, 40px); transform: translate(-50%, -50%); border-radius: 50%; background: rgba(26,115,232,.13); border: 1px solid rgba(26,115,232,.28); transition: width .6s, height .6s; }
.puck .cone { position: absolute; left: 50%; bottom: 50%; width: 64px; height: 56px; transform: translateX(-50%); background: linear-gradient(to top, rgba(26,115,232,.6), rgba(26,115,232,0) 95%); clip-path: polygon(50% 100%, 6% 0, 94% 0); }
.puck .dot { position: absolute; inset: 0; border-radius: 50%; background: #1a73e8; border: 3px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.4); }
.puck.nohead .cone { display: none; }

/* ---------- toast ---------- */
.toast { position: fixed; z-index: 60; left: 50%; top: calc(118px + var(--safe-t)); transform: translateX(-50%); max-width: calc(100% - 40px); background: rgba(15, 27, 36, .92); color: #fff;
  padding: 10px 16px; border-radius: 22px; font-size: 14px; font-weight: 500; box-shadow: var(--sh-2); animation: drop .25s var(--ease); text-align: center; }

/* ---------- map popups / markers ---------- */
.maplibregl-popup-content { border-radius: 12px; padding: 8px 12px; font-weight: 600; box-shadow: var(--sh-1); background: var(--bg); color: var(--ink); }
.maplibregl-popup-tip { border-top-color: var(--bg) !important; }

@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
@keyframes drop { from { opacity: 0; transform: translate(var(--tx, 0), -10px); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes shimmer { to { background-position: -200% 0; } }
.toast { --tx: -50%; }

/* ---------- desktop: floating sidebar ---------- */
@media (min-width: 761px) {
  :root { --sheet-vis: 0px; }
  .top { left: 16px; right: auto; width: 400px; top: 16px; }
  .pills { position: fixed; left: 428px; right: 16px; top: 16px; margin: 0; padding: 7px 4px 10px; }
  .sheet { left: 16px; right: auto; top: 76px; bottom: 16px; width: 400px; height: auto; border-radius: var(--r); transform: none !important; transition: none; box-shadow: var(--sh-2); touch-action: auto; }
  .handle { display: none; }
  .view { padding-top: 14px; overflow-y: auto !important; touch-action: auto; }
  .pl-hero { padding-top: 0; }
  .fabs { bottom: 34px; right: 16px; }
  .maplibregl-ctrl-bottom-right { bottom: 0; }
  .navtop { left: 50%; right: auto; width: 440px; transform: translateX(-50%); --tx: -50%; top: 16px; }
  .navbottom { left: 50%; right: auto; width: 440px; transform: translateX(-50%); bottom: 24px; animation: none; }
  .navtop { animation: none; }
  body.nav .sheet { transform: none; }
  .recenter { left: 50%; transform: translateX(-50%); bottom: 130px; animation: none; }
  .toast { top: 84px; }
  .tip { width: 240px; }
  .suggest { max-height: 60vh; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* nav warning row (no location / weak GPS) */
.navbottom { flex-wrap: wrap; }
.nbwarn { flex: 0 0 100%; order: -1; display: flex; align-items: center; gap: 6px; margin: -2px 0 2px; padding: 7px 10px; border-radius: 10px; background: rgba(242, 184, 75, .18); color: var(--ink); font-size: 13px; text-align: left; line-height: 1.3; }
.nbwarn.tap { cursor: pointer; }
.nbwarn u { margin-left: auto; padding-left: 8px; font-weight: 700; color: var(--brand-2); text-decoration: none; }

/* location blocked: how to switch it on */
.lochelp { position: fixed; inset: 0; z-index: 80; background: rgba(8, 14, 20, .5); display: flex; align-items: flex-end; justify-content: center; padding: 12px 12px calc(12px + var(--safe-b)); animation: fade .2s ease; }
.lh-card { width: 100%; max-width: 440px; max-height: 86vh; overflow: auto; background: var(--bg); color: var(--ink); border-radius: 22px; padding: 22px 20px 16px; box-shadow: 0 10px 40px rgba(0, 0, 0, .35); animation: pop .22s var(--ease); }
.lh-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(26, 115, 232, .12); color: #1a73e8; }
.lh-card h2 { margin: 12px 0 6px; font-size: 20px; }
.lh-card p { margin: 0 0 10px; color: var(--mut); font-size: 14px; line-height: 1.45; }
.lh-card ol { margin: 0 0 12px; padding-left: 22px; font-size: 15px; line-height: 1.45; }
.lh-card li { margin-bottom: 8px; }
.lh-btns { display: flex; gap: 8px; margin-top: 6px; }
.lh-btns button { flex: 1; height: 46px; border-radius: 23px; font-weight: 700; font-size: 15px; }
.lh-sec { background: var(--bg-3); color: var(--ink); }
.lh-pri { background: #1a73e8; color: #fff; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 761px) { .lochelp { align-items: center; } }

/* 3D walk: entry button */
.fab.walkfab { width: auto; justify-self: end; display: flex; align-items: center; gap: 7px; padding: 0 16px 0 13px; border-radius: 23px; background: linear-gradient(135deg, #e3a35f, #c9743d); color: #fff; font-size: 14px; box-shadow: 0 4px 14px rgba(201, 116, 61, .45); }
.fab.walkfab b { font-weight: 700; white-space: nowrap; }
.fab.walkfab svg.i { stroke: #fff; }

/* 3D walk mode */
body.walk .top, body.walk .sheet, body.walk .fabs, body.walk .maplibregl-ctrl-bottom-right { opacity: 0; pointer-events: none; }
body.walk .sheet { transform: translateY(100%); }
.walkui { position: fixed; inset: 0; z-index: 30; pointer-events: none; color: #fff; }
.walkui > * { pointer-events: auto; }
.wtop { position: absolute; left: 12px; right: 12px; top: calc(12px + var(--safe-t)); display: flex; align-items: center; gap: 10px; pointer-events: none; }
.wtop > * { pointer-events: auto; }
.wtitle { display: grid; padding: 7px 14px; border-radius: 16px; background: rgba(15, 27, 36, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.wtitle b { font-size: 15px; }
.wtitle small { font-size: 10.5px; opacity: .8; }
.wbtn { width: 48px; height: 48px; border-radius: 24px; display: grid; place-items: center; background: rgba(15, 27, 36, .6); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.wbtn svg.i { stroke: #fff; }
.wbtn.wide { width: auto; display: flex; align-items: center; gap: 7px; padding: 0 16px; font-weight: 700; font-size: 14px; }
.wbtn.on { background: #1a73e8; }
.wright { position: absolute; right: 14px; bottom: calc(26px + var(--safe-b)); display: grid; gap: 10px; justify-items: end; }
.wjoy { position: absolute; left: 22px; bottom: calc(24px + var(--safe-b)); width: 128px; height: 128px; border-radius: 50%; background: rgba(15, 27, 36, .32); border: 2px solid rgba(255, 255, 255, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); touch-action: none; display: grid; place-items: center; }
.wjoy i { width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 10px rgba(0, 0, 0, .3); transition: transform .12s; }
.wjoy:active i { transition: none; }
.whint { position: absolute; left: 50%; top: 42%; transform: translateX(-50%); max-width: 80%; text-align: center; padding: 10px 16px; border-radius: 14px; background: rgba(15, 27, 36, .62); font-size: 14px; line-height: 1.35; pointer-events: none; }
.wplace { position: absolute; left: 12px; right: 12px; top: calc(76px + var(--safe-t)); display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 18px; background: var(--bg); color: var(--ink); box-shadow: var(--sh-2); }
.wplace > div { flex: 1; min-width: 0; display: grid; }
.wplace b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wplace small { color: var(--mut); }
.wplace .wbtn { background: var(--brand); height: 40px; }
@media (min-width: 761px) { .wplace { left: 50%; right: auto; width: 420px; transform: translateX(-50%); } }
body.walk { --sheet-vis: 150px; }
/* lifelike 3D (Google Photorealistic 3D Tiles) */
.real3d { position: fixed; inset: 0; z-index: 25; background: linear-gradient(#8fc7ea, #e9eef0); touch-action: none; }
.gattr { position: absolute; left: 12px; right: 12px; top: calc(74px + var(--safe-t)); font-size: 10.5px; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); pointer-events: none; display: flex; gap: 6px; align-items: baseline; }
.gattr .glogo { font-size: 14px; font-weight: 600; letter-spacing: -.2px; }
body.real .wplace { top: calc(96px + var(--safe-t)); }

/* curated tours */
.carousel.tours { padding-bottom: 6px; }
.gsec a { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 600; color: var(--brand-2); text-decoration: none; }
.gsec a svg.i { width: 16px; height: 16px; }
.gcard { flex: none; width: 44%; max-width: 190px; aspect-ratio: 4 / 5; scroll-snap-align: start; border-radius: 18px; position: relative; overflow: hidden; display: flex; align-items: flex-end;
  background: #8a7a62 center / cover no-repeat; color: #fff; text-decoration: none; box-shadow: var(--sh-1, 0 2px 8px rgba(0,0,0,.15)); }
.gcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.7)); }
.gcard .gt { position: relative; z-index: 1; padding: 12px; }
.gcard b { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.15; }
.gcard small { font-size: 12px; opacity: .9; }
.tcard { flex: none; width: 78%; max-width: 300px; min-height: 168px; scroll-snap-align: start; border-radius: 20px; padding: 16px; text-align: left; color: #fff; display: flex; flex-direction: column; gap: 6px;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.22), transparent 60%), linear-gradient(150deg, var(--c), color-mix(in srgb, var(--c) 55%, #0f1b24)); box-shadow: 0 6px 18px color-mix(in srgb, var(--c) 35%, transparent); }
.tcard .tk, .t-hero .tk { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .92; display: flex; align-items: center; gap: 6px; }
.tcard .tk i, .t-hero .tk i { font-style: normal; font-size: 18px; letter-spacing: 0; }
.tcard h4 { font-size: 19px; line-height: 1.15; margin: 2px 0 0; }
.tcard p { margin: 0; font-size: 13.5px; opacity: .9; line-height: 1.35; }
.tcard .tm { margin-top: auto; font-size: 12px; font-weight: 600; opacity: .85; }
.t-hero { position: relative; margin: 0 -16px 12px; padding: 22px 18px 20px; color: #fff; border-radius: 0 0 22px 22px;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.22), transparent 60%), linear-gradient(150deg, var(--c), color-mix(in srgb, var(--c) 50%, #0f1b24)); }
.t-hero h2 { font-size: 26px; line-height: 1.12; margin: 8px 0 6px; letter-spacing: -.01em; }
.t-hero p { margin: 0; opacity: .92; font-size: 15px; }
.t-hero .x { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border-radius: 18px; display: grid; place-items: center; background: rgba(0,0,0,.22); color: #fff; }
.t-hero .x svg.i { stroke: #fff; }
.stops { list-style: none; margin: 14px 0 8px; padding: 0; position: relative; }
.stops li { display: flex; gap: 12px; padding: 10px 0; position: relative; cursor: pointer; }
.stops li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 42px; bottom: -8px; width: 2px; background: var(--line); }
.stops .num { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-weight: 800; font-size: 14px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.stops .sx { flex: 1; min-width: 0; }
.stops .sx b { display: block; font-size: 15.5px; }
.stops .sx small { color: var(--mut); font-size: 12.5px; }
.stops .sx p { margin: 4px 0 6px; font-size: 14px; line-height: 1.4; }
.slinks { display: flex; gap: 8px; flex-wrap: wrap; }
.slinks button { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px; border-radius: 17px; background: var(--bg-2); color: var(--ink); font-size: 12.5px; font-weight: 600; }
.slinks svg.i { width: 15px; height: 15px; }
#tour .chipsrow { margin-bottom: 4px; }
.nbnext { flex: 0 0 100%; order: -1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border-radius: 12px; background: var(--bg-2); color: var(--ink); font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.nbnext.hot { background: #1a73e8; color: #fff; }
.nbnext.hot svg.i { stroke: #fff; }
/* street view */
#svHost { background: #10171d; }
.svlayer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.svl { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 7px; max-width: 220px; padding: 5px 12px 5px 5px; border-radius: 22px; background: rgba(255, 255, 255, .94); color: #14222c; box-shadow: 0 4px 14px rgba(0, 0, 0, .28); transform-origin: 50% 100%; transition: opacity .25s; opacity: 0; text-align: left; will-change: transform; }
.svl img { width: 30px; height: 30px; flex: none; }
.svl span { display: grid; min-width: 0; line-height: 1.15; }
.svl b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svl small { font-size: 11.5px; color: #5b6b75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svl::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: var(--stem, 14px); margin-left: -1px; background: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, 0)); pointer-events: none; }
.svl.tg { background: #1a73e8; color: #fff; z-index: 2; }
.svl.tg small { color: rgba(255, 255, 255, .85); }
.svnav { position: absolute; left: 12px; right: 12px; top: calc(72px + var(--safe-t)); padding: 10px 16px; border-radius: 16px; background: #1f5f78; font-weight: 700; font-size: 16px; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.svstat { position: absolute; left: 50%; transform: translateX(-50%); top: calc(126px + var(--safe-t)); max-width: 86%; padding: 8px 14px; border-radius: 14px; background: rgba(15, 27, 36, .7); font-size: 13.5px; text-align: center; pointer-events: none; }
.svedge { position: absolute; top: 50%; max-width: 60%; padding: 8px 14px; border-radius: 18px; background: #1a73e8; font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); pointer-events: none; }
.svedge.l { left: 10px; } .svedge.r { right: 10px; }
.svbar { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(36px + var(--safe-b)); display: flex; gap: 8px; padding: 6px; border-radius: 30px; background: rgba(15, 27, 36, .66); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 4px 16px rgba(0, 0, 0, .3); }
.svb { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 22px; color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; }
.svb svg.i { stroke: #fff; }
.svb.on { background: #1a73e8; }
body.real .svui .wplace { top: auto; bottom: calc(100px + var(--safe-b)); }
.wplace img { width: 36px; height: 36px; flex: none; margin-left: -6px; }
body.sheet-half .fabs .fab:not(#btnLocate) { display: none; }
body.walk #navTop, body.walk #navBottom, body.walk #recenter, body.walk #navPass { display: none !important; }
.navpass { position: fixed; z-index: 39; left: 10px; right: 10px; bottom: 130px; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: var(--r);
  background: var(--bg); color: var(--ink); box-shadow: var(--sh-2); border-left: 4px solid var(--mut); animation: rise .3s var(--ease); }
.navpass.op { border-left-color: var(--ok); }
.navpass img { width: 34px; height: 34px; flex: none; }
.navpass .pt { flex: 1; min-width: 0; }
.navpass b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.navpass small { display: block; color: var(--mut); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.navpass .pb { height: 36px; padding: 0 12px; border-radius: 18px; background: var(--bg-2); color: var(--ink); font-weight: 700; font-size: 14px; flex: none; }
.navpass .px { width: 30px; height: 30px; display: grid; place-items: center; flex: none; color: var(--mut); background: none; }
.navpass .px svg.i { width: 16px; height: 16px; }
@media (min-width: 900px) { .navpass { left: 50%; right: auto; width: 440px; transform: translateX(-50%); } }
.navbottom .nb-ic { width: 42px; height: 42px; }
.navbottom .stop { padding: 0 14px; }
#navSV { background: #1a73e8; color: #fff; }
#navSV svg.i { stroke: #fff; }
.svban { display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); margin: 4px 16px 14px; padding: 14px 14px 14px 14px; border-radius: 20px; text-align: left; color: #fff; background: linear-gradient(135deg, #1a73e8, #0f8fb3); box-shadow: 0 6px 18px rgba(26, 115, 232, .35); }
.svban .si { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); }
.svban .st { flex: 1; min-width: 0; display: grid; gap: 2px; }
.svban b { font-size: 16px; }
.svban small { font-size: 12.5px; opacity: .9; }
.svban svg.i { stroke: #fff; }
.fab.walkfab { background: linear-gradient(135deg, #1a73e8, #0f8fb3); box-shadow: 0 4px 14px rgba(26, 115, 232, .45); }
.wx { margin: 4px 16px 14px; padding: 14px 16px 10px; border-radius: 20px; background: linear-gradient(160deg, #e9f6fb, #fdf3e1); border: 1px solid var(--line, #e8e1d4); color: #14222c; }
.wx-top { display: flex; align-items: center; gap: 12px; }
.wx-ic { font-size: 34px; line-height: 1; }
.wx-t { display: grid; } .wx-t small { color: #5b6b75; font-size: 12.5px; } .wx-t b { font-size: 24px; line-height: 1.1; }
.wx-k { margin-left: auto; text-align: right; display: grid; } .wx-k b { font-size: 15px; } .wx-k small { font-size: 12px; color: #5b6b75; }
.wx-k.l2 small { color: #13803d; font-weight: 700; } .wx-k.l3 small, .wx-k.l4 small { color: #c2410c; font-weight: 700; }
.wx-strip { display: flex; gap: 4px; height: 74px; margin: 12px 0 6px; align-items: flex-end; }
.wh { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; font-size: 11px; color: #5b6b75; }
.wh i { width: 70%; max-width: 18px; border-radius: 5px 5px 2px 2px; background: #9fc9dc; order: 1; }
.wh b { order: 0; font-size: 11px; color: #14222c; } .wh small { order: 2; font-size: 10.5px; }
.wh.l1 i { background: #7cc0a0; } .wh.l2 i { background: #22a35a; } .wh.l3 i { background: #f59e0b; } .wh.l4 i { background: #dc2626; }
.wx-row { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; }
.wx-go { margin-top: 4px; font-weight: 700; color: #0b6e8a; font-size: 14px; padding: 10px 0; }
.wx-src { display: block; margin-top: 4px; font-size: 10.5px; color: #7b8a94; }
@media (prefers-color-scheme: dark) { .wx { background: linear-gradient(160deg, #15303b, #2a2418); color: #e8eef2; } .wx-t small, .wx-k small, .wh, .wx-src { color: #a5b4be; } .wh b { color: #e8eef2; } .wx-go { color: #5cc6d6; } }
.inst { position: relative; display: flex; align-items: center; gap: 12px; margin: 0 16px 14px; padding: 12px 40px 12px 12px; border-radius: 18px; background: var(--bg-2, #f3f0ea); }
.inst img { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.inst div { flex: 1; min-width: 0; display: grid; } .inst b { font-size: 15px; } .inst small { color: var(--mut); font-size: 12.5px; }
.inst-go { flex: none; padding: 9px 14px; border-radius: 20px; background: #1a73e8; color: #fff; font-weight: 700; font-size: 14px; }
.inst-x { position: absolute; top: 6px; right: 8px; width: 28px; height: 28px; font-size: 20px; line-height: 1; color: var(--mut); }
@media (prefers-color-scheme: dark) { .tag.gold { color: #f2b84b; } .fab.on, .act.pri { color: #4cc3e6; } }
@media (min-width: 761px) { .actions { flex-wrap: wrap; justify-content: flex-start; row-gap: 12px; overflow: visible; } }
.sitelinks { margin-bottom: 10px; } .sitelinks p { line-height: 1.9; } .sitelinks b { margin-inline-end: 6px; } .sitelinks a { margin-inline-end: 10px; white-space: nowrap; color: var(--brand-2); }
/* partner demo: link to the official El Gouna Tuk-Tuk app */
.act.tuk { color: #b45309; }
.act.tuk .c { background: #f2b84b; color: #3b2400; }
.row.tukrow { background: color-mix(in srgb, var(--gold) 16%, transparent); border-radius: 12px; padding: 12px 10px; margin: 8px 0 4px; border-bottom: 0; }
.row.tukrow svg.i { color: #b45309; }
.partnerban { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--gold) 18%, var(--bg)); border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); }
.partnerban > svg.i { flex: none; width: 26px; height: 26px; color: #b45309; margin-top: 2px; }
.partnerban b { display: block; font-size: 14px; }
.partnerban p { margin: 2px 0 6px; font-size: 13px; color: var(--mut); }
.partnerban a { font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
@media (prefers-color-scheme: dark) { .act.tuk, .row.tukrow svg.i, .partnerban > svg.i { color: #f2b84b; } }
