/* Hyllfe – mapa výletov */

@font-face { font-family: "Hy Barlow"; font-weight: 400; font-display: swap; src: url(fonts/barlow-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hy Barlow"; font-weight: 400; font-display: swap; src: url(fonts/barlow-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hy Barlow"; font-weight: 500; font-display: swap; src: url(fonts/barlow-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hy Barlow"; font-weight: 500; font-display: swap; src: url(fonts/barlow-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hy Barlow"; font-weight: 600; font-display: swap; src: url(fonts/barlow-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hy Barlow"; font-weight: 600; font-display: swap; src: url(fonts/barlow-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hy Condensed"; font-weight: 600; font-display: swap; src: url(fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hy Condensed"; font-weight: 600; font-display: swap; src: url(fonts/barlow-condensed-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hy Condensed"; font-weight: 700; font-display: swap; src: url(fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hy Condensed"; font-weight: 700; font-display: swap; src: url(fonts/barlow-condensed-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

body.hyllfe {
	--ink: #0e0e10;
	--panel: #17181b;
	--panel-2: #1f2024;
	--line: #2c2d32;
	--text: #ecebe7;
	--muted: #a3a3a8;
	--snow: #f4f4f2;
	--red: #e1251b;
	--blue: #0b4ea2;
	--admin: var(--wp-admin--admin-bar--height, 0px);
	margin: 0;
	background: var(--ink);
	color: var(--text);
	font: 400 17px/1.6 "Hy Barlow", system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
}
body.hyllfe *, body.hyllfe *::before, body.hyllfe *::after { box-sizing: border-box; }
body.hyllfe img { max-width: 100%; }
body.hyllfe :where(img) { height: auto; }
body.hyllfe a { color: inherit; }
body.hyllfe h1, body.hyllfe h2, body.hyllfe h3 {
	font-family: "Hy Condensed", "Arial Narrow", sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .01em;
	line-height: 1;
	margin: 0;
	color: var(--snow);
}
html { scroll-behavior: smooth; }

/* ---------- Horná lišta ---------- */
.hy-bar {
	position: fixed; z-index: 2000; left: 0; right: 0; top: var(--admin);
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 12px clamp(16px, 4vw, 40px);
	background: linear-gradient(to bottom, rgba(14,14,16,.75), rgba(14,14,16,0));
	transition: background .25s, box-shadow .25s;
}
.hy-bar.is-solid { background: rgba(14,14,16,.92); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); }
.hy-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.hy-brand img { width: 40px; height: 40px; }
.hy-brand span { font: 700 22px/1 "Hy Condensed", sans-serif; text-transform: uppercase; letter-spacing: .06em; color: var(--snow); }
.hy-nav { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 28px); }
.hy-nav a { text-decoration: none; font-weight: 500; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--snow); opacity: .9; }
.hy-nav a:hover { opacity: 1; }
@media (max-width: 560px) { .hy-nav a:not(.hy-btn) { display: none; } }

/* ---------- Tlačidlá ---------- */
.hy-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 14px 26px; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--red); color: #fff !important; text-decoration: none;
	font: 600 16px/1 "Hy Barlow", sans-serif; letter-spacing: .05em; text-transform: uppercase;
	transition: transform .15s, background .15s;
}
.hy-btn:hover { background: #c41d14; transform: translateY(-1px); }
.hy-btn--small { padding: 9px 16px; font-size: 13px; opacity: 1 !important; }
.hy-btn--block { width: 100%; padding: 18px; font-size: 17px; }
.hy-btn[disabled] { opacity: .7; cursor: progress; transform: none; }

/* ---------- Hero ---------- */
.hy-hero {
	position: relative; min-height: 100svh; display: flex; align-items: flex-end;
	background: var(--hero) 62% 55% / cover no-repeat, var(--panel);
	isolation: isolate;
}
.hy-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(to top, rgba(14,14,16,.95) 0%, rgba(14,14,16,.35) 38%, rgba(14,14,16,0) 60%),
		linear-gradient(to right, rgba(14,14,16,.55) 0%, rgba(14,14,16,0) 55%);
}
.hy-hero__inner { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px) clamp(110px, 16vh, 170px); }
.hy-eyebrow { margin: 0 0 6px; font: 600 clamp(15px, 1.6vw, 20px)/1.2 "Hy Condensed", sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--snow); opacity: .9; }
.hy-title { font-size: clamp(76px, 13vw, 176px) !important; letter-spacing: .02em !important; line-height: .86 !important; text-shadow: 0 6px 40px rgba(0,0,0,.35); }
.hy-title--trip { font-size: clamp(48px, 9vw, 120px) !important; }
.hy-sub { max-width: 30ch; text-wrap: balance; overflow-wrap: anywhere; margin: 18px 0 28px; font-size: clamp(18px, 2vw, 23px); line-height: 1.4; color: var(--snow); }
.hy-hero--trip { min-height: 72svh; }
.hy-hero--trip .hy-hero__inner { padding-bottom: clamp(90px, 12vh, 130px); }
.hy-hero--trip .hy-sub { margin-bottom: 0; }
.hy-hero__peaks { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(40px, 7vw, 100px); fill: var(--ink); }

/* ---------- Počítadlo ---------- */
.hy-stats {
	display: grid; grid-template-columns: repeat(3, 1fr);
	max-width: 1000px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 40px) 8px;
}
.hy-stat { text-align: center; padding: 10px; position: relative; }
.hy-stat + .hy-stat::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px; background: var(--line); }
.hy-stat strong { display: block; font: 700 clamp(48px, 8vw, 84px)/1 "Hy Condensed", sans-serif; color: var(--snow); font-variant-numeric: tabular-nums; }
.hy-stat span { display: block; margin-top: 4px; font-size: clamp(13px, 1.6vw, 16px); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

/* ---------- Sekcie ---------- */
.hy-section { max-width: 1240px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 40px) 0; scroll-margin-top: calc(var(--admin) + 64px); }
.hy-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 22px; }
.hy-head h2 { font-size: clamp(40px, 6vw, 68px); }
.hy-head h2::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 14px; background: var(--red); border-radius: 2px; }
.hy-head p { margin: 0; color: var(--muted); }

/* ---------- Mapa ---------- */
.hy-map { position: relative; isolation: isolate; z-index: 0; height: min(72vh, 640px); min-height: 380px; border-radius: 18px; overflow: hidden; background: #1b1c20; border: 1px solid var(--line); }
.hy-map--small { height: 320px; min-height: 0; margin: 40px 0 0; }
.hy-pin { position: relative; width: 22px; height: 22px; }
.hy-pin::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--red); border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.5); }
.hy-pin--last::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--red); animation: hy-pulse 2s ease-out infinite; }
@keyframes hy-pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.hyllfe .hy-tiles { filter: invert(1) hue-rotate(180deg) brightness(.95) contrast(.85) saturate(.15); }
.hyllfe .leaflet-container { font-family: "Hy Barlow", sans-serif; background: #1b1c20; }
.hyllfe .leaflet-popup-content-wrapper { padding: 0; border-radius: 14px; overflow: hidden; background: var(--panel); color: var(--text); box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.hyllfe .leaflet-popup-tip { background: var(--panel); }
.hyllfe .leaflet-popup-content { margin: 0; width: 260px !important; }
.hyllfe .leaflet-popup-close-button { color: #fff !important; text-shadow: 0 1px 4px #000; font-size: 22px !important; top: 6px !important; right: 6px !important; }
.hy-pop img { display: block; width: 100%; height: 150px; object-fit: cover; }
.hy-pop__body { padding: 12px 16px 14px; }
.hyllfe .leaflet-popup-content p.hy-pop__meta { margin: 0 0 4px; }
.hy-pop__meta { margin: 0 0 2px; font-size: 13px; color: var(--muted); }
.hy-pop h3 { font-size: 24px !important; margin: 0 0 8px !important; }
.hy-pop a.hy-pop__more { color: var(--red); font-weight: 600; text-decoration: none; text-transform: uppercase; font-size: 13px; letter-spacing: .06em; }
.hyllfe .leaflet-control-attribution { background: rgba(14,14,16,.7) !important; color: var(--muted); }
.hyllfe .leaflet-control-attribution a { color: var(--snow); }
.hyllfe .leaflet-bar a { background: var(--panel); color: var(--snow); border-color: var(--line); }
.hyllfe .leaflet-bar a:hover { background: var(--panel-2); }
.hy-map-hint { position: absolute; z-index: 500; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px; background: rgba(14,14,16,.8); color: var(--snow); font-size: 13px; pointer-events: none; transition: opacity .3s; }

/* ---------- Karty výletov ---------- */
.hy-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.hy-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; transition: transform .2s, border-color .2s; }
.hy-card:hover { transform: translateY(-4px); border-color: #45464d; }
.hy-card__img { position: relative; aspect-ratio: 3 / 2; background: var(--panel-2); display: grid; place-items: center; overflow: hidden; }
.hy-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.hy-card__img img:not(.hy-card__logo) { position: absolute; inset: 0; }
.hy-card:hover .hy-card__img img { transform: scale(1.04); }
.hy-card__img img.hy-card__logo { width: 42%; height: auto; object-fit: contain; opacity: .8; }
.hy-card__body { padding: 16px 20px 20px; }
.hy-card h3 { font-size: 30px; margin: 2px 0 8px; }
.hy-card__body p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.hy-meta { font-size: 13px !important; text-transform: uppercase; letter-spacing: .1em; color: var(--red) !important; font-weight: 600; }
.hy-empty { color: var(--muted); }

/* ---------- Detail výletu ---------- */
.hy-trip { max-width: 820px; margin: 0 auto; padding: 24px clamp(18px, 4vw, 32px) 0; }
.hy-trip__content { font-size: 19px; line-height: 1.7; }
.hy-trip__content p { margin: 0 0 1.1em; }
.hy-trip__content a { color: var(--red); }
.hy-trip__content figure { margin: 28px 0; }
.hy-trip__content img { border-radius: 12px; display: block; cursor: zoom-in; }
.hy-trip__content figcaption { color: var(--muted); font-size: 14px; margin-top: 6px; }
.hy-trip__content .wp-block-gallery { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.hy-trip__content .wp-block-gallery figure { margin: 0 !important; width: auto !important; }
.hy-trip__content .wp-block-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; height: 100% !important; }
.hy-trip__nav { display: flex; justify-content: space-between; gap: 16px; margin: 28px 0 0; padding: 18px 0; border-top: 1px solid var(--line); }
.hy-trip__nav a { color: var(--snow); text-decoration: none; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: 14px; }
.hy-trip__nav a:hover { color: var(--red); }
.hy-trip__pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hy-trip__pn a { display: block; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; font: 700 24px/1.1 "Hy Condensed", sans-serif; text-transform: uppercase; color: var(--snow); }
.hy-trip__pn a span { display: block; margin-bottom: 6px; font: 500 12px/1 "Hy Barlow", sans-serif; letter-spacing: .1em; color: var(--muted); }
.hy-trip__pn a:hover { border-color: var(--red); }
.hy-right { text-align: right; }

/* ---------- Hlásenia ---------- */
.hy-notice { margin: 0 0 24px; padding: 14px 18px; border-radius: 12px; border: 1px solid; font-size: 16px; }
.hy-notice a { color: inherit; font-weight: 600; }
.hy-notice--ok { background: rgba(46,160,90,.12); border-color: rgba(46,160,90,.5); }
.hy-notice--warn { background: rgba(225,37,27,.1); border-color: rgba(225,37,27,.55); }

/* ---------- Formulár ---------- */
.hy-form-page { padding: calc(var(--admin) + 110px) clamp(16px, 4vw, 40px) 40px; background: radial-gradient(1000px 500px at 80% -10%, #24252b, transparent); }
.hy-form-wrap { max-width: 620px; margin: 0 auto; }
.hy-title--form { font-size: clamp(56px, 12vw, 96px) !important; }
.hy-lead { margin: 10px 0 30px; color: var(--muted); font-size: 18px; }
.hy-form { display: grid; gap: 22px; }
.hy-field { display: grid; gap: 8px; }
.hy-field > span { font-weight: 600; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--snow); }
.hy-field small { color: var(--muted); font-size: 14px; }
.hy-field input[type=text], .hy-field input[type=date], .hy-field textarea {
	width: 100%; padding: 15px 16px; border-radius: 12px; border: 1px solid var(--line);
	background: var(--panel); color: var(--snow); font: 400 18px/1.4 "Hy Barlow", sans-serif;
	color-scheme: dark;
}
.hy-field input:focus, .hy-field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(225,37,27,.25); }
.hy-drop { position: relative; display: grid; gap: 6px; justify-items: center; text-align: center; padding: 28px 16px; border: 2px dashed #3a3b42; border-radius: 14px; background: var(--panel); cursor: pointer; }
.hy-drop:hover, .hy-drop.is-over { border-color: var(--red); }
.hy-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.hy-drop strong { font-size: 19px; color: var(--snow); }
.hy-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
.hy-previews:empty { display: none; }
.hy-previews figure { position: relative; margin: 0; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--panel-2); }
.hy-previews img { width: 100%; height: 100%; object-fit: cover; }
.hy-previews figure:first-child::after { content: "Titulná"; position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.hy-hint { margin: -6px 0 0; text-align: center; color: var(--muted); font-size: 14px; }

/* Úprava: existujúce fotky */
.hy-existing { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.hy-ex { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--panel-2); }
.hy-ex__pick { display: block; width: 100%; height: 100%; cursor: pointer; }
.hy-ex__pick input { position: absolute; opacity: 0; }
.hy-ex__pick img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; border: 3px solid transparent; transition: border-color .15s, opacity .15s; }
.hy-ex__pick input:checked + img { border-color: var(--red); }
.hy-ex__badge { display: none; position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.hy-ex__pick input:checked ~ .hy-ex__badge { display: block; }
.hy-ex__del { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(14,14,16,.8); color: #fff; cursor: pointer; font-size: 15px; }
.hy-ex__del input { position: absolute; opacity: 0; }
.hy-ex:has(.hy-ex__del input:checked) img { opacity: .25; }
.hy-ex:has(.hy-ex__del input:checked) .hy-ex__del { background: var(--red); }
.hy-ex:has(.hy-ex__del input:checked)::after { content: "Odstráni sa"; position: absolute; inset: auto 0 40% 0; text-align: center; color: #fff; font-weight: 600; font-size: 13px; pointer-events: none; }
.hy-previews--more figure:first-child::after { display: none; }
.hy-back { margin: 0 0 8px; }
.hy-back a, .hy-muted { color: var(--muted) !important; text-decoration: none; }
.hy-delete { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); text-align: center; }
.hy-delete button { background: none; border: 1px solid #5a2a28; color: #f08a84; padding: 12px 22px; border-radius: 999px; font: 600 14px/1 "Hy Barlow", sans-serif; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.hy-delete button:hover { background: rgba(225,37,27,.12); border-color: var(--red); }
.hy-trip__edit { display: flex; gap: 18px; align-items: center; }
.hyllfe .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* ---------- Pätička ---------- */
.hy-foot { margin-top: clamp(64px, 10vw, 120px); padding: 48px 20px 40px; text-align: center; border-top: 1px solid var(--line); color: var(--muted); }
.hy-foot img { width: 96px; height: 96px; }
.hy-foot p { margin: 12px 0 0; text-transform: uppercase; letter-spacing: .16em; font-size: 14px; }
.hy-foot strong { color: var(--snow); }
.hy-foot__small { text-transform: none !important; letter-spacing: normal !important; }
.hy-foot__small a { color: var(--muted); }

/* ---------- Lightbox ---------- */
.hy-lightbox { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.92); cursor: zoom-out; }
.hy-lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }

@media (max-width: 640px) {
	body.hyllfe { font-size: 16px; }
	.hy-hero { background-position: 72% 50%; }
	.hy-stats { padding-top: 10px; }
	.hy-trip__pn { grid-template-columns: 1fr; }
	.hy-right { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.hy-pin--last::after { animation: none; }
}
