/* ==========================================================================
   Guide-to-London.net - main stylesheet
   Palette: deep navy (night sky over the Thames, the classic enamel street
   sign) + pillar-box red + a touch of brass, on a warm Portland-stone ground.
   Serif headings for an editorial feel, system sans for body text (no web
   fonts: nothing to download, nothing to block rendering).
   ========================================================================== */

:root {
  --brand:       #14213D;   /* navy */
  --brand-d:     #0B1426;
  --brand-l:     #2B4A8B;
  --accent:      #C8102E;   /* pillar-box red, 5.9:1 on white */
  --accent-h:    #9E0C24;
  --accent-soft: #FBE9EC;
  --gold:        #D4A537;
  --blue:        #1F5F99;
  --bg:          #F7F4EE;   /* Portland stone */
  --bg-2:        #ECE6DA;
  --white:       #FFFFFF;
  --text:        #1E2430;
  --text-light:  #555E6C;   /* 6.3:1 on white */
  --border:      #E2DBCE;
  --good:        #2E7D5B;
  --warn:        #B7791F;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --shadow: 0 1px 3px rgba(11,20,38,.06), 0 8px 24px rgba(11,20,38,.06);
  --shadow-lg: 0 12px 40px rgba(11,20,38,.16);
  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); color: var(--text); background: var(--white); line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--brand-l); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent); }
[hidden] { display: none !important; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.2; color: var(--text); letter-spacing: -0.005em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.22rem; }
p  { margin-bottom: 1rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.2rem; }
.narrow { max-width: 780px; }
.muted { color: var(--text-light); }

.section { padding: 3.4rem 0; }
.section.alt { background: var(--bg); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 2.2rem; }
.section-head .eyebrow { color: var(--accent); font-family: var(--sans); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.section-head h2 { margin: .4rem 0 .6rem; }
.section-head h2 a { color: inherit; }
.section-head h2 a:hover { color: var(--accent); }
.section-head p { color: var(--text-light); font-size: 1.05rem; margin: 0; }
.more-link { text-align: center; margin: 1.8rem 0 0; }

/* ---------- Skip link ---------- */
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 1000; background: var(--accent); color: #fff; padding: .6rem 1rem; border-radius: var(--r-sm); transition: top .15s; }
.skip-link:focus { top: 8px; color: #fff; }
#main { scroll-margin-top: 80px; }
#main:focus { outline: none; }

/* ---------- Top navigation ---------- */
.site-nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1320px; margin: 0 auto; padding: .5rem 1rem; display: flex; align-items: center; gap: .6rem; }
.nav-logo { display: flex; align-items: center; gap: .45rem; font-family: var(--serif); font-weight: 700; font-size: 1.12rem; color: var(--brand); letter-spacing: -.01em; white-space: nowrap; }
.nav-logo:hover { color: var(--brand); }
.nav-logo-icon { width: 34px; height: 34px; border-radius: 10px; overflow: hidden; display: block; flex: 0 0 auto; box-shadow: 0 1px 3px rgba(11,20,38,.2); }
.nav-logo-icon svg { width: 100%; height: 100%; display: block; }
.nav-logo-text span { color: var(--accent); }
.nav-menu { display: flex; align-items: center; gap: .1rem; margin-left: auto; }
.nav-link { display: block; padding: .55rem .5rem; border-radius: var(--r-sm); font-size: .86rem; font-weight: 600; color: var(--text); white-space: nowrap; }
.nav-link:hover, .nav-dropdown:focus-within > .nav-link { background: var(--bg); color: var(--accent); }
.nav-dropdown { position: relative; }
.dropdown-menu { position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%) translateY(8px); background: var(--white); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 1.1rem 1.3rem; display: flex; gap: 1.6rem; min-width: 250px; opacity: 0; visibility: hidden; transition: opacity .16s, transform .16s, visibility .16s; }
.nav-dropdown:hover .dropdown-menu, .nav-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dropdown.nav-dd-right .dropdown-menu { left: auto; right: 0; transform: translateY(8px); }
.nav-dropdown.nav-dd-right:hover .dropdown-menu, .nav-dropdown.nav-dd-right:focus-within .dropdown-menu { transform: translateY(0); }
.dropdown-col { min-width: 210px; }
.dropdown-col a { display: block; padding: .3rem 0; font-size: .92rem; color: var(--text); font-weight: 500; white-space: nowrap; }
.dropdown-col a:hover { color: var(--accent); }
.dropdown-col a.more { color: var(--accent); font-weight: 700; margin-top: .3rem; }

.btn-search-icon { order: 3; background: none; border: none; padding: .5rem; cursor: pointer; color: var(--text); border-radius: var(--r-sm); display: flex; margin-left: .2rem; }
.btn-search-icon:hover { background: var(--bg); color: var(--accent); }
.nav-toggle { order: 4; display: none; background: none; border: none; cursor: pointer; color: var(--text); padding: .35rem; border-radius: var(--r-sm); }
.nav-toggle:hover { background: var(--bg); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .78rem 1.45rem; border-radius: var(--r-sm); font-weight: 700; font-size: .98rem; cursor: pointer; border: 2px solid transparent; transition: .15s; }
.btn-primary { background: var(--accent); color: #fff !important; }
.btn-primary:hover { background: var(--accent-h); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(200,16,46,.35); }
.btn-light { background: rgba(255,255,255,.95); color: var(--brand) !important; }
.btn-light:hover { background: #fff; transform: translateY(-1px); }
.btn-ghost { background: var(--white); color: var(--brand) !important; border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); background: var(--bg); }
.btn-lg { padding: .95rem 1.8rem; font-size: 1.04rem; }

/* ---------- Front-page hero with slideshow ----------
   The text sits on its own dark panel, so contrast does not depend on
   whichever photo is showing (measured approach from the sister sites:
   a box behind the text, not a gradient over the photo). */
.hero { position: relative; background: var(--brand-d); color: #fff; overflow: hidden; min-height: 560px; display: flex; align-items: center; }
.hero .slides { position: absolute; inset: 0; }
.hero .slides img.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.hero .slides img.slide.active { opacity: 1; }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 4.5rem 1.2rem; }
.hero-copy { max-width: 640px; background: rgba(11,20,38,.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); border-radius: var(--r-lg); padding: 2rem 2.2rem 2.2rem; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.hero h1 { color: #fff; margin: .6rem 0 1rem; }
.hero p.lead { font-size: 1.12rem; color: rgba(255,255,255,.94); margin-bottom: 1.5rem; }
.hero .pill { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 999px; margin: 0; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- Page hero (articles, hubs) ---------- */
.page-hero { position: relative; min-height: 360px; display: flex; align-items: flex-end; color: #fff; background: var(--brand); overflow: hidden; }
.page-hero.no-img { min-height: 0; background: linear-gradient(135deg, var(--brand-d), var(--brand-l)); }
.page-hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.page-hero .inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; width: 100%; padding: 2.2rem 1.2rem; }
.page-hero .hero-text { display: inline-block; max-width: 48rem; background: rgba(11,20,38,.74); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); border-radius: var(--r); padding: 1.15rem 1.5rem 1.25rem; box-shadow: 0 6px 30px rgba(0,0,0,.25); }
.page-hero.no-img .hero-text { background: none; box-shadow: none; padding-left: 0; }
.page-hero .kicker { display: inline-block; background: var(--accent); color: #fff; font-family: var(--sans); font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: .26rem .75rem; border-radius: 999px; margin-bottom: .65rem; }
.page-hero h1 { color: #fff; margin: 0 0 .4rem; }
.page-hero p { color: rgba(255,255,255,.93); font-size: 1.08rem; margin: 0; max-width: 46ch; }

/* Credit lines under images (full attribution for CC BY / CC BY-SA). They
   must wrap: a full TASL line is long and must never overflow on mobile. */
.img-credit-inline { display: block; font-size: .74rem; line-height: 1.45; color: var(--text-light); margin: 0; padding: .35rem 1.2rem; max-width: var(--maxw); margin-left: auto; margin-right: auto; overflow-wrap: anywhere; }
.img-credit-inline a { color: var(--text-light); text-decoration: underline; }
.img-credit-inline a:hover { color: var(--accent); }
.page-hero + .img-credit-inline, .hero + .img-credit-inline { text-align: right; }
.article-figure figcaption .img-credit-inline { padding: .35rem 0 0; text-align: left; }
.card-credit { font-size: .76rem; color: var(--text-light); margin: 1rem 0 0; text-align: center; }
.card-credit a { color: var(--text-light); text-decoration: underline; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { background: var(--bg); border-bottom: 1px solid var(--border); font-size: .85rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: .7rem 0; align-items: center; }
.breadcrumb li { color: var(--text-light); }
.breadcrumb li a { color: var(--text-light); }
.breadcrumb li a:hover { color: var(--accent); }
.breadcrumb li::after { content: "/"; margin-left: .4rem; color: #B9B1A3; }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb li:last-child { color: var(--text); font-weight: 600; }

/* ---------- Section cards (front page) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 1.2rem; }
.scard { background: var(--white); border: 1px solid var(--border); border-top: 4px solid var(--brand); border-radius: var(--r); padding: 1.4rem 1.5rem; box-shadow: var(--shadow); transition: .18s; display: block; }
.scard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-top-color: var(--accent); }
.scard .ico { display: block; font-size: 1.7rem; margin-bottom: .5rem; }
.scard h3 { margin-bottom: .35rem; color: var(--text); }
.scard p { font-size: .9rem; color: var(--text-light); margin: 0; }

/* ---------- Image cards ---------- */
.dest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 1.3rem; }
.dest-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: .18s; display: flex; flex-direction: column; color: var(--text); }
.dest-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--text); }
.dest-card img.ph { display: block; width: 100%; aspect-ratio: 3/2; height: auto; object-fit: cover; background: var(--bg-2); }
.dest-card .ph-empty { aspect-ratio: 3/2; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-l) 100%); }
.dest-card .body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.dest-card h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.dest-card:hover h3 { color: var(--accent); }
.dest-card .grp { font-size: .72rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .4rem; }
.dest-card .desc { font-size: .9rem; color: var(--text-light); flex: 1; margin: 0; }

/* ---------- Article ---------- */
.article { max-width: 780px; margin: 0 auto; padding: 2.2rem 1.2rem 3.5rem; }
.article.wide { max-width: var(--maxw); }
.article p, .article ul, .article ol { font-size: 1.06rem; color: #2A313D; }
.article ul, .article ol { margin: 0 0 1.2rem 1.3rem; }
.article li { margin-bottom: .4rem; }
.article h2 { margin: 2.3rem 0 .8rem; scroll-margin-top: 80px; }
.article h3 { margin: 1.6rem 0 .5rem; }
.article a { text-decoration: underline; text-decoration-color: rgba(43,74,139,.35); text-underline-offset: 2px; }
.article a:hover { text-decoration-color: var(--accent); }
.article blockquote { border-left: 4px solid var(--gold); padding: .4rem 0 .4rem 1.2rem; margin: 1.5rem 0; color: var(--text-light); font-style: italic; }
.article p.lead, .lead { font-size: 1.2rem; color: var(--text); line-height: 1.6; }
.byline { font-size: .85rem; color: var(--text-light); margin: 0 0 1.4rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.article .byline { font-size: .85rem; color: var(--text-light); }
.byline a { color: var(--text-light); }

.toc { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); padding: 1.1rem 1.4rem; margin: 0 0 1.8rem; }
.toc h2 { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-light); margin: 0 0 .6rem; }
.article .toc ul { list-style: none; margin: 0; display: grid; gap: .3rem; }
.article .toc li { margin: 0; font-size: .95rem; }
.article .toc a { font-weight: 600; text-decoration: none; }

.article-figure { margin: .6rem 0 1.8rem; }
.article-figure img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--r-lg); display: block; height: auto; }
.article-figure.tall img { max-height: 620px; object-fit: contain; background: var(--bg); }

.callout { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: var(--r-sm); padding: 1rem 1.25rem; margin: 1.6rem 0; }
.callout.green { background: #E8F3EE; border-color: var(--good); }
.callout.blue { background: #E8F0F8; border-color: var(--blue); }
.callout.warn { background: #FBF3E3; border-color: var(--warn); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout strong { color: var(--text); }

.factbox { background: var(--bg); border: 1px solid var(--border); border-top: 4px solid var(--brand); border-radius: var(--r); padding: 1.2rem 1.5rem; margin: 1.6rem 0; }
.factbox h3 { margin: 0 0 .8rem; font-size: 1.08rem; }
.factbox dl { display: grid; grid-template-columns: minmax(7rem, auto) 1fr; gap: .45rem 1.1rem; font-size: .95rem; }
.factbox dt { color: var(--text-light); font-weight: 600; }
.factbox dd { font-weight: 500; }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.6rem 0; }
.pros-cons > div { border-radius: var(--r); padding: 1.1rem 1.3rem; }
.pros { background: #E8F3EE; }
.cons { background: #FBECEC; }
.pros h4, .cons h4 { margin-bottom: .6rem; font-size: 1rem; }
.article .pros-cons ul { list-style: none; margin: 0; }
.article .pros-cons li { font-size: .94rem; padding-left: 1.4rem; position: relative; margin-bottom: .45rem; }
.pros li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 800; }
.cons li::before { content: "✕"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

.table-scroll { overflow-x: auto; margin: 1.5rem 0; -webkit-overflow-scrolling: touch; }
.article table { border-collapse: collapse; width: 100%; font-size: .95rem; background: var(--white); }
.article th, .article td { border: 1px solid var(--border); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.article th { background: var(--bg); font-weight: 700; color: var(--text); font-size: .88rem; }
.article tbody tr:nth-child(even) { background: #FCFBF8; }
.table-scroll table { margin: 0; }

.article ul.sources { font-size: .92rem; }
.article ul.sources li { color: var(--text-light); }
.article-list { columns: 2 280px; }
.article .article-list li { break-inside: avoid; }

/* ---------- Related ---------- */
.related { background: var(--bg); border-top: 1px solid var(--border); }
.related h2 { text-align: center; margin-bottom: 1.4rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.chip { background: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: .45rem 1rem; font-size: .88rem; font-weight: 600; color: var(--brand); }
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Hubs ---------- */
.hub-intro { padding-bottom: 0; }
.hub-intro p { font-size: 1.06rem; color: #2A313D; }
.hub-count { padding-top: 1.4rem; }
.hub-count p { margin: 0; font-size: .9rem; }
.welcome p, .welcome ul { font-size: 1.06rem; color: #2A313D; }
.welcome ul { margin: 0 0 1.2rem 1.3rem; }
.welcome h2 { margin: 2rem 0 .8rem; }
.welcome h2:first-child { margin-top: 0; }
.welcome a { text-decoration: underline; text-decoration-color: rgba(43,74,139,.35); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-d); color: rgba(255,255,255,.82); padding: 3.2rem 0 1.5rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 2rem; }
.footer-brand .nav-logo { color: #fff; margin-bottom: .9rem; }
.footer-brand p { font-size: .88rem; color: rgba(255,255,255,.75); max-width: 24rem; }
.footer-imprint { font-size: .8rem !important; color: rgba(255,255,255,.65) !important; }
.footer-col h2 { font-family: var(--sans); color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .8rem; }
.footer-col a { display: block; color: rgba(255,255,255,.78); font-size: .9rem; padding: .22rem 0; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.link-button { background: none; border: none; color: rgba(255,255,255,.78); font: inherit; font-size: .9rem; padding: .22rem 0; cursor: pointer; text-align: left; }
.link-button:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2.2rem; padding-top: 1.3rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; font-size: .8rem; color: rgba(255,255,255,.62); }

/* ---------- Search ---------- */
.search-modal { position: fixed; inset: 0; background: rgba(11,20,38,.6); backdrop-filter: blur(3px); z-index: 200; display: none; padding: 8vh 1rem 0; }
.search-modal.open { display: block; }
.search-box { max-width: 620px; margin: 0 auto; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.search-box-head { display: flex; align-items: center; padding: .5rem .5rem .5rem 1.2rem; border-bottom: 1px solid var(--border); }
.search-box input { flex: 1; min-width: 0; border: none; outline: none; font-size: 1.05rem; padding: .8rem .5rem; }
.search-box .close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-light); padding: .3rem .8rem; }
.search-res { max-height: 55vh; overflow-y: auto; padding: .6rem; }
.search-res a { display: block; padding: .6rem .8rem; border-radius: var(--r-sm); }
.search-res a:hover { background: var(--bg); }
.search-res a.all { font-weight: 700; color: var(--accent); }
.search-res .t { font-weight: 600; color: var(--text); }
.search-res .s { font-size: .8rem; color: var(--text-light); }
.search-res .empty { padding: 1rem; color: var(--text-light); font-size: .92rem; }
.search-field input { width: 100%; font-size: 1.1rem; padding: .85rem 1rem; border: 2px solid var(--border); border-radius: var(--r); margin-bottom: 1rem; }
.search-field input:focus { outline: none; border-color: var(--brand-l); }
.search-hits { display: grid; gap: .7rem; }
.search-hit { display: block; border: 1px solid var(--border); border-radius: var(--r); padding: .8rem 1rem; text-decoration: none !important; }
.search-hit:hover { border-color: var(--accent); }
.search-hit .s { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 700; }
.search-hit .t { display: block; font-weight: 700; color: var(--text); }
.search-hit .d { display: block; font-size: .9rem; color: var(--text-light); }

/* ---------- Cookie consent ----------
   The banner is hidden in the markup and only shown by site.js when no
   choice is stored. The <html data-consent> attribute is set in <head>, so it
   can never flash on a page for someone who has already answered. */
html[data-consent] #cookie-consent:not(.reopen) { }
.cookie-consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; background: #fff; border-top: 4px solid var(--brand); box-shadow: 0 -4px 24px rgba(11,20,38,.18); }
.cookie-consent-inner { max-width: 1100px; margin: 0 auto; padding: .95rem 1.2rem; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; justify-content: space-between; }
.cookie-consent-text { margin: 0; font-size: .92rem; color: var(--text); line-height: 1.45; flex: 1 1 360px; }
.cookie-consent-btns { display: flex; gap: .6rem; flex: 0 0 auto; }
.btn-consent { cursor: pointer; border-radius: var(--r-sm); padding: .6rem 1.4rem; font-size: .95rem; font-weight: 700; border: 2px solid var(--brand); transition: background .15s, color .15s; }
.btn-consent-accept { background: var(--brand); color: #fff; }
.btn-consent-accept:hover { background: var(--brand-d); border-color: var(--brand-d); }
.btn-consent-deny { background: #fff; color: var(--brand); }
.btn-consent-deny:hover { background: var(--bg); }

/* ---------- Image credits page ---------- */
.bkfilter-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.6rem 0 1rem; }
.bkfilter { cursor: pointer; border: 1px solid var(--border); background: var(--white); border-radius: 999px; padding: .45rem .95rem; font-size: .86rem; font-weight: 600; color: var(--text); }
.bkfilter:hover { border-color: var(--brand-l); }
.bkfilter.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.bkcount { display: inline-block; min-width: 1.6em; padding: 0 .35em; margin-left: .25rem; border-radius: 999px; background: rgba(0,0,0,.08); font-size: .78rem; text-align: center; }
.bkfilter.on .bkcount { background: rgba(255,255,255,.2); }
.article .bktable { font-size: .86rem; min-width: 860px; }
.bktable td { overflow-wrap: anywhere; }
.bkimg { width: 150px; }
.bkimg img { width: 120px; height: 80px; object-fit: cover; border-radius: 6px; margin-bottom: .35rem; }
.bkmotif { display: block; font-size: .8rem; color: var(--text); }
.bktitle { display: block; font-size: .72rem; color: var(--text-light); margin-top: .2rem; }
.bkchange { display: block; font-size: .72rem; color: var(--text-light); margin-top: .25rem; }
.unused { color: var(--text-light); font-style: italic; }

/* ---------- Responsive ----------
   ONE one-sided breakpoint for the menu (never a max/min pair: at
   devicePixelRatio 1.5 such a pair misses both). The width is MEASURED in the
   browser: nine labels + logo + search. Re-measure if the menu changes. */
@media (max-width: 1240px) {
  .nav-menu { position: fixed; top: 55px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; padding: .8rem 1rem 1.4rem; gap: 0; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); display: none; max-height: calc(100vh - 55px); overflow-y: auto; }
  .nav-menu.open { display: flex; }
  .nav-link { padding: .75rem .4rem; font-size: 1rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .dropdown-menu, .nav-dropdown.nav-dd-right .dropdown-menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; padding: .2rem 0 .6rem .9rem; min-width: 0; display: block; }
  .nav-dropdown:hover .dropdown-menu, .nav-dropdown.nav-dd-right:hover .dropdown-menu { transform: none; }
  .dropdown-col { min-width: 0; }
  .dropdown-col a { white-space: normal; font-size: .92rem; }
  .nav-toggle { display: flex; }
  .btn-search-icon { margin-left: auto; }
}
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .hero { min-height: 0; }
  .hero-inner { padding: 2.2rem 1rem; }
  .hero-copy { padding: 1.4rem 1.3rem 1.5rem; }
  .page-hero { min-height: 280px; }
  .page-hero .inner { padding: 1.4rem 1rem; }
  .page-hero .hero-text { padding: .9rem 1.1rem 1rem; }
  .pros-cons { grid-template-columns: 1fr; }
  .section { padding: 2.5rem 0; }
  .factbox dl { grid-template-columns: 1fr; gap: .1rem; }
  .factbox dd { margin-bottom: .45rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cookie-consent-inner { flex-direction: column; align-items: stretch; gap: .7rem; padding: .9rem 1rem; }
  .cookie-consent-btns { justify-content: flex-end; }
  .btn-lg { padding: .85rem 1.3rem; font-size: .98rem; }
}
@media (max-width: 400px) {
  .nav-inner { padding: .5rem .7rem; gap: .3rem; }
  .nav-logo { font-size: 1rem; gap: .35rem; }
  .nav-logo-icon { width: 30px; height: 30px; }
}
@media (max-width: 340px) {
  .wrap { padding: 0 .8rem; }
  .nav-logo { font-size: .9rem; }
  .btn-search-icon { padding: .3rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .slides img.slide { transition: none; }
  .dest-card, .scard, .btn { transition: none; }
}
