/* Little Families v9 « Démo » — Estelle's « Local Guide » look: navy band, white search card, calm and clear. */
:root { --navy: #12304a; --navy-2: #1d4467; --ink: #14212b; --soft: #5c6b75; --line: #e3e8ec; --bg: #f5f7f8; --card: #fff; --mint: #d8f2e4; --accent: #12304a; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 "Inter", system-ui, -apple-system, sans-serif; overflow-x: hidden; }
a { color: var(--navy); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.band { background: var(--navy); color: #fff; padding-bottom: 18px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 0 6px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.mark { width: 28px; height: 28px; border-radius: 8px; background: var(--mint); color: var(--navy); display: grid; place-items: center; font-size: 15px; }
.top nav { display: flex; gap: 8px; }
.top nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 8px 14px; }
h1 { font-weight: 900; letter-spacing: -.04em; font-size: clamp(34px, 8vw, 58px); line-height: 1; margin: 18px 0 8px; }
.sub { margin: 0 0 16px; color: rgba(255,255,255,.85); font-size: 17px; }
/* search card */
.search { background: var(--card); color: var(--ink); border-radius: 16px; display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr auto; gap: 0; overflow: visible; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.f { padding: 10px 14px; border-right: 1px solid var(--line); position: relative; min-width: 0; }
.lab { display: block; font-size: 13px; font-weight: 700; color: var(--soft); margin-bottom: 2px; }
.row2 { display: flex; gap: 8px; }
.search select { border: 0; background: transparent; font: 600 16px "Inter", sans-serif; color: var(--ink); padding: 2px 0; max-width: 100%; min-width: 0; }
.search select:focus-visible, summary:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 6px; }
details.f summary { list-style: none; cursor: pointer; }
details.f summary::-webkit-details-marker { display: none; }
.val { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop { position: absolute; z-index: 20; left: 0; top: 100%; margin-top: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; width: max(240px, 100%); max-height: 300px; overflow: auto; box-shadow: 0 12px 30px rgba(0,0,0,.15); display: grid; gap: 2px; }
.chk { display: flex; gap: 8px; align-items: center; padding: 6px 4px; font-size: 15px; cursor: pointer; }
.chk input { width: 18px; height: 18px; accent-color: var(--navy); }
.clear { margin-top: 6px; border: 0; background: none; color: var(--navy); font: 700 14px "Inter", sans-serif; text-align: left; cursor: pointer; padding: 4px; }
.kids { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.kid { display: inline-flex; align-items: center; gap: 4px; background: var(--mint); color: var(--navy); border-radius: 999px; padding: 3px 4px 3px 10px; font-weight: 700; font-size: 14px; }
.kid button { border: 0; background: rgba(18,48,74,.12); color: var(--navy); width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-size: 14px; line-height: 1; }
.go { border: 0; background: var(--navy); color: #fff; font: 700 16px "Inter", sans-serif; border-radius: 12px; margin: 8px; padding: 0 22px; cursor: pointer; min-height: 48px; }
.cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 14px; padding-bottom: 2px; }
.cat { flex: none; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; border-radius: 999px; padding: 8px 14px; font: 600 14px "Inter", sans-serif; cursor: pointer; }
.cat[aria-pressed="true"] { background: var(--mint); color: var(--navy); border-color: var(--mint); }
/* results */
.rhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 22px 0 10px; flex-wrap: wrap; }
.rhead h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.switch button { border: 0; background: none; color: var(--ink); font: 600 14px "Inter", sans-serif; padding: 8px 16px; cursor: pointer; }
.switch button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.hint { background: #fff7e0; border: 1px solid #f1e0a6; border-radius: 12px; padding: 10px 12px; font-size: 14px; color: #5c4a10; }
#map { height: 62vh; min-height: 360px; border-radius: 16px; border: 1px solid var(--line); margin-bottom: 12px; z-index: 0; }
#map[hidden], .grid[hidden] { display: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.res { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; gap: 4px; }
.res h3 { margin: 0; font-size: 17px; letter-spacing: -.01em; line-height: 1.3; }
.res .sub { font-size: 14px; color: var(--soft); }
.res .fit { font-size: 13px; font-weight: 700; color: #1f7a4d; }
.res p { margin: 4px 0 0; font-size: 15px; color: var(--soft); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.btn { display: inline-block; border-radius: 10px; padding: 10px 14px; font: 600 14px "Inter", sans-serif; text-decoration: none; border: 1px solid var(--line); color: var(--ink); background: #fff; cursor: pointer; }
.btn.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.more { text-align: center; margin: 14px 0 0; }
.boxes { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin: 30px 0; }
.box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.box h3 { margin: 0 0 6px; font-size: 18px; }
.box p { margin: 0; color: var(--soft); }
.box.dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.box.dark p { color: rgba(255,255,255,.85); }
.near { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.near li { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.near li span { color: var(--soft); flex: none; }
footer { padding: 18px 0 80px; color: var(--soft); font-size: 14px; }
/* forms and flow pages */
.page { padding: 20px 0 60px; }
.page h1 { color: var(--ink); font-size: clamp(28px, 6vw, 40px); margin: 6px 0 8px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; max-width: 640px; }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 4px; font-weight: 600; font-size: 15px; }
.form input, .form select, .form textarea { font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; min-width: 0; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.form .check input { margin-top: 4px; width: 18px; height: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ok { background: #e3f4e9; border: 1px solid #bfe3cb; border-radius: 12px; padding: 12px; }
.err { background: #fdecec; border: 1px solid #f3c4c4; border-radius: 12px; padding: 12px; }
.note { color: var(--soft); font-size: 14px; }
.steps { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 0; }
.steps li { position: relative; padding: 0 0 18px 30px; }
.steps li::before { content: ""; position: absolute; left: 7px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.steps li:last-child::before { display: none; }
.steps li i { position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--navy); }
.steps li.todo i { background: #fff; border: 2px solid var(--line); }
.steps li small { display: block; color: var(--soft); font-size: 13px; }
@media (max-width: 860px) {
  .search { grid-template-columns: 1fr 1fr; }
  .f { border-right: 0; border-bottom: 1px solid var(--line); }
  .f-wide { grid-column: span 2; }
  .go { grid-column: span 2; }
  .boxes { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .form .two { grid-template-columns: 1fr; }
}
