:root {
  --ink: #1d2b3a;
  --ink-2: #4a5a6b;
  --muted: #8593a3;
  --line: #e4e0d8;
  --paper: #fbf8f3;
  --card: #ffffff;
  --brick: #c4532d;
  --brick-dark: #a2421f;
  --gold: #e0a526;
  --green: #2e9d6a;
  --none: #9aa6b2;
  --history: #c4532d;
  --soviet: #5a6f8a;
  --modern: #2d8bb5;
  --culture: #8b5cb8;
  --nature: #3f9a4f;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(29, 43, 58, .14);
  --top: 60px;
  font-family: "Noto Sans Georgian", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--paper); color: var(--ink); }
body { overflow: hidden; -webkit-font-smoothing: antialiased; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
a { color: var(--brick); }
.hidden { display: none !important; }

/* ---------- topbar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; height: var(--top); z-index: 1000;
  display: flex; align-items: center; gap: 14px; padding: 0 16px;
  background: var(--ink); color: #fff;
}
.brand { display: flex; align-items: baseline; text-decoration: none; color: #fff; white-space: nowrap; }
.brand-tag { font-family: "Noto Serif Georgian", serif; color: var(--gold); font-size: 24px; font-weight: 700; margin-right: 2px; }
.brand-text { font-family: "Noto Serif Georgian", serif; font-size: 18px; font-weight: 700; letter-spacing: .2px; }
.progress { flex: 1; max-width: 260px; margin-left: auto; }
.progress-label { display: flex; justify-content: space-between; font-size: 12px; opacity: .85; margin-bottom: 4px; }
.progress-label b { color: var(--gold); font-weight: 600; }
.progress-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.15); overflow: hidden; }
.progress-bar i { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 6px; transition: width .6s; }

.btn { border: 0; border-radius: 10px; padding: 10px 16px; font-weight: 600; font-size: 14px; }
.btn-primary { background: var(--brick); color: #fff; }
.btn-primary:hover { background: var(--brick-dark); }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); white-space: nowrap; }
.btn-light { background: #f0ece5; color: var(--ink); }
.btn-danger { background: transparent; color: #b3261e; padding: 4px 8px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-gela { background: var(--gold); color: var(--ink); }

/* ---------- layout ---------- */
.layout { position: fixed; inset: var(--top) 0 0 0; display: flex; }
#map { flex: 1; height: 100%; background: #e9e6df; position: relative; z-index: 0; }
.map-ui { position: absolute; top: 12px; left: 12px; right: 432px; z-index: 500; pointer-events: none; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.map-ui > * { pointer-events: auto; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 500; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.viewing { background: var(--green); color: #fff; border-radius: 999px; padding: 7px 8px 7px 14px; font-size: 13px; font-weight: 600; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow); }
.viewing .x { background: rgba(255,255,255,.2); border: 0; color: #fff; border-radius: 50%; width: 24px; height: 24px; }
.legend { display: flex; gap: 12px; background: rgba(255,255,255,.92); border-radius: 10px; padding: 6px 10px; font-size: 12px; color: var(--ink-2); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.legend span { display: flex; align-items: center; gap: 5px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-gela { background: var(--gold); }
.dot-mine { background: var(--green); }
.dot-none { background: var(--none); }

/* ---------- markers ---------- */
.mk { position: relative; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); transition: transform .15s; }
.mk:hover { transform: scale(1.15); }
.mk.none { background: var(--none); }
.mk.gela { background: var(--gold); color: var(--ink); width: 36px; height: 36px; font-size: 16px; }
.mk.me { outline: 3px solid var(--green); outline-offset: 1px; }
.mk.visited-user { background: var(--green); }
.mk.dim { opacity: .45; }
.mk .badge { position: absolute; top: -8px; right: -10px; background: var(--brick); color: #fff; border: 2px solid #fff; border-radius: 999px; min-width: 20px; height: 20px; padding: 0 5px; font-size: 11px; display: grid; place-items: center; }
.mk.sel { transform: scale(1.3); z-index: 1000; }
.mk-new { background: var(--brick); }
.leaflet-tooltip.mk-tip { font-family: inherit; font-weight: 600; border-radius: 8px; border: 0; box-shadow: var(--shadow); }

/* ---------- panel ---------- */
.panel { width: 420px; height: 100%; background: var(--paper); border-left: 1px solid var(--line); display: flex; flex-direction: column; z-index: 600; }
.panel-grip { display: none; }
.tabs { display: flex; border-bottom: 1px solid var(--line); background: #fff; flex-shrink: 0; }
.tab { flex: 1; border: 0; background: none; padding: 13px 6px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; font-size: 14px; }
.tab.active { color: var(--ink); border-bottom-color: var(--brick); }
.panel-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 0 40px; }

.search { padding: 12px 14px 4px; position: sticky; top: 0; background: var(--paper); z-index: 2; }
.search input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.cat-row { display: flex; gap: 6px; padding: 8px 14px; overflow-x: auto; }
.cat { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12px; white-space: nowrap; color: var(--ink-2); }
.cat.active { border-color: var(--ink); color: var(--ink); font-weight: 600; }

.item { display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; align-items: center; }
.item:hover { background: #fff; }
.item-thumb { width: 54px; height: 54px; border-radius: 10px; flex-shrink: 0; background: #e9e4dc center/cover no-repeat; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; }
.item-main { flex: 1; min-width: 0; }
.item-title { font-weight: 600; font-size: 15px; line-height: 1.3; }
.item-sub { font-size: 13px; color: var(--ink-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-meta { display: flex; gap: 8px; margin-top: 5px; font-size: 12px; color: var(--muted); align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 8px; font-size: 11.5px; font-weight: 600; }
.pill-gela { background: #fbf0d4; color: #8a6200; }
.pill-me { background: #dcf2e7; color: #1d6e48; }
.pill-day { background: #efebe4; color: var(--ink-2); }

/* object detail */
.obj-head { position: relative; }
.obj-cover { height: 190px; background: linear-gradient(135deg, var(--ink), #3c5470) center/cover no-repeat; }
.obj-back { position: absolute; top: 10px; left: 10px; border: 0; background: rgba(255,255,255,.92); border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: 13px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.obj-pad { padding: 16px; }
.obj-cat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
.obj-title { font-family: "Noto Serif Georgian", serif; font-size: 23px; line-height: 1.25; margin: 6px 0 8px; }
.obj-short { color: var(--ink-2); font-size: 15px; margin: 0 0 12px; }
.status { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.status .pill { font-size: 12.5px; padding: 5px 10px; }
.pill-not { background: #eceff2; color: #5c6875; }
.desc p { margin: 0 0 10px; line-height: 1.65; font-size: 15px; }
.cta { display: flex; gap: 8px; margin: 16px 0 6px; }
.cta .btn { flex: 1; padding: 13px; font-size: 15px; }
.section-h { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 700; margin: 22px 0 10px; display: flex; justify-content: space-between; align-items: center; }

.visitors { display: flex; flex-wrap: wrap; gap: 8px; }
.visitor { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px 3px 3px; font-size: 13px; cursor: pointer; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.avatar.gela { background: var(--gold); color: var(--ink); }
.empty { color: var(--muted); font-size: 14px; padding: 6px 0; }

.post { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 12px; }
.post.gela-post { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.post-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.post-name { font-weight: 600; font-size: 14px; }
.post-date { color: var(--muted); font-size: 12px; }
.post-head .btn-danger { margin-left: auto; }
.post-body { white-space: pre-wrap; line-height: 1.55; font-size: 14.5px; margin: 0 0 8px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: 10px; overflow: hidden; }
.gallery.n1 { grid-template-columns: 1fr; }
.gallery.n2 { grid-template-columns: 1fr 1fr; }
.gallery img, .gallery video { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; display: block; cursor: zoom-in; background: #eee; }
.gallery.n1 img, .gallery.n1 video { aspect-ratio: 4/3; }
.embed { position: relative; padding-top: 56.25%; border-radius: 10px; overflow: hidden; margin-top: 8px; background: #000; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vlink { display: inline-flex; gap: 6px; align-items: center; margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: #f0ece5; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 13.5px; }

.trav { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.trav:hover { background: #fff; }
.trav-rank { width: 22px; color: var(--muted); font-weight: 700; text-align: center; }
.trav-name { flex: 1; font-weight: 600; }
.trav-count { font-weight: 700; color: var(--brick); }
.trav-bar { height: 4px; background: #ebe6de; border-radius: 4px; margin-top: 5px; overflow: hidden; }
.trav-bar i { display: block; height: 100%; background: var(--green); }
.intro { padding: 14px; font-size: 14px; color: var(--ink-2); line-height: 1.55; }

/* ---------- modal & forms ---------- */
.modal { position: fixed; inset: 0; z-index: 2000; background: rgba(20, 28, 38, .55); display: grid; place-items: center; padding: 16px; }
.modal-card { width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.modal-card h2 { font-family: "Noto Serif Georgian", serif; margin: 0 0 6px; font-size: 21px; }
.modal-card .lead { color: var(--ink-2); margin: 0 0 16px; font-size: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.field input, .field textarea, .field select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 15px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--brick); border-color: transparent; }
.phone-row { display: flex; gap: 8px; }
.phone-row span { padding: 11px 10px; background: #f0ece5; border-radius: 10px; font-weight: 600; }
.code-input { letter-spacing: 12px; text-align: center; font-size: 26px !important; font-weight: 700; }
.row { display: flex; gap: 8px; }
.row .btn { flex: 1; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.err { color: #b3261e; font-size: 13.5px; margin: 0 0 10px; min-height: 1em; }
.dropzone { border: 2px dashed var(--line); border-radius: 12px; padding: 18px; text-align: center; color: var(--ink-2); cursor: pointer; display: block; }
.dropzone:hover { border-color: var(--brick); }
.dropzone input { display: none; }
.previews { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.previews div { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #eee center/cover; }
.previews video { width: 100%; height: 100%; object-fit: cover; }
.previews button { position: absolute; top: 3px; right: 3px; border: 0; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; }
.upbar { height: 8px; background: #eee; border-radius: 8px; overflow: hidden; margin: 8px 0; }
.upbar i { display: block; height: 100%; width: 0; background: var(--green); transition: width .2s; }
.coords { display: flex; gap: 8px; }
.coords input { flex: 1; }

/* ---------- lightbox / toast ---------- */
.lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,.92); display: grid; place-items: center; }
.lightbox img, .lightbox video { max-width: 96vw; max-height: 90vh; border-radius: 6px; }
.lightbox .x, .modal .x { position: absolute; top: 14px; right: 14px; border: 0; background: rgba(255,255,255,.15); color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 18px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 4000; font-size: 14px; box-shadow: var(--shadow); max-width: 90vw; }
.pick-banner { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 700; background: var(--brick); color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 600; box-shadow: var(--shadow); }

/* ---------- game ---------- */
.account { display: flex; align-items: center; gap: 8px; }
.account .lvl { background: var(--gold); color: var(--ink); border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 700; }
.chip-near { background: #e7f4ec; border-color: #bfe3cd; color: #1d6e48; font-weight: 600; }
.chip-near.active { background: var(--green); color: #fff; border-color: var(--green); }
.me-dot { width: 18px; height: 18px; border-radius: 50%; background: #2f7ff0; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(47,127,240,.25), 0 2px 6px rgba(0,0,0,.3); }
.mission { background: linear-gradient(135deg, #1d2b3a, #34495f); color: #fff; border-radius: var(--radius); padding: 14px; margin: 4px 0 14px; }
.mission.done { background: linear-gradient(135deg, #1d6e48, #2e9d6a); }
.mission-h { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.mission.done .mission-h { color: #c9f2db; }
.mission-t { font-size: 15.5px; line-height: 1.5; font-weight: 500; }
.rewards { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rewards span { background: rgba(255,255,255,.14); border-radius: 999px; padding: 3px 9px; font-size: 12px; }
.rewards span.got { background: rgba(255,255,255,.9); color: #1d6e48; font-weight: 700; }
.dist { font-size: 12px; font-weight: 700; color: var(--green); white-space: nowrap; }
.near-head { padding: 14px; display: flex; gap: 10px; align-items: center; }
.near-head .btn { flex-shrink: 0; }
.xp-card { background: linear-gradient(135deg, #1d2b3a, #34495f); color: #fff; border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.xp-top { display: flex; justify-content: space-between; align-items: baseline; }
.xp-top b { font-size: 28px; color: var(--gold); }
.xp-lvl { font-size: 15px; font-weight: 600; }
.xp-bar { height: 8px; background: rgba(255,255,255,.15); border-radius: 8px; overflow: hidden; margin: 10px 0 6px; }
.xp-bar i { display: block; height: 100%; background: var(--gold); }
.xp-next { font-size: 12px; opacity: .8; }
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.badge-c { background: #f6f3ee; border-radius: 12px; padding: 10px 6px; text-align: center; font-size: 11.5px; line-height: 1.3; color: var(--ink-2); }
.badge-c .ic { font-size: 26px; display: block; margin-bottom: 4px; }
.badge-c.off { opacity: .4; filter: grayscale(1); }
.badge-c b { display: block; color: var(--ink); font-size: 12px; }
.reward-pop { text-align: center; }
.reward-pop .big { font-size: 48px; font-weight: 800; color: var(--brick); margin: 6px 0; font-family: "Noto Serif Georgian", serif; }
.reward-pop .lines { text-align: left; background: #f6f3ee; border-radius: 12px; padding: 10px 14px; margin: 12px 0; font-size: 14px; line-height: 1.8; }
.pill-gps { background: #e3eefc; color: #2456a6; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
.reward-pop .big, .reward-pop .ic { animation: pop .5s ease; }

/* ---------- photos ---------- */
.obj-cover { position: relative; display: flex; align-items: flex-end; justify-content: center; }
.no-photo { color: rgba(255,255,255,.85); font-size: 13px; padding: 0 16px 14px; font-weight: 600; }
.credit { display: block; font-size: 10.5px; color: var(--muted); text-decoration: none; padding: 4px 16px 0; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pick-row .dropzone { padding: 14px 6px; font-size: 24px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pick-row .dropzone b { font-size: 13px; color: var(--ink); }
.fab { display: none; }

/* ---------- mobile (99% მომხმარებელი) ---------- */
@media (max-width: 820px) {
  :root { --top: calc(52px + env(safe-area-inset-top)); --peek: 132px; }
  html, body { overscroll-behavior: none; }
  .topbar { padding: env(safe-area-inset-top) 10px 0; gap: 8px; }
  .brand-tag { font-size: 20px; }
  .brand-text { font-size: 14.5px; }
  .progress { max-width: 92px; }
  .progress-label { font-size: 11px; }
  .account { padding: 7px 10px; font-size: 13px; }
  .account .nm { display: none; }
  .account .lvl { font-size: 13px; padding: 3px 9px; }

  .map-ui { top: 8px; left: 0; right: 0; gap: 6px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding: 0 10px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; width: 100%; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; padding: 9px 14px; font-size: 14px; min-height: 40px; }
  .viewing { margin: 0 10px; font-size: 12.5px; }
  .legend { display: none; }

  .fab { display: grid; place-items: center; position: absolute; right: 14px; z-index: 550;
    bottom: calc(var(--peek) + 16px + env(safe-area-inset-bottom));
    width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--green); color: #fff; font-size: 24px;
    box-shadow: 0 6px 18px rgba(0,0,0,.28); transition: opacity .2s; }
  .panel.sheet-full ~ .fab, .layout:has(.panel.sheet-full) .fab { opacity: 0; pointer-events: none; }

  .panel {
    position: absolute; left: 0; right: 0; bottom: 0; width: 100%;
    height: calc(100dvh - var(--top) - 8px); border-left: 0; border-radius: 20px 20px 0 0;
    box-shadow: 0 -6px 30px rgba(0,0,0,.18);
    transition: transform .32s cubic-bezier(.2,.8,.2,1); will-change: transform;
    transform: translateY(calc(100% - var(--peek) - env(safe-area-inset-bottom)));
  }
  .panel.sheet-half { transform: translateY(45%); }
  .panel.sheet-full { transform: translateY(0); }
  .panel-grip { display: flex; justify-content: center; padding: 10px 0 6px; cursor: grab; flex-shrink: 0; touch-action: none; }
  .panel-grip span { width: 44px; height: 5px; border-radius: 5px; background: #cfc9bf; }
  .tabs { touch-action: none; }
  .tab { min-height: 48px; font-size: 14.5px; }
  .panel-body { padding-bottom: calc(24px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
  .panel.sheet-half .panel-body { padding-bottom: calc(45dvh + 24px); }

  .item { padding: 12px 14px; min-height: 76px; }
  .item-thumb { width: 60px; height: 60px; }
  .search input { font-size: 16px; padding: 12px 14px; }
  .cat { padding: 7px 12px; font-size: 13px; }

  .obj-cover { height: 200px; }
  .obj-back { top: 12px; left: 12px; padding: 9px 14px; font-size: 14px; }
  .obj-title { font-size: 22px; }
  .desc p { font-size: 16px; line-height: 1.7; }
  .mission-t { font-size: 16px; }
  .cta { position: sticky; bottom: 0; z-index: 3; margin: 16px -16px 6px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--paper) 75%, rgba(251,248,243,0)); }
  .cta .btn { padding: 15px; font-size: 16px; border-radius: 14px; box-shadow: 0 4px 14px rgba(196,83,45,.3); }
  .row .btn { min-height: 46px; }
  .btn { min-height: 44px; }
  .gallery { gap: 3px; }
  .post { padding: 12px; }
  .post-body { font-size: 15.5px; }
  .trav { min-height: 64px; }

  .modal { align-items: end; padding: 0; }
  .modal-card { border-radius: 20px 20px 0 0; max-height: 92dvh; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); }
  .field input, .field textarea, .field select { font-size: 16px; padding: 13px 14px; }
  .code-input { font-size: 30px !important; }
  .badges { grid-template-columns: repeat(3, 1fr); }
  .pick-banner { bottom: calc(var(--peek) + 20px); left: 12px; right: 12px; transform: none; text-align: center; }
  .toast { bottom: calc(var(--peek) + 24px + env(safe-area-inset-bottom)); }
  .lightbox img, .lightbox video { max-width: 100vw; max-height: 85dvh; border-radius: 0; }
  .leaflet-control-attribution { font-size: 9px; }
}
@media (max-width: 360px) {
  .progress { display: none; }
  .brand-text { font-size: 13.5px; }
}
/* iOS: ფორმის ველებში 16px, რომ ზუმი არ გაიზარდოს */
input, textarea, select { font-size: max(16px, 1em); }

/* ---------- ქალაქებზე დაბრუნება ---------- */
.home-link { color: #fff; text-decoration: none; font-size: 30px; line-height: 1; padding: 0 4px 4px 0; margin-right: -6px; opacity: .85; }
.home-link:hover { opacity: 1; }
