/* hoteldatabase.co.uk — a register, not a marketplace. Tokens from the design plan (ledger, Task 7). */
:root {
  --ink: #182420; --paper: #fff; --linen: #eef1ec; --bottle: #1f4f3d; --brass: #c9a23a; --brass-dark: #a98421;
  --muted: #5b665f; --rule: #d6ddd8;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font: 17px/1.5 var(--sans); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
body::before { content: ""; position: absolute; width: 1px; height: 1px; left: -9px; top: -9px; background: url(/px.svg) no-repeat; }
a { color: var(--bottle); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
h1, h2, h3, .brand, .hotels h2, .cities .city { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; }
h1 { font-size: clamp(2rem, 2.2vw + 1.4rem, 3rem); margin: 0 0 .6rem; }
h2 { font-size: 1.5rem; margin: 2rem 0 .5rem; }
p { margin: 0 0 1rem; max-width: 66ch; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 58ch; }
.top { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.5rem; padding: 1.1rem 16px; border-bottom: 2px solid var(--linen); }
.brand { font-size: 1.35rem; text-decoration: none; color: var(--ink); }
.brand span { color: var(--muted); }
.top nav { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-left: auto; }
.top nav a { text-decoration: none; color: var(--ink); padding-bottom: 2px; border-bottom: 2px solid transparent; }
.top nav a[aria-current] { border-bottom-color: var(--brass); }
main { flex: 1; width: 100%; max-width: 960px; margin: 0 auto; padding: 2rem 16px 3rem; }
footer { border-top: 2px solid var(--linen); padding: 1.5rem 16px 2.5rem; color: var(--muted); font-size: .9rem; }
footer p { max-width: 960px; margin: 0 auto .5rem; }
.btn { display: inline-block; background: var(--brass); color: var(--ink); font-weight: 600; text-decoration: none; padding: .6rem 1.1rem; border-radius: 4px; border: 2px solid var(--brass); white-space: nowrap; }
.btn:hover { background: var(--brass-dark); border-color: var(--brass-dark); }
.btn.big { font-size: 1.15rem; padding: .8rem 1.5rem; }
/* home */
.hero { padding: 1.5rem 0 1rem; }
.cities { list-style: none; padding: 0; margin: 1rem 0 2.5rem; border-top: 2px solid var(--ink); }
.cities a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.cities .city { font-size: 1.8rem; }
.cities .count { color: var(--muted); }
.cities a:hover .city { color: var(--bottle); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.why { background: var(--linen); padding: 1.25rem 1.25rem .5rem; border-radius: 6px; max-width: 72ch; }
.why h2 { margin-top: 0; }
/* city list */
.filter { margin: 1rem 0 .5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.filter label { font-weight: 600; }
.filter input { font: inherit; padding: .55rem .8rem; border: 2px solid var(--rule); border-radius: 4px; min-width: min(100%, 22rem); background: var(--paper); color: var(--ink); }
.filter input:focus { border-color: var(--bottle); outline: none; }
.count { color: var(--muted); margin: .25rem 0 0; }
.hotels { list-style: none; padding: 0; margin: .5rem 0 0; border-top: 2px solid var(--ink); }
.row { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); align-items: start; }
.row[hidden] { display: none; }
.row h2 { font-size: 1.3rem; margin: 0 0 .15rem; }
.row h2 a { color: var(--ink); text-decoration: none; }
.row h2 a:hover { color: var(--bottle); text-decoration: underline; }
.addr { color: var(--muted); margin: 0 0 .4rem; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.chips li { background: var(--linen); border-radius: 4px; padding: .1rem .55rem; font-size: .85rem; color: var(--ink); }
.act { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; text-align: right; }
.act small, .book small { color: var(--muted); font-size: .85rem; }
.hint { color: var(--muted); margin-top: 1rem; }
/* hotel page */
.crumb { margin: 0 0 1rem; font-size: .95rem; }
.book { margin: 1.5rem 0 1rem; display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; }
.links { color: var(--muted); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; margin: 1.5rem 0; padding: 1rem 1.25rem; background: var(--linen); border-radius: 6px; max-width: 72ch; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; }
.notice { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 1rem; margin-top: 2rem; max-width: 72ch; }
@media (max-width: 600px) {
  html { font-size: 16px; }
  .row { grid-template-columns: 1fr; }
  .act { flex-direction: row; align-items: baseline; justify-content: space-between; text-align: left; width: 100%; }
  .facts { grid-template-columns: 1fr; gap: .1rem; } .facts dt { margin-top: .6rem; }
  .cities .city { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: no-preference) { .btn { transition: background-color .15s; } }
/* maps (assets/map.js) */
.map { display: none; height: 56vh; min-height: 320px; max-height: 620px; margin: .75rem 0 1rem; border-radius: 6px; overflow: hidden; border: 1px solid var(--rule); background: var(--linen); }
.map.has-map { display: block; }
.map-small { height: 260px; min-height: 0; max-width: 72ch; margin: 1rem 0 1.5rem; }
.pin { width: 18px; height: 18px; border-radius: 50%; background: var(--brass); border: 3px solid var(--bottle); box-shadow: 0 1px 3px rgba(0,0,0,.35); cursor: pointer; padding: 0; }
.pin:hover, .pin:focus-visible { background: var(--ink); }
.maplibregl-popup-content { font: 15px/1.4 var(--sans); color: var(--ink); padding: .75rem .9rem; border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.maplibregl-popup-content strong { font-family: var(--serif); font-weight: 500; font-size: 1.1rem; }
.popup-addr { color: var(--muted); }
.popup-actions { margin-top: .5rem; display: flex; gap: .75rem; align-items: center; }
.popup-actions .btn { padding: .35rem .7rem; font-size: .9rem; }
.maplibregl-ctrl-attrib { font: 11px/1.3 var(--sans); }
@media (max-width: 600px) { .map { height: 48vh; min-height: 260px; } }
