/* Стили flylovers.ru: главная (карта желаний) и страница цен /fares/. */
:root {
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --faint: #9ca3af;
  --line: #e5e7eb;
  --line-2: #f3f4f6;
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --good: #1b4fd8;
  --good-soft: #eef2ff;
  --warn: #d97706;
  --warn-soft: #fef3c7;
  --radius: 10px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: var(--good); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }

.header { border-bottom: 1px solid var(--line); background: var(--bg); }
.header-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 16px; }
@media (min-width: 720px) { .header-top { padding: 12px 24px; } }
.brand { font-weight: 700; font-size: 16px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.status { color: var(--muted); font-size: 12px; }

main { padding-top: 24px; padding-bottom: 48px; }
.page-title { font-size: 20px; font-weight: 700; margin: 0; }
.page-sub { color: var(--muted); margin: 6px 0 0; font-size: 13px; max-width: 760px; }
.section-title { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin: 28px 0 12px; }
.hint { color: var(--faint); font-size: 12px; }

.notice {
  margin: 16px 0 0; padding: 10px 12px; border-radius: 8px;
  background: var(--warn-soft); border-left: 4px solid var(--warn); color: var(--ink);
}
.state { margin: 32px 0; color: var(--muted); font-size: 14px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 20px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; border: 1px solid var(--line); border-radius: 8px; padding: 3px; background: var(--bg-soft); }
.seg button {
  appearance: none; border: 0; background: none; border-radius: 6px; padding: 6px 12px;
  font: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer;
}
.seg button:hover { background: var(--line-2); }
.seg button:focus-visible { outline: 2px solid var(--good); outline-offset: 1px; }
.seg button[aria-pressed="true"] { background: var(--good); color: #ffffff; font-weight: 600; }
.set-note { color: var(--muted); font-size: 12px; margin: 10px 0 0; }

.top { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.insight {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 6px; min-width: 0; background: var(--bg);
}
.insight-head { display: flex; align-items: baseline; gap: 8px; }
.insight-rank { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.insight-route { font-weight: 700; font-size: 15px; }
.insight-date { color: var(--muted); font-size: 12px; }
.insight-figures { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.insight-price { font-size: 24px; font-weight: 700; line-height: 1.15; }
.insight-dev { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.insight ul { margin: 2px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 13px; display: grid; gap: 3px; }
.insight-actions { margin-top: auto; padding-top: 8px; }
.btn {
  display: inline-block; border: 1px solid var(--line); background: var(--bg); border-radius: 8px;
  padding: 6px 12px; font-size: 12px; font-weight: 500; color: var(--ink);
}
.btn:hover { background: var(--bg-soft); text-decoration: none; }
.empty { color: var(--muted); font-size: 13px; margin: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 12px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 12px 10px;
  display: flex; flex-direction: column; gap: 2px; min-width: 0; color: var(--ink); background: var(--bg);
}
.card:hover { background: var(--bg-soft); text-decoration: none; }
.card:focus-visible { outline: 2px solid var(--good); outline-offset: 2px; }
.card-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-price { font-size: 20px; font-weight: 700; line-height: 1.2; }
.card-note { color: var(--muted); font-size: 12px; }
.card svg { display: block; margin: 6px 0 4px; }
.card-foot { color: var(--faint); font-size: 12px; display: flex; align-items: center; gap: 6px; min-height: 18px; }
.dot-key { width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex: none; }

.disclosure { margin: 28px 0 0; color: var(--ink-2); font-size: 13px; }
.method { margin: 8px 0 0; color: var(--faint); font-size: 12px; max-width: 820px; }

/* ===== Главная: карта желаний (add-wishmap, move-wishmap-to-flylovers) ===== */
:root { --sea: #e6eef9; --land: #fbfbf9; --land-edge: #c5ccd6; --d1: #2a78d6; --d2: #eb6834; --d3: #1baf7a; }
.header-links { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.key { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }
.map-card { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: relative; background: var(--sea); }
.map-card svg { display: block; width: 100%; height: auto; }
.map-hint { padding: 8px 12px; font-size: 12px; color: var(--ink-2); background: var(--bg); border-bottom: 1px solid var(--line); }
.city { cursor: pointer; }
.city:focus-visible { outline: none; }
.city:focus-visible .city-dot { stroke: var(--good); stroke-width: 3; }
/* размер подписи и обводки задаёт скрипт — в пикселях экрана, а не в единицах карты */
.city-label { font-size: 12px; fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; font-weight: 600; }
.map-tip { position: absolute; pointer-events: none; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); padding: 7px 10px; font-size: 12px; min-width: 150px; z-index: 3; }
.map-tip b { font-size: 13px; }
.durations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
@media (max-width: 860px) { .durations { grid-template-columns: minmax(0, 1fr); } }
.duration { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--bg); }
.duration-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.duration-head b { font-size: 14px; }
.slot { border: 1px solid var(--line); border-radius: 8px; margin-top: 6px; position: relative; background: var(--bg); }
.slot.active { border-color: var(--good); box-shadow: 0 0 0 1px var(--good); }
.slot.empty { border-style: dashed; }
.slot-main { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 9px 30px 4px 10px; font: inherit; color: inherit; cursor: pointer; border-radius: 8px; min-height: 44px; }
.slot.empty .slot-main { color: var(--faint); padding-bottom: 9px; }
.slot-main:hover { background: var(--bg-soft); }
.slot-main:focus-visible, .slot-remove:focus-visible, .picker button:focus-visible { outline: 2px solid var(--good); outline-offset: 1px; }
.slot-name { font-weight: 600; display: block; }
.slot-price { font-size: 13px; color: var(--ink-2); display: block; }
.slot-price b { color: var(--ink); font-size: 15px; }
.slot-link { display: inline-block; margin: 0 10px 8px; font-size: 12px; }
.slot-remove { position: absolute; right: 4px; top: 4px; border: 0; background: none; color: var(--faint); font-size: 16px; line-height: 1; padding: 6px 7px; border-radius: 4px; cursor: pointer; }
.slot-remove:hover { color: var(--ink); background: var(--line-2); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 16px; }
.actions button.btn { cursor: pointer; font: inherit; font-size: 12px; font-weight: 500; }
.btn.primary { background: var(--good); border-color: var(--good); color: #ffffff; font-weight: 600; }
.btn.primary:hover { background: #1743b8; }
.soon-note { margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--good-soft); color: var(--ink); font-size: 13px; }
.example-note { margin: 12px 0 0; color: var(--ink-2); font-size: 13px; }
.picker { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); padding: 12px 14px; margin-top: 12px; }
.picker-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.picker h3 { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 12px 0 6px; }
.picker-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.picker-list button { text-align: left; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); padding: 7px 10px; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink); }
.picker-list button:hover { background: var(--bg-soft); }
.picker-list button span { display: block; color: var(--muted); font-size: 12px; }
@media (max-width: 719px) {
  .picker { position: fixed; left: 0; right: 0; bottom: 0; max-height: 72vh; overflow-y: auto; margin: 0; border-radius: 14px 14px 0 0; box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18); z-index: 10; }
}
.hero-title { font-size: 26px; line-height: 1.2; }
.hero-sub { font-size: 15px; color: var(--ink-2); max-width: 680px; }
.insight-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.insight-actions button.btn { cursor: pointer; font: inherit; font-size: 12px; font-weight: 500; }
.insight-date { display: flex; align-items: center; flex-wrap: wrap; }
/* телефон: всё, на что нажимают, не ниже 44 px (design D7) */
@media (max-width: 719px) {
  .hero-title { font-size: 22px; }
  .hero-sub { font-size: 14px; }
  .btn, .actions button.btn, .insight-actions button.btn { min-height: 44px; display: inline-flex; align-items: center; padding: 10px 14px; font-size: 13px; }
  .slot-remove { min-width: 44px; min-height: 44px; right: 0; top: 0; font-size: 18px; }
  .slot-main { padding-right: 46px; }
  .slot-link { min-height: 44px; display: inline-flex; align-items: center; margin-bottom: 0; }
  .picker-list button { min-height: 44px; }
  .header-links a { min-height: 44px; display: inline-flex; align-items: center; }
}
