:root {
  --bg: #f7fbfd; --fg: #12232b; --muted: #5a7280; --line: #dce7ec;
  --panel: #ffffff; --accent: #2178a0; --brand: #3FA7D6; --petrol: #0E2A33; --accent-ink: #ffffff;
  --wrap: 960px; --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 30px; line-height: 1.2; margin: 8px 0 14px; }
h2 { font-size: 21px; margin: 28px 0 10px; }
.lead { font-size: 18px; color: #2b3f48; }
.muted { color: var(--muted); }
.meta { color: var(--muted); font-size: 14px; margin-top: 18px; }
.crumb { color: var(--muted); font-size: 14px; margin: 0 0 4px; }

/* header / nav */
header { background: var(--panel); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; padding: 12px 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 800; color: var(--fg); letter-spacing: -.02em; }
.brand svg { height: 44px; width: auto; color: var(--brand); }
.brand .dot { color: var(--brand); }
.brand:hover { text-decoration: none; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav a { color: var(--fg); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--accent); text-decoration: none; }
.nav-lang { border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 13px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--fg); cursor: pointer; }

main.wrap { padding-top: 26px; padding-bottom: 48px; }
footer { border-top: 1px solid var(--line); background: var(--panel); margin-top: 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; padding: 24px 20px; font-size: 14px; }
.amfilter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 22px; }
.amfilter[hidden] { display: none; }
.amfilter-lbl { font-size: 13px; color: var(--muted); font-weight: 700; }
.amchip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--fg); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.amchip .amico { width: 15px; height: 15px; fill: var(--accent); }
.amchip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.amchip.on .amico { fill: #fff; }
.amchip[hidden], .place-list li[hidden] { display: none; }
.wq-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.wq-erinomainen { background: #1a9e5c; } .wq-hyva { background: #5cc98a; } .wq-tyydyttava { background: #e6b93b; }
.wq-huono { background: #d1503f; } .wq-ei { background: #9bb0b8; } .wq-ei-luokiteltu { background: #9bb0b8; }
.wqbox { background: #fff; border: 1px solid var(--line); border-left-width: 4px; border-radius: 10px; padding: 12px 16px; margin: 6px 0; }
.wqbox.wqb-erinomainen { border-left-color: #1a9e5c; } .wqbox.wqb-hyva { border-left-color: #5cc98a; }
.wqbox.wqb-tyydyttava { border-left-color: #e6b93b; } .wqbox.wqb-huono { border-left-color: #d1503f; } .wqbox.wqb-ei { border-left-color: #9bb0b8; }
.wqbox .wq-class { font-weight: 800; font-size: 16px; }
.wqbox p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.amenities { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 14px 0 6px; }
.amenities li { display: inline-flex; align-items: center; gap: 8px; background: #eaf4f8; border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--petrol); }
.amico { width: 17px; height: 17px; fill: var(--accent); flex: 0 0 auto; display: inline-block; }
.amsrc { font-size: 12.5px; margin-top: 4px; }
footer a { color: var(--muted); }
footer a.soc { display: inline-flex; align-items: center; gap: 6px; }
footer a.soc:hover { color: var(--accent); }
footer .legal { width: 100%; color: var(--muted); font-size: 13px; margin-top: 6px; }

/* hero */
.hero { position: relative; background: url('/assets/img/hero.jpg') center/cover no-repeat; border-radius: var(--radius); padding: 44px 26px; margin-bottom: 30px; min-height: 400px; display: flex; align-items: center; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(14,42,51,.30), rgba(14,42,51,.10)); }
.hero-card { position: relative; z-index: 2; background: rgba(255,255,255,.9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 16px; padding: 28px 30px; max-width: 640px; box-shadow: 0 18px 48px rgba(10,60,90,.30); }
.hero-card h1 { margin: 0 0 10px; color: var(--petrol); font-size: clamp(26px, 2vw + 20px, 34px); line-height: 1.15; }
.hero-card .lead { color: var(--muted); }
.hero-cta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; border-radius: 999px; padding: 10px 20px; }
.btn:hover { text-decoration: none; opacity: .92; }
.btn-alt { background: #fff; color: var(--accent); border: 1px solid var(--line); }

/* search */
.search { position: relative; max-width: 560px; margin: 18px 0 4px; }
.search .search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { width: 100%; font-size: 16px; padding: 14px 16px 14px 46px; border: 0; border-radius: 999px; background: #fff; color: var(--fg); box-shadow: 0 6px 20px rgba(10,60,90,.18); }
.search input:focus { outline: 3px solid rgba(63,167,214,.45); }
.search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 34px rgba(10,60,90,.22); max-height: 60vh; overflow-y: auto; z-index: 40; }
.search-results a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); color: var(--fg); }
.search-results a:last-child { border-bottom: 0; }
.search-results a:hover { background: #f0f7fb; text-decoration: none; }
.search-results .r-name { font-weight: 600; }
.search-results .r-meta { color: var(--muted); font-size: 13px; white-space: nowrap; }
.search-results .no-hits { margin: 0; padding: 14px 16px; color: var(--muted); }

/* place photo */
.place-photo { margin: 0 0 16px; }
.place-photo img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 14px; display: block; background: #dce7ec; }
.place-photo figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.place-photo figcaption a { color: var(--muted); text-decoration: underline; }

/* water info */
.waterinfo { display: flex; align-items: center; gap: 18px; background: linear-gradient(120deg, #e7f4fb, #f2fafd); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 16px 0; }
.wtemp { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--brand); color: var(--petrol); border-radius: 12px; padding: 10px 16px; min-width: 92px; }
.wtemp-val { font-size: 26px; font-weight: 800; line-height: 1; }
.wtemp-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; opacity: .9; margin-top: 4px; }
.wmeta p { margin: 0 0 4px; }
.wmeta p:last-child { margin: 0; }

/* map embed */
.map { width: 100%; height: 340px; border: 1px solid var(--line); border-radius: 12px; margin: 6px 0 8px; }
.map-link { font-size: 14px; color: var(--muted); margin: 0 0 8px; }

/* cards */
.card-grid { list-style: none; padding: 0; margin: 12px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.card a { font-size: 16px; }
.card .muted { font-size: 13px; }

/* lists / detail */
.place-list { list-style: none; padding: 0; margin: 6px 0 0; }
.place-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 20px; margin: 18px 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child, .facts div:nth-last-child(2) { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: 14px; margin: 0; }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.intro { margin-top: 30px; }

@media (max-width: 640px) {
  .nav { position: absolute; top: 54px; left: 0; right: 0; background: var(--panel); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; gap: 0; padding: 0 20px; max-height: 0; overflow: hidden; }
  body.nav-open .nav { max-height: 60vh; padding: 8px 20px 16px; }
  .nav a { width: 100%; padding: 10px 0; }
  .nav-toggle { display: block; }
  .header-row { position: relative; }
  .facts { grid-template-columns: 1fr; }
  h1 { font-size: 25px; }
}
