:root {
  color-scheme: light;
  --paper: #f7f5ee;
  --ink: #1c2b26;
  --muted: #4a6056;
  --green: #173a32;
  --rust: #a23d2b;
  --line: #d7dbcf;
  --white: #fffdf6;
  --serif: Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.6 system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .22em; }
:is(a, button, input, select, summary, .map-board):focus-visible { outline: 2px solid #b45236; outline-offset: 4px; }
.skip { position: absolute; z-index: 5; background: var(--white); padding: .5rem; transform: translateY(-150%); }
.skip:focus { transform: none; }
.wrap { width: min(100% - 3.5rem, 84rem); margin-inline: auto; }
.masthead {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-block: 1.5rem; margin-bottom: clamp(.85rem, 2vw, 1.65rem);
  border-bottom: 1px solid var(--line);
}
.brand { font: clamp(2rem, 3.2vw, 3.15rem)/1.08 var(--serif); letter-spacing: -.045em; white-space: nowrap; text-decoration: none; }
.brand em { color: var(--rust); }
.masthead nav { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem clamp(.9rem, 2.7vw, 2.25rem); font-size: .95rem; font-weight: 650; }
.masthead nav a { padding-block: .5rem; text-decoration: none; }
.masthead nav a:hover { color: var(--rust); text-decoration: underline; }
.masthead nav a:last-child { padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 2rem; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 400; }
h1 { max-width: 16ch; font-size: clamp(2.35rem, 4vw, 4.1rem); line-height: 1.04; letter-spacing: -.045em; }
h1 em { color: #e8ad96; }
h2 { font-size: clamp(2.15rem, 4vw, 3.65rem); line-height: 1.05; letter-spacing: -.04em; }
.eyebrow { margin: 0 0 .85rem; color: var(--rust); font-size: .73rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.hero {
  overflow: hidden; display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  border-radius: 1.15rem; background: var(--green); color: var(--white);
}
.hero-copy { align-self: center; padding: clamp(1.65rem, 3vw, 3rem); }
.hero-copy .eyebrow { color: #f1b6a1; }
.hero-figure { position: relative; min-height: 0; margin: 0; }
.hero-figure::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #10272099, transparent 34%); pointer-events: none; }
.hero-figure img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 54% center; }
.hero-figure figcaption { position: absolute; z-index: 1; inset: auto 1.55rem 1.15rem auto; color: #fff; display: grid; text-align: right; gap: 0; font-size: .77rem; }
.hero-figure figcaption span { font-size: .67rem; }
.intro { max-width: 34ch; margin-block: .9rem 1.1rem; color: #f0eee3; font-size: clamp(.95rem, 1.4vw, 1.1rem); }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem; background: var(--green); color: var(--white);
  text-decoration: none; font-weight: 700; font-size: .9rem; padding: .7rem 1.1rem; border-radius: .55rem;
}
.button:hover { background: #254a40; }
.hero-button { background: var(--white); color: var(--green); }
.hero-button:hover { background: #f0d7c7; }

.story-picks { padding-block: clamp(2.1rem, 5vw, 4rem); }
.story-picks h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
.story-picks ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; list-style: none; margin: 1.2rem 0 0; padding: 0; }
.story-picks a { display: grid; grid-template-rows: auto 1fr; min-height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: .95rem; background: var(--white); text-decoration: none; }
.story-picks a:hover { color: var(--rust); }
.story-picks img { display: block; width: 100%; height: auto; aspect-ratio: 2.2; object-fit: cover; object-position: center 42%; filter: brightness(1.04) contrast(1.02); }
.story-picks li:first-child img { object-position: center 31%; }
.pick-caption { position: relative; padding: .95rem 2.6rem 1.05rem 1rem; }
.pick-caption .eyebrow { display: block; margin-bottom: .35rem; letter-spacing: .07em; font-size: .67rem; }
.pick-caption strong { display: block; font: 400 clamp(1.25rem, 2vw, 1.75rem)/1.17 var(--serif); }
.pick-arrow { position: absolute; right: 1rem; bottom: 1rem; color: var(--rust); }

.atlas { width: min(100% - 3.5rem, 94rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.atlas-heading { border-top: 1px solid var(--line); padding-top: clamp(1.4rem, 3vw, 2.4rem); margin-bottom: 1.05rem; }
.atlas-heading p { color: var(--muted); margin: .45rem 0 0; }
.atlas-filters { display: grid; grid-template-columns: repeat(2, minmax(10rem, 1fr)); align-items: end; gap: .45rem 1rem; margin-bottom: .85rem; }
.atlas-filters label { display: grid; gap: .25rem; font-size: .83rem; font-weight: 700; color: var(--green); }
.atlas-filters select, .atlas-filters input[type=search] {
  min-width: 0; width: 100%; min-height: 2.65rem; border: 1px solid #c9d1c6; border-radius: .55rem;
  background: var(--white); color: var(--ink); padding: .5rem .7rem; font: inherit;
}
.atlas-filters select {
  appearance: none; padding-right: 1.8rem; text-overflow: ellipsis;
  background-image: linear-gradient(45deg, transparent 50%, var(--green) 50%), linear-gradient(135deg, var(--green) 50%, transparent 50%);
  background-position: calc(100% - 1rem) 50%, calc(100% - .7rem) 50%; background-size: .3rem .3rem; background-repeat: no-repeat;
}
.atlas-filters p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .79rem; }
.atlas-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(16rem, 1fr); align-items: start; gap: clamp(.85rem, 2vw, 1.5rem); }
.map-panel { display: none; position: relative; min-width: 0; }
.atlas-interactive .map-panel { display: block; }
.map-board {
  position: relative; width: 100%; height: clamp(30rem, 68vh, 47rem); overflow: hidden; border: 1px solid #b5c8bf;
  border-radius: 1rem; background: #dcebea; touch-action: none; cursor: grab; user-select: none;
}
.map-board.is-dragging { cursor: grabbing; }
.map-surface, .map-board canvas, .map-controls { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-controls { pointer-events: none; }
.map-pin {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer; pointer-events: auto;
}
.map-pin-offscreen { visibility: hidden; }
.map-pin::before { content: ''; width: 12px; height: 12px; border: 2px solid var(--white); border-radius: 50%; background: var(--rust); box-shadow: 0 0 0 1px var(--rust); }
.map-pin-pending::before { width: 9px; height: 9px; background: var(--white); border-color: #687e71; box-shadow: none; }
.map-pin[aria-pressed=true] { z-index: 2; }
.map-pin:hover, .map-pin:focus-visible { z-index: 3; }
.map-pin:hover::before, .map-pin[aria-pressed=true]::before { outline: 2px solid var(--green); outline-offset: 3px; }
.map-pin-label {
  position: absolute; top: 50%; left: calc(100% + .26rem); transform: translateY(-50%); pointer-events: none;
  width: max-content; max-width: 9rem; padding: .23rem .43rem; color: var(--white); background: var(--green);
  border-radius: .35rem; text-align: left; font: 650 .74rem/1.25 system-ui, sans-serif; visibility: hidden;
}
.map-pin-label-left .map-pin-label { left: auto; right: calc(100% + .26rem); }
.map-pin:not(.map-pin-offscreen):is(:hover, :focus-visible, [aria-pressed=true]) .map-pin-label { visibility: visible; }
.map-zoom { position: absolute; top: .7rem; right: .7rem; display: flex; gap: .2rem; padding: .22rem; background: var(--white); border: 1px solid #c9d1c6; border-radius: .65rem; }
.map-zoom button { display: grid; place-items: center; width: 2rem; min-height: 2rem; color: var(--green); background: transparent; border: 0; border-radius: .4rem; font: 750 1.1rem/1 system-ui, sans-serif; cursor: pointer; }
#prehled-mapy { width: auto; padding: 0 .5rem; font-size: .77rem; }
.map-zoom button:disabled { opacity: .4; cursor: default; }
.map-zoom button:not(:disabled):hover { background: #e8eee7; }
.map-credit, .map-scale { position: absolute; bottom: .65rem; color: #28504a; line-height: 1.2; font-size: .65rem; pointer-events: none; }
.map-credit { right: .85rem; }
.map-scale { left: .85rem; max-width: 85px; border-bottom: 2px solid currentColor; padding-bottom: .16rem; white-space: nowrap; }
.map-selection { overflow: hidden; border: 1px solid var(--line); border-radius: .95rem; background: var(--white); }
.map-selection img { display: block; width: 100%; height: auto; max-height: 16rem; object-fit: contain; background: #e8eee7; }
.map-selection-copy { padding: 1.05rem 1rem .75rem; }
.map-selection h3 { margin: 0; font: 400 clamp(1.45rem, 2.6vw, 2.15rem)/1.13 var(--serif); }
.map-selection p { margin: .45rem 0 0; color: var(--muted); font-size: .91rem; }
.map-selection-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 1rem .9rem; }
.map-detail-button, .map-nearby button {
  padding: .55rem .65rem; border: 1px solid var(--line); border-radius: .5rem;
  color: var(--green); background: transparent; font: 650 .8rem/1.3 system-ui, sans-serif; cursor: pointer;
}
.map-detail-button:hover, .map-nearby button:hover { background: #e8eee7; }
.map-nearby { padding: 0 1rem .9rem; }
.map-nearby ul { display: flex; gap: .35rem; flex-wrap: wrap; list-style: none; margin: .45rem 0 0; padding: 0; }
.map-nearby button { text-align: left; }
.place-index > summary { cursor: pointer; padding: .7rem .1rem .5rem; font-size: .87rem; font-weight: 720; }
.place-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.atlas-interactive .place-list { max-height: 24rem; overflow: auto; }
.place-list li { border-bottom: 1px solid var(--line); }
.place-link, .place-pending { display: block; position: relative; padding: .56rem .55rem .56rem 1.22rem; line-height: 1.35; }
.place-link { font-weight: 650; text-decoration: none; }
.place-link::before, .place-pending::before { content: ''; position: absolute; top: .85rem; left: .3rem; width: .44rem; height: .44rem; border-radius: 50%; background: var(--rust); }
.place-link:hover, .place-link[aria-current="location"] { color: var(--rust); background: #efede2; }
.place-link span, .place-pending span { display: block; color: var(--muted); margin-top: .13rem; font-size: .78rem; font-weight: 400; }
.place-pending { color: var(--muted); }
.place-pending::before { background: transparent; border: 1px solid var(--muted); }
button.place-pending { width: 100%; border: 0; background: transparent; text-align: left; font: inherit; cursor: pointer; }
button.place-pending:is(:hover, [aria-current]) { background: #efede2; }

.story-band { background: var(--green); color: var(--white); }
.story { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: 2rem; padding-block: clamp(2.75rem, 7vw, 5.5rem); }
.story .eyebrow { color: #f1b6a1; }
.story p:not(.eyebrow) { max-width: 62ch; }
.story h2:focus { outline: none; }
.story figure { margin: 1.5rem 0 0; }
.story figure img { display: block; max-width: 100%; width: auto; height: auto; max-height: 34rem; border-radius: .7rem; filter: brightness(1.05) contrast(1.03); }
.story figcaption { margin-top: .45rem; font-size: .78rem; }
.story-links { display: flex; flex-wrap: wrap; gap: .45rem 1.4rem; padding-top: .5rem; font-size: .88rem; }
.bottom { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 6rem); padding-block: clamp(3rem, 7vw, 5.5rem); }
.bottom section p:last-child { max-width: 45ch; margin-bottom: 0; }
.walks { border-left: 1px solid var(--line); padding-left: clamp(2rem, 5vw, 4rem); }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; border-top: 1px solid var(--line); padding-block: 1.2rem 1.8rem; font-size: .8rem; color: var(--muted); }

@media (max-width: 900px) {
  .hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atlas-grid { grid-template-columns: 1fr; }
  .map-board { height: clamp(27rem, 62vh, 38rem); }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 1.6rem); }
  .masthead { align-items: flex-start; flex-direction: column; padding-block: 1.15rem .8rem; gap: .55rem; }
  .masthead nav { font-size: .85rem; gap: .2rem .95rem; }
  .masthead nav a:last-child { padding: .35rem .65rem; }
  .hero { grid-template-columns: minmax(0, 1fr); border-radius: .9rem; }
  .hero-copy { padding: 1.35rem 1.15rem; }
  h1 { font-size: clamp(2.1rem, 8vw, 2.85rem); }
  .hero-figure img { position: static; height: auto; aspect-ratio: 2.15; }
  .hero-figure figcaption { right: .8rem; bottom: .6rem; }
  .story-picks ul { grid-template-columns: 1fr; gap: .6rem; }
  .story-picks a { grid-template-columns: 34% 1fr; grid-template-rows: 1fr; align-items: stretch; }
  .story-picks img { height: 100%; min-height: 5.8rem; aspect-ratio: auto; }
  .pick-caption { padding: .65rem 1.85rem .65rem .65rem; }
  .pick-arrow { right: .6rem; bottom: .55rem; }
  .atlas-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .map-board { height: clamp(24rem, 59vh, 29rem); }
  .story, .bottom { grid-template-columns: 1fr; gap: .75rem; }
  .story .eyebrow { margin-bottom: 0; }
  .walks { border-left: 0; border-top: 1px solid var(--line); padding: 1.3rem 0 0; }
}
