/* Общий стиль семьи сайтов GoLets (goletshome.app, golets.app; docs/test-matrices/
   home-site.md). Тот же тёмно-синий текст и системный шрифт, что у витрин
   goletsgo.app (tool/showcase/style.css); цвет сайта — --accent (у GoLetsHome —
   индиго раздела, home_section.dart). Без сторонних шрифтов и скриптов:
   страница не обращается к другим сайтам, пока человек сам не нажмёт
   «Показать на карте». */
:root {
  color-scheme: only light;
  --accent: #3F51B5;
  --accent-soft: #E8EAF6;
  --ink: #0F172A;
  --ink-soft: #475569;
  --line: rgba(15, 23, 42, 0.12);
  --page: #F8FAFC;
  --card: #FFFFFF;
  --warn-bg: #FDECEA;
  --warn-ink: #8C1D18;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2 { text-wrap: balance; overflow-wrap: anywhere; }
.wrap { max-width: 760px; margin-inline: auto; padding-inline: 16px; }

/* ---------- Шапка ---------- */
.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-block: 12px; }
.brand { font-weight: 800; font-size: 20px; text-decoration: none; color: var(--accent); }
.langs { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; }
.langs a { color: var(--ink-soft); text-decoration: none; }
.langs a[aria-current] { color: var(--ink); font-weight: 700; }
.lang-hint { margin: 12px 0 0; }
.lang-hint a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); text-decoration: none; font-weight: 600; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block; padding: 12px 20px; border-radius: 14px; border: 2px solid var(--accent);
  font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; text-align: center; cursor: pointer;
  overflow-wrap: anywhere;
}
.btn-main { background: var(--accent); color: #fff; }
.btn-ghost { background: var(--card); color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.actions .btn { flex: 1 1 220px; }

/* ---------- Объявление ---------- */
main { padding-block: 16px 32px; }
.gallery {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory;
  border-radius: 12px; margin: 0 0 16px;
}
.gallery img {
  flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  scroll-snap-align: center; background: var(--accent-soft); border-radius: 12px;
}
.price { font-size: 26px; font-weight: 800; margin: 0; overflow-wrap: anywhere; }
.approx, .muted { color: var(--ink-soft); margin: 0; }
.note { margin: 4px 0 0; overflow-wrap: anywhere; }
.title { font-size: 20px; font-weight: 600; margin: 8px 0 12px; }
.facts { margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; text-align: end; overflow-wrap: anywhere; }
h2 { font-size: 16px; margin: 20px 0 4px; }
.description { white-space: pre-line; overflow-wrap: anywhere; margin: 0; }
.place { margin: 16px 0 0; }
.credit { font-size: 12px; color: var(--ink-soft); margin: 0; }
.map { margin: 12px 0 0; }
.map iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 12px; }
.warn { background: var(--warn-bg); color: var(--warn-ink); border-radius: 12px; padding: 12px 14px; margin: 20px 0 0; }
.message { text-align: center; padding-block: 48px; }
.message h1 { font-size: 22px; }

/* ---------- Подвал ---------- */
.foot { border-top: 1px solid var(--line); background: var(--card); font-size: 13px; color: var(--ink-soft); }
.foot .wrap { padding-block: 20px; text-align: center; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 10px; }
.foot a { color: var(--ink); }
