/* =================================================================
 * historie.pocaply.cz - hlavní stylesheet
 * Space Grotesk (lokálně přes /assets/fonts/)
 * ================================================================= */

/* ---------- FONT ---------- */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/space-grotesk-300.woff2') format('woff2');
    unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212;
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/space-grotesk-400.woff2') format('woff2');
    unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212;
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/space-grotesk-500.woff2') format('woff2');
    unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212;
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/space-grotesk-600.woff2') format('woff2');
    unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212;
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/space-grotesk-700.woff2') format('woff2');
    unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212;
}

/* ---------- DESIGN TOKENY ---------- */
:root {
    --c-navy: #0F2A5C;
    --c-navy-2: #16356F;
    --c-olive: #A4B048;
    --c-olive-dark: #8E9A39;
    --c-yellow: #FCD415;
    --c-bg: #F4F1EA;
    --c-paper: #FBF8F2;
    --c-text: #1A1A1A;
    --c-text-soft: #5A5A5A;
    --c-text-mute: #9A9A9A;
    --c-border: #E5E1D8;
    --c-white: #fff;

    --r-pill: 999px;
    --r-card: 18px;
    --r-input: 14px;

    --shadow-sm: 0 2px 8px rgba(15, 42, 92, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 42, 92, 0.1);
    --shadow-lg: 0 20px 60px rgba(15, 42, 92, 0.18);

    --transition: 200ms cubic-bezier(.2, .7, .2, 1);

    --container: 1800px;
    --container-hero: 2500px;
    --gutter: clamp(24px, 4vw, 56px);   /* responzivní — víc prostoru na noteboocích */
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }

/* ---------- BASE ---------- */
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}
/* Hlavní písmo Space Grotesk — vynucené pro celý web (bez ohledu na to,
   co dotáhne třeba leaflet.css nebo browser default). */
html, body, button, input, textarea, select, p, h1, h2, h3, h4, h5, h6, span, a, div, li, td, th, label, strong, em {
    font-family: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}
body {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.55;
    color: var(--c-text);
    background: var(--c-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}
/* Leaflet má vlastní font v .leaflet-container — držíme náš */
.leaflet-container, .leaflet-popup-content { font-family: 'Space Grotesk', system-ui, sans-serif !important; }
main { flex: 1; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.4rem; }
p  { margin: 0; }

/* ---------- KONTEJNER ---------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------- TLAČÍTKA ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: var(--r-pill);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
    white-space: nowrap;
    line-height: 1;
    user-select: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--c-olive);
    color: var(--c-white);
}
.btn-primary:hover { background: var(--c-olive-dark); color: var(--c-white); }
/* Login zachovává tmavý text (jediná výjimka, navrhli jsme tak v návrhu) */
.login-form .btn.login-btn { color: var(--c-navy); }
.login-form .btn.login-btn:hover { color: var(--c-navy); }

.btn-dark {
    background: var(--c-navy);
    color: var(--c-white);
}
.btn-dark:hover { background: var(--c-navy-2); }

.btn-light {
    background: var(--c-white);
    color: var(--c-text);
    box-shadow: var(--shadow-sm);
}
.btn-light:hover { background: #f7f4ec; }

.btn-ghost {
    background: transparent;
    color: var(--c-text);
    border: 1px solid var(--c-border);
}
.btn-ghost:hover { background: var(--c-white); }

.btn-arrow {
    padding: 6px 6px 6px 22px;     /* nižší vertikální padding, kolečko sedí na okraji */
}
.btn-arrow .arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--c-navy);
    color: var(--c-white);
    font-size: 1.05rem;
    margin-left: 10px;
    flex-shrink: 0;
}
.btn-arrow .arrow svg { width: 16px; height: 16px; }
.btn-primary.btn-arrow .arrow { background: var(--c-navy); color: var(--c-white); }
.btn-dark.btn-arrow .arrow { background: var(--c-olive); color: var(--c-navy); }
.btn-light.btn-arrow .arrow { background: var(--c-olive); color: var(--c-navy); }

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* ---------- HEADER ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px var(--gutter);     /* víc prostoru nahoře i dole */
    max-width: var(--container-hero);
    margin: 0 auto;
    background: transparent;
    width: 100%;
}
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    box-shadow: 0 4px 20px rgba(15, 42, 92, 0.06);
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--c-text);
}
.logo img { width: 48px; height: 48px; }
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.logo-text small {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--c-text-soft);
    text-transform: uppercase;
}
.logo-text strong {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 4px;
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}
.nav-link {
    color: var(--c-text);
    text-decoration: none;
    font-size: 1rem;
}
.nav-link:hover { color: var(--c-navy); }
.nav-link-recent { font-weight: 500; }
.latest-section { scroll-margin-top: 100px; }

/* ---------- HAMBURGER MENU (mobil) ---------- */
.nav-burger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--c-white);
    box-shadow: 0 4px 12px rgba(15, 42, 92, 0.10);
    border: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    flex-shrink: 0;
}
.nav-burger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--c-navy);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: var(--gutter);
    background: var(--c-white);
    border-radius: var(--r-card);
    box-shadow: 0 12px 32px rgba(15, 42, 92, 0.18);
    padding: 8px;
    display: flex;
    flex-direction: column;
    min-width: 220px;
    z-index: 60;
}
.nav-menu[hidden] { display: none; }
.nav-menu-item {
    display: block;
    padding: 12px 18px;
    border-radius: var(--r-input);
    color: var(--c-text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: background var(--transition);
}
.nav-menu-item:hover { background: #f4f1ea; }

/* ---------- LOGIN STRÁNKA ---------- */
.login-page {
    background: var(--c-bg);
}
.login-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    padding: 80px var(--gutter) 80px;   /* spodní padding jen uvnitř hero (counter), žádná mezera k patičce */
}
/* Na login stránce: žádný margin-top u patičky, ať navazuje rovnou na hero */
.login-page main { margin-bottom: 0; }
.login-page .site-footer { margin-top: 0; }
.login-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../img/main-background.jpg');
    background-size: cover;
    background-position: center;
    background-color: #4a4a48;
    filter: grayscale(0.1);
    z-index: 0;
}
.login-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.20) 0%, rgba(0,0,0,0.05) 35%, rgba(0,0,0,0.10) 100%);
    z-index: 1;
}
.login-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 720px;
    margin-top: clamp(24px, 6vh, 80px);
}
.login-logo {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    margin-bottom: 56px;
    color: var(--c-white);
    text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}
.login-logo img { width: 84px; height: 84px; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4)); }
.login-logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
    text-align: left;
}
.login-logo-text small {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--c-white);
    margin-bottom: 6px;
    opacity: 0.95;
}
.login-logo-text strong {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--c-white);
}
.login-title {
    color: var(--c-white);
    font-weight: 700;
    text-shadow: 0 4px 28px rgba(0,0,0,0.45);
    margin-bottom: 32px;
}
.login-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    background: var(--c-white);
    border-radius: var(--r-pill);
    box-shadow: 0 12px 40px rgba(15, 42, 92, 0.25);
    max-width: 100%;
}
.login-input-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px 0 22px;
    flex: 1;
    min-width: 180px;
}
.login-input-wrap .lock {
    color: var(--c-text-mute);
    flex-shrink: 0;
}
.login-input-wrap input {
    border: 0;
    outline: 0;
    padding: 16px 0;
    font-size: 1.15rem;
    background: transparent;
    width: 100%;
    color: var(--c-text);
}
.login-input-wrap input::placeholder { color: var(--c-text-mute); }
.login-form .btn.login-btn {
    padding: 14px 28px 14px 32px;
    font-size: 1.2rem;        /* ≈ 19.2 px */
    font-weight: 600;
    gap: 14px;
    line-height: 1;
    margin-right: 8px;        /* drobný margin vpravo, ať se kruh netiskne na okraj pole */
}
.login-form .btn.login-btn .arrow {
    width: 26px;
    height: 26px;
    background: var(--c-navy);
    color: var(--c-white);
    margin-left: 2px;
}
.login-form .btn.login-btn .arrow svg { width: 14px; height: 14px; }
.login-error {
    margin-top: 18px;
    color: var(--c-white);
    background: rgba(220, 53, 69, 0.85);
    padding: 8px 18px;
    border-radius: var(--r-pill);
    font-size: 0.9rem;
    display: inline-block;
}
.login-counter-wrap {
    position: relative;
    z-index: 2;
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 40px;
}
.login-counter {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: var(--c-navy);
    color: var(--c-white);
    padding: 22px 36px;
    border-radius: 22px;
    line-height: 1.1;
    box-shadow: var(--shadow-md);
    text-align: center;
    min-width: 150px;
}
.login-counter strong { font-size: 2.6rem; font-weight: 700; line-height: 1; }
.login-counter span { font-size: 0.92rem; font-weight: 400; opacity: 0.85; margin-top: 8px; line-height: 1.2; }

/* ---------- HOMEPAGE HERO ---------- */
.home-hero {
    position: relative;
    margin: 0 auto;
    max-width: var(--container-hero);   /* širší než content, až 2500 px */
    padding: 0 var(--gutter);
}
.home-hero-inner {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    min-height: clamp(640px, 78vh, 880px);
    display: flex;
    align-items: flex-start;
    /* horní padding = stejný offset jako counter dole (vizuální symetrie) */
    padding: clamp(48px, 6vw, 88px) clamp(40px, 5vw, 88px);
    color: var(--c-white);
}
.home-hero-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../img/main-background.jpg');
    background-size: cover;
    background-position: center;
    background-color: #4a4a48;
    z-index: 0;
}
.home-hero-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,42,92,0.35), rgba(15,42,92,0.05));
    z-index: 1;
}
.home-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}
.home-hero-eyebrow {
    font-size: clamp(1rem, 1.6vw, 1.85rem);
    opacity: 0.95;
    margin-bottom: 22px;
    font-weight: 400;
}
.home-hero-content h1 {
    color: var(--c-white);
    text-shadow: 0 2px 16px rgba(0,0,0,0.35);
    margin-bottom: 28px;
    font-size: clamp(2.6rem, 5.7vw, 4.75rem);
    line-height: 1.08;
}
.home-hero-content p {
    font-size: clamp(1.05rem, 1.3vw, 1.35rem);
    opacity: 0.95;
    margin-bottom: 38px;
    max-width: 720px;
    line-height: 1.55;
}
.home-hero .btn-light {
    font-size: 1.15rem;
    font-weight: 500;
    padding: 12px 14px 12px 26px;
    gap: 12px;
}
.home-hero .btn-light .arrow { width: 44px; height: 44px; }
.home-hero .btn-light .arrow svg { width: 16px; height: 16px; }
.home-hero-counter {
    position: absolute;
    bottom: clamp(48px, 6vw, 88px);
    left: clamp(40px, 5vw, 88px);
    right: clamp(40px, 5vw, 88px);
    z-index: 2;
    color: var(--c-white);
    text-align: left;
    line-height: 1.05;
    display: flex;
    align-items: flex-end;
    gap: clamp(28px, 4vw, 64px);
    flex-wrap: wrap;
}
.hero-stat {
    color: var(--c-white);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition);
}
.hero-stat-link:hover { transform: translateY(-2px); }
.hero-stat-link:hover strong { text-shadow: 0 2px 16px rgba(0,0,0,0.5); }
.hero-stat strong {
    font-size: clamp(2.6rem, 4.2vw, 4rem);
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    display: block;
    line-height: 1;
}
.hero-stat span {
    font-size: clamp(0.92rem, 1.1vw, 1.1rem);
    opacity: 0.92;
    display: block;
    margin-top: 8px;
    line-height: 1.2;
}

/* ---------- INTRO SECTION ---------- */
.intro-section {
    padding: clamp(60px, 8vw, 120px) var(--gutter) 40px;
    max-width: var(--container);
    margin: 0 auto;
    text-align: left;
}
.intro-eyebrow {
    color: var(--c-text-mute);
    font-size: 1.25rem;
    margin-bottom: 22px;
    font-weight: 400;
}
.intro-section h2 {
    font-weight: 600;
    max-width: none;
    margin: 0;
    line-height: 1.12;
    font-size: clamp(2.4rem, 5.2vw, 4.6rem);
    letter-spacing: -0.014em;
}
.intro-section h2 .muted { color: var(--c-text-mute); }
.intro-note {
    margin-top: 28px;
    max-width: 900px;
    color: var(--c-text-soft);
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    line-height: 1.55;
}

/* ---------- SADY (TABS) ---------- */
.sets-section {
    padding: 60px var(--gutter) 40px;
    max-width: var(--container);
    margin: 0 auto;
}
.sets-eyebrow { font-size: 1rem; color: var(--c-text-mute); margin-bottom: 8px; }
.sets-eyebrow a { color: var(--c-navy); text-decoration: underline; }
.sets-eyebrow a:hover { color: var(--c-olive-dark); }
.sets-section h2 { margin-bottom: 28px; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.sets-tabs {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.set-tab {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 8px 8px 8px 22px;     /* zúžený padding vpravo, ať kolečko sedí přímo na okraji */
    border-radius: var(--r-pill);
    background: var(--c-white);
    color: var(--c-text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid var(--c-border);
    line-height: 1;
}
.set-tab:hover { background: #f7f4ec; }
.set-tab.active {
    background: var(--c-olive);
    color: var(--c-navy);
    border-color: var(--c-olive);
}
.set-tab .tab-arrow {
    display: inline-flex;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--c-navy);
    color: var(--c-white);
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.set-tab.active .tab-arrow { background: var(--c-navy); color: var(--c-white); }

/* ---------- PHOTO GRID ---------- */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));   /* max 2 na řádku */
    gap: 32px;
}
.photo-card {
    background: var(--c-white);
    border-radius: var(--r-card);
    box-shadow:
        0 8px 24px rgba(15, 42, 92, 0.16),
        0 32px 80px rgba(15, 42, 92, 0.14);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}
.photo-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 32px rgba(15, 42, 92, 0.22),
        0 44px 100px rgba(15, 42, 92, 0.20);
}
.photo-card-img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--c-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}
.photo-card-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}
.photo-card:hover .photo-card-img img { transform: scale(1.03); }
.photo-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px 28px;
    gap: 16px;
}
.photo-card-stats {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.2;
}
.photo-card-comments {
    font-size: 1.4rem;             /* zhruba 2× větší */
    font-weight: 500;
    color: var(--c-text);
}
.photo-card-locations {
    font-size: 1rem;
    color: var(--c-text-soft);
}
.photo-card .pill-link {
    background: var(--c-olive);
    color: var(--c-white);
    padding: 10px 10px 10px 28px;
    border-radius: var(--r-pill);
    font-size: 1.4rem;             /* zhruba 2× větší */
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    transition: background var(--transition);
    line-height: 1;
}
.photo-card:hover .pill-link { background: var(--c-olive-dark); color: var(--c-white); }
.photo-card .pill-link .arrow {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--c-navy);
    color: var(--c-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

/* ---------- DIVIDER ---------- */
.section-divider {
    border: 0;
    border-top: 1px solid var(--c-border);
    margin: 56px var(--gutter);
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
}

/* ---------- LATEST COMMENTED ---------- */
.latest-section {
    padding: 30px var(--gutter) 80px;
    max-width: var(--container);
    margin: 0 auto;
}
.latest-section h2 {
    text-align: left;
    margin-bottom: 36px;
    font-weight: 600;
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

/* ---------- BACK BAR ---------- */
.back-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px var(--gutter);
    max-width: var(--container);
    margin: 0 auto;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 8px 24px 8px 8px;        /* kolečko sedí přímo na levém okraji */
    border-radius: var(--r-pill);
    background: var(--c-white);
    color: var(--c-text);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(15, 42, 92, 0.10);
    transition: background var(--transition), transform var(--transition);
    line-height: 1;
}
.back-link:hover { background: #f7f4ec; transform: translateX(-2px); }
.back-link .back-arrow {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--c-navy);
    color: var(--c-white);
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.back-bar-line {
    flex: 1;
    height: 1px;
    background: var(--c-border);
}

/* ---------- PHOTO DETAIL ---------- */
.photo-detail {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.photo-detail-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 56px;        /* odsazení shora pod nadpisem */
}
.photo-breadcrumb {
    color: var(--c-text-soft);
    font-size: 0.9rem;
    margin-bottom: 6px;
}
.photo-breadcrumb a { color: inherit; text-decoration: none; }
.photo-breadcrumb a:hover { text-decoration: underline; }
.photo-detail-title { margin: 0; }
/* ---------- POLOHA / MAPA ---------- */
.photo-detail-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.photo-add-loc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    border-radius: var(--r-pill);
    background: var(--c-white);
    color: var(--c-text);
    border: 1px solid var(--c-border);
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 500;
    transition: background var(--transition);
    line-height: 1;
}
.photo-add-loc-btn:hover { background: #f7f4ec; }
.photo-add-loc-btn .add-loc-ico {
    position: relative;
    display: inline-flex;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--c-olive);
    color: var(--c-white);
    align-items: center;
    justify-content: center;
}
.photo-add-loc-btn .add-loc-plus {
    position: absolute;
    right: -2px;
    bottom: -4px;
    background: var(--c-navy);
    color: var(--c-white);
    width: 16px; height: 16px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    border: 2px solid var(--c-white);
}
.photo-loc-count {
    font-size: 0.95rem;
    color: var(--c-text-soft);
}
.photo-loc-count strong { color: var(--c-text); font-weight: 600; }

/* Sekce s tipy */
.locations-section {
    max-width: 920px;
    margin: 0 auto 80px;
    padding: 0 var(--gutter);
}
.locations-section h3 {
    font-weight: 600;
    color: var(--c-text);
    text-align: left;
    margin-bottom: 16px;
    font-size: clamp(1.6rem, 2.6vw, 2rem);
    letter-spacing: -0.01em;
}
.locations-intro {
    color: var(--c-text-soft);
    font-size: 1rem;
    margin-bottom: 28px;
}
.locations-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.location-card {
    background: var(--c-white);
    border-radius: var(--r-card);
    box-shadow: 0 4px 16px rgba(15, 42, 92, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.location-mini-map {
    width: 100%;
    height: 180px;
    background: #e9e8e0;
}
.location-meta {
    padding: 14px 18px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.location-name { font-weight: 600; color: var(--c-text); font-size: 1rem; }
.location-name.anonymous { font-style: italic; font-weight: 400; color: var(--c-text-mute); }
.location-time { font-size: 0.85rem; color: var(--c-text-mute); }
.locations-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--c-text-mute);
    padding: 24px 0;
}

/* Modal s pickovací mapou */
.map-modal {
    position: fixed;
    inset: 0;
    background: rgba(8, 22, 50, 0.65);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.map-modal[hidden] { display: none; }
.map-modal-card {
    background: var(--c-white);
    border-radius: var(--r-card);
    width: 100%;
    max-width: 720px;
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.30);
}
.map-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--c-border);
}
.map-modal-head h3 { margin: 0; font-size: 1.1rem; font-weight: 600; }
.map-modal-close {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--c-paper);
    color: var(--c-text);
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.map-modal-close:hover { background: #eae6db; }
.map-pick-wrap {
    padding: 14px 22px;
}
.pick-map {
    width: 100%;
    height: 380px;
    border-radius: var(--r-input);
    background: #e9e8e0;
}
.map-tip { font-size: 0.85rem; color: var(--c-text-mute); margin-top: 8px; }
.map-modal-form {
    padding: 8px 22px 18px;
}
.map-modal-form .row { margin-bottom: 14px; }
.map-modal-form label {
    display: block;
    font-size: 0.92rem;
    color: var(--c-text-soft);
    margin-bottom: 6px;
    font-weight: 500;
}
.map-modal-form input[type=text] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--c-border);
    border-radius: var(--r-input);
    background: var(--c-white);
}
.map-modal-form input:focus {
    outline: none;
    border-color: var(--c-olive);
}
.map-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.map-modal-actions .form-message {
    flex: 1;
    font-size: 0.88rem;
}
@media (max-width: 720px) {
    .pick-map { height: 60vh; min-height: 280px; }
    .map-modal-card { max-height: 100vh; border-radius: 0; }
    .map-modal { padding: 0; }
}

.photo-detail-cta-group {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.photo-detail-comment-cta,
.photo-detail-download-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.15rem;
    font-weight: 500;
    padding: 12px 14px 12px 26px;
}
.photo-detail-comment-cta .arrow,
.photo-detail-download-cta .arrow { width: 38px; height: 38px; }
.photo-detail-download-cta { background: var(--c-navy); color: var(--c-white); }
.photo-detail-download-cta:hover { background: #0c2249; color: var(--c-white); }
.photo-detail-download-cta .arrow { background: var(--c-olive); color: var(--c-navy); }
.photo-detail-img-wrap {
    position: relative;
    margin: 0 calc(-1 * var(--gutter)) 40px;
}
.photo-detail-img {
    border-radius: var(--r-card);
    overflow: hidden;
    background: #ddd;
    box-shadow: 0 12px 40px rgba(15, 42, 92, 0.18), 0 32px 80px rgba(15, 42, 92, 0.12);
    margin: 0;
}
.photo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--c-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 6px 20px rgba(15, 42, 92, 0.20);
    transition: background var(--transition), transform var(--transition);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.photo-nav:hover {
    background: var(--c-white);
    transform: translateY(-50%) scale(1.06);
}
.photo-nav[hidden] { display: none !important; }
.photo-nav-prev { left: clamp(12px, 1.6vw, 28px); }
.photo-nav-next { right: clamp(12px, 1.6vw, 28px); }
.photo-detail-description[hidden] { display: none; }
.photo-detail-zoom-trigger {
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    cursor: zoom-in;
    position: relative;
}
.photo-detail-zoom-trigger img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}
.photo-detail-zoom-trigger:hover img { transform: scale(1.02); }
.photo-detail-zoom-hint {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 12px;
    background: rgba(15, 42, 92, 0.85);
    color: var(--c-white);
    border-radius: var(--r-pill);
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: none;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity var(--transition), transform var(--transition);
}
.photo-detail-zoom-trigger:hover .photo-detail-zoom-hint,
.photo-detail-zoom-trigger:focus-visible .photo-detail-zoom-hint {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- PIN MARKERS NA FOTCE ---------- */
.photo-pin-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
}
.photo-pin {
    position: absolute;
    transform: translate(-50%, -100%);
    width: 36px;
    height: 36px;
    pointer-events: auto;
    cursor: pointer;
    background: var(--c-olive);
    color: var(--c-white);
    border-radius: 50% 50% 50% 0;
    transform-origin: bottom left;
    transform: translate(-50%, -100%) rotate(-45deg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
    border: 3px solid var(--c-white);
    transition: transform 200ms cubic-bezier(.2,.7,.2,1), background var(--transition);
}
.photo-pin span {
    transform: rotate(45deg);
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1;
}
.photo-pin:hover { background: var(--c-olive-dark); transform: translate(-50%, -100%) rotate(-45deg) scale(1.1); }
.photo-pin.is-active { background: var(--c-navy); }

/* ---------- PIN ROW VE FORMULÁŘI ---------- */
.comment-pin-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.js-pick-pin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.js-pick-pin .pin-ico {
    display: inline-flex;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--c-olive);
    color: var(--c-white);
    align-items: center;
    justify-content: center;
}
.pin-status {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px;
    background: #eaf3de;
    border-radius: var(--r-pill);
    font-size: 0.92rem;
    color: var(--c-olive-dark);
}
.pin-status[hidden] { display: none; }
.pin-status-text::before {
    content: '✓ ';
    font-weight: 700;
}
.pin-clear {
    background: transparent;
    color: var(--c-text-soft);
    text-decoration: underline;
    font-size: 0.85rem;
    padding: 0;
}
.pin-clear:hover { color: #c0392b; }

/* ---------- LIGHTBOX SELECTION MODE ---------- */
.lightbox-pick-hint {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--c-olive);
    color: var(--c-white);
    padding: 10px 22px;
    border-radius: var(--r-pill);
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 3;
    box-shadow: 0 6px 20px rgba(0,0,0,0.30);
}
.lightbox-pick-hint[hidden] { display: none; }
.lightbox.pick-mode .lightbox-image { cursor: crosshair; }
.lightbox.pick-mode .lightbox-toolbar { display: none; }

/* ---------- LIGHTBOX ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(8, 22, 50, 0.94);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.lightbox[hidden] { display: none; }
.lightbox-stage {
    position: absolute;
    inset: 0;
    overflow: hidden;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 80px;
    touch-action: none;            /* nezávisí na nativním scrollu — vlastní drag */
    -webkit-overflow-scrolling: auto;
    overscroll-behavior: contain;
}
.lightbox-stage.is-dragging { cursor: grabbing; }
.lightbox-image { touch-action: none; -webkit-user-select: none; user-select: none; }
.lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 240ms cubic-bezier(.2,.7,.2,1);
    transform-origin: center center;
    will-change: transform;
}
.lightbox-image.no-transition { transition: none; }
.lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: var(--c-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    z-index: 2;
    transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }
.lightbox-toolbar {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 42, 92, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px;
    border-radius: var(--r-pill);
    z-index: 2;
}
.lightbox-btn {
    min-width: 44px;
    height: 40px;
    padding: 0 14px;
    border-radius: var(--r-pill);
    background: transparent;
    color: var(--c-white);
    border: 0;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background var(--transition);
}
.lightbox-btn:hover { background: rgba(255,255,255,0.14); }
.lightbox-zoom-label {
    color: var(--c-white);
    font-size: 0.9rem;
    padding: 0 10px;
    min-width: 64px;
    text-align: center;
}
.photo-detail-description {
    max-width: 720px;
    margin: 0 auto 32px;
    text-align: center;
    color: var(--c-text-soft);
    line-height: 1.65;
}

/* ---------- COMMENTS ---------- */
.comments-section {
    max-width: 920px;
    margin: 60px auto 80px;
    padding: 0 var(--gutter);
}
.comments-section h3 {
    font-weight: 600;
    color: var(--c-text);
    text-align: left;
    margin-bottom: 32px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    letter-spacing: -0.01em;
}
.comment-form-heading {
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 600;
    margin: 56px 0 20px;
    color: var(--c-text);
    letter-spacing: -0.005em;
    scroll-margin-top: 100px;
}
.comment-form {
    background: var(--c-white);
    border-radius: var(--r-card);
    padding: 28px;
    box-shadow: 0 4px 16px rgba(15, 42, 92, 0.08);
}
.comment-form .row { margin-bottom: 18px; }
.comment-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
}
.comment-form-grid .row { margin-bottom: 0; }
.comment-form label {
    display: block;
    font-size: 1rem;
    color: var(--c-text-soft);
    margin-bottom: 8px;
    font-weight: 500;
}
.comment-form .row-help {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--c-text-mute);
    line-height: 1.4;
}
@media (max-width: 720px) {
    .comment-form-grid { grid-template-columns: 1fr; gap: 14px; }
}
.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--c-border);
    border-radius: var(--r-input);
    background: var(--c-white);
    font-size: 1.05rem;
    transition: border var(--transition), background var(--transition);
}
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--c-olive);
    background: var(--c-white);
}
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    align-items: center;
    margin-top: 20px;
}
.comment-form-actions .btn-primary {
    font-size: 1.15rem;
    font-weight: 500;
    padding: 12px 14px 12px 26px;
    color: var(--c-white);
    gap: 12px;
}
.comment-form-actions .btn-primary .arrow { width: 38px; height: 38px; }
.comment-form .form-message {
    flex: 1;
    font-size: 0.95rem;
}
.form-message.error { color: #c0392b; }
.form-message.success { color: var(--c-olive-dark); }

.comment-list { display: flex; flex-direction: column; gap: 20px; }
.comment-item {
    background: var(--c-white);
    border-radius: var(--r-card);
    padding: 24px 28px;
    box-shadow: 0 4px 16px rgba(15, 42, 92, 0.08);
}
.comment-item.is-reply {
    margin-left: 40px;
    background: #f1f3f5;        /* lehce šedé pozadí pro odpovědi */
    border-left: 3px solid var(--c-navy);
    box-shadow: none;
}
.comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.comment-author-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.comment-author { font-weight: 600; color: var(--c-text); font-size: 1.1rem; }
.comment-author.anonymous { color: var(--c-text-mute); font-style: italic; font-weight: 400; }
.comment-pin-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px 2px 8px;
    background: var(--c-olive);
    color: var(--c-white);
    border-radius: var(--r-pill);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
}
.comment-item.is-highlighted {
    box-shadow: 0 0 0 3px var(--c-olive), 0 4px 16px rgba(15, 42, 92, 0.10);
    transition: box-shadow 600ms ease;
}
.comment-time { font-size: 0.95rem; color: var(--c-text-mute); }
.comment-body {
    color: var(--c-text);
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 1.1rem;
}
.comment-actions {
    margin-top: 14px;
    display: flex;
    gap: 12px;
}
.comment-reply-btn {
    color: var(--c-olive-dark);
    background: transparent;
    padding: 0;
    font-size: 1rem;
    text-decoration: underline;
}

.comments-empty {
    text-align: center;
    color: var(--c-text-mute);
    padding: 32px 0;
    font-size: 1.05rem;
}

/* ---------- KONTAKT ---------- */
.contact-card {
    max-width: 720px;
    margin: 60px auto;
    background: var(--c-white);
    border-radius: var(--r-card);
    padding: 56px;
    box-shadow: var(--shadow-md);
    text-align: center;
}
.contact-card h1 { margin-bottom: 28px; }
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}
.contact-list li { font-size: 1.1rem; }

/* ---------- KONTAKTNÍ FORMULÁŘ ---------- */
.contact-form-section {
    max-width: 720px;
    margin: 40px auto 80px;
    padding: 0 var(--gutter);
}
.contact-form-section h2 {
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
}
.contact-form {
    background: var(--c-white);
    border-radius: var(--r-card);
    padding: 28px;
    box-shadow: 0 4px 16px rgba(15, 42, 92, 0.10);
}
.contact-form .row { margin-bottom: 18px; }
.contact-form label {
    display: block;
    font-size: 1rem;
    color: var(--c-text-soft);
    margin-bottom: 8px;
    font-weight: 500;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--c-border);
    border-radius: var(--r-input);
    background: var(--c-white);
    font-size: 1.05rem;
    font-family: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--c-olive);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.cf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
}
.cf-grid .row { margin-bottom: 0; }
.cf-grid .row:nth-child(3) { grid-column: 1 / -1; }
.contact-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}
.contact-form-actions .btn {
    font-size: 1.15rem;
    font-weight: 500;
    padding: 12px 14px 12px 26px;
    gap: 12px;
}
.contact-form-actions .btn .arrow { width: 38px; height: 38px; }
@media (max-width: 720px) {
    .cf-grid { grid-template-columns: 1fr; }
    .contact-form-actions { justify-content: stretch; }
    .contact-form-actions .btn { width: 100%; justify-content: center; }
}
.contact-list a {
    color: var(--c-navy);
    text-decoration: none;
    font-weight: 500;
}
.contact-list a:hover { text-decoration: underline; }

/* ---------- FOOTER ---------- */
.site-footer {
    margin-top: 80px;
    background: var(--c-navy);
    color: var(--c-white);
    position: relative;
    overflow: hidden;
}
.footer-inner {
    text-align: center;
    padding: 56px var(--gutter) 28px;
    position: relative;
    z-index: 2;
}
.footer-credit { font-size: 1.05rem; font-weight: 400; }
.footer-credit .heart { color: var(--c-white); margin-left: 4px; }
.footer-copy {
    font-size: 0.82rem;
    opacity: 0.7;
    margin-top: 12px;
    letter-spacing: 0.01em;
}
.footer-copy .footer-sep { margin: 0 8px; opacity: 0.6; }
.footer-legal {
    margin-top: 6px;
    font-size: 0.82rem;
    opacity: 0.75;
}
.footer-legal a {
    color: var(--c-white);
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.45);
    text-underline-offset: 3px;
}
.footer-legal a:hover { text-decoration-color: var(--c-white); }
@media (max-width: 720px) {
    .footer-copy .footer-sep { display: block; height: 0; visibility: hidden; margin: 2px 0; }
}

/* ---------- LEGAL PAGE (Zásady ochrany) ---------- */
.legal-page {
    max-width: 820px;
    margin: 60px auto 100px;
    padding: 0 var(--gutter);
    color: var(--c-text);
    line-height: 1.65;
}
.legal-head { margin-bottom: 36px; }
.legal-head h1 {
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.legal-sub { color: var(--c-text-mute); font-size: 0.95rem; }
.legal-section { margin-bottom: 36px; }
.legal-section h2 {
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    margin: 0 0 14px;
    color: var(--c-navy);
    font-weight: 600;
}
.legal-section p { margin-bottom: 14px; }
.legal-section ul {
    margin: 0 0 14px;
    padding-left: 22px;
}
.legal-section ul li { margin-bottom: 6px; }
.legal-section a { color: var(--c-navy); text-decoration: underline; }
.legal-section a:hover { color: var(--c-olive-dark); }
.legal-section code {
    background: #f1efe8;
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
}
.footer-banner {
    position: relative;
    overflow: hidden;
    height: clamp(110px, 14vw, 180px);
    margin-top: 0;
    padding: 0;
}
.footer-banner-row {
    position: absolute;
    left: 50%;
    bottom: clamp(-30px, -2vw, -16px);
    transform: translateX(-50%);
    display: inline-flex;
    align-items: flex-end;
    gap: 0;
    white-space: nowrap;
    line-height: 1;
}
.footer-banner-line {
    display: inline-flex;
    align-items: flex-end;
    gap: 0;
    line-height: 1;
}
/* Na desktopu obě části vedle sebe (mezera ve formě běžného mezislova) */
.footer-banner-line-1 { margin-right: clamp(12px, 2vw, 28px); }
.footer-banner-text {
    font-size: clamp(4rem, 14vw, 11rem);
    font-weight: 700;
    color: rgba(255,255,255,0.12);
    letter-spacing: -0.04em;
    line-height: 0.85;
    white-space: nowrap;
    pointer-events: none;
}
.footer-emblem {
    width: clamp(46px, 6vw, 84px);
    height: clamp(46px, 6vw, 84px);
    flex-shrink: 0;
    align-self: flex-end;
    margin: 0 clamp(2px, 0.4vw, 6px);
    /* posun trochu nahoru oproti písmu */
    transform: translateY(clamp(-26px, -2.2vw, -14px));
    z-index: 3;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25));
}

/* ---------- KONTAKT BUTTON v navigaci ---------- */
.site-nav .btn-primary { background: var(--c-olive); color: var(--c-white); }
.site-nav .btn-primary:hover { background: var(--c-olive-dark); color: var(--c-white); }

/* ---------- RESPONZIVITA ---------- */
@media (max-width: 720px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.6rem; }
    .home-hero-inner { padding: 36px 24px 220px; min-height: 760px; }
    .home-hero-counter { left: 24px; right: 24px; bottom: 24px; gap: 18px; }
    .hero-stat strong { font-size: 1.8rem; }
    .hero-stat span { font-size: 0.85rem; margin-top: 4px; }
    .home-hero-content h1 { font-size: 2.4rem; line-height: 1.1; }
    .home-hero-eyebrow { font-size: 0.95rem; margin-bottom: 14px; }
    .home-hero-content p { font-size: 1rem; margin-bottom: 24px; }
    .home-hero .btn-light { font-size: 1rem; padding: 10px 12px 10px 22px; }
    .home-hero .btn-light .arrow { width: 34px; height: 34px; }

    /* Detail fotky — menší CTA tlačítka, ať se vejdou vedle sebe */
    .photo-detail-cta-group { gap: 8px; }
    .photo-detail-comment-cta,
    .photo-detail-download-cta {
        font-size: 0.92rem;
        padding: 6px 6px 6px 14px;
        gap: 8px;
    }
    .photo-detail-comment-cta .arrow,
    .photo-detail-download-cta .arrow { width: 30px; height: 30px; }
    .photo-detail-comment-cta .arrow svg,
    .photo-detail-download-cta .arrow svg { width: 12px; height: 12px; }

    /* Komentáře — menší Odeslat na mobilu */
    .comment-form-actions .btn-primary {
        font-size: 0.95rem;
        padding: 6px 6px 6px 16px;
        gap: 8px;
    }
    .comment-form-actions .btn-primary .arrow { width: 30px; height: 30px; }
    .intro-section { padding-top: 50px; padding-bottom: 16px; }
    .sets-section { padding: 40px var(--gutter) 24px; }
    .photo-grid { grid-template-columns: 1fr; gap: 18px; }   /* 1 na řádku na mobilu */
    .photo-card-meta { padding: 18px 20px; gap: 10px; }
    .photo-card-comments { font-size: 1.05rem; }
    .photo-card-locations { font-size: 0.88rem; }
    .photo-card-stats { gap: 2px; }
    .photo-card .pill-link { padding: 6px 6px 6px 18px; font-size: 1.05rem; gap: 12px; }
    .photo-card .pill-link .arrow { width: 32px; height: 32px; font-size: 0.85rem; }
    .photo-detail-head { flex-direction: column; align-items: flex-start; }
    .contact-card { padding: 36px 24px; }
    .login-counter { padding: 16px 24px; }
    .login-counter strong { font-size: 2rem; }
    .login-counter span { font-size: 0.82rem; }
    .login-counter-wrap { padding-top: 24px; }

    /* Na mobilu rozdělíme input a tlačítko do dvou samostatných „pilulek" */
    .login-form {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        gap: 12px;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        max-width: 360px;
        width: 100%;
        margin: 0 auto;
    }
    .login-input-wrap {
        background: var(--c-white);
        border-radius: var(--r-pill);
        box-shadow: 0 8px 24px rgba(15, 42, 92, 0.22);
        padding: 4px 18px 4px 22px;
        min-width: 0;
    }
    .login-form .btn.login-btn {
        width: 100%;
        margin-right: 0;
        padding: 14px 24px;
        justify-content: center;
        box-shadow: 0 8px 24px rgba(15, 42, 92, 0.22);
    }
    .login-logo { gap: 12px; margin-bottom: 36px; }
    .login-logo img { width: 56px; height: 56px; }
    .login-logo-text strong { font-size: 1.4rem; }
    .login-hero { padding: 64px var(--gutter) 32px; }

    /* ----- FOOTER BANNER NA MOBILU: 2 ŘÁDKY ----- */
    .footer-banner {
        height: clamp(180px, 36vw, 240px);
    }
    .footer-banner-row {
        flex-direction: column;
        align-items: center;
        gap: clamp(2px, 1vw, 8px);
        bottom: clamp(-12px, -1vw, -6px);
    }
    .footer-banner-line { justify-content: center; }
    .footer-banner-line-1 { margin-right: 0; }
    .footer-banner-text {
        font-size: clamp(2.6rem, 14vw, 5rem);
    }
    .footer-emblem {
        width: clamp(34px, 11vw, 56px);
        height: clamp(34px, 11vw, 56px);
        transform: translateY(clamp(-14px, -2vw, -8px));
    }
    .site-header { padding: 14px var(--gutter); position: relative; }
    .logo img { width: 40px; height: 40px; }
    .logo-text strong { font-size: 1.05rem; }
    .nav-link { display: none; }
    .nav-burger { display: inline-flex; }
    .footer-emblem { width: 48px; height: 48px; }
    .comment-item.is-reply { margin-left: 16px; }
}

@media (max-width: 480px) {
    .photo-grid { grid-template-columns: 1fr; }
}
