/* bestchristmasmarketseurope.com — one stylesheet, no framework */

:root {
  --bg: #fbf7f0;
  --surface: #ffffff;
  --surface-2: #f4eee3;
  --ink: #1b2233;
  --muted: #5d6576;
  --line: #e6ddce;
  --red: #b3232c;
  --red-ink: #8e1a22;
  --green: #1d5a43;
  --gold: #e0a92e;
  --gold-soft: #fbefd2;
  --night: #10192e;
  --night-2: #1d2b4f;
  --blue: #2463a8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 25, 46, .06), 0 10px 28px rgba(16, 25, 46, .07);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1322;
    --surface: #151d31;
    --surface-2: #1b2540;
    --ink: #eef0f5;
    --muted: #a8b0c2;
    --line: #283453;
    --red: #e4555c;
    --red-ink: #ff8a8f;
    --green: #5fc29b;
    --gold: #f0bd4f;
    --gold-soft: #2c2716;
    --blue: #6aa8ec;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--red-ink); text-underline-offset: .18em; }
a:hover { color: var(--red); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 2.8vw, 1.9rem); margin-top: 0; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
small { font-size: .82em; }
svg[aria-hidden] { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 820px; }
main section { margin: 0 0 3rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- header ---------- */
.site-head { background: var(--night); color: #fff; position: sticky; top: 0; z-index: 1000; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none; font-family: var(--serif); font-size: 1.08rem; white-space: nowrap; }
.logo:hover { color: #fff; }
.logo b { color: var(--gold); font-weight: 600; }
.logo-mark { width: 30px; height: 30px; }
.main-nav { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { color: #dfe4f0; text-decoration: none; padding: .45rem .7rem; border-radius: 999px; font-size: .94rem; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current] { background: rgba(255,255,255,.1); color: #fff; }
@media (max-width: 719px) {
  .head-row { padding-top: .5rem; padding-bottom: .35rem; }
  .main-nav { width: 100%; margin: 0 -.5rem; }
}

/* ---------- breadcrumbs ---------- */
.crumbs { max-width: 1160px; margin: 0 auto; padding: 1rem 16px 0; font-size: .88rem; color: var(--muted); }
@media (min-width: 720px) { .crumbs { padding: 1.2rem 28px 0; } }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.crumbs li + li::before { content: "›"; margin-right: .35rem; color: var(--line); }
.crumbs a { color: var(--muted); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 50% 120%, rgba(224, 169, 46, .22), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  color: #fff;
  padding: 4.5rem 0 3rem;
  margin-bottom: 2.5rem;
  overflow: hidden;
}
.hero::before { /* a string of fairy lights */
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 70px;
  background:
    radial-gradient(circle at 12px 30px, #f5c451 0 4px, rgba(245,196,81,.35) 5px, transparent 11px) 0 0 / 48px 60px repeat-x,
    radial-gradient(circle at 36px 36px, #e84c3d 0 4px, rgba(232,76,61,.35) 5px, transparent 11px) 0 0 / 48px 60px repeat-x;
  opacity: .9;
  pointer-events: none;
}
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero-sub { font-size: 1.18rem; max-width: 46rem; color: #dbe1ee; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 2rem; }
.hero .stats .stat { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.hero .stats .stat span { color: #c9d0e0; }
.hero .stats .stat b { color: #fff; }

.btn { display: inline-flex; align-items: center; gap: .5rem; background: var(--gold); color: #1a1406; font-weight: 600; text-decoration: none; padding: .75rem 1.2rem; border-radius: 999px; }
.btn:hover { background: #f5c451; color: #1a1406; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ---------- page heads ---------- */
.page-head { padding: 1.4rem 0 1.2rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--red); margin: 0 0 .5rem; }
.eyebrow a { color: inherit; }
.alt-name { font-size: .55em; color: var(--muted); font-weight: 400; white-space: nowrap; }
.updated { font-size: .86rem; color: var(--muted); margin: -.2rem 0 1rem; }
.updated a { color: var(--muted); }
.plan h3 { margin-top: 1.4rem; }
.lede { font-size: 1.1rem; max-width: 52rem; }
.lede p { margin-bottom: .8em; }
.section-intro { color: var(--muted); max-width: 52rem; }
.muted { color: var(--muted); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin: 1.4rem 0 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem 1rem; }
.stat b { display: block; font-family: var(--serif); font-size: 1.55rem; line-height: 1.15; }
.stat span { font-size: .85rem; color: var(--muted); }

/* ---------- notice ---------- */
.notice { background: var(--gold-soft); border-left: 4px solid var(--gold); padding: .9rem 1.1rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 2.2rem; font-size: .96rem; }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.15rem; box-shadow: var(--shadow); min-width: 0; }
a.card { color: inherit; text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
a.card:hover { transform: translateY(-2px); border-color: var(--gold); color: inherit; }
a.card h3 { color: var(--red-ink); }
.card h3 { margin-bottom: .35rem; overflow-wrap: anywhere; }
.card p:last-child { margin-bottom: 0; }
.card-city { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .2rem; }

.market { display: flex; flex-direction: column; scroll-margin-top: 90px; }
.market:target { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft), var(--shadow); }
.market.is-off { opacity: .72; }
.meta { list-style: none; padding: 0; margin: .4rem 0 .8rem; font-size: .93rem; }
.meta li { display: flex; gap: .55rem; align-items: flex-start; margin-bottom: .35rem; }
.meta li svg { margin-top: .25rem; color: var(--red); }
.meta small { color: var(--muted); display: block; }
.meta .prev { display: block; color: var(--muted); font-size: .82rem; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; }
.btn-link { display: inline-flex; align-items: center; gap: .35rem; font-size: .86rem; font-weight: 600; text-decoration: none; padding: .35rem .7rem; border-radius: 999px; background: var(--surface-2); color: var(--ink); }
.btn-link:hover { background: var(--gold-soft); color: var(--ink); }

.badges { display: flex; flex-wrap: wrap; gap: .35rem; margin: .1rem 0 .3rem; }
.badge { font-size: .74rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.b-fee { background: var(--gold-soft); color: #7a5300; }
.b-late { background: rgba(179, 35, 44, .1); color: var(--red-ink); }
.b-early { background: rgba(29, 90, 67, .12); color: var(--green); }
.b-when { background: rgba(36, 99, 168, .1); color: var(--blue); }
.b-confirmed { background: var(--green); color: #fff; }
@media (prefers-color-scheme: dark) { .b-confirmed { color: #0d1322; } }
.meta .note { display: block; font-size: .82rem; color: var(--ink); }
.meta .src { display: inline-block; font-size: .78rem; color: var(--muted); margin-top: .15rem; }
@media (prefers-color-scheme: dark) { .b-fee { color: var(--gold); } }

.picks .pick h3 a { color: var(--red-ink); text-decoration: none; }
.picks .pick h3 a:hover { text-decoration: underline; }
.city-card p, .country-card p, .guide-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.city-card p.muted { margin-top: .4rem; }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .93rem; }
.chip span { color: var(--muted); font-size: .8rem; }
.chip:hover { border-color: var(--gold); color: var(--ink); }

/* ---------- ticks ---------- */
.ticks { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.ticks li { padding-left: 1.6rem; position: relative; }
.ticks li::before { content: "★"; position: absolute; left: 0; color: var(--gold); }

/* ---------- towns A–Z ---------- */
.filter { display: flex; flex-direction: column; gap: .3rem; max-width: 360px; margin: 0 0 1.2rem; font-size: .9rem; color: var(--muted); }
input[type=search], select { font: inherit; padding: .55rem .8rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); min-width: 0; }
.towns { columns: 1; column-gap: 2rem; }
@media (min-width: 760px) { .towns { columns: 2; } }
@media (min-width: 1100px) { .towns { columns: 3; } }
.town { break-inside: avoid; margin-bottom: 1.4rem; }
.town h3 { font-size: 1.05rem; margin-bottom: .3rem; border-bottom: 1px solid var(--line); padding-bottom: .25rem; }
.town h3 small { color: var(--muted); font-family: var(--sans); font-weight: 400; }
.town ul { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.town li { display: flex; flex-wrap: wrap; gap: .1rem .5rem; align-items: baseline; padding: .2rem 0; }
.t-name { flex: 1 1 60%; min-width: 0; overflow-wrap: anywhere; }
.t-date { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.town li a { color: var(--muted); }
.town[hidden] { display: none; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.data { border-collapse: collapse; width: 100%; font-size: .94rem; }
.data th, .data td { text-align: left; padding: .6rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data th { background: var(--surface-2); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
.data tr:last-child td { border-bottom: 0; }
.data td .chip { font-size: .8rem; padding: .2rem .55rem; margin: .1rem; }

/* ---------- bars ---------- */
.bars { display: grid; gap: .3rem; max-width: 760px; }
.bar { display: grid; grid-template-columns: 7.5rem 1fr 2.5rem; align-items: center; gap: .6rem; font-size: .86rem; }
.bar-label { color: var(--muted); white-space: nowrap; }
.bar-track { background: var(--surface-2); border-radius: 999px; height: .75rem; overflow: hidden; }
.bar-fill { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--red), var(--gold)); border-radius: 999px; }
.bar-val { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- prose ---------- */
.prose { max-width: 50rem; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }

/* ---------- faq ---------- */
.faq { max-width: 52rem; }
.faq .qa { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .6rem; padding: .9rem 1.1rem; }
.faq .qa h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin: 0 0 .35rem; }
.faq .qa p { margin: 0; }
.answer { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0; padding: .9rem 1.1rem; margin: 0 0 1.2rem; max-width: 52rem; }
.answer h2 { font-family: var(--sans); font-size: 1.02rem; font-weight: 700; margin: 0 0 .35rem; }
.answer p { margin: 0; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .6rem; }
.faq summary { cursor: pointer; padding: .9rem 1.1rem; font-weight: 600; list-style: none; position: relative; padding-right: 2.6rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.1rem; top: .75rem; font-size: 1.3rem; color: var(--red); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 1.1rem 1rem; color: var(--ink); }

/* ---------- maps ---------- */
.mini-map-wrap { margin-bottom: 2.5rem; }
.mini-map, .bigmap { position: relative; z-index: 0; isolation: isolate; } /* keep Leaflet's z-indexes under the sticky header */
.mini-map { height: 380px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2) radial-gradient(circle at 30% 40%, rgba(179,35,44,.08), transparent 60%); display: grid; place-items: center; overflow: hidden; }
.map-load { display: inline-flex; gap: .5rem; align-items: center; font: inherit; font-weight: 600; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: .6rem 1.1rem; cursor: pointer; }
.map-load:hover { border-color: var(--gold); }
.map-head { padding-top: 1rem; }
.map-head h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.map-app { position: relative; margin-bottom: 3rem; }
.map-filters { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: flex-end; padding: .9rem 16px; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .map-filters { padding: .9rem 28px; } }
.map-filters label { display: flex; flex-direction: column; gap: .2rem; font-size: .82rem; color: var(--muted); }
.map-filters label.check { flex-direction: row; align-items: center; gap: .4rem; font-size: .92rem; color: var(--ink); padding-bottom: .55rem; }
.map-filters output { margin-left: auto; padding-bottom: .55rem; font-weight: 600; font-size: .92rem; }
.bigmap { height: calc(100vh - 230px); min-height: 460px; background: var(--surface-2); }

.pin { width: 16px; height: 16px; border-radius: 50%; background: var(--red); border: 2.5px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.pin.rink { background: var(--blue); }
.leaflet-popup-content { font: 14px/1.45 var(--sans); margin: 12px 14px; }
.leaflet-popup-content b { font-family: var(--serif); font-size: 1.05em; }
.leaflet-popup-content .pop-links { display: flex; gap: .7rem; margin-top: .35rem; flex-wrap: wrap; }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background-color: rgba(224, 169, 46, .35) !important; }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background-color: rgba(179, 35, 44, .88) !important; color: #fff !important; font-weight: 700; }

/* ---------- footer ---------- */
.site-foot { background: var(--night); color: #c9d0e0; margin-top: 4rem; padding: 3rem 0 1.5rem; font-size: .93rem; }
.site-foot a { color: #e9edf6; }
.site-foot a:hover { color: var(--gold); }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-foot h2 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin-bottom: .8rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 1rem; }
.site-foot li { margin-bottom: .35rem; }
.logo-foot { margin-bottom: .8rem; }
.foot-small { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1.2rem; font-size: .84rem; color: #9aa3b8; }
.foot-small a { color: #c9d0e0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-head, .site-foot, .mini-map-wrap, .notice { display: none; } }
