/* Український Будапешт — shared tokens and components (map app and static pages). */
:root {
  --blue: #0057b7;
  --yellow: #ffd500;
  --bg: #f6f3ec;
  --panel: #fbf9f4;
  --card: #ffffff;
  --card-2: #f1ede4;
  --ink: #14171c;
  --ink-2: #3f4653;
  --muted: #747b88;
  --line: #e6e0d3;
  --ring: rgba(0, 87, 183, .28);
  --shadow-1: 0 1px 2px rgba(20, 23, 28, .05), 0 3px 10px rgba(20, 23, 28, .05);
  --shadow-2: 0 12px 32px rgba(20, 30, 50, .13), 0 2px 6px rgba(20, 30, 50, .06);
  --shadow-3: 0 24px 64px rgba(10, 20, 40, .26);
  --r-xl: 26px;
  --r-lg: 22px;
  --r-md: 16px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1216; --panel: #12161c; --card: #1a1f27; --card-2: #232a35; --ink: #f1f3f6; --ink-2: #c4cad4;
    --muted: #8c95a4; --line: #29303c; --ring: rgba(90, 160, 255, .38);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .35); --shadow-2: 0 12px 32px rgba(0, 0, 0, .45); --shadow-3: 0 24px 64px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1216; --panel: #12161c; --card: #1a1f27; --card-2: #232a35; --ink: #f1f3f6; --ink-2: #c4cad4;
  --muted: #8c95a4; --line: #29303c; --ring: rgba(90, 160, 255, .38); color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: var(--blue); }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ms {
  font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal; font-size: 22px; line-height: 1;
  letter-spacing: normal; text-transform: none; white-space: nowrap; direction: ltr; display: inline-block;
  width: 1em; overflow: hidden; flex: none; user-select: none;
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24; font-feature-settings: 'liga';
}

/* brand */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: 0; }
.logo {
  position: relative; flex: none; width: 44px; height: 44px; border-radius: 14px; overflow: hidden; transform: rotate(-7deg);
  background: linear-gradient(var(--blue) 0 50%, var(--yellow) 50% 100%);
  box-shadow: 0 8px 18px rgba(0, 87, 183, .26), inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.logo::after {
  content: ""; position: absolute; inset: 9px 12px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: rgba(255, 255, 255, .94);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 3.5px, #000 4px); mask: radial-gradient(circle at 50% 50%, transparent 3.5px, #000 4px);
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text b { font-family: Unbounded, Manrope, sans-serif; font-weight: 800; font-size: 18px; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { color: var(--muted); font-size: 12.5px; font-weight: 600; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* language switch */
.langs { display: inline-flex; background: var(--card-2); border-radius: 12px; padding: 3px; gap: 2px; flex: none; }
.langs a { display: grid; place-items: center; min-width: 44px; height: 34px; padding: 0 8px; border-radius: 9px; text-decoration: none; color: var(--ink-2); font-weight: 800; font-size: 12px; letter-spacing: .03em; }
.langs a[aria-current] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-1); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 14px;
  background: var(--blue); color: #fff; font-weight: 800; font-size: 15px; text-decoration: none; border: 1.5px solid transparent;
  transition: transform .15s var(--ease), box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn.big { min-height: 56px; font-size: 16px; padding: 0 26px; border-radius: 16px; }
.btn-add { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; background: var(--yellow); color: #14171c; font-weight: 800; font-size: 14px; text-decoration: none; flex: none; }

/* heart (saved places, stored in this browser) */
.heart {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: color-mix(in srgb, var(--card) 88%, transparent); color: var(--muted); box-shadow: var(--shadow-1);
  transition: transform .15s var(--ease), color .15s;
}
.heart .ms { font-variation-settings: 'FILL' 0, 'wght' 600, 'GRAD' 0, 'opsz' 24; }
.heart[aria-pressed="true"] { color: #e5484d; }
.heart[aria-pressed="true"] .ms { font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24; }
.heart:active { transform: scale(.9); }
.heart.big { width: auto; height: 48px; padding: 0 18px 0 14px; border-radius: 14px; gap: 8px; display: inline-flex; align-items: center; font-weight: 800; font-size: 15px; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.heart.big[aria-pressed="true"] { color: #e5484d; border-color: #e5484d; }
.favcount { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #e5484d; color: #fff; font-size: 11.5px; font-weight: 800; display: inline-grid; place-items: center; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px 0 12px; border-radius: 999px; text-decoration: none;
  background: var(--card); border: 1.5px solid var(--line); color: var(--ink); font-weight: 700; font-size: 14.5px; box-shadow: var(--shadow-1);
}
.chip .ms { color: var(--c, var(--blue)); }
.chip small { color: var(--muted); font-weight: 800; }
.chip:hover { border-color: var(--c, var(--blue)); }

/* place cards */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.grid > li { position: relative; }
.pcard {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; background: var(--card); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-1); border: 1.5px solid transparent; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.pcard:hover, .pcard.hot { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.pc-cover {
  position: relative; display: grid; place-items: center; aspect-ratio: 3 / 2; color: #fff; overflow: hidden;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .07) 0 12px, transparent 12px 24px), radial-gradient(120% 120% at 20% 0%, color-mix(in srgb, var(--c) 55%, #fff), var(--c));
}
.pc-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pc-cover .big { font-size: 64px; width: auto; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .18)); }
.pc-badge { position: absolute; left: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; box-shadow: 0 0 0 3px var(--card); }
.pc-badge .ms { font-size: 19px; }
.pc-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px 18px; }
.pc-name { font-size: 17px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.pc-kind { font-size: 14px; font-weight: 700; color: color-mix(in srgb, var(--c) 72%, var(--ink)); }
.pc-where { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.grid > li > .heart { position: absolute; top: 12px; right: 12px; z-index: 2; }
.grid.ranked { counter-reset: rank; }
.grid.ranked > li::before {
  counter-increment: rank; content: counter(rank); position: absolute; z-index: 2; top: 12px; left: 12px; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; background: var(--yellow); color: #14171c; font: 800 18px Unbounded, Manrope, sans-serif; box-shadow: var(--shadow-1);
}

/* action buttons (call, WhatsApp, …) */
.acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.act {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 92px; padding: 12px 6px; border-radius: 18px;
  text-decoration: none; background: var(--card); border: 1.5px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 800; text-align: center;
  transition: transform .15s var(--ease), border-color .15s;
}
.act:hover { transform: translateY(-2px); border-color: var(--ac, var(--blue)); }
.act i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ac, var(--blue)); color: #fff; }
.act i svg { width: 21px; height: 21px; }
.act.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.act.primary i { background: rgba(255, 255, 255, .2); }

.fine { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.fine a { color: inherit; }
.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); translate: -50% 0; background: var(--ink); color: var(--panel); padding: 12px 18px; border-radius: 14px; font-weight: 700; font-size: 14px; box-shadow: var(--shadow-2); }
