:root{
  --bg:#0b130e;--bg-2:#122018;--card:#17261c;--line:#26392c;
  --text:#eeeae0;--muted:#a9ae9f;--accent:#2e6b3c;--accent-2:#9cc79a;--on-accent:#fff;--route:#2e6b3c;
  --display:"Barlow Condensed","Arial Narrow",system-ui,sans-serif;
  --body:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
  color-scheme:dark;
}
/* Light theme: follows the system unless the visitor picked one with the switch (data-theme on <html>) */
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]){
  --bg:#f3efe6;--bg-2:#ebe5d8;--card:#fffdf8;--line:#ddd5c4;
  --text:#1f2a21;--muted:#5f6a5c;--accent:#2e6b3c;--accent-2:#2f6a3b;--on-accent:#fff;--route:#2e6b3c;color-scheme:light;
}}
:root[data-theme="light"]{
  --bg:#f3efe6;--bg-2:#ebe5d8;--card:#fffdf8;--line:#ddd5c4;
  --text:#1f2a21;--muted:#5f6a5c;--accent:#2e6b3c;--accent-2:#2f6a3b;--on-accent:#fff;--route:#2e6b3c;color-scheme:light;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font:16px/1.55 var(--body);-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button{font:inherit;cursor:pointer}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px}

/* Top bar floats over the hero */
.topbar{position:fixed;inset:0 0 auto 0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px clamp(16px,4vw,48px);color:#fff;transition:background .25s,backdrop-filter .25s,padding .25s}
.topbar.solid{background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(12px);color:var(--text);padding-block:12px;border-bottom:1px solid var(--line)}
.brand{font:700 22px/1 var(--display);letter-spacing:.08em;text-transform:uppercase}
/* mountains with the sun, drawn in the theme colour (an SVG mask, so it follows the palette) */
.brand::before{content:"";display:inline-block;width:1.05em;height:1.05em;margin-right:10px;vertical-align:-.16em;background:var(--accent-2);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M2 20 9 8l4 6 2.5-3.5L22 20z'/%3E%3Ccircle cx='17.5' cy='5.5' r='2'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M2 20 9 8l4 6 2.5-3.5L22 20z'/%3E%3Ccircle cx='17.5' cy='5.5' r='2'/%3E%3C/svg%3E") center/contain no-repeat}
.topbar-link{font-weight:600;font-size:14px;letter-spacing:.02em;opacity:.9}
.topbar-link:hover{color:var(--accent-2)}
.topbar-right{display:flex;align-items:center;gap:14px}
.theme-btn{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;border:1px solid color-mix(in srgb,currentColor 35%,transparent);background:color-mix(in srgb,#000 22%,transparent);color:inherit;padding:0;transition:background .2s}
.topbar.solid .theme-btn{background:transparent}
.theme-btn:hover{background:color-mix(in srgb,currentColor 15%,transparent)}
.theme-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* Hero */
.hero{position:relative;min-height:min(58vh,600px);display:flex;align-items:flex-end;overflow:hidden;isolation:isolate}
.hero-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;transform:scale(1.04);animation:heroIn 1.6s ease-out forwards}
.hero::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(0,0,0,.45) 0%,rgba(0,0,0,.05) 35%,rgba(0,0,0,.25) 60%,var(--bg) 100%)}
.hero-inner{width:100%;max-width:1400px;margin:0 auto;padding:90px clamp(16px,4vw,48px) clamp(28px,5vh,56px);color:#fff}
.eyebrow{display:inline-flex;align-items:center;gap:10px;font:600 13px/1 var(--body);letter-spacing:.22em;text-transform:uppercase;color:var(--accent-2)}
.eyebrow::before{content:"";width:34px;height:2px;background:currentColor}
.hero h1{margin:14px 0 10px;font:700 clamp(46px,9vw,124px)/.9 var(--display);letter-spacing:.01em;text-transform:uppercase;text-shadow:0 4px 30px rgba(0,0,0,.35);overflow-wrap:anywhere}
.hero p{margin:0;max-width:640px;font-size:clamp(16px,1.6vw,19px);color:#f1eee6;text-shadow:0 2px 14px rgba(0,0,0,.4)}
.hero-goal{display:inline-flex;align-items:center;gap:8px;font-weight:600}
.goal-icon{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:var(--accent);color:var(--on-accent);flex-shrink:0;box-shadow:0 2px 10px rgba(0,0,0,.35)}
.goal-icon svg{width:15px;height:15px;stroke:currentColor;stroke-width:2.2;stroke-linejoin:round;stroke-linecap:round}
.goal-icon .pole{fill:none}.goal-icon .cloth{fill:currentColor;stroke-width:1.6}
.stats{display:flex;flex-wrap:wrap;gap:12px 28px;margin-top:26px}
.stat b{display:block;font:700 34px/1 var(--display);color:#fff}
.stat span{font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:#e6e2d6}
.hero-trip .hero h1{font-size:clamp(40px,7vw,96px)}
@keyframes heroIn{to{transform:scale(1)}}

/* Procedural mountain scenery behind the page (scenery.js adds the canvas and html.scenery once it is ready).
   A veil in the page colour keeps text readable; the hero photo fades into the scene at its bottom edge. */
#scenery{position:fixed;left:0;top:0;width:100%;height:100%;height:100lvh;z-index:-2;pointer-events:none}
/* phone-wide window: no scene and none of its buttons (scenery.js does not start there at all) */
@media (max-width:700px){#scenery,#season,#walk,#sound,#scene-only{display:none!important}}
@media (max-width:440px){.topbar-right{gap:6px}.theme-btn{width:32px;height:32px}.theme-btn svg{width:16px;height:16px}}
/* once a trip's big title has scrolled away, the sticky bar reads "home | trip name | date" (the house goes to all
   trips, the name back to the top of the page); at the top of the page it shows the site's name */
.topbar-home,.topbar-trip{display:none}
.topbar.show-trip .brand{display:none}
.topbar.show-trip .topbar-home{display:grid;place-items:center;flex-shrink:0;width:34px;height:34px;margin-left:-6px;color:inherit;animation:tripIn .25s ease}
.topbar.show-trip .topbar-home:hover{color:var(--accent-2)}
.topbar-home svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.topbar.show-trip .topbar-trip{display:block;flex:1;min-width:0;margin:0 0 0 12px;padding:2px 0 2px 16px;border:0;border-left:1px solid color-mix(in srgb,currentColor 35%,transparent);background:none;color:inherit;text-align:left;font:700 22px/1.1 var(--display);letter-spacing:.05em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;animation:tripIn .25s ease}
.topbar.show-trip .topbar-trip:hover{color:var(--accent-2)}
.topbar-trip .tt-date{font-weight:600;opacity:.72;letter-spacing:.06em}
.topbar-trip .tt-date::before{content:"|";margin:0 .55em;opacity:.55}
.topbar-trip.no-date .tt-date{display:none}
@media (max-width:640px){
  /* room for the name: the scene controls step aside until the page is back at the top; a smaller font */
  .topbar.show-trip .palette-wrap,.topbar.show-trip #season,.topbar.show-trip #walk,.topbar.show-trip #sound,.topbar.show-trip #scene-only{display:none}
  .topbar.show-trip .topbar-trip{margin-left:8px;padding:3px 0 3px 11px;font-size:16px;letter-spacing:.03em}
  .topbar.show-trip .topbar-home{width:30px;height:30px;margin-left:-4px}
  .topbar-home svg{width:21px;height:21px}
}
@keyframes tripIn{from{opacity:0;transform:translateY(4px)}}
html.scenery-only .topbar-trip,html.scenery-only .topbar-home{display:none!important}
html.scenery{background:var(--bg)}
html.scenery body{background:transparent}
/* the veil starts fully covering (the page looks as before) and thins out once the scene is drawn, so nothing dark
   shows through; it also covers the jump back to the start of the walk (scenery-dim) */
html.scenery body::before{content:"";position:fixed;inset:0;z-index:-1;background:var(--bg);opacity:1;pointer-events:none;transition:opacity 1.4s ease}
html.scenery-on body::before{opacity:var(--veil-on,.58)}
/* the light theme's pale veil washed the scene out: in the light theme there is none; instead the content sits on
   panels in the page colour, with the landscape in full colour between and around them (no backdrop blur: over
   the moving scene it would cost phones too much) */
:root[data-theme="light"]{--veil-on:0;--panel:color-mix(in srgb,var(--bg) 76%,transparent);--panel-gap:20px}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]){--veil-on:0;--panel:color-mix(in srgb,var(--bg) 76%,transparent);--panel-gap:20px}}
html.scenery #app>.section:not(.trip-note-wrap){background:var(--panel,none);border-radius:20px;margin-block:var(--panel-gap,0)}
/* the footer: a slim line straight on the landscape, light text with a soft shadow like the captions on photos */
html.scenery[data-theme="light"] .footer{width:fit-content;max-width:calc(100% - 32px);margin:8px auto 20px;padding:7px 18px;border:1px solid rgba(255,255,255,.4);border-radius:999px;background:rgba(12,16,12,.28);color:#f4f2ec;text-shadow:0 1px 6px rgba(0,0,0,.75)}
html.scenery[data-theme="light"] .footer a{color:#ffd9a3}
@media (prefers-color-scheme:light){html.scenery:not([data-theme="dark"]) .footer{width:fit-content;max-width:calc(100% - 32px);margin:8px auto 20px;padding:7px 18px;border:1px solid rgba(255,255,255,.4);border-radius:999px;background:rgba(12,16,12,.28);color:#f4f2ec;text-shadow:0 1px 6px rgba(0,0,0,.75)}html.scenery:not([data-theme="dark"]) .footer a{color:#ffd9a3}}
html.scenery #app>.section:not(.trip-note-wrap){max-width:min(1400px,calc(100% - 2 * var(--panel-gap,0px)))}
@media (max-width:640px){:root[data-theme="light"]{--panel-gap:10px}html.scenery #app>.section:not(.trip-note-wrap){border-radius:16px}}
@media (max-width:640px) and (prefers-color-scheme:light){:root:not([data-theme="dark"]){--panel-gap:10px}}
/* "only the landscape": the page and the veil fade away, the scene buttons stay; walking by finger or mouse */
html.scenery #app,html.scenery .footer,html.scenery .brand,html.scenery .topbar-link,html.scenery .palette-wrap{transition:opacity .6s,visibility .6s}
html.scenery-only #app,html.scenery-only .footer,html.scenery-only .brand,html.scenery-only .topbar-link,html.scenery-only .palette-wrap{opacity:0;visibility:hidden;pointer-events:none}
@media (max-width:640px){html.scenery-only .brand,html.scenery-only .topbar-link,html.scenery-only .palette-wrap{display:none}}
html.scenery-only,html.scenery-only body{overflow:hidden;touch-action:none;-webkit-user-select:none;user-select:none}
html.scenery-only body::before{opacity:0}
html.scenery-dim body::before{opacity:1}
html.scenery-only .topbar,html.scenery-only .topbar.solid{justify-content:flex-end;background:none;backdrop-filter:none;border-color:transparent;color:#fff}
html.scenery-only .topbar .theme-btn{background:color-mix(in srgb,#000 32%,transparent)}
.only-btn span{display:none}
html.scenery-only .only-btn{display:flex;align-items:center;gap:7px;width:auto;padding:0 14px 0 10px;border-radius:18px;font:600 13px/1 var(--body);white-space:nowrap}
html.scenery-only .only-btn span{display:inline}
html.scenery .hero-img{-webkit-mask-image:linear-gradient(#000 70%,transparent);mask-image:linear-gradient(#000 70%,transparent)}
html.scenery .hero::after{background:linear-gradient(180deg,rgba(0,0,0,.45) 0%,rgba(0,0,0,.05) 35%,rgba(0,0,0,.25) 60%,rgba(0,0,0,.12) 85%,transparent 100%)}

/* Sections */
.section{max-width:1400px;margin:0 auto;padding:clamp(40px,6vw,80px) clamp(16px,4vw,48px)}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:28px;border-bottom:1px solid var(--line);padding-bottom:16px}
.section-head h2{margin:0;font:700 clamp(30px,4vw,46px)/1 var(--display);text-transform:uppercase;letter-spacing:.02em}
.section-head span{color:var(--muted);font-size:14px}

/* Trip cards */
.trips{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));gap:clamp(14px,2vw,26px)}
.trip-card{position:relative;display:block;aspect-ratio:4/5;border-radius:14px;overflow:hidden;background:var(--card);isolation:isolate;box-shadow:0 10px 30px rgba(0,0,0,.18)}
.trip-card:first-child{grid-column:span 2;aspect-ratio:8/5}
@media (max-width:760px){.trip-card:first-child{grid-column:auto;aspect-ratio:4/5}}
.trip-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;transition:transform .7s cubic-bezier(.2,.7,.2,1)}
.trip-card::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,transparent 40%,rgba(0,0,0,.82) 100%)}
.trip-card:hover img{transform:scale(1.06)}
.trip-body{position:absolute;inset:auto 0 0 0;padding:22px;color:#fff}
.trip-date{display:inline-block;font:600 12px/1 var(--body);letter-spacing:.14em;text-transform:uppercase;color:var(--accent-2);margin-bottom:10px}
.trip-card h3{margin:0;font:700 clamp(26px,2.6vw,36px)/1 var(--display);text-transform:uppercase;letter-spacing:.01em;overflow-wrap:anywhere}
.trip-facts{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.trip-facts .fact{display:inline-flex;align-items:center;padding:4px 9px;border-radius:999px;background:rgba(12,13,14,.55);border:1px solid rgba(255,255,255,.14);backdrop-filter:blur(6px);color:#f2f0e8;font:600 12px/1.2 var(--body);white-space:nowrap}
.trip-facts .fact.goal{color:var(--accent-2)}
.trip-meta{display:flex;align-items:center;gap:10px;margin-top:12px;font-size:13px;color:#e8e4d9}
.trip-meta .go{margin-left:auto;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--accent);color:var(--on-accent);font-weight:700;transform:translateX(-6px);opacity:0;transition:.3s}
.trip-card:hover .go,.trip-card:focus-visible .go{transform:none;opacity:1}

/* Justified photo grid: items grow by their aspect ratio */
.photos{display:flex;flex-wrap:wrap;gap:8px}
.photos::after{content:"";flex-grow:999999}
.photo{position:relative;flex-grow:var(--r);flex-basis:calc(var(--r) * 230px);border:0;padding:0;background:var(--card);border-radius:8px;overflow:hidden}
.photo i{display:block;padding-bottom:calc(100% / var(--r))}
.photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .5s,filter .3s}
.photo:hover img{transform:scale(1.03);filter:brightness(1.06)}
@media (max-width:600px){.photo{flex-basis:calc(var(--r) * 140px)}.photos{gap:5px}}

/* Prev / next trip */

.footer{padding:40px 16px 50px;text-align:center;color:var(--muted);font-size:13px;letter-spacing:.04em}
.empty,.noscript{padding:140px 20px;text-align:center;color:var(--muted)}

/* Maps (Leaflet) */
.map-section .section-head{margin-bottom:18px}
.map-stats{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px}
.map-stats span{display:inline-flex;align-items:center;gap:7px;padding:8px 14px;border-radius:999px;background:var(--bg-2);border:1px solid var(--line);font-size:14px}
.map-stats b{font:700 18px/1 var(--display);color:var(--accent-2)}
.map{height:clamp(340px,58vh,600px);border-radius:14px;overflow:hidden;border:1px solid var(--line);background:var(--bg-2);z-index:0}
.map-note{margin:10px 2px 0;color:var(--muted);font-size:12.5px}
.pin{width:44px!important;height:44px!important;margin:-22px 0 0 -22px!important;border-radius:50%;border:3px solid #fff;box-shadow:0 3px 10px rgba(0,0,0,.45);overflow:hidden;background:var(--card);transition:transform .15s}
.pin img{width:100%;height:100%;object-fit:cover}
.pin:hover,.pin.active{transform:scale(1.35);z-index:1000!important;border-color:var(--accent)}
.pin-trip{width:64px!important;height:64px!important;margin:-32px 0 0 -32px!important;border-radius:14px;border-width:3px}
.pin-start::after{content:"START";position:absolute;left:50%;top:-20px;transform:translateX(-50%);padding:2px 6px;border-radius:4px;background:var(--accent);color:var(--on-accent);font:700 10px/1.3 var(--body);letter-spacing:.08em}
.pin-start{overflow:visible}.pin-start img{border-radius:50%}
.pin-end::after{content:"CÍL";position:absolute;left:50%;top:-20px;transform:translateX(-50%);padding:2px 6px;border-radius:4px;background:#d9534f;color:#fff;font:700 10px/1.3 var(--body);letter-spacing:.08em}
.pin-end{overflow:visible}.pin-end img{border-radius:50%}
.flag{width:auto!important;height:auto!important}
.flag span{display:block;transform:translate(-50%,-100%);margin-top:-6px;padding:4px 9px;border-radius:6px;font:700 11px/1.2 var(--body);letter-spacing:.1em;white-space:nowrap;box-shadow:0 3px 10px rgba(0,0,0,.35);position:relative}
.flag span::after{content:"";position:absolute;left:50%;bottom:-6px;margin-left:-6px;border:6px solid transparent;border-bottom:0;border-top-color:inherit}
.flag-start span{background:var(--accent);color:var(--on-accent);border-top-color:var(--accent)}
.flag-end span{background:#5c6b7a;color:#fff;border-top-color:#5c6b7a}
.flag-goal span{display:flex;align-items:center;gap:7px;background:#fff;color:#2e6b3c;border:2px solid #2e6b3c;border-top-color:#2e6b3c;font-size:12.5px;padding:4px 11px 4px 8px;letter-spacing:.04em}
.flag-goal span::after{border-top-color:#2e6b3c;bottom:-8px}
.flag-goal svg{width:22px;height:17px;flex-shrink:0}
.flag-goal .m-front{fill:#2e6b3c}.flag-goal .m-back{fill:#5e9b5f}.flag-goal .m-snow{fill:#fff}
.profile-wrap{margin:22px 0 0}
.profile{display:block;width:100%;height:auto;max-height:200px}
.profile .area{fill:color-mix(in srgb,var(--accent) 28%,transparent)}
.profile .line{fill:none;stroke:var(--accent-2);stroke-width:2.5;stroke-linejoin:round}
.profile .grid{stroke:var(--line);stroke-width:1;stroke-dasharray:3 4}
.profile text{fill:var(--muted);font:12px var(--body)}
.profile-wrap figcaption{margin-top:6px;color:var(--muted);font-size:12.5px}
.mapy-open{display:inline-flex;align-items:center;padding:8px 14px;border-radius:999px;background:var(--accent);color:var(--on-accent);font-weight:700;font-size:14px;margin-left:auto;transition:background .2s}
.mapy-open:hover{background:#3a8250}
.leaflet-container{font:13px var(--body)}
.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:var(--card);color:var(--text)}
.leaflet-popup-content{margin:10px 12px}
/* a photo enlarged on the trip map */
.photo-popup .leaflet-popup-content-wrapper{padding:0;border-radius:12px;overflow:hidden;box-shadow:0 8px 28px rgba(0,0,0,.45)}
.photo-popup .leaflet-popup-content{margin:0;width:auto!important;line-height:0}
.photo-popup img{display:block;width:auto;height:auto;max-width:min(380px,68vw);max-height:min(320px,48vh)}
.photo-popup .leaflet-popup-close-button{top:6px;right:6px;width:26px;height:26px;border-radius:50%;background:rgba(0,0,0,.5);color:#fff;font:18px/26px sans-serif;text-align:center}
.photo-popup .leaflet-popup-close-button:hover{background:rgba(0,0,0,.75);color:#fff}
.trip-popup{display:block;width:180px}
.trip-popup img{width:100%;height:110px;object-fit:cover;border-radius:8px;margin-bottom:8px}
.trip-popup b{display:block;font:700 18px/1.1 var(--display);text-transform:uppercase}
.trip-popup small{color:var(--muted)}
.mapy-logo{display:block;line-height:0}
.mapy-logo img{height:22px;width:auto}

/* Lightbox */
#lightbox{width:100vw;height:100vh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:rgba(6,8,7,.96);color:#fff;overflow:hidden}
#lightbox::backdrop{background:rgba(0,0,0,.9)}
/* with the scenery the photo viewer floats over the landscape: the page steps away, the scene stays, a little dimmed */
html.scenery #lightbox{background:rgba(6,8,7,.45)}
html.scenery #lightbox::backdrop{background:transparent}
html.scenery:has(#lightbox[open]) :is(#app,.footer,.topbar){visibility:hidden}
html.scenery:has(#lightbox[open]) body::before{opacity:0}
#lb-img{position:absolute;inset:0;margin:auto;max-width:calc(100vw - 32px);max-height:calc(100vh - 32px);object-fit:contain;user-select:none;transition:opacity .2s}
#lb-img.loading{opacity:.35}
.lb-btn,.lb-close{position:absolute;border:0;background:rgba(255,255,255,.1);color:#fff;border-radius:50%;backdrop-filter:blur(6px);transition:background .2s}
.lb-btn:hover,.lb-close:hover{background:var(--accent);color:var(--on-accent)}
.lb-btn{top:50%;width:52px;height:52px;margin-top:-26px;font-size:32px;line-height:1}
.lb-prev{left:18px}.lb-next{right:18px}
.lb-close{top:16px;right:16px;width:44px;height:44px;font-size:18px}
.lb-count{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);font:600 13px/1 var(--body);letter-spacing:.14em;padding:8px 12px;border-radius:20px;background:rgba(0,0,0,.45)}
.lb-map{position:absolute;right:16px;bottom:14px;border:0;border-radius:20px;padding:8px 14px;background:rgba(255,255,255,.12);color:#fff;font:600 13px/1 var(--body);backdrop-filter:blur(6px)}
.lb-map:hover{background:var(--accent);color:var(--on-accent)}
@media (max-width:600px){.lb-btn{display:none}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.profile-block{margin-top:56px}
.profile-block .profile-wrap{margin-top:0}
/* Difficulty chip on cards */
.trip-facts .fact.level::before{content:"";width:7px;height:7px;border-radius:50%;margin-right:6px;background:var(--lv,#9cc79a)}
.trip-facts .fact.level-mid{--lv:#e0b341}.trip-facts .fact.level-hard{--lv:#e0614a}
/* Practical overview */
.info-section .section-head{margin-bottom:18px}
.info-list{display:grid;grid-template-columns:max-content 1fr;gap:10px 22px;margin:0;padding:20px 22px;background:var(--card);border:1px solid var(--line);border-radius:14px}
.info-row{display:contents}
.info-list dt{color:var(--muted);font-size:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;padding-top:2px}
.info-list dd{margin:0;display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.marks{display:inline-flex;gap:4px}
.mark{display:inline-block;width:22px;height:14px;border-radius:2px;background:linear-gradient(#fff 0 30%,var(--mark) 30% 70%,#fff 70%);box-shadow:0 0 0 1px rgba(0,0,0,.25)}
.info-wrap{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:28px;align-items:start}
.info-summary{display:flex;gap:14px;align-items:flex-start}
.summary-pic{display:block;border:0;padding:0;background:none;cursor:zoom-in;border-radius:14px;overflow:hidden;box-shadow:0 10px 30px rgba(0,0,0,.3);transition:transform .25s}
.summary-pic:hover{transform:scale(1.02)}
.summary-pic img{display:block;width:auto;height:auto;max-height:560px;max-width:min(380px,32vw)}
.info-summary:has(.summary-pic+.summary-pic) img{max-width:min(300px,22vw);max-height:480px}
.info-actions{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin-top:14px}
.nav-btn{display:inline-flex;align-items:center;gap:8px;padding:10px 18px;border-radius:999px;background:var(--accent);color:var(--on-accent);font-weight:600;text-decoration:none}
.nav-btn::before{content:"➤";font-size:13px}
.nav-btn:hover{filter:brightness(1.12)}
.nav-alt{color:var(--accent-2);font-size:14px}
/* History of the place */
.history-block{margin-top:56px}
.history{font-size:16px;line-height:1.7}
.history-sec{padding:4px 0}
.history-sec.with-fig{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,34%);gap:40px;align-items:start;padding:18px 0;border-top:1px solid var(--line)}
.history-sec.with-fig+.history-sec{border-top:1px solid var(--line);padding-top:18px}
.history-sec.with-fig h3:first-child,.history-sec h3:first-child{margin-top:4px}
.history-fig{margin:6px 0 0}
.history-fig.tall{justify-self:center;width:min(100%,340px)}
.history-fig img{display:block;width:100%;height:auto;max-height:520px;object-fit:cover;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.history-fig figcaption{display:flex;flex-direction:column;gap:2px;margin-top:8px;font-size:13px;line-height:1.4;color:var(--muted)}
.history-fig figcaption span{color:var(--text)}
.history-fig .credit{font-size:11.5px;color:var(--muted);text-decoration:none}
.history-fig a.credit:hover{text-decoration:underline}
.history h3{font:600 22px/1.2 var(--display,inherit);margin:26px 0 8px;color:var(--accent-2)}
.history p{margin:0 0 12px}
.history ul{margin:0 0 12px;padding-left:20px}
.history li{margin-bottom:6px}
.sources{color:var(--muted);font-size:13px}
.sources a{color:var(--muted)}

/* Compact phone layout: shorter hero, tighter stats and chips */
@media (max-width:600px){
  .topbar{padding:12px 16px}
  .brand{font-size:18px}
  .topbar-link{font-size:13px}
  .hero{min-height:40vh}
  .hero-trip .hero,.hero.hero-trip{min-height:48vh}
  .hero-inner{padding:0 16px 22px}
  .hero h1,.hero-trip .hero h1,.hero.hero-trip h1{font-size:clamp(34px,10vw,46px);margin:8px 0 6px}
  .hero.hero-trip h1{font-size:clamp(32px,calc(10vw - 2px),44px)} /* a trip's name: 2 px smaller than the site's */
  .eyebrow{font-size:11px;letter-spacing:.18em}
  .eyebrow::before{width:22px}
  .hero p{font-size:14px}
  .hero-goal{gap:6px}
  .goal-icon{width:22px;height:22px}.goal-icon svg{width:12px;height:12px}
  .stats{gap:8px 16px;margin-top:14px}
  .stat b{font-size:22px}
  .stat span{font-size:9.5px;letter-spacing:.1em}
  .section{padding:28px 16px}
  .section-head{margin-bottom:14px;padding-bottom:10px}
  .section-head h2{font-size:26px}
  .section-head span{font-size:12px}
  .map-stats{gap:6px;margin-bottom:12px}
  .map-stats span,.mapy-open{padding:5px 10px;font-size:12px}
  .map-stats b{font-size:15px}
  .mapy-open{margin-left:0}
  .map{height:300px}
  .profile-block{margin-top:32px}
  .info-list{grid-template-columns:1fr;gap:2px;padding:14px 16px}
  .info-wrap{grid-template-columns:1fr;gap:18px}
  .info-summary{justify-content:center}
  .summary-pic{flex:1;min-width:0}
  .summary-pic img,.info-summary:has(.summary-pic+.summary-pic) img{width:100%;max-width:100%;max-height:none}
  .info-list dt{font-size:11px;padding-top:8px}
  .history-block{margin-top:32px}
  .history{font-size:15px}
  .history-sec.with-fig{grid-template-columns:1fr;gap:12px}
  .history-fig.tall{width:min(100%,300px)}
  .trip-card,.trip-card:first-child{aspect-ratio:4/3;min-height:0}
  .trip-body{padding:16px}
  .trip-card h3{font-size:26px}
  .trip-facts{margin-top:8px;gap:4px}
  .trip-facts .fact{font-size:11px;padding:3px 7px}
  .footer{padding:24px 16px 32px}
}
.sort-toggle{border:1px solid var(--line);background:transparent;color:var(--muted);font:500 14px var(--body);padding:6px 12px;border-radius:999px;transition:color .2s,border-color .2s}
.sort-toggle:hover{color:var(--accent-2);border-color:var(--accent-2)}
@media (max-width:600px){.sort-toggle{font-size:12px;padding:4px 10px}}
.sort-select{appearance:none;-webkit-appearance:none;border:1px solid var(--line);background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a9ae9f' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;color:var(--muted);font:500 14px var(--body);padding:6px 30px 6px 12px;border-radius:999px;cursor:pointer;transition:color .2s,border-color .2s}
.sort-select:hover,.sort-select:focus-visible{color:var(--accent-2);border-color:var(--accent-2)}
.sort-select option{background:var(--bg-2);color:var(--text)}
@media (max-width:600px){.sort-select{font-size:12px;padding:4px 26px 4px 10px;background-position:right 10px center}}
/* Rotating header photo */
.hero-img{transition:opacity 1.5s ease}
.hero-img.incoming,.hero-img.leaving{opacity:0}
.hero-credit{position:absolute;right:clamp(16px,4vw,48px);bottom:18px;z-index:1;padding:5px 11px;border-radius:999px;background:rgba(8,16,10,.5);backdrop-filter:blur(6px);color:#e8ece4;font:500 12px/1.2 var(--body);transition:background .2s}
.hero-credit:hover{background:var(--accent);color:var(--on-accent)}
@media (max-width:600px){.hero-credit{bottom:10px;right:12px;font-size:11px;padding:4px 9px}}
/* Trip tags */
.tags{display:flex;flex-wrap:wrap;gap:5px}
.tag{--tag:#5f646b;display:inline-block;padding:3px 9px;border-radius:999px;background:var(--tag);color:#fff;font:600 11px/1.3 var(--body);letter-spacing:.03em;box-shadow:0 1px 4px rgba(0,0,0,.25)}
.card-tags{margin-bottom:10px}
.hero-tags{margin:2px 0 10px}
.hero-tags .tag{font-size:12px;padding:4px 11px}
.list-controls{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.tag-select.active{border-color:var(--tag);background-color:var(--tag);color:#fff}
@media (max-width:600px){.tag{font-size:10px;padding:2px 7px}.hero-tags .tag{font-size:11px;padding:3px 9px}.card-tags{margin-bottom:6px}}
/* Personal trip note */
.trip-note-wrap{padding-bottom:0}
.trip-note{position:relative;margin:0;padding:22px 26px 22px 64px;border-radius:14px;background:var(--bg-2);border:1px solid var(--line);border-left:4px solid var(--accent)}
.trip-note::before{content:"„";position:absolute;left:20px;top:-22px;font:700 64px/1 var(--display);color:var(--accent-2);opacity:.85}
.trip-note p{margin:0;font-size:clamp(17px,1.6vw,21px);line-height:1.5;font-style:italic;color:var(--text)}
@media (max-width:600px){.trip-note-wrap{padding-top:20px}.trip-note{padding:14px 16px 14px 46px}.trip-note::before{left:12px;top:-16px;font-size:48px}.trip-note p{font-size:15px}}
/* Tag filter badges */
.tag-filter{display:flex;flex-wrap:wrap;gap:8px;margin:-10px 0 22px}
.tag-badge{--tag:var(--accent);display:inline-flex;align-items:center;gap:7px;padding:6px 13px;border-radius:999px;border:1.5px solid var(--tag);background:transparent;color:var(--text);font:600 13px/1.2 var(--body);cursor:pointer;transition:background .15s,color .15s,transform .15s}
.tag-badge:hover{background:color-mix(in srgb,var(--tag) 25%,transparent)}
.tag-badge.active{background:var(--tag);color:#fff;box-shadow:0 2px 10px rgba(0,0,0,.3)}
.tag-badge .n{font-size:11px;font-weight:700;opacity:.65}
.tag-badge.active .n{opacity:.9}
@media (max-width:600px){
  .tag-filter{flex-wrap:nowrap;overflow-x:auto;margin:-4px -16px 16px;padding:2px 16px 6px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .tag-filter::-webkit-scrollbar{display:none}
  .tag-badge{flex-shrink:0;padding:5px 11px;font-size:12px}
}
#fotky,#mapa,#prevyseni{scroll-margin-top:72px}
/* Trip footer navigation with photo cards */
.trip-nav{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:clamp(10px,2vw,22px);margin-top:56px}
.nav-card{position:relative;display:flex;align-items:flex-end;min-height:150px;padding:18px 20px;border-radius:14px;overflow:hidden;isolation:isolate;background:var(--card);border:1px solid var(--line);transition:transform .2s,box-shadow .2s}
.nav-card.empty{visibility:hidden}
.nav-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;transition:transform .6s}
.nav-card::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(6,12,8,.35),rgba(6,12,8,.78))}
.nav-card:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(0,0,0,.35)}
.nav-card:hover img{transform:scale(1.05)}
.nav-card.next{justify-content:flex-end;text-align:right}
.nav-text{display:flex;flex-direction:column;gap:4px;color:#fff;text-shadow:0 1px 8px rgba(0,0,0,.5)}
.nav-text small{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--accent-2)}
.nav-text b{font:700 clamp(20px,2vw,26px)/1.05 var(--display);text-transform:uppercase}
.nav-date{font-size:12px;color:#dfe5dc}
.nav-home{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:var(--accent);color:var(--on-accent);box-shadow:0 4px 14px rgba(0,0,0,.35);transition:transform .2s,background .2s}
.nav-home:hover{transform:scale(1.08);background:#3a8250}
.nav-home svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
@media (max-width:600px){
  .trip-nav{grid-template-columns:1fr auto 1fr;gap:8px;margin-top:32px}
  .nav-card{min-height:110px;padding:10px 12px}
  .nav-text b{font-size:16px}
  .nav-text small{font-size:9.5px;letter-spacing:.08em}
  .nav-date{display:none}
  .nav-home{width:44px;height:44px}.nav-home svg{width:20px;height:20px}
}
.sort-cycle{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);background:transparent;color:var(--muted);font:500 14px var(--body);padding:6px 14px 6px 10px;border-radius:999px;cursor:pointer;transition:color .2s,border-color .2s}
.sort-cycle:hover,.sort-cycle:focus-visible{color:var(--accent-2);border-color:var(--accent-2)}
.sort-cycle svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:600px){.sort-cycle{font-size:12px;padding:4px 11px 4px 8px}.sort-cycle svg{width:14px;height:14px}}
/* Title on the left, sort button on the right of the same row, tag badges on the row below */
.trips-head{align-items:center;flex-wrap:wrap;gap:12px 20px}
.trips-head .list-controls{margin-left:auto}
.trips-head .tag-filter{order:3;flex:1 1 100%;margin:0;padding-top:4px}
@media (max-width:600px){
  .trips-head{gap:10px}
  .trips-head .tag-filter{order:3;flex-basis:100%;margin:0 -16px;padding:2px 16px 4px}
}
/* Back button below the trip header */
/* Share icon next to the trip title */
.share-btn{display:inline-grid;place-items:center;width:38px;height:38px;margin-left:14px;vertical-align:.35em;border-radius:50%;border:1px solid rgba(255,255,255,.3);background:rgba(12,13,14,.45);backdrop-filter:blur(6px);color:#fff;cursor:pointer;transition:background .2s,border-color .2s,transform .2s}
.share-btn:hover{color:var(--on-accent);background:var(--accent);border-color:var(--accent);transform:scale(1.08)}
.share-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.toast{position:fixed;left:50%;bottom:24px;z-index:100;transform:translate(-50%,20px);opacity:0;padding:10px 18px;border-radius:999px;background:var(--accent);color:var(--on-accent);font:600 14px var(--body);box-shadow:0 6px 20px rgba(0,0,0,.35);transition:opacity .3s,transform .3s}
.toast.show{opacity:1;transform:translate(-50%,0)}
@media (max-width:600px){.share-btn{width:30px;height:30px;margin-left:8px;vertical-align:.25em}.share-btn svg{width:15px;height:15px}}
/* Stronger hover zoom on photos and trip cards */
.photo img{transition:transform .45s cubic-bezier(.2,.7,.2,1),filter .3s}
.photo:hover img{transform:scale(1.12);filter:brightness(1.06)}
.trip-card:hover img{transform:scale(1.1)}
.nav-card:hover img{transform:scale(1.1)}
@media (hover:none){.photo:hover img,.card:hover img,.trip-card:hover img{transform:none}}
/* Light theme: keep the hero text readable (dark fade under the text, light only at the very edge) */
:root[data-theme="light"] .hero::after{background:linear-gradient(180deg,rgba(0,0,0,.45) 0%,rgba(0,0,0,.08) 35%,rgba(0,0,0,.42) 72%,rgba(0,0,0,.5) 93%,var(--bg) 100%)}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]) .hero::after{background:linear-gradient(180deg,rgba(0,0,0,.45) 0%,rgba(0,0,0,.08) 35%,rgba(0,0,0,.42) 72%,rgba(0,0,0,.5) 93%,var(--bg) 100%)}}
/* with the scenery the photo fades into the landscape, not into the page colour (that left a pale band) */
:root.scenery[data-theme="light"] .hero::after{background:linear-gradient(180deg,rgba(0,0,0,.45) 0%,rgba(0,0,0,.08) 35%,rgba(0,0,0,.42) 72%,rgba(0,0,0,.3) 90%,transparent 100%)}
@media (prefers-color-scheme:light){:root.scenery:not([data-theme="dark"]) .hero::after{background:linear-gradient(180deg,rgba(0,0,0,.45) 0%,rgba(0,0,0,.08) 35%,rgba(0,0,0,.42) 72%,rgba(0,0,0,.3) 90%,transparent 100%)}}
.hero .stat span,.hero .eyebrow{text-shadow:0 1px 6px rgba(0,0,0,.45)}
.footer-mail{color:var(--accent-2);text-decoration:underline;text-decoration-color:color-mix(in srgb,currentColor 40%,transparent);text-underline-offset:3px}
.footer-mail:hover{text-decoration-color:currentColor}

/* Colour palettes (default Les = forest green above). Chosen in the gallery panel; visitors may switch if allowed. */
:root[data-palette="grafit"]{--bg:#0e0f10;--bg-2:#141517;--card:#1a1b1d;--line:#2a2c2f;--text:#f3f0ea;--muted:#b8b6b1;--accent:#e6ad62;--accent-2:#e6ad62;--on-accent:#1a1a1a;--route:#e09a3e;color-scheme:dark}
@media (prefers-color-scheme:light){:root[data-palette="grafit"]:not([data-theme="dark"]){--bg:#f4f2ee;--bg-2:#ece9e3;--card:#ffffff;--line:#dedad2;--text:#1e1f21;--muted:#5f5d58;--accent:#dc9a45;--accent-2:#93590f;--on-accent:#1a1a1a;--route:#c97a1c;color-scheme:light}}
:root[data-palette="grafit"][data-theme="light"]{--bg:#f4f2ee;--bg-2:#ece9e3;--card:#ffffff;--line:#dedad2;--text:#1e1f21;--muted:#5f5d58;--accent:#dc9a45;--accent-2:#93590f;--on-accent:#1a1a1a;--route:#c97a1c;color-scheme:light}
:root[data-palette="bridlice"]{--bg:#171c24;--bg-2:#1c222c;--card:#242c38;--line:#323c4a;--text:#eef2f6;--muted:#aeb8c4;--accent:#8dbbd3;--accent-2:#8dbbd3;--on-accent:#10161d;--route:#3f8fc4;color-scheme:dark}
@media (prefers-color-scheme:light){:root[data-palette="bridlice"]:not([data-theme="dark"]){--bg:#eef2f6;--bg-2:#e4eaf0;--card:#ffffff;--line:#d3dce5;--text:#1b2430;--muted:#566373;--accent:#79aecb;--accent-2:#2a6587;--on-accent:#0f1720;--route:#2f7db3;color-scheme:light}}
:root[data-palette="bridlice"][data-theme="light"]{--bg:#eef2f6;--bg-2:#e4eaf0;--card:#ffffff;--line:#d3dce5;--text:#1b2430;--muted:#566373;--accent:#79aecb;--accent-2:#2a6587;--on-accent:#0f1720;--route:#2f7db3;color-scheme:light}
:root[data-palette="terakota"]{--bg:#211f1d;--bg-2:#282523;--card:#302c28;--line:#403a35;--text:#f3ede6;--muted:#bdb3a8;--accent:#de9478;--accent-2:#de9478;--on-accent:#1f1a17;--route:#d0704c;color-scheme:dark}
@media (prefers-color-scheme:light){:root[data-palette="terakota"]:not([data-theme="dark"]){--bg:#f5efe9;--bg-2:#ede5dd;--card:#fffdfb;--line:#e0d5ca;--text:#2a231e;--muted:#6b5f55;--accent:#dc8a6a;--accent-2:#9e4a2b;--on-accent:#1f1a17;--route:#c0603c;color-scheme:light}}
:root[data-palette="terakota"][data-theme="light"]{--bg:#f5efe9;--bg-2:#ede5dd;--card:#fffdfb;--line:#e0d5ca;--text:#2a231e;--muted:#6b5f55;--accent:#dc8a6a;--accent-2:#9e4a2b;--on-accent:#1f1a17;--route:#c0603c;color-scheme:light}
/* palette switch next to the light/dark button */
.palette-wrap{position:relative}
.palette-pop{position:absolute;right:0;top:calc(100% + 8px);display:grid;gap:4px;min-width:210px;padding:8px;border-radius:14px;background:var(--card);border:1px solid var(--line);box-shadow:0 14px 40px rgba(0,0,0,.35);color:var(--text)}
.palette-pop[hidden]{display:none}
.palette-opt{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;border:0;border-radius:9px;background:transparent;color:inherit;font:500 14px/1.2 var(--body);text-align:left}
.palette-opt:hover{background:var(--bg-2)}
.palette-opt[aria-checked="true"]{background:var(--bg-2);font-weight:700}
.palette-opt i{display:inline-flex;width:34px;height:18px;border-radius:9px;overflow:hidden;box-shadow:0 0 0 1px rgba(127,127,127,.35);flex-shrink:0}
.palette-opt i b{flex:1}
/* Tighter rhythm between stacked sections (no huge empty band before "Trasa výletu") */
.section+.section{padding-top:clamp(16px,2.5vw,32px)}

/* Private (password-protected) trips */
.trip-card.locked img,.nav-card.locked img{filter:blur(10px) saturate(.8) brightness(.75);transform:scale(1.15)}
.lock-badge{position:absolute;top:14px;right:14px;z-index:2;display:inline-flex;align-items:center;gap:7px;padding:6px 12px 6px 9px;border-radius:999px;background:rgba(0,0,0,.55);backdrop-filter:blur(8px);color:#fff;font:600 12px/1 var(--body)}
.lock-badge svg,.unlock-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.hero-locked .hero-img{filter:blur(22px) brightness(.7);transform:scale(1.2)}
.unlock-form{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;align-items:center;max-width:520px;margin-top:22px;padding:18px 20px;border-radius:16px;background:rgba(0,0,0,.45);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.15)}
.unlock-icon{grid-row:span 2;display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:var(--accent);color:var(--on-accent)}
.unlock-icon svg{width:22px;height:22px}
.unlock-text{display:flex;flex-direction:column;gap:2px}
.unlock-text b{font-size:17px}
.unlock-text span{font-size:13.5px;opacity:.85}
.unlock-row{grid-column:2;display:flex;gap:8px;margin-top:8px}
.unlock-row input{flex:1;min-width:0;padding:10px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.12);color:#fff;font:inherit}
.unlock-row input::placeholder{color:rgba(255,255,255,.65)}
.unlock-row button{padding:10px 18px;border:0;border-radius:999px;background:var(--accent);color:var(--on-accent);font-weight:700}
.unlock-row button:disabled{opacity:.6}
.unlock-msg{grid-column:2;margin:4px 0 0;font-size:13px;min-height:1em}
@media (max-width:600px){.unlock-form{grid-template-columns:1fr}.unlock-icon{grid-row:auto}.unlock-row,.unlock-msg{grid-column:1}}

/* Tent place (tag Kemp) */
.flag-camp span{background:#9a5b34;color:#fff;border-top-color:#9a5b34}
.camp-ico{font-size:16px;line-height:1}

/* Overview map zoomed out: trips as small pins instead of photos */
.pin-trip{transition:transform .15s,width .2s,height .2s,margin .2s,border-radius .2s}
.map.small-pins .pin-trip{width:18px!important;height:18px!important;margin:-9px 0 0 -9px!important;border-radius:50%;border-width:3px;background:var(--accent);box-shadow:0 2px 6px rgba(0,0,0,.45)}
.map.small-pins .pin-trip img{display:none}
.map.small-pins .pin-trip:hover{transform:scale(1.4)}

/* Tent picture on the trip map (tag Kemp + Místo stanování) */
.tent-icon{background:none;border:0}
.tent-mark{position:relative;width:60px;height:41px}
.tent-mark img{width:60px;height:41px;filter:drop-shadow(0 3px 4px rgba(0,0,0,.45));transition:transform .15s}
.tent-icon:hover .tent-mark img{transform:scale(1.15)}
.tent-mark span{position:absolute;left:50%;top:44px;transform:translateX(-50%);padding:2px 7px;border-radius:5px;background:rgba(20,20,20,.75);color:#fff;font:600 11px/1.3 var(--body);white-space:nowrap}

/* Trip map: small photo pins so the route stays visible (photos appear when zoomed in) */
.pin{transition:transform .15s,width .2s,height .2s,margin .2s}
.map.small-pins .pin:not(.pin-trip){width:16px!important;height:16px!important;margin:-8px 0 0 -8px!important;border-width:3px;background:var(--accent)}
.map.small-pins .pin:not(.pin-trip) img{display:none}
.map.small-pins .pin.active{width:44px!important;height:44px!important;margin:-22px 0 0 -22px!important}
.map.small-pins .pin.active img{display:block}

/* History of several places: each place starts with its name */
.history .history-place-name{font:700 clamp(26px,3.2vw,36px)/1.1 var(--display);text-transform:uppercase;letter-spacing:.02em;color:var(--text);margin:18px 0 0}
.history-sec.history-place-start{border-top:2px solid var(--accent);margin-top:22px;padding-top:6px}
.history-sec.history-place-start:first-child{margin-top:0}
/* Dates readable on any photo: white text on a dark translucent pill (header and trip cards) */
.hero .eyebrow,.trip-date{color:#fff;background:rgba(10,11,12,.55);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);padding:6px 11px;border-radius:999px;letter-spacing:.14em;text-shadow:none;border:1px solid rgba(255,255,255,.14)}
.hero .eyebrow::before{width:14px;background:var(--accent-2)}
.trip-date{display:inline-flex;align-items:center;gap:7px;margin-bottom:10px}
.trip-date::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--accent-2)}
@media (max-width:600px){
  /* room under the fixed top bar (and the iPhone notch area) so the date never runs into the logo */
  .hero-inner{padding-top:calc(78px + env(safe-area-inset-top))!important}
  .hero .eyebrow{font-size:11.5px;padding:5px 10px}
  .trip-date{font-size:11px}
}
.topbar{padding-top:max(12px,env(safe-area-inset-top));padding-left:max(clamp(16px,4vw,48px),env(safe-area-inset-left));padding-right:max(clamp(16px,4vw,48px),env(safe-area-inset-right))}
@media (max-width:600px){.topbar{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}}
