:root {
  --bg: #0a0e1a;
  --bg-soft: #0f1524;
  --surface: #141b2e;
  --surface-2: #1b2440;
  --line: #262f4d;
  --text: #e9edfa;
  --muted: #8b95b8;
  --accent: #ff7a59;
  --accent-rgb: 255, 122, 89;
  --accent-ink: #ffd3c5;
  --accent-soft: #ff9f7a;
  --accent-2: #46d5be;
  --ok: #4ade80;
  --warn: #fbbf24;
  --danger: #f87171;
  --radius: 18px;
  --radius-sm: 11px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-image:
    radial-gradient(1000px 520px at 82% -8%, rgba(var(--accent-rgb), .16), transparent 70%),
    radial-gradient(760px 420px at 6% 4%, rgba(70, 213, 190, .12), transparent 68%);
  background-attachment: fixed;
  min-height: 100vh;
}

.hidden { display: none !important; }

h1, h2, h3 { font-weight: 800; letter-spacing: -.02em; margin: 0; }

button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- Вход ---------- */
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login__card {
  width: min(400px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow);
  text-align: center;
}

.login__globe { font-size: 44px; line-height: 1; }
.login__card h1 { font-size: 30px; margin-top: 10px; }
.login__sub { color: var(--muted); margin: 6px 0 24px; font-size: 14px; }
.login__error { color: var(--danger); font-size: 14px; min-height: 20px; margin: 12px 0 0; }

.field { display: block; text-align: left; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }

.field input, .field select, .field textarea, .select, .filters__search {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.field input:focus, .field select:focus, .field textarea:focus,
.select:focus, .filters__search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .16);
}

.field textarea { resize: vertical; min-height: 78px; }

/* ---------- Кнопки ---------- */
.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  background: var(--surface-2);
  transition: transform .12s, background .15s, border-color .15s, opacity .15s;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: linear-gradient(135deg, var(--accent), var(--accent-soft)); color: #0a0e1a; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.btn--ghost:hover { color: var(--text); border-color: var(--muted); }
.btn--danger { background: transparent; border-color: rgba(248, 113, 113, .4); color: var(--danger); }
.btn--sm { padding: 7px 14px; font-size: 13px; }
.btn--wide { width: 100%; justify-content: center; margin-top: 8px; }

/* ---------- Шапка ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 26px;
  background: rgba(10, 14, 26, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.topbar__brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; }
.topbar__globe { font-size: 22px; }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.topbar__user { color: var(--muted); font-size: 13px; }

.tabs { display: flex; gap: 4px; background: var(--bg-soft); padding: 4px; border-radius: 999px; }

.tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: background .15s, color .15s;
}

.tab:hover { color: var(--text); }
.tab--active { background: var(--surface-2); color: var(--text); }

.main { max-width: 1280px; margin: 0 auto; padding: 26px 26px 80px; }
.view { display: none; animation: fade .25s ease; }
.view--active { display: block; }

@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 34px 0 16px;
  flex-wrap: wrap;
}

.section-head h2 { font-size: 21px; }
.section-head__hint { color: var(--muted); font-size: 13px; margin: 0; }
.section-head .btn { margin-left: auto; }

/* ---------- Ближайшая поездка ---------- */
.next-trip {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 230px;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.next-trip__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .55;
}

.next-trip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 14, 26, .95) 8%, rgba(10, 14, 26, .35) 70%);
}

.next-trip__body { position: relative; z-index: 1; }
.next-trip__label { color: var(--accent-2); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.next-trip__title { font-size: 32px; margin: 8px 0 6px; }
.next-trip__meta { color: var(--muted); font-size: 14px; }

.next-trip__count {
  position: relative;
  z-index: 1;
  margin-left: auto;
  text-align: right;
}

.next-trip__days { font-size: 58px; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.next-trip__days-label { color: var(--muted); font-size: 13px; }

.next-trip--empty {
  min-height: 0;
  padding: 30px;
  text-align: center;
  display: block;
  color: var(--muted);
}

/* ---------- Плитки статистики ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.stat__value { font-size: 27px; font-weight: 800; letter-spacing: -.03em; }
.stat__label { color: var(--muted); font-size: 12px; margin-top: 4px; }

/* ---------- Карточки направлений ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.cards--compact { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .16s, border-color .16s, box-shadow .16s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), .45);
  box-shadow: var(--shadow);
}

.card__photo {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-2);
  position: relative;
}

/* Затемнение сверху: без него бейджи теряются на светлых фотографиях. */
.card__photo::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 46%;
  background: linear-gradient(to bottom, rgba(6, 9, 18, .72), transparent);
}

.card__photo--empty {
  display: grid;
  place-items: center;
  font-size: 34px;
  background-image: linear-gradient(135deg, #223055, #2e2340);
}

.card__badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__title { font-size: 17px; font-weight: 700; }
.card__country { color: var(--muted); font-size: 13px; }

.card__facts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin-top: auto;
  padding-top: 6px;
}

.card__price { color: var(--text); font-weight: 700; }

.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(10, 14, 26, .8);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
}

.badge--visited { background: rgba(74, 222, 128, .2); border-color: rgba(74, 222, 128, .45); color: #b9f5cd; }
.badge--planning { background: rgba(251, 191, 36, .2); border-color: rgba(251, 191, 36, .45); color: #ffe3a3; }
.badge--wishlist { background: rgba(139, 149, 184, .18); color: #c7cee6; }
.badge--visa-none { background: rgba(70, 213, 190, .2); border-color: rgba(70, 213, 190, .45); color: #b4f0e6; }
.badge--visa-easy { background: rgba(96, 165, 250, .18); border-color: rgba(96, 165, 250, .4); color: #c2ddff; }
.badge--visa-required { background: rgba(248, 113, 113, .18); border-color: rgba(248, 113, 113, .4); color: #ffcaca; }
.badge--season { background: rgba(var(--accent-rgb), .22); border-color: rgba(var(--accent-rgb), .5); color: var(--accent-ink); }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips--static { margin-top: 18px; }

.chip {
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}

.chip:hover { color: var(--text); border-color: var(--muted); }
.chip--on { background: rgba(var(--accent-rgb), .16); border-color: var(--accent); color: var(--accent-ink); }
.chip--plain { cursor: default; }

/* ---------- Фильтры ---------- */
.filters {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.filters__row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.filters__row--wide { gap: 18px; border-top: 1px solid var(--line); padding-top: 13px; }
.filters__search { font-size: 15px; }

.toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; }
.toggle input { accent-color: var(--accent); width: 16px; height: 16px; }

.slider { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); min-width: 220px; }
.slider input { accent-color: var(--accent); }
.slider b { color: var(--text); }

.select { width: auto; padding: 8px 12px; font-size: 13px; }
.result-count { color: var(--muted); font-size: 13px; margin: 0 0 14px; }

/* ---------- Поездки ---------- */
.trip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
}

.trip__head { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.trip__title { font-size: 19px; font-weight: 700; }
.trip__dates { color: var(--muted); font-size: 13px; margin-top: 3px; }
.trip__actions { margin-left: auto; display: flex; gap: 8px; }
.trip__meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: var(--muted); }
.trip__meta b { color: var(--text); }
.trip__notes { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.55; white-space: pre-wrap; }

.checklist { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }

.checklist__head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.progress { flex: 1; height: 6px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; max-width: 260px; }
.progress__fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .3s; }

.checklist__items { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; }

.check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  padding: 5px 7px;
  border-radius: 9px;
  cursor: pointer;
  transition: background .15s;
}

.check:hover { background: var(--bg-soft); }
.check input { accent-color: var(--accent-2); width: 16px; height: 16px; flex-shrink: 0; }
.check--done span { color: var(--muted); text-decoration: line-through; }
.check__del { margin-left: auto; opacity: 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
.check:hover .check__del { opacity: 1; }

.add-item { display: flex; gap: 8px; margin-top: 10px; }
.add-item input { flex: 1; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px; outline: none; font-size: 13px; }

.stars { color: var(--warn); letter-spacing: 2px; }

/* ---------- Годы ---------- */
.years { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }

.year {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.year__n { font-size: 22px; font-weight: 800; }
.year__meta { color: var(--muted); font-size: 12px; margin-top: 6px; line-height: 1.7; }

/* ---------- Карта ---------- */
.map-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

#world-map { height: min(66vh, 620px); }
.jvm-tooltip { background: var(--surface-2) !important; border-radius: 8px !important; font-family: inherit !important; }

/* ---------- Модалка ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(4, 6, 14, .72); backdrop-filter: blur(4px); }

.modal__card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  width: min(660px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  animation: pop .2s ease;
}

@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(8px); } to { opacity: 1; transform: none; } }

.modal__hero {
  height: 190px;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-2);
  position: relative;
}

.modal__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--surface), transparent 65%); }

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(10, 14, 26, .75);
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
}

.modal__body { padding: 22px 26px 26px; }
.modal__title { font-size: 25px; }
.modal__sub { color: var(--muted); font-size: 14px; margin-top: 4px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 10px; margin: 20px 0; }
.fact { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; }
.fact__label { color: var(--muted); font-size: 11px; }
.fact__value { font-weight: 700; margin-top: 3px; font-size: 14px; }

.modal__notes { color: var(--muted); font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
.modal__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.modal__actions--right { margin-left: auto; }

.status-switch { display: flex; gap: 6px; margin: 18px 0; }
.status-switch .chip { flex: 1; text-align: center; }

.ideas { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.idea { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.idea:last-of-type { border-bottom: 0; }
.idea__kind { font-size: 17px; }
.idea__note { color: var(--muted); font-size: 12px; }
.idea a { color: var(--accent-2); text-decoration: none; }
.idea a:hover { text-decoration: underline; }
.idea__del { margin-left: auto; border: 0; background: none; color: var(--muted); cursor: pointer; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .field--full { grid-column: 1 / -1; }

.months { display: flex; gap: 4px; flex-wrap: wrap; }

.month {
  width: 38px;
  text-align: center;
  font-size: 12px;
  padding: 6px 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  cursor: pointer;
}

.month--on { background: rgba(var(--accent-rgb), .18); border-color: var(--accent); color: var(--accent-ink); }

.empty { color: var(--muted); text-align: center; padding: 40px 20px; font-size: 14px; }

/* ---------- Тост ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 12px 20px;
  border-radius: 999px;
  z-index: 90;
  box-shadow: var(--shadow);
  font-size: 14px;
  animation: fade .2s;
}

.toast--error { border-color: rgba(248, 113, 113, .5); color: #ffcaca; }

/* ---------- Телефон ---------- */
@media (max-width: 760px) {
  .topbar { padding: 12px 16px; gap: 12px; }
  .topbar__user { display: none; }
  .tabs { order: 3; width: 100%; justify-content: space-between; }
  .tab { flex: 1; padding: 8px 6px; font-size: 13px; }
  .main { padding: 18px 16px 60px; }
  .next-trip { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px; }
  .next-trip__count { margin-left: 0; text-align: left; }
  .next-trip__title { font-size: 25px; }
  .next-trip__days { font-size: 44px; }
  .cards, .cards--compact { grid-template-columns: repeat(auto-fill, minmax(100%, 1fr)); }
  .form-grid { grid-template-columns: 1fr; }
  .modal__body { padding: 18px; }
  .filters__row--wide { flex-direction: column; align-items: stretch; gap: 12px; }
}

/* ---------- Панель фильтров ---------- */
.filters__top {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.search {
  position: relative;
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
}

.search__icon {
  position: absolute;
  left: 14px;
  color: var(--muted);
  font-size: 18px;
  pointer-events: none;
}

.search__input {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 38px 11px 38px;
  outline: none;
  font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}

.search__input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .16); }
.search__input::-webkit-search-cancel-button { display: none; }

.search__clear {
  position: absolute;
  right: 12px;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
}

.search__clear:hover { color: var(--text); }

.currency {
  display: flex;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}

.currency__btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  width: 38px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  transition: background .15s, color .15s;
}

.currency__btn--on { background: var(--surface-2); color: var(--text); }

/* Быстрые пресеты — то, что нажимают чаще всего */
.presets { display: flex; gap: 8px; flex-wrap: wrap; }

.preset {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  padding: 9px 15px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: border-color .15s, background .15s, transform .12s;
}

.preset:hover { transform: translateY(-1px); border-color: var(--muted); }
.preset--on { background: rgba(var(--accent-rgb), .16); border-color: var(--accent); color: var(--accent-ink); }
.preset__emoji { font-size: 15px; }
.preset__count { color: var(--muted); font-weight: 500; font-size: 12px; }
.preset--on .preset__count { color: var(--accent-ink); }

.filters__more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 2px 0;
}

.filters__more:hover { color: var(--text); }
.filters__chevron { transition: transform .2s; display: inline-block; }
.filters__more[aria-expanded="true"] .filters__chevron { transform: rotate(180deg); }

.filters__panel {
  display: grid;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  animation: fade .2s ease;
}

.filter-group { display: flex; flex-direction: column; gap: 8px; }

.filter-group__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
  font-weight: 700;
}

.filter-group--sliders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.chip__count { opacity: .55; margin-left: 4px; font-size: 11px; }

.slider__label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.slider__label b { color: var(--text); font-size: 13px; }

.slider input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  height: 4px;
}

/* Активные фильтры: видно, что включено, и снимается одним кликом */
.filters__active { display: flex; gap: 6px; flex-wrap: wrap; }
.filters__active:empty { display: none; }

.active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(var(--accent-rgb), .14);
  border: 1px solid rgba(var(--accent-rgb), .45);
  color: var(--accent-ink);
  padding: 5px 8px 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.active-chip button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  opacity: .7;
  font-size: 13px;
  line-height: 1;
  padding: 0 2px;
}

.active-chip button:hover { opacity: 1; }

.active-chip--reset {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
  cursor: pointer;
  padding: 5px 12px;
}

.active-chip--reset:hover { color: var(--text); border-color: var(--muted); }

.result-count b { color: var(--text); }

/* Регион на карточке */
.card__region {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.rate-note { color: var(--muted); font-size: 11px; }

@media (max-width: 760px) {
  .filters__top { gap: 8px; }
  .search { order: -1; flex-basis: 100%; }
  .filters__top .select { flex: 1; }
  .preset { padding: 8px 12px; font-size: 12px; }
}

/* ---------- Страна на карте ---------- */
#world-map { cursor: grab; }
.jvm-region { transition: fill .15s; }

.country-hero {
  position: absolute;
  z-index: 2;
  bottom: 16px;
  left: 26px;
  right: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.country-hero__flag {
  font-size: 40px;
  line-height: 1;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .6));
}

.country-empty {
  color: var(--muted);
  font-size: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 18px 0 0;
  line-height: 1.55;
}

.country-trips { display: flex; flex-direction: column; gap: 10px; }

.country-trip {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.country-trip__year {
  font-weight: 800;
  font-size: 15px;
  color: var(--accent);
  min-width: 42px;
  letter-spacing: -.02em;
}

.country-trip__body { flex: 1; min-width: 0; }
.country-trip__title { font-weight: 700; font-size: 14px; }
.country-trip__meta { color: var(--muted); font-size: 12px; margin-top: 3px; }
.country-trip__notes { color: var(--muted); font-size: 12px; margin-top: 6px; line-height: 1.5; white-space: pre-wrap; }

.country-list { display: flex; flex-direction: column; gap: 6px; }

.country-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.country-row:hover { background: var(--bg-soft); border-color: var(--line); }

.country-row__photo {
  width: 54px;
  height: 40px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-2);
  flex-shrink: 0;
}

.country-row__body { flex: 1; min-width: 0; }
.country-row__city { display: block; font-weight: 600; font-size: 14px; }
.country-row__meta { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

.badge--again { background: rgba(70, 213, 190, .2); border-color: rgba(70, 213, 190, .45); color: #b4f0e6; }

@media (max-width: 760px) {
  .country-hero { left: 18px; right: 18px; }
  .country-hero__flag { font-size: 32px; }
  .country-trip { gap: 10px; padding: 10px; }
}
