/* Osada na Vyhlídce – moderní vizuál (barvy původního webu) */
:root {
    --color-link: #046bd2;
    --color-link-hover: #045cb4;
    --color-text: #1e293b;
    --color-text-2: #475569;
    --color-accent: #fdc513;
    --color-accent-hover: #eab308;
    --color-dark: #0f172a;
    --color-footer: #1f2937;
    --color-border: #e2e8f0;
    --color-bg: #f6f7f9;
    --radius: 14px;
    --shadow-sm: 0 1px 3px rgba(15,23,42,.08);
    --shadow-md: 0 4px 20px rgba(15,23,42,.10);
    --shadow-lg: 0 12px 40px rgba(15,23,42,.16);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
.site-wrap { min-height: 100vh; display: flex; flex-direction: column; }
main.container { flex: 1; width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { color: var(--color-link); text-decoration: none; }
a:hover { color: var(--color-link-hover); }
img { max-width: 100%; }

/* ============ HLAVIČKA ============ */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid rgba(226,232,240,.8);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-logo img { height: 58px; width: auto; display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,.12)); }
.site-logo .logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.site-logo .logo-title { font-weight: 800; font-size: 1.05rem; color: var(--color-text); letter-spacing: -.01em; }
.site-logo .logo-sub { font-size: .72rem; color: var(--color-text-2); letter-spacing: .08em; text-transform: uppercase; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.site-nav a {
    color: var(--color-text-2); text-decoration: none; padding: 8px 14px;
    font-size: .82rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
    border-radius: 999px; transition: all .18s ease;
}
.site-nav a:hover { color: var(--color-text); background: #f1f5f9; }
.site-nav a.nav-cta { background: var(--color-accent); color: var(--color-dark); }
.site-nav a.nav-cta:hover { background: var(--color-accent-hover); }
.nav-toggle { display: none; background: #fff; border: 1px solid var(--color-border); border-radius: 10px; color: var(--color-text); font-size: 1.2rem; cursor: pointer; padding: 6px 12px; }
.badge { background: var(--color-accent); color: var(--color-dark); border-radius: 999px; padding: 1px 8px; font-size: .72rem; font-weight: 700; }

@media (max-width: 760px) {
    .nav-toggle { display: block; }
    .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 12px; }
    .site-nav.open { display: flex; }
    .site-nav a { text-align: center; }
    .header-inner { flex-wrap: wrap; }
    .site-logo img { height: 46px; }
}

/* ============ APP LAYOUT (přihlášený uživatel, FB-styl) ============ */
.app-topbar .topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 0 20px; gap: 16px; }
.app-topbar .site-logo img { height: 42px; }
.topbar-user { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: .9rem; color: var(--color-text); padding: 5px 10px; border-radius: 999px; transition: background .15s; }
.topbar-user:hover { background: #f1f5f9; color: var(--color-text); }
.topbar-name { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.app-layout { display: flex; flex: 1; align-items: flex-start; max-width: 1200px; margin: 0 auto; width: 100%; gap: 24px; padding: 20px; }
.app-sidebar {
    width: 250px; flex-shrink: 0;
    position: sticky; top: 78px;
    background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
    padding: 14px 10px; box-shadow: var(--shadow-sm);
}
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; font-weight: 700; color: var(--color-text); text-decoration: none; margin-bottom: 6px; }
.sidebar-user:hover { background: #f1f5f9; color: var(--color-text); }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.side-link {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px;
    border-radius: 10px; color: var(--color-text-2); text-decoration: none;
    font-size: .92rem; font-weight: 600; transition: background .15s, color .15s;
}
.side-link:hover { background: #f1f5f9; color: var(--color-text); }
.side-link.active { background: rgba(253,197,19,.18); color: var(--color-text); }
.side-icon { width: 22px; text-align: center; font-size: 1.05rem; }
.side-logout { margin-top: 8px; border-top: 1px solid var(--color-border); border-radius: 0 0 10px 10px; }
.side-section { padding: 14px 12px 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #94a3b8; }
.app-content { flex: 1; min-width: 0; max-width: 860px; margin: 0 auto; padding-bottom: 48px; }

@media (max-width: 900px) {
    .app-layout { padding: 14px; }
    .app-topbar .nav-toggle { display: block; }
    .app-sidebar {
        position: fixed; top: 0; left: 0; bottom: 0; z-index: 200;
        width: 270px; border-radius: 0; padding-top: 70px;
        transform: translateX(-100%); transition: transform .25s ease;
        box-shadow: var(--shadow-lg);
    }
    .app-sidebar.open { transform: translateX(0); }
    .app-content { max-width: 100%; }
    .topbar-name { display: none; }
}

/* ============ HERO ============ */
.hero {
    position: relative; overflow: hidden; margin: 18px 0 30px;
    border-radius: 20px; min-height: 440px;
    box-shadow: var(--shadow-lg);
}
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.03); }
.hero-slide.active img { animation: kenburns 7s ease forwards; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
    background: linear-gradient(to top, rgba(10,15,25,.72) 0%, rgba(10,15,25,.15) 55%, rgba(10,15,25,.10) 100%);
    padding: 36px 40px;
}
.hero-overlay .hero-kicker { color: var(--color-accent); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; margin-bottom: 6px; }
.hero-overlay h1 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.hero-overlay p { color: rgba(255,255,255,.85); max-width: 560px; margin-top: 6px; }
.hero-dots { position: absolute; bottom: 16px; right: 20px; display: flex; gap: 7px; z-index: 2; }
.hero-dots span { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.45); transition: all .3s; }
.hero-dots span.active { background: var(--color-accent); width: 22px; }
@media (max-width: 700px) { .hero { min-height: 260px; border-radius: 14px; } .hero-overlay { padding: 20px; } }

/* ============ OBSAH ============ */
main.container { padding-top: 6px; padding-bottom: 48px; }
h1 { font-size: 1.55rem; margin-bottom: 16px; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 1.2rem; margin: 20px 0 12px; font-weight: 700; letter-spacing: -.01em; }
p { margin-bottom: 10px; }

/* Karty */
.card {
    background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
    padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow-sm);
    transition: box-shadow .2s ease;
}
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Formuláře */
.form-group { margin-bottom: 14px; }
label { display: block; font-weight: 600; margin-bottom: 5px; font-size: .88rem; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=file], select, textarea {
    width: 100%; padding: 10px 14px; border: 1.5px solid var(--color-border); border-radius: 10px;
    font-size: .95rem; background: #fff; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(253,197,19,.25); }
.btn {
    display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px;
    padding: 10px 22px; font-size: .9rem; font-weight: 600; cursor: pointer; text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary { background: var(--color-accent); color: var(--color-dark); }
.btn-primary:hover { background: var(--color-accent-hover); color: var(--color-dark); }
.btn-secondary { background: transparent; color: var(--color-text-2); }
.btn-secondary:hover { background: #f1f5f9; color: var(--color-text); transform: none; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--color-text-2); }
.btn-ghost:hover { background: #f1f5f9; color: var(--color-text); transform: none; box-shadow: none; }
.btn-danger { background: transparent; color: #dc2626; }
.btn-danger:hover { background: #fef2f2; transform: none; box-shadow: none; }
.btn-sm { padding: 6px 14px; font-size: .82rem; }

/* Hlášky */
.alert { padding: 13px 18px; border-radius: 12px; margin: 14px 0; font-size: .92rem; border: 1px solid transparent; }
.alert-error { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.alert-success { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.alert-info { background: #fffbeb; color: #92600a; border-color: #fde68a; }

/* Přihlášení / registrace */
.auth-box { max-width: 440px; margin: 34px auto; box-shadow: var(--shadow-md); }

/* Profil */
.profile-cover { height: 320px; background-size: cover; background-position: center; border-radius: var(--radius) var(--radius) 0 0; margin-bottom: -60px; box-shadow: var(--shadow-sm); }
@media (max-width: 700px) { .profile-cover { height: 200px; } }
.profile-card-under-cover { border-radius: 0 0 var(--radius) var(--radius); padding-top: 0; }
.profile-card-under-cover .profile-head { padding-top: 20px; }
.profile-card-under-cover .avatar { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--color-border); position: relative; }
.profile-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.avatar { border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--color-border); }
.avatar-initial { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--color-dark), #334155); color: var(--color-accent); font-weight: 800; }
.role-tag { display: inline-block; background: #f1f5f9; border-radius: 999px; padding: 3px 12px; font-size: .78rem; font-weight: 600; }
.role-tag.admin { background: var(--color-accent); color: var(--color-dark); }
.role-tag.vybor { background: #dbeafe; color: #1d4ed8; }
.online-status { margin-top: 6px; font-size: .82rem; display: flex; align-items: center; gap: 6px; }
.online-dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; display: inline-block; box-shadow: 0 0 0 2px #dcfce7; }
.online-now { color: #15803d; font-weight: 600; }
.online-last { color: #94a3b8; }

/* Galerie */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.gallery-item { position: relative; border-radius: 12px; overflow: hidden; background: var(--color-border); aspect-ratio: 1; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .gi-info { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(to top, rgba(0,0,0,.65), transparent); color: #fff; font-size: .78rem; padding: 20px 10px 8px; }
.photo-full { max-width: 100%; max-height: 72vh; border-radius: 12px; display: block; margin: 0 auto; box-shadow: var(--shadow-md); }

/* Komentáře / diskuse */
.comment { border-bottom: 1px solid var(--color-border); padding: 14px 0; }
.comment:last-child { border-bottom: 0; }

/* Zeď */
.composer-box {
    background: #f1f5f9; border-radius: 16px; padding: 8px 12px;
    border: 1px solid transparent; transition: border-color .15s, background .15s;
    position: relative;
}
.composer-box:focus-within { background: #fff; border-color: var(--color-border); }
.composer-box textarea { border: 0; background: none; outline: none; box-shadow: none; width: 100%; box-sizing: border-box; resize: vertical; min-height: 52px; padding: 4px 2px 22px; font-family: inherit; font-size: .95rem; }
.composer-title { display: none; border: 0; background: none; outline: none; box-shadow: none; width: 100%; box-sizing: border-box; padding: 4px 2px 8px; font-family: inherit; font-size: 1rem; font-weight: 700; border-bottom: 1px solid rgba(148, 163, 184, .25); margin-bottom: 4px; }
.composer-box:focus-within .composer-title, .composer-box.has-title .composer-title { display: block; }
.composer-text { min-height: 56px; padding: 4px 0 26px; font-size: .95rem; line-height: 1.5; outline: none; word-break: break-word; }
.composer-text:empty::before { content: attr(data-placeholder); color: #94a3b8; pointer-events: none; }
.composer-text ul, .composer-text ol { margin: 4px 0; padding-left: 22px; }
.ed-text { border: 1.5px solid var(--color-border); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.ed-text:focus { border-color: var(--color-accent); }
.post-text ul, .post-text ol, .comment-text ul, .comment-text ol { margin: 6px 0; padding-left: 22px; }
.composer-bar { display: flex; align-items: center; gap: 4px; position: absolute; right: 10px; bottom: 6px; }
.composer-bar .cf-send { color: #a5b4c8; }
.composer-bar .cf-send:hover, .composer-box:focus-within .cf-send { color: var(--color-link); }
.wall-post { scroll-margin-top: 90px; }
.post-head { display: flex; gap: 12px; align-items: flex-start; }
.post-meta { flex: 1; min-width: 0; }
.post-author a { font-weight: 700; color: var(--color-text); }
.section-tag { display: inline-block; background: #eef2ff; color: #4338ca; border-radius: 999px; padding: 2px 10px; font-size: .72rem; font-weight: 600; margin-left: 8px; }
.post-time { font-size: .78rem; color: var(--color-muted); margin-top: 2px; }
.post-actions { display: flex; gap: 6px; flex-shrink: 0; }
.post-title { font-size: 1.05rem; margin: 12px 0 4px; }
.post-text { margin-top: 10px; line-height: 1.65; overflow-wrap: anywhere; }
.post-photos { display: grid; gap: 8px; margin-top: 12px; }
.post-photos img { width: 100%; max-height: 480px; object-fit: cover; border-radius: 12px; display: block; }
.post-photos.photos-multi { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.post-photos.photos-multi img { height: 160px; }
.post-docs { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.post-inline-media { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.post-inline-media img { max-height: 280px; border-radius: 10px; display: block; }
.doc-link { display: inline-flex; gap: 8px; align-items: center; background: #f8fafc; border: 1px solid var(--color-border); border-radius: 10px; padding: 10px 14px; font-size: .88rem; font-weight: 600; }
.doc-link:hover { background: #f1f5f9; }
.post-reactions { display: flex; gap: 8px; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--color-border); flex-wrap: wrap; }
.react-btn { border: 0; background: #f1f5f9; border-radius: 999px; padding: 6px 14px; font-size: .85rem; cursor: pointer; transition: background .15s, transform .1s; }
.react-btn:hover { background: #e2e8f0; transform: translateY(-1px); }
.react-mine { background: var(--color-accent); }
.post-comments-count { margin-left: auto; font-size: .82rem; color: var(--color-muted); }

/* FB-styl reakce */
.post-react-summary { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-bottom: 9px; border-bottom: 1px solid var(--color-border); font-size: .85rem; color: var(--color-muted); }
.post-react-summary .react-form { margin: 0; }
.post-react-summary:empty { margin-top: 0; }
.rs-comments { margin-left: auto; cursor: pointer; }
.rs-comments:hover { text-decoration: underline; }
.post-actions-bar { display: flex; gap: 4px; margin-top: 6px; padding-top: 8px; }
.react-form { flex: none; display: flex; }
.like-wrap { position: relative; flex: none; display: flex; }
.wlike-btn {
    all: unset;
    font-size: .88rem; font-weight: 600; color: var(--color-muted);
    cursor: pointer; font-family: inherit;
}
.wlike-btn.liked { color: var(--color-link); }
.react-picker {
    display: none; position: absolute; bottom: calc(100% + 4px); left: 0; z-index: 50;
    background: #fff; border-radius: 999px; padding: 6px 8px; gap: 2px;
    box-shadow: var(--shadow-lg); border: 1px solid var(--color-border);
}
.like-wrap:hover .react-picker,
.like-wrap.picker-open .react-picker { display: flex; }
.picker-emoji {
    border: 0; background: none; font-size: 1.5rem; padding: 4px 6px; cursor: pointer;
    border-radius: 50%; transition: transform .15s ease; line-height: 1.2;
    -webkit-appearance: none; appearance: none;
}
.picker-emoji:hover { transform: scale(1.25); }
/* Reakce u komentářů */
.like-wrap-cmt { position: relative; display: inline; flex: none; }
.like-wrap-cmt .react-picker { bottom: calc(100% + 2px); left: auto; right: -10px; padding: 4px 6px; }
.like-wrap-cmt .picker-emoji { font-size: 1.15rem; padding: 2px 4px; }
.cmt-like { all: unset; color: var(--color-muted); font-size: .74rem; font-weight: 600; cursor: pointer; font-family: inherit; }
.cmt-like.liked { color: var(--color-link); }
.cmt-like.liked { color: var(--color-link); }
.cmt-react-count { margin-left: 6px; font-size: .74rem; }

/* Menu ⋯ */
.dots-wrap { position: relative; }
.dots-btn {
    border: 0; background: none; cursor: pointer; color: var(--color-muted);
    font-size: 1.3rem; line-height: 1; padding: 2px 10px; border-radius: 50%;
    -webkit-appearance: none; appearance: none; outline: none;
}
.dots-btn:hover { background: #f1f5f9; color: var(--color-text); }
.dots-menu {
    display: none; position: absolute; top: 100%; right: 0; z-index: 60;
    background: #fff; border: 1px solid var(--color-border); border-radius: 10px;
    box-shadow: var(--shadow-lg); min-width: 160px; padding: 6px; flex-direction: column;
}
.dots-wrap.open .dots-menu { display: flex; }
.dots-item {
    display: block; width: 100%; text-align: left; border: 0; background: none;
    padding: 8px 12px; border-radius: 8px; font-size: .85rem; font-weight: 600;
    color: var(--color-text); text-decoration: none; cursor: pointer; font-family: inherit;
    -webkit-appearance: none; appearance: none;
}
.dots-item:hover { background: #f1f5f9; color: var(--color-text); }
.dots-item.dots-danger { color: #dc2626; }
.dots-item.dots-danger:hover { background: #fef2f2; }
.cmt-dots { position: absolute; top: 4px; right: 4px; }
.cmt-dots .dots-btn { font-size: 1.1rem; padding: 2px 8px; }
.cmt-dots .dots-menu { min-width: 140px; }
.post-comments { margin-top: 12px; }
.wall-comment { margin-top: 10px; }
.cmt-head { display: flex; gap: 9px; align-items: center; padding-right: 28px; position: relative; }
.cmt-avatar { flex-shrink: 0; }
.cmt-avatar .avatar { width: 34px; height: 34px; font-size: .82rem; object-fit: cover; }
.cmt-idblock { flex: 1; min-width: 0; }
.cmt-date { font-size: .74rem; color: var(--color-muted); margin-top: 1px; }
.cmt-col { min-width: 0; background: #f8fafc; border-radius: 12px; padding: 9px 13px; }
.wall-comment.cmt-hidden { display: none; }
.post-comments.cmt-expanded .wall-comment.cmt-hidden { display: block; }
.cmt-expand-wrap { margin-top: 8px; }
.cmt-expand { font-size: .84rem; font-weight: 600; color: var(--color-muted); cursor: pointer; }
.cmt-expand:hover { text-decoration: underline; }
.comment-author { font-weight: 700; font-size: .85rem; }
.comment-author a { font-weight: 700; font-size: .85rem; color: var(--color-text); }
.comment-text { font-size: .9rem; margin-top: 6px; line-height: 1.55; overflow-wrap: anywhere; }
.comment-meta { font-size: .74rem; color: var(--color-muted); margin-top: 4px; padding-left: 2px; }
.comment-attachments { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.comment-photo { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; display: block; }
.comment-meta a { color: var(--color-muted); }
.link-btn { border: 0; background: none; color: var(--color-muted); font-size: .74rem; cursor: pointer; text-decoration: underline; padding: 0; }
.comment-form {
    display: flex; gap: 2px; align-items: center; margin-top: 12px;
    background: #f1f5f9; border-radius: 999px; padding: 4px 6px 4px 14px;
    border: 1px solid transparent; transition: border-color .15s, background .15s;
}
.comment-form:focus-within { background: #fff; border-color: var(--color-border); }
.comment-form input[type=text] { flex: 1; border: 0; background: none; padding: 8px 0; outline: none; box-shadow: none; font-size: .9rem; }
.cf-icon { display: inline-flex; cursor: pointer; font-size: 1.05rem; padding: 4px 6px; line-height: 1; opacity: .65; transition: opacity .15s; }
.cf-icon:hover { opacity: 1; }
button.cf-icon { background: none; border: none; font-family: inherit; }
.cf-fmt { font-size: .95rem; min-width: 24px; justify-content: center; }
.cf-send { border: 0; background: none; padding: 6px; cursor: pointer; color: var(--color-muted); outline: none; line-height: 0; -webkit-appearance: none; appearance: none; }
.cf-send svg { width: 19px; height: 19px; display: block; transform: rotate(-10deg); }
.cf-send:hover, .comment-form:focus-within .cf-send { color: var(--color-link); }
.cf-hint { font-size: .74rem; color: var(--color-muted); margin: 3px 16px 0; min-height: 0; }
.cf-hint:empty { display: none; }
.edited-link { font-style: italic; }
.wall-pager { display: flex; gap: 10px; justify-content: center; }
.wall-pager a, .wall-pager strong { padding: 4px 10px; border-radius: 8px; }
.wall-pager strong { background: var(--color-accent); }
/* Lightbox */
.lb-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(10, 15, 25, .94);
    display: flex; align-items: center; justify-content: center;
}
.lb-overlay[hidden] { display: none; }
.lb-stage { max-width: 92vw; max-height: 88vh; display: flex; align-items: center; justify-content: center; }
.lb-img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 6px; box-shadow: 0 8px 60px rgba(0,0,0,.6); }
.lb-close {
    position: absolute; top: 16px; right: 20px; z-index: 2;
    background: rgba(255,255,255,.12); border: 0; color: #fff; font-size: 1.8rem; line-height: 1;
    width: 46px; height: 46px; border-radius: 50%; cursor: pointer; transition: background .15s;
}
.lb-close:hover { background: rgba(255,255,255,.25); }
.lb-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    background: rgba(255,255,255,.12); border: 0; color: #fff; font-size: 2rem; line-height: 1;
    width: 52px; height: 52px; border-radius: 50%; cursor: pointer; transition: background .15s;
}
.lb-arrow:hover { background: rgba(255,255,255,.25); }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.75); font-size: .85rem; font-weight: 600; }

/* Výbor */
.vyb-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
.vyb-row:last-child { border-bottom: 0; }
.vyb-avatar { flex-shrink: 0; }
.vyb-info { flex: 1; min-width: 0; }
.vyb-funkce { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--color-link); }
.vyb-jmeno { font-size: 1.02rem; font-weight: 600; margin-top: 1px; }
.vyb-kontakt { font-size: .84rem; margin-top: 2px; }
.vyb-del { all: unset; cursor: pointer; color: var(--color-muted); font-size: 1rem; padding: 6px; }
.vyb-del:hover { color: #dc2626; }
.vyb-form .form-group { margin-bottom: 10px; }

/* Stránka Dokumenty */
.docs-search { display: flex; gap: 8px; }
.docs-search input { flex: 1; }
.docs-list { margin-top: 14px; }
.docs-upload { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.docs-upload input[type=file] { flex: 1; min-width: 180px; font-size: .85rem; }
.docs-upload-title { flex: 1; min-width: 140px; }
.docs-upload select { font-size: .85rem; }
.docs-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 16px; }
.docs-col-title { font-size: .95rem; margin: 0 0 6px; padding-bottom: 8px; border-bottom: 2px solid var(--color-border); }
@media (max-width: 700px) { .docs-cols { grid-template-columns: 1fr; } }
.doc-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--color-border); }
.doc-row:last-child { border-bottom: 0; }
.doc-icon { font-size: 1.4rem; }
.doc-info { flex: 1; min-width: 0; }
.doc-name { font-weight: 600; font-size: .92rem; word-break: break-all; }
.doc-meta { font-size: .78rem; color: var(--color-muted); margin-top: 2px; }
.doc-meta a { color: var(--color-muted); }
.doc-dl { font-size: 1.15rem; text-decoration: none; opacity: .65; padding: 4px; }
.doc-dl:hover { opacity: 1; }

/* Náhled příloh v composeru */
.composer-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.composer-preview:empty { margin-top: 0; }
.cp-item { position: relative; }
.cp-photo img { width: 88px; height: 88px; object-fit: cover; border-radius: 8px; display: block; }
.cp-doc { background: #f1f5f9; border-radius: 8px; padding: 9px 28px 9px 11px; font-size: .8rem; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-x { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: #334155; color: #fff; border: 0; cursor: pointer; font-size: .85rem; line-height: 1; padding: 0; }

/* Modální okno inline editace */
.ed-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .55); z-index: 1500; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ed-overlay[hidden] { display: none; }
.ed-box { background: #fff; border-radius: 14px; width: min(560px, 100%); padding: 16px 18px; box-shadow: 0 20px 50px rgba(0,0,0,.28); }
.ed-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 1.05rem; }
.ed-close { all: unset; cursor: pointer; font-size: 1.6rem; color: var(--color-muted); line-height: 1; padding: 0 6px; }
.ed-close:hover { color: var(--color-text); }
.ed-box textarea { width: 100%; box-sizing: border-box; resize: vertical; }
.ed-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
@media (max-width: 640px) {
    .lb-arrow { width: 42px; height: 42px; font-size: 1.5rem; }
    .lb-prev { left: 8px; } .lb-next { right: 8px; }
}

.history-item { border-left: 3px solid var(--color-border); padding: 10px 0 10px 16px; margin-top: 14px; }
.history-meta { font-size: .8rem; color: var(--color-muted); margin-bottom: 5px; }
.history-text { font-size: .9rem; line-height: 1.6; background: #f8fafc; border-radius: 10px; padding: 12px 14px; }
@media (max-width: 640px) { .post-photos.photos-multi { grid-template-columns: repeat(2, 1fr); } .post-photos.photos-multi img { height: 120px; } }
.comment-head { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.comment-meta { font-size: .78rem; color: #94a3b8; }
.topic-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--color-border); gap: 10px; flex-wrap: wrap; transition: background .15s; }
.topic-row:hover { background: #f8fafc; }
.topic-row:last-child { border-bottom: 0; }
.topic-title { font-weight: 600; }
.topic-title a { color: var(--color-text); }
.topic-title a:hover { color: var(--color-link); }

/* Tabulka (admin) */
table.tbl { width: 100%; border-collapse: collapse; background: #fff; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--color-border); text-align: left; font-size: .9rem; vertical-align: middle; }
.tbl th { background: #f8fafc; font-weight: 700; color: var(--color-text-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.tbl tr:hover td { background: #f8fafc; }

/* ============ PATIČKA ============ */
.site-footer { background: var(--color-footer); color: #e5e7eb; margin-top: 30px; }
.footer-widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 48px 0; }
.footer-widgets h4 { color: var(--color-accent); font-size: .95rem; margin-bottom: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.footer-widgets a { color: #e5e7eb; }
.footer-widgets a:hover { color: var(--color-accent); }
.footer-widgets p { margin-bottom: 6px; font-size: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: .82rem; text-align: center; color: #9ca3af; }
@media (max-width: 760px) { .footer-widgets { grid-template-columns: 1fr; padding: 32px 0; gap: 22px; } }

.text-muted { color: #94a3b8; font-size: .85rem; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mb-2 { margin-bottom: 16px; }
.flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.like-btn { background: #fff; border: 1.5px solid var(--color-border); border-radius: 999px; padding: 6px 16px; cursor: pointer; font-size: .9rem; color: var(--color-text); transition: all .15s; }
.like-btn:hover { border-color: #ef4444; }
.like-btn.liked { background: #fef2f2; border-color: #ef4444; color: #ef4444; }

/* Fade-in animace karet */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.card, .hero { animation: fadeUp .45s ease; }

/* Profil – avatar menu + editor */
.av-wrap { position: relative; }
.av-btn { all: unset; cursor: pointer; display: block; border-radius: 50%; }
.av-btn:focus-visible { outline: 2px solid var(--primary,#2563eb); }
.av-menu { position: absolute; top: 100%; left: 0; margin-top: 6px; background: #fff; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.18); padding: 6px; z-index: 500; min-width: 170px; }
.av-menu .dots-item { display: block; width: 100%; text-align: left; padding: 8px 12px; border: 0; background: none; border-radius: 8px; cursor: pointer; font-size: 14px; }
.av-menu .dots-item:hover { background: #f3f4f6; }
#avCanvas { display: block; margin: 0 auto; border-radius: 12px; cursor: grab; touch-action: none; max-width: 100%; }
.av-zoom { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.av-zoom input[type=range] { flex: 1; }
.av-view-wrap { position: relative; max-width: 90vw; }
.av-view-wrap img { max-width: 90vw; max-height: 85vh; border-radius: 12px; display: block; }
.av-view-close { position: absolute; top: -14px; right: -14px; background: #fff; border-radius: 50%; width: 32px; height: 32px; border: 0; font-size: 18px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25); }

/* Přidání fotek – drop zóna a náhledy */
.ph-drop { border: 2px dashed var(--color-border); border-radius: 12px; padding: 14px; text-align: center; }
.ph-drop-btn { all: unset; cursor: pointer; color: var(--primary,#2563eb); font-weight: 600; padding: 8px 14px; border-radius: 8px; }
.ph-drop-btn:hover { background: #eff6ff; }
.ph-preview { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 10px; }
.ph-preview img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; }
.ph-preview span { align-self: center; color: var(--color-muted); font-size: .85rem; }

/* Odebrání fotky z alba */
.gi-remove { position: absolute; top: 6px; right: 6px; }
.gi-remove button { width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; font-size: 13px; line-height: 1; }
.gi-remove button:hover { background: rgba(220,38,38,.9); }

/* Ikona nastavení profilu */
.set-link { font-size: 1.4rem; text-decoration: none; opacity: .65; padding: 4px; }
.set-link:hover { opacity: 1; }

/* Inline přejmenování alba */
.alb-name-edit { cursor: text; border-bottom: 1px dashed transparent; }
.alb-name-edit:hover { border-bottom-color: var(--color-muted); }
.alb-name-input { font-weight: 700; font-size: 1rem; border: 0; border-bottom: 2px solid var(--primary,#2563eb); background: transparent; padding: 0 2px; outline: none; max-width: 240px; }

/* Čisté ikonkové tlačítko – bez pozadí i rámečku */
.ibtn { all: unset; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 6px; border-radius: 8px; font-size: 1rem; opacity: .7; }
.ibtn:hover { opacity: 1; background: #f1f5f9; }
.ibtn.danger:hover { background: #fef2f2; }

/* Liniové SVG ikony */
.icon { display: inline-block; vertical-align: -3px; flex-shrink: 0; }
.side-icon { display: inline-flex; align-items: center; justify-content: center; }

/* Přepínač viditelnosti alba */
.vis-toggle { display: inline-flex; background: #f1f5f9; border-radius: 999px; padding: 3px; gap: 2px; }
.vis-opt { all: unset; display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--color-muted); cursor: pointer; }
.vis-opt:hover { color: var(--color-text); }
.vis-opt.on { background: #fff; color: var(--color-text); box-shadow: 0 1px 4px rgba(0,0,0,.12); cursor: default; }

.vis-state { font-size: .8rem; }

/* Viditelnost alba – stav + akce */
.vis-cur { display: inline-flex; align-items: center; gap: 5px; font-size: .85rem; font-weight: 600; }
.vis-switch { all: unset; cursor: pointer; font-size: .82rem; color: var(--primary,#2563eb); padding: 4px 10px; border-radius: 8px; }
.vis-switch:hover { background: #eff6ff; text-decoration: underline; }

.vis-switch { border: 1px solid var(--color-border) !important; background: #fff !important; display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.vis-switch:hover { border-color: var(--primary,#2563eb) !important; }

/* Číslo chaty přes avatar (stránka Členové) */
.av-chata { position: relative; display: inline-block; }
.av-chata-badge {
    position: absolute; right: -4px; bottom: -4px;
    background: #1c1e21; color: #fff;
    font-size: .65rem; font-weight: 700; line-height: 1;
    padding: 2px 5px; border-radius: 8px;
    border: 2px solid #fff; pointer-events: none;
}

/* Karty členů */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px; margin-top: 14px;
}
.member-card {
    display: flex; flex-direction: column; align-items: center;
    gap: 6px; padding: 18px 10px 14px;
    border: 1px solid var(--color-border, #e4e6eb); border-radius: 12px;
    background: #fff; text-decoration: none; color: inherit;
    transition: box-shadow .15s, transform .15s;
}
.member-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.1); transform: translateY(-2px); }
.member-name { font-weight: 600; font-size: .95rem; text-align: center; line-height: 1.2; }
.member-chata { font-size: .78rem; color: var(--color-muted, #65676b); }
.member-card .av-chata-badge { right: -2px; bottom: -2px; font-size: .7rem; }

/* Hledání členů */
.mb-search {
    display: flex; align-items: center; gap: 7px;
    background: #f0f2f5; border-radius: 999px;
    padding: 7px 14px; color: var(--color-muted, #65676b);
    min-width: 220px;
}
.mb-search input {
    border: 0; background: transparent; outline: none;
    font-size: .92rem; flex: 1; color: inherit;
}

/* Šipky mezi fotkami v detailu */
.photo-nav { position: relative; }
.photo-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,.92); color: #1e293b;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem; line-height: 1; text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,.25);
    opacity: .85; transition: opacity .15s; z-index: 5;
}
.photo-arrow:hover { opacity: 1; }
.photo-arrow-prev { left: 14px; }
.photo-arrow-next { right: 14px; }

/* Sezónní hero – plynulé prolínání stejné kompozice (vypadá jako změna období) */
.hero-season .hero-slide { transition: opacity 3.2s ease; }
.hero-season .hero-slide img { animation: none !important; transform: none !important; }

/* cache bump 1792358457 */

/* CTA v hero + poznámka pod hero */
.hero-cta { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.btn-hero {
    display: inline-block; padding: 10px 22px; border-radius: 999px;
    font-size: .9rem; font-weight: 700; text-decoration: none;
    color: #fff; background: rgba(255,255,255,.16);
    border: 1.5px solid rgba(255,255,255,.65);
    backdrop-filter: blur(6px); transition: background .15s;
}
.btn-hero:hover { background: rgba(255,255,255,.28); color: #fff; }
.hero-note { text-align: center; color: var(--color-muted, #65676b); font-size: .88rem; margin: 18px auto 30px; max-width: 520px; }

/* Přihlašovací karta v hero (desktop) */
.hero-left { max-width: 560px; }
.hero-login { display: none; }
@media (min-width: 901px) {
    .hero-overlay { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; }
    .hero-login {
        display: block; flex: none; width: 300px;
        background: rgba(255,255,255,.14);
        border: 1px solid rgba(255,255,255,.3);
        border-radius: 16px; padding: 20px;
        backdrop-filter: blur(14px) saturate(1.3);
        -webkit-backdrop-filter: blur(14px) saturate(1.3);
        box-shadow: 0 10px 40px rgba(0,0,0,.35);
        align-self: center;
    }
    .hero-login input {
        width: 100%; box-sizing: border-box; margin-bottom: 10px;
        padding: 11px 14px; border-radius: 10px;
        border: 1px solid rgba(255,255,255,.4);
        background: rgba(255,255,255,.92); color: #1e293b;
        font-size: .9rem; outline: none;
    }
    .hero-login input:focus { border-color: var(--color-accent); }
    .hero-login-reg {
        display: block; margin-top: 10px; text-align: center;
        color: rgba(255,255,255,.9); font-size: .8rem; text-decoration: none;
    }
    .hero-login-reg:hover { text-decoration: underline; color: #fff; }
}

/* Mini patička (úvodní stránka) */
.mini-footer {
    text-align: center; color: rgba(255,255,255,.6);
    font-size: .72rem; padding: 11px 20px;
    background: var(--color-footer, #1f2937);
}

/* Sticky copyright – vždy na spodním okraji */
.site-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.site-wrap > .mini-footer { margin-top: 0; }

/* Přilepit patičku na spodek i když obsah neroste */
.site-wrap > .site-footer,
.site-wrap > .mini-footer { margin-top: auto; }
.site-wrap > .site-footer + .mini-footer { margin-top: 0; }

/* Třetí řádek loga */
.logo-sub3 { font-size: .62rem; color: var(--color-muted, #94a3b8); letter-spacing: .06em; }

/* Mobilní topbar: avatar vlevo, logo uprostřed, hamburger vpravo */
@media (max-width: 900px) {
    .app-topbar .topbar-inner { display: flex; align-items: center; }
    .app-topbar .topbar-user { order: 1; padding: 4px; }
    .app-topbar .site-logo { order: 2; flex: 1; justify-content: center; }
    .app-topbar .site-logo img { height: 38px; }
    .app-topbar .site-logo .logo-title { font-size: .85rem; }
    .app-topbar .site-logo .logo-sub { font-size: .6rem; }
    .app-topbar .site-logo .logo-sub3 { font-size: .52rem; }
    .app-topbar .nav-toggle { order: 3; }
}

/* ── Podmínky registrace ── */
.auth-box-wide{max-width:620px}
.reg-terms{background:var(--bg,#f9fafb);border:1px solid var(--border,#e5e7eb);border-radius:10px;padding:14px 18px;margin-top:26px}
.reg-terms h3{margin:0 0 8px;font-size:.95rem}
.reg-terms ul{margin:0;padding-left:20px;font-size:.82rem;color:var(--muted,#6b7280);line-height:1.55}
.reg-terms li{margin-bottom:4px}
.reg-terms a{color:var(--blue,#2563eb);text-decoration:underline}
