:root {
  --bg: #faf7f2; --panel: #ffffff; --ink: #1f1b16; --muted: #6b6258; --line: #e6dfd4;
  --accent: #b8541c; --accent-ink: #ffffff; --star: #d99a1e; --warn-bg: #fdecea; --ok-bg: #eaf6ec;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17140f; --panel: #221e18; --ink: #f1ebe2; --muted: #a89d90; --line: #3a332a;
    --accent: #e0793c; --accent-ink: #17140f; --star: #f0b53d; --warn-bg: #3b2220; --ok-bg: #1e3324;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); }
h1 { font-size: 1.8rem; line-height: 1.2; margin: 1.2rem 0 .4rem; }
h2 { font-size: 1.25rem; margin: 2rem 0 .6rem; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

.top { background: var(--panel); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding-top: .7rem; padding-bottom: .7rem; }
.logo { font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--ink); white-space: nowrap; }
.search input { width: 100%; max-width: 260px; }
.foot { margin-top: 3rem; padding: 1.5rem 0; border-top: 1px solid var(--line); color: var(--muted); }

input, select, textarea, button { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .65rem; }
textarea { width: 100%; }
.button, button { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 8px; padding: .55rem 1rem; text-decoration: none; display: inline-block; cursor: pointer; font-weight: 600; }
.inline { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: .5rem 0; }
.inline button { padding: .35rem .8rem; font-size: .875rem; }

.hero { padding: 2rem 0 1rem; }
.hero h1 { font-size: 2.2rem; }
.big-search { display: flex; gap: .5rem; max-width: 520px; }
.big-search input { flex: 1; font-size: 1.1rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.card { display: flex; flex-direction: column; gap: .2rem; padding: .9rem; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; }
.card:hover { border-color: var(--accent); }
.stars { color: var(--star); letter-spacing: 1px; }
.stars b { color: var(--ink); letter-spacing: 0; margin-left: .2rem; }
.stars.none { color: var(--muted); font-size: .875rem; letter-spacing: 0; }
.tag { display: inline-block; font-size: .78rem; padding: .1rem .5rem; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); margin-right: .25rem; align-self: flex-start; }
.tag.warn { background: var(--warn-bg); }

.airports { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .35rem 1rem; }
.airports a { text-decoration: none; color: var(--ink); }
.airports .muted { font-size: .8rem; margin-left: .3rem; }

.crumbs { font-size: .875rem; color: var(--muted); margin-top: 1rem; }
.pills { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; }
.pills a { padding: .3rem .75rem; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--ink); background: var(--panel); font-size: .9rem; }
.pills a.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.scores { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .4rem 1.5rem; margin: 1rem 0; }
.scores div { display: flex; gap: .5rem; align-items: center; }
.scores span { width: 7.5rem; color: var(--muted); font-size: .9rem; }
.review { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; margin: .6rem 0; }
.review p { margin: .4rem 0; }

.flash { background: var(--ok-bg); padding: .7rem 1rem; border-radius: 8px; }
.flash.warn { background: var(--warn-bg); }
.ad { margin: 1.5rem 0; min-height: 90px; }

.form { display: flex; flex-direction: column; gap: 1rem; max-width: 640px; }
.form.narrow { max-width: 320px; }
.form label { display: flex; flex-direction: column; gap: .25rem; font-weight: 600; font-size: .92rem; }
.form label.check { flex-direction: row; align-items: center; font-weight: 400; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; }
.form fieldset { border: 1px solid var(--line); border-radius: 12px; padding: .75rem 1rem; }
.form fieldset.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .5rem; }
.form legend { font-weight: 600; font-size: .92rem; padding: 0 .3rem; }
.rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: .2rem; }
.rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating label { font-size: 2rem; color: var(--line); cursor: pointer; font-weight: 400; }
.rating input:checked ~ label, .rating label:hover, .rating label:hover ~ label { color: var(--star); }
.rating input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 4px; }
.hp { position: absolute; left: -9999px; }

table.list { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .92rem; }
.list th, .list td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--line); }
pre { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: .75rem; overflow-x: auto; }

@media (max-width: 600px) {
  h1 { font-size: 1.5rem; }
  .hero h1 { font-size: 1.7rem; }
  .search input { max-width: 150px; font-size: .9rem; padding: .4rem .5rem; }
  table.list { display: block; overflow-x: auto; }
}
