/* 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; }
html, body { overflow-x: hidden; overflow-x: clip; }
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: 48px; 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; }
.badge-ok { background: #dcfce7; color: #15803d; }
.badge-fail { background: #fee2e2; color: #b91c1c; }

@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: 40px; }
}

/* ============ 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: 36px; }
.topbar-now { display: flex; align-items: center; gap: 7px; margin-left: auto; font-size: .8rem; color: var(--color-text-2); white-space: nowrap; }
.topbar-now .tn-sep { color: #cbd5e1; }
.topbar-now .tn-svatek, .topbar-now .tn-temp { font-weight: 700; color: var(--color-text); }
.topbar-now { position: relative; }
.topbar-now .tn-temp { background: none; border: none; padding: 0; font: inherit; font-weight: 700; cursor: pointer; }
.topbar-now .tn-temp:hover { color: #1d4ed8; }
.tn-pop { position: absolute; right: 0; top: calc(100% + 10px); width: 295px; background: #fff; border: 1px solid var(--color-border); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.18); padding: 12px 14px; z-index: 60; text-align: left; color: var(--color-text); }
.tn-pop-title { font-size: .75rem; font-weight: 700; color: var(--color-text-2); margin-bottom: 6px; }
.tn-pop-body { font-size: .85rem; }
.tn-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px solid #f1f5f9; }
.tn-row:first-child { border-top: none; }
.tn-day { width: 82px; flex: none; font-weight: 600; }
.tn-ico { width: 26px; text-align: center; font-size: 1.05rem; }
.tn-t { font-weight: 700; }
.tn-prec { margin-left: auto; color: #64748b; font-size: .75rem; }
@media (max-width: 900px) { .topbar-now { display: none; } }
.side-weather { margin-top: 18px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 12px 14px; font-size: .8rem; }
.sw-head { font-weight: 700; font-size: .72rem; color: var(--color-text-2); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.sw-now { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.sw-now-ico { font-size: 1.5rem; }
.sw-now-t { font-size: 1.35rem; font-weight: 800; color: var(--color-text); }
.sw-row { display: flex; align-items: center; gap: 6px; padding: 3px 0; color: var(--color-text-2); }
.sw-day { width: 64px; flex: none; font-weight: 600; }
.sw-ico { width: 20px; text-align: center; }
.sw-t { font-weight: 700; color: var(--color-text); }
.sw-prec { margin-left: auto; font-size: .68rem; color: #64748b; }
@media (max-width: 900px) { .side-col > .side-weather { display: none; } }
.app-sidebar > .side-weather { margin: 10px -10px -14px; border: none; border-top: 1px solid var(--color-border); border-radius: 0; box-shadow: none; }
.side-online { margin-top: 18px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 12px 14px; font-size: .8rem; }
.son-head { display: block; font-weight: 700; font-size: .72rem; color: var(--color-text-2); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }
.son-head:hover { color: var(--color-text); }
.son-user { display: flex; align-items: center; gap: 8px; padding: 4px 6px; margin: 0 -6px; border-radius: 8px; text-decoration: none; color: var(--color-text); font-weight: 600; font-size: .82rem; }
.son-user:hover { background: #f1f5f9; }
.son-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.son-user .online-dot { width: 8px; height: 8px; margin-left: auto; flex-shrink: 0; }
.son-more { font-size: .72rem; color: #64748b; padding: 4px 6px 0; }
@media (max-width: 900px) { .side-col > .side-online { display: none; } }
.app-sidebar > .side-online { margin: 10px -10px 0; border: none; border-top: 1px solid var(--color-border); border-radius: 0; box-shadow: none; }
.side-ads { margin-top: 18px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 12px 14px; font-size: .8rem; }
.sad-head { display: block; font-weight: 700; font-size: .72rem; color: var(--color-text-2); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }
.sad-head:hover { color: var(--color-text); }
.sad-ad { display: flex; align-items: center; gap: 9px; padding: 5px 6px; margin: 0 -6px; border-radius: 8px; text-decoration: none; color: var(--color-text); }
.sad-ad:hover { background: #f1f5f9; }
.sad-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.sad-thumb-empty { display: inline-flex; align-items: center; justify-content: center; background: #eef2f7; color: #94a3b8; }
.sad-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sad-title { font-weight: 600; font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sad-price { font-size: .74rem; color: #64748b; font-weight: 700; }
.sad-empty { color: #94a3b8; font-size: .78rem; padding: 2px 0 4px; }
.sad-more { display: inline-block; margin-top: 6px; font-size: .74rem; font-weight: 600; color: #2563eb; text-decoration: none; }
.sad-more:hover { text-decoration: underline; }
@media (max-width: 900px) { .side-ads { display: none; } }
.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; }
.side-col { width: 250px; flex-shrink: 0; position: sticky; top: 78px; max-height: calc(100vh - 98px); overflow-y: auto; }
.app-sidebar {
    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: 6px; margin-bottom: 6px; background: #eef2f7; border-radius: 12px; padding-right: 4px; }
.sidebar-user-main { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; font-weight: 700; color: var(--color-text); text-decoration: none; flex: 1; min-width: 0; }
.sidebar-user-main:hover { background: #e2e8f0; color: var(--color-text); }
.sidebar-user-set { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; color: #64748b; flex-shrink: 0; }
.sidebar-user-set:hover { background: #e2e8f0; 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-admin { 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; }
.svc-banner { background: #f59e0b; color: #431407; text-align: center; font-size: 13px; font-weight: 600; padding: 7px 14px; }
.svc-banner a { color: inherit; text-decoration: underline; }
.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; }
    .side-col { display: contents; }
    .app-sidebar {
        position: fixed; top: 0; left: 0; bottom: 0; z-index: 200;
        width: 270px; border-radius: 0; padding-top: 16px;
        transform: translateX(-100%); transition: transform .25s ease;
        box-shadow: var(--shadow-lg);
        overflow-y: auto; -webkit-overflow-scrolling: touch;
    }
    .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=tel], 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; }
.btn-success { background: #16a34a; color: #fff; }
.btn-success:hover { background: #15803d; color: #fff; }
.btn-success:disabled { background: #86efac; }

/* Zápis ze schůze – editor */
.zapis-toolbar { display: flex; gap: 4px; padding: 6px 8px; background: #f1f5f9; border: 1px solid var(--color-border); border-bottom: 0; border-radius: 10px 10px 0 0; }
.zapis-toolbar .cf-icon { opacity: .8; border-radius: 6px; }
.zapis-toolbar .cf-icon:hover { background: #e2e8f0; opacity: 1; }
.zapis-editor {
    min-height: 320px; max-height: 55vh; overflow-y: auto; background: #fff;
    border: 1px solid var(--color-border); border-radius: 0 0 10px 10px;
    padding: 16px 18px; font-size: .95rem; line-height: 1.55; outline: none;
}
.zapis-editor:focus { border-color: var(--color-link); }
.zapis-editor ul { padding-left: 22px; }

/* 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; }
.role-tag-sep { margin: 0 6px; opacity: .55; }
.role-tag-part { white-space: nowrap; }
.profile-info { min-width: 0; }
@media (max-width: 600px) {
    .profile-head { flex-wrap: nowrap; gap: 14px; }
    .profile-head > :not(.profile-info) { flex-shrink: 0; }
    .profile-head .avatar { width: 76px !important; height: 76px !important; }
    .profile-info { flex: 1; }
    .profile-info h1 { font-size: 1.25rem; line-height: 1.25; overflow-wrap: anywhere; }
    .set-link-corner ~ .profile-head .profile-info h1 { padding-right: 34px; }
    .profile-info .role-tag { font-size: .74rem; padding: 3px 10px; border-radius: 12px; }
}
.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; white-space: nowrap; }

/* 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; }
.wall-composer .composer-box:not(.is-active) .cf-fmt { display: none; }
.wall-composer .composer-box.is-active .composer-bar { left: 10px; }
.wall-composer .composer-bar .cf-fmt + label.cf-icon { margin-left: auto; }
.wall-composer .composer-bar .cf-send svg { transform: translateY(-4px) rotate(-10deg); }
.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: flex; 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);
    visibility: hidden; opacity: 0; pointer-events: none;
    transition: opacity .15s ease, visibility 0s linear .15s;
}
@media (hover: hover) {
    .react-picker { transition: opacity .15s ease 2s, visibility 0s linear 2.15s; }
}
/* neviditelný "můstek" – mezera mezi tlačítkem a nabídkou nepřeruší hover */
.react-picker::after { content: ''; position: absolute; top: 100%; left: -6px; right: -6px; height: 12px; }
.like-wrap:hover .react-picker,
.like-wrap.picker-open .react-picker {
    visibility: visible; opacity: 1; pointer-events: auto;
    transition: opacity .12s ease, visibility 0s;
}
.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; }
/* Kdo dal reakci – popover se seznamem uživatelů (FB styl) */
.react-who { position: relative; display: inline-flex; cursor: default; }
.react-who-pop {
    display: none; position: absolute; top: calc(100% + 6px); right: 0; z-index: 60;
    min-width: 190px; max-width: min(280px, calc(100vw - 24px)); max-height: 250px; overflow-y: auto;
    background: #fff; border: 1px solid var(--color-border); border-radius: 10px;
    box-shadow: var(--shadow-lg); padding: 4px; text-align: left;
}
.comment-meta .react-who .react-who-pop { right: auto; left: -4px; }
@media (hover: hover) { .react-who:hover .react-who-pop:not(:empty) { display: block; } }
.react-who.who-open .react-who-pop { display: block; }
.rwho-row {
    display: flex; align-items: center; gap: 8px; padding: 5px 8px;
    border-radius: 7px; color: var(--color-text, #1e293b); text-decoration: none;
    font-size: .82rem; font-weight: 500; white-space: nowrap;
}
.rwho-row:hover { background: #f1f5f9; }
.rwho-e { font-size: 1rem; line-height: 1; }

/* 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;
    -webkit-tap-highlight-color: transparent;
}
.dots-btn:hover, .dots-btn:focus, .dots-btn:active, .dots-wrap.open .dots-btn { background: none; 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 { padding: 12px 0; border-bottom: 1px solid var(--color-border); }
.vyb-main { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.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-muted); }
.vyb-jmeno { font-size: 1.02rem; font-weight: 600; margin-top: 1px; }
.vyb-jmeno a { color: inherit; }
.vyb-jmeno a:hover { color: inherit; text-decoration: underline; }
.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; flex-direction: column; gap: 8px; margin-top: 12px; }
.docs-upload-row { display: flex; gap: 8px; align-items: center; }
.docs-upload input[type=file] { flex: 1; min-width: 0; font-size: .85rem; }
.docs-upload-title { flex: 1; min-width: 0; }
.docs-upload select { font-size: .85rem; }
@media (max-width: 700px) { .docs-upload-row { flex-wrap: wrap; } }
.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; } }
.prof-post { display: flex; align-items: baseline; gap: 10px; padding: 8px 6px; border-radius: 8px; text-decoration: none; color: var(--color-text); border-bottom: 1px solid #f1f5f9; }
.prof-post:last-child { border-bottom: none; }
.prof-post:hover { background: #f8fafc; }
.prof-post-date { flex-shrink: 0; font-size: .78rem; color: var(--color-muted); min-width: 82px; }
.prof-post-text { flex: 1; min-width: 0; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prof-post-meta { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--color-muted); }
.prof-post-meta svg { vertical-align: -2px; }
@media (max-width: 600px) {
    .prof-post { flex-wrap: wrap; gap: 2px 10px; }
    .prof-post-text { flex-basis: 100%; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
.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-corner { position: absolute; top: 12px; right: 12px; z-index: 5; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1px solid var(--color-border); color: #475569; text-decoration: none; box-shadow: var(--shadow-sm); transition: background .15s, color .15s; }
.set-link-corner:hover { background: #f1f5f9; color: var(--color-text); }

/* 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(2, 1fr);
    gap: 10px; margin-top: 14px;
}
@media (max-width: 700px) {
    .members-grid { grid-template-columns: 1fr; }
}
.member-card {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; padding: 14px 16px;
    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); }
.mc-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mc-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mc-status { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; }
.mc-status .online-dot { width: 8px; height: 8px; box-shadow: 0 0 0 2px #dcfce7; }
.mc-stats { display: flex; flex-direction: column; gap: 3px; flex: none; }
.mc-stat { display: flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--color-muted); white-space: nowrap; }
.mc-stat svg { color: #94a3b8; flex: none; }
.mc-stat b { color: var(--color-text); font-weight: 700; min-width: 14px; text-align: right; }
.member-name { font-weight: 600; font-size: .95rem; line-height: 1.2; }
.member-chata { font-size: .74rem; 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);
}
.mini-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.mini-footer a:hover { text-decoration: underline; }

/* 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: 30px; }
    .app-topbar .site-logo .logo-title { font-size: .78rem; }
    .app-topbar .site-logo .logo-sub { font-size: .55rem; }
    .app-topbar .site-logo .logo-sub3 { font-size: .48rem; }
    .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}

/* Záložky na profilu */
.prof-tabs { display: flex; gap: 4px; margin: 2px 0 14px; border-bottom: 2px solid var(--color-border); overflow-x: auto; }
.prof-tab { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; font-size: .9rem; font-weight: 600; color: var(--color-muted); border-bottom: 2px solid transparent; margin-bottom: -2px; border-radius: 8px 8px 0 0; white-space: nowrap; }
.prof-tab:hover { color: var(--color-text); background: #f1f5f9; }
.prof-tab.active { color: var(--color-text); border-bottom-color: var(--color-accent); }
@media (max-width: 600px) {
    .prof-tabs { gap: 2px; overflow: hidden; touch-action: pan-y; }
    .prof-tab { flex: 1 1 auto; min-width: 0; justify-content: center; gap: 4px; padding: 8px 4px; font-size: .8rem; }
    .prof-tab-long { display: none; }
}
@media (max-width: 359px) { .prof-tab .icon { display: none; } }

/* Inzeráty */
.kat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.kat-chip { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; background: #f1f5f9; color: var(--color-muted); font-size: .8rem; font-weight: 600; }
.kat-chip:hover { background: #e2e8f0; color: var(--color-text); }
.kat-chip.active { background: var(--color-accent); color: var(--color-dark); }
.kat-cnt { font-size: .7rem; font-weight: 700; opacity: .65; margin-left: 2px; }
@media (max-width: 640px) {
    .kat-chips { flex-wrap: nowrap; gap: 3px; margin-left: -12px; margin-right: -12px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .kat-chips::-webkit-scrollbar { display: none; }
    .kat-chip { flex: 0 0 auto; white-space: nowrap; padding: 4px 6px; font-size: .68rem; }
    .kat-cnt { font-size: .6rem; margin-left: 1px; }
}
.ads-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-top: 14px; }
.ad-card { display: flex; flex-direction: column; border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; background: #fff; transition: box-shadow .2s, transform .2s; }
.ad-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.ad-thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #eef2f7; }
.ad-thumb-empty { display: flex; align-items: center; justify-content: center; color: #b6bfca; }
.ad-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; }
.ad-title { font-weight: 600; font-size: .95rem; color: var(--color-text); }
.ad-price { font-weight: 700; font-size: .95rem; color: var(--color-text); }
.ad-meta { font-size: .76rem; color: var(--color-muted); }
/* Inzerát – detail ve dvou sloupcích */
.ad-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 28px; align-items: start; }
.ad-gallery { position: relative; }
.ad-main-link { display: block; border-radius: 12px; overflow: hidden; }
.ad-main-link img { width: 100%; max-height: 460px; object-fit: cover; display: block; }
.ad-thumbs { display: flex; gap: 8px; margin-top: 8px; }
.ad-thumb-link { width: 72px; height: 56px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; flex: none; transition: border-color .15s; }
.ad-thumb-link:hover { border-color: #cbd5e1; }
.ad-thumb-link.active { border-color: var(--color-accent); }
.ad-thumb-link img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) {
    .ad-detail-grid { grid-template-columns: 1fr; }
    .ad-right { order: -1; }
}
.ad-detail-title { margin: 12px 0 4px; font-size: 1.35rem; }
.ad-detail-price { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.ad-contact { margin-top: 18px; padding: 14px 16px; background: #f8fafc; border: 1px solid var(--color-border); border-radius: 12px; }
.ad-contact-item { display: inline-flex; align-items: center; gap: 8px; margin: 4px 18px 4px 0; font-size: .92rem; }
.ad-price-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ad-price-row input[type=text] { max-width: 160px; }
.ad-domluvou { display: flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--color-muted); }
.ad-photos-edit { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.ad-ph-edit { width: 92px; text-align: center; font-size: .75rem; color: var(--color-muted); }
.ad-ph-edit img { width: 92px; height: 92px; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 4px; }
.cf-hint-err { color: var(--color-danger, #dc2626); }

/* Zájem o inzerát – formulář a zprávy */
.ad-interest { margin-top: 16px; padding: 14px 16px; background: #f8fafc; border: 1px solid var(--color-border); border-radius: 12px; }
.ad-msgs { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--color-border); }
.ad-msg { padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.ad-msg:last-child { border-bottom: 0; }
.ad-msg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ad-msg-text { font-size: .92rem; line-height: 1.5; }
.ad-msg-contact { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 14px; font-size: .8rem; }
.ad-msg-contact a { display: inline-flex; align-items: center; gap: 5px; color: var(--color-muted); }
.ad-msg-contact a:hover { color: var(--color-text); }
.ad-msg-badge { display: inline-flex; align-items: center; gap: 3px; }
.ad-msg-badge.new { color: var(--color-danger, #dc2626); font-weight: 700; }
.prof-tab-n { font-size: .72rem; font-weight: 600; color: #94a3b8; }
.prof-tab.active .prof-tab-n { color: #94a3b8; }
.side-count { margin-left: auto; color: var(--color-muted); font-size: .78rem; font-weight: 500; }

/* Úvodní fotka profilu – ikona fotoaparátu */
.cover-wrap { position: relative; }
.cover-av { position: absolute; top: 12px; right: 12px; }
.cover-av .av-menu { left: auto; right: 0; }
.cover-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.92); color: var(--color-text); box-shadow: var(--shadow-sm); cursor: pointer; opacity: 0; transition: opacity .15s, background .15s; }
.cover-wrap:hover .cover-btn, .cover-btn:focus-visible { opacity: 1; }
.cover-btn:hover { background: #fff; }
@media (hover: none) { .cover-btn { opacity: 1; } }

/* Inzeráty – samolepky, prodáno, sleva */
.ad-thumb-wrap { position: relative; display: block; }
.ad-photos-wrap { position: relative; }
.ad-sticker { position: absolute; top: 10px; left: -6px; z-index: 5; background: var(--color-accent); color: var(--color-dark); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; padding: 4px 12px 4px 10px; border-radius: 0 999px 999px 0; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.ad-photos-wrap .ad-sticker { top: 14px; font-size: .85rem; padding: 6px 14px 6px 12px; }
.ad-sticker-sold { background: #475569; color: #fff; }
.ad-card.sold { opacity: .65; }
.ad-card.sold:hover { opacity: .9; }
.rel-ads { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 230px)); gap: 14px; margin-top: 10px; justify-content: start; }

/* Článek s historií osady na úvodní stránce – profesionální úprava */
.art-kicker { font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #b45309; margin-bottom: 8px; }
.art-title { margin: 0 0 16px; font-size: 1.7rem; line-height: 1.25; }
.art-lead { font-size: 1.08rem; line-height: 1.7; font-weight: 600; color: var(--color-text); }
.art-lead::first-letter { float: left; font-size: 3.1em; line-height: .82; font-weight: 800; padding: 4px 8px 0 0; color: var(--color-dark); }
.hist-article h3 { margin: 26px 0 8px; font-size: 1.12rem; }
.hist-article p { line-height: 1.7; color: var(--color-text-2); margin: 0 0 12px; }
.art-photo { width: 232px; margin: 4px 0 14px 22px; }
.art-photo.fl-r { float: right; }
.art-photo.fl-l { float: left; margin: 4px 22px 14px 0; }
.art-photo-lg { width: 380px; }
.art-wide { margin: 8px 0 18px; }
.art-wide img { width: 100%; max-height: 480px; object-fit: cover; display: block; border-radius: 10px; border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); cursor: zoom-in; }
.art-wide figcaption { font-size: .68rem; font-style: italic; color: var(--color-text-2); padding-top: 5px; }
.art-bw img { filter: grayscale(1); transition: filter .35s; }
.art-bw:hover img { filter: none; }
.art-photo img { width: 100%; display: block; border-radius: 8px; border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); cursor: zoom-in; transition: transform .2s; }
.art-photo a:hover img { transform: scale(1.02); }
.art-photo figcaption { font-size: .72rem; color: var(--color-text-2); line-height: 1.4; padding-top: 6px; }
.art-clear { clear: both; }
.art-thumbs-title { margin-top: 18px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-2); }
.hist-article ol.art-types { margin: 0 0 12px; padding-left: 22px; }
.hist-article ol.art-types li { line-height: 1.7; color: var(--color-text-2); margin-bottom: 12px; }
.art-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px; }
.art-thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; display: block; cursor: zoom-in; box-shadow: var(--shadow-sm); transition: transform .2s; }
.art-thumb:hover img { transform: scale(1.05); }
@media (max-width: 640px) {
    .art-photo, .art-photo.fl-l { float: none; width: 100%; margin: 0 0 12px; }
    .art-thumbs { grid-template-columns: repeat(3, 1fr); }
    .art-title { font-size: 1.35rem; }
}
/* Lightbox článku */
.art-lb { position: fixed; inset: 0; z-index: 999; background: rgba(10,15,25,.9); display: flex; align-items: center; justify-content: center; }
.art-lb[hidden] { display: none; }
.art-lb-img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.art-lb-close { position: absolute; top: 14px; right: 18px; background: none; border: none; color: #fff; font-size: 2.2rem; cursor: pointer; line-height: 1; }
.art-lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); border: none; color: #fff; font-size: 2rem; width: 46px; height: 64px; border-radius: 10px; cursor: pointer; }
.art-lb-prev { left: 14px; }
.art-lb-next { right: 14px; }
.art-lb-arrow:hover, .art-lb-close:hover { background: rgba(255,255,255,.25); }
.art-lb-counter { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: .8rem; }
.ad-old-price { font-size: .8em; font-weight: 500; color: var(--color-muted); margin-left: 4px; }
.ad-sold-banner { background: #f1f5f9; border: 1px solid var(--color-border); color: #475569; font-weight: 700; text-align: center; padding: 8px 14px; border-radius: 10px; margin-bottom: 12px; }
.ad-msg-del { margin-left: auto; }
.ad-msg-del button { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 0; border-radius: 8px; background: none; color: var(--color-muted); cursor: pointer; }
.ad-msg-del button:hover { background: #fee2e2; color: var(--color-danger, #dc2626); }
.ad-views { display: inline-flex; align-items: center; gap: 3px; color: var(--color-muted); font-size: .95em; }
.ad-contact-col { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }

/* Hledání – pole v bočním menu + výsledky */
.side-search { position: relative; margin: 0 0 .4rem; }
.side-search input { width: 100%; padding: .45rem .7rem .45rem 1.9rem; border: 1px solid var(--color-border, #e2e8f0); border-radius: 8px; font-size: .85rem; background: #f8fafc; box-sizing: border-box; }
.side-search input:focus { outline: none; border-color: #94a3b8; background: #fff; }
.side-search-icon { position: absolute; left: .6rem; top: 50%; transform: translateY(-50%); color: var(--color-muted, #94a3b8); display: flex; pointer-events: none; }
.search-form { display: flex; gap: .5rem; margin-bottom: 1rem; }
.search-form input { flex: 1; padding: .5rem .8rem; border: 1px solid var(--color-border, #e2e8f0); border-radius: 8px; font-size: .95rem; }
.search-h2 { display: flex; align-items: center; gap: .4rem; font-size: 1rem; font-weight: 700; margin: 1.2rem 0 .5rem; color: #334155; }
.search-row { display: flex; flex-direction: column; gap: .15rem; padding: .55rem .7rem; border: 1px solid var(--color-border, #e2e8f0); border-radius: 8px; margin-bottom: .45rem; text-decoration: none; color: inherit; }
.search-row:hover { background: #f8fafc; border-color: #cbd5e1; }
.search-title { font-weight: 600; color: #1e293b; }
.search-snip { font-size: .85rem; color: #475569; }
.search-meta { font-size: .75rem; color: var(--color-muted, #94a3b8); }
.search-row mark { background: #fef08a; border-radius: 3px; padding: 0 1px; }

/* Zvýrazněný komentář po příchodu z hledání */
.wall-comment.cmt-hl { background: #fef9c3; border-radius: 8px; padding: .3rem .5rem; margin: 0 -.5rem; animation: cmtHl 2.5s ease-out; }
@keyframes cmtHl { 0% { background: #fde047; } 100% { background: #fef9c3; } }

/* Zajímavosti – RSS články z iZahrádkář.cz */
.zaj-hero { display: flex; border: 1px solid var(--color-border, #e2e8f0); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; background: #fff; margin-top: 12px; transition: box-shadow .15s, transform .15s; }
.zaj-hero:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.zaj-hero-img { flex: 0 0 46%; background-size: cover; background-position: center; min-height: 220px; background-color: #f1f5f9; }
.zaj-hero-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.zaj-hero-title { font-weight: 800; font-size: 1.3rem; line-height: 1.25; color: #1e293b; }
.zaj-hero-ex { font-size: .88rem; color: #475569; line-height: 1.5; }
@media (max-width: 640px) {
    .zaj-hero { flex-direction: column; }
    .zaj-hero-img { min-height: 180px; }
}
.zaj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 26px; }
.zaj-card { display: flex; flex-direction: column; border: 1px solid var(--color-border, #e2e8f0); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; background: #fff; transition: box-shadow .15s, transform .15s; }
.zaj-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.zaj-thumb { height: 140px; background-size: cover; background-position: center; background-color: #f1f5f9; }
.zaj-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.zaj-title { font-weight: 700; font-size: .92rem; color: #1e293b; line-height: 1.3; }
.zaj-meta { font-size: .72rem; color: var(--color-muted, #94a3b8); }
.zaj-ex { font-size: .8rem; color: #475569; line-height: 1.4; }
.zaj-back { display: inline-block; margin-bottom: 10px; font-weight: 600; font-size: .9rem; text-decoration: none; }
.zaj-article h1 { font-size: 1.4rem; line-height: 1.3; margin: 4px 0 6px; }
@media (max-width: 640px) { .zaj-page-title { white-space: nowrap; font-size: min(1.55rem, 5.4vw); letter-spacing: -.03em; } }
.zaj-art-meta { font-size: .8rem; color: var(--color-muted, #94a3b8); margin-bottom: 12px; }
.zaj-art-hero { width: 100%; max-height: 380px; object-fit: cover; border-radius: 10px; margin-bottom: 12px; }
.zaj-art-body { font-size: .95rem; line-height: 1.65; color: #334155; }
.zaj-art-body img { max-width: 100%; height: auto; border-radius: 8px; cursor: zoom-in; }
.zaj-art-hero, .zaj-gal-item img { cursor: zoom-in; }
.zaj-art-body h2, .zaj-art-body h3 { margin: 1.1rem 0 .5rem; line-height: 1.3; }
.zaj-art-body a { color: #15803d; }
.zaj-mail-row { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--color-border); display: flex; justify-content: center; }
.zaj-mail-row .btn, .zaj-mail-choice .btn { display: inline-flex; align-items: center; gap: 8px; }
.zaj-mail-q { margin: 0 0 12px; font-size: .95rem; }
.zaj-mail-choice { display: flex; gap: 10px; }
.zaj-mail-choice .btn { flex: 1; justify-content: center; }
.zaj-mail-other-btn { border: 1.5px solid var(--color-border); }
.zaj-mail-other-btn.active { border-color: var(--color-accent); background: rgba(253,197,19,.12); color: var(--color-text); }
.zaj-mail-hint { margin: 8px 0 0; font-size: .8rem; color: #94a3b8; }
.zaj-mail-other { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.zaj-mail-other[hidden] { display: none; }
.zaj-mail-other input { flex: 1; min-width: 0; }
.zaj-mail-choice .btn.is-sending { opacity: .7; pointer-events: none; }
.zaj-gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-top: 18px; }
.zaj-gal-item { margin: 0; }
.zaj-gal-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; display: block; background: #f1f5f9; }
.zaj-gal-item figcaption { font-size: .72rem; color: var(--color-muted, #94a3b8); margin-top: 4px; line-height: 1.35; }
.zaj-art-body .lightbox__description { font-size: .78rem; color: var(--color-muted, #94a3b8); margin: -8px 0 14px; }
.zaj-art-body .js-article-image img { max-width: 100%; height: auto; border-radius: 8px; }
.zaj-art-body .lightbox__wrap { margin-left: 0 !important; margin-right: 0 !important; }
.zaj-art-src { margin-top: 18px; }
/* Články z cizích webů – nic nesmí přetéct z šířky obrazovky (inline width u popisků fotek, tabulky, dlouhé odkazy) */
.zaj-article { min-width: 0; overflow-wrap: break-word; }
.zaj-art-body * { max-width: 100% !important; box-sizing: border-box; }
.zaj-art-body img, .zaj-art-body video, .zaj-art-body iframe { height: auto; }
.zaj-art-body table { display: block; overflow-x: auto; }
.zaj-art-body pre { white-space: pre-wrap; }
.zaj-art-body .wp-caption { width: auto !important; }

/* Zajímavosti – štítky zdrojů */
.zaj-src { display: inline-block; font-size: .65rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; vertical-align: 1px; }
.zaj-src-iz { background: #dcfce7; color: #15803d; }
.zaj-src-bilovec { background: #dbeafe; color: #1d4ed8; }
.zaj-src-denik { background: #fee2e2; color: #b91c1c; }

/* ============ ZPRÁVY (chat) ============ */
.side-msg-icon { position: relative; }
.side-msg-icon .topbar-msg-n { font-size: .56rem; }
.side-msg-icon .topbar-msg-n.topbar-msg-n3 { font-size: .42rem; }
.topbar-msg { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--color-text-2); flex-shrink: 0; }
.topbar-msg:hover { background: #f1f5f9; color: var(--color-text); }
.topbar-msg-n.topbar-msg-n3 { font-size: .46rem; letter-spacing: -.06em; }
.topbar-msg-n { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 1px 1px 0 0; color: #ef4444; font-size: .6rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; pointer-events: none; }
/* Nepřečtené zprávy – ikona zůstává černá, výraznější je jen červené číslo */
.topbar-msg.has-unread .topbar-msg-n { color: #dc2626; font-size: .7rem; font-weight: 900; }
.side-msg-icon .topbar-msg-n { color: #dc2626; font-weight: 900; font-size: .64rem; }
.topbar-msg.has-unread .topbar-msg-n.topbar-msg-n3 { font-size: .5rem; }
.side-msg-icon .topbar-msg-n.topbar-msg-n3 { font-size: .46rem; }
.topbar-msg.has-unread .topbar-msg-n, .side-msg-icon .topbar-msg-n { animation: msgBlink 1.2s step-end infinite; }
@keyframes msgBlink { 50% { opacity: 0; } }
@media (max-width: 900px) { .app-topbar .topbar-msg { order: 3; width: 34px; height: 36px; } .app-topbar .nav-toggle { order: 4; } }
@media (max-width: 420px) { .app-topbar .topbar-inner { gap: 8px; padding: 0 12px; } }
.prof-msg-btn { margin-top: 10px; }
.tel-priv-check { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 400; font-size: .88rem; cursor: pointer; }
.tel-priv-check input { width: auto; margin: 0; }
.tel-private { font-size: .8rem; color: var(--color-muted); }

.msg-box { width: min(480px, 100%); padding: 18px 20px 20px; border-radius: 18px; animation: msgIn .18s ease-out; }
@keyframes msgIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.msg-box .ed-head strong { display: inline-flex; align-items: center; gap: 8px; }
.msg-to { font-size: .9rem; color: var(--color-text-2); margin-bottom: 10px; }
.msg-to strong { color: var(--color-text); }
.msg-label { display: block; font-size: .82rem; font-weight: 600; color: var(--color-text-2); margin-bottom: 4px; }
.msg-box select { width: 100%; margin-bottom: 12px; }
.msg-ac { position: relative; margin-bottom: 12px; }
.msg-ac input[type="text"] { width: 100%; }
.msg-ac-list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 5; background: #fff; border: 1px solid var(--color-border); border-radius: 12px; box-shadow: var(--shadow-lg); max-height: 260px; overflow-y: auto; padding: 4px; }
.msg-ac-item { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.msg-ac-item:hover, .msg-ac-item.active { background: #f1f5f9; }
.msg-ac-item .avatar { flex-shrink: 0; }
.msg-ac-name { font-weight: 600; font-size: .9rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-ac-sub { margin-left: auto; font-size: .75rem; color: #94a3b8; white-space: nowrap; }
.msg-ac-empty { padding: 10px; font-size: .85rem; color: #94a3b8; text-align: center; }
.msg-box textarea { width: 100%; min-height: 130px; border-radius: 12px; font-family: inherit; }
.msg-err { color: #dc2626; font-size: .85rem; margin-top: 6px; }
.msg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.msg-actions-center { justify-content: center; }
.msg-attach { margin-right: auto; display: inline-flex; align-items: center; gap: 6px; padding: 0 6px; font-size: .88rem; font-weight: 600; color: var(--color-text-2); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.msg-attach:hover { color: var(--color-text); }
.msg-prev { display: flex; align-items: flex-start; gap: 6px; margin-top: 8px; }
.msg-prev[hidden] { display: none; }
.msg-prev img { height: 72px; max-width: 140px; object-fit: cover; border-radius: 10px; }
.msg-prev button { border: 0; background: #e2e8f0; color: var(--color-text); border-radius: 50%; width: 24px; height: 24px; line-height: 1; font-size: 1rem; cursor: pointer; }
.msg-done { text-align: center; padding: 8px 0 2px; }
.msg-done-ico { width: 56px; height: 56px; margin: 0 auto 8px; border-radius: 50%; background: #dcfce7; color: #16a34a; display: flex; align-items: center; justify-content: center; }

.chat-wrap { display: grid; grid-template-columns: 300px minmax(0, 1fr); height: calc(100vh - 150px); height: calc(100dvh - 150px); min-height: 420px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.chat-list { display: flex; flex-direction: column; border-right: 1px solid var(--color-border); min-height: 0; min-width: 0; }
.chat-list-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 14px 10px; }
.chat-list-head h1 { font-size: 1.3rem; margin: 0; }
.chat-convs { flex: 1; overflow-y: auto; padding: 0 6px 8px; }
.chat-conv { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 12px; color: var(--color-text); text-decoration: none; }
.chat-conv:hover { background: #f1f5f9; color: var(--color-text); }
.chat-conv.active { background: rgba(253,197,19,.18); }
.chat-conv .avatar { flex-shrink: 0; }
.chat-conv-av { position: relative; flex-shrink: 0; line-height: 0; }
.chat-conv-av .online-dot { position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; box-shadow: 0 0 0 2px #fff; }
.chat-conv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-conv-top { display: flex; align-items: baseline; gap: 6px; }
.chat-conv-name { flex: 1; min-width: 0; font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-conv-time { font-size: .72rem; color: #94a3b8; white-space: nowrap; }
.chat-conv-prev { font-size: .8rem; color: var(--color-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-conv.unread .chat-conv-name, .chat-conv.unread .chat-conv-prev { font-weight: 700; color: var(--color-text); }
.chat-conv-tick { flex-shrink: 0; line-height: 0; color: #94a3b8; }
.chat-conv-tick svg { stroke-width: 3; }
.chat-conv-tick.read { color: #16a34a; }
.chat-unread { background: #ef4444; color: #fff; border-radius: 999px; min-width: 20px; padding: 1px 6px; font-size: .7rem; font-weight: 700; text-align: center; flex-shrink: 0; }
.chat-empty { color: #94a3b8; font-size: .88rem; padding: 14px 10px; text-align: center; }

.chat-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #f8fafc; }
.chat-head { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--color-border); }
.chat-back { display: none; font-size: 2rem; line-height: 1; color: var(--color-text-2); padding: 0 8px 4px 0; text-decoration: none; }
.chat-head-user { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--color-text); text-decoration: none; }
.chat-head-user:hover { color: var(--color-text); }
.chat-head-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.chat-head-info strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-dots { margin-left: auto; flex-shrink: 0; }
.chat-dots .dots-menu { min-width: 250px; }
.chat-dots .dots-item span:not(.chat-mail-sw) { white-space: nowrap; }
.chat-dots .dots-item { display: flex; align-items: center; gap: 8px; }
.chat-mail-toggle .chat-mail-sw { margin-left: auto; flex-shrink: 0; }
.chat-mail-toggle:disabled { opacity: .45; cursor: not-allowed; background: none; }
.chat-mail-sw { position: relative; width: 30px; height: 17px; border-radius: 999px; background: #cbd5e1; transition: background .15s; }
.chat-mail-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.chat-mail-toggle[aria-checked="true"] .chat-mail-sw { background: #22c55e; }
.chat-mail-toggle[aria-checked="true"] .chat-mail-sw::after { transform: translateX(13px); }
.chat-name-tag { font-size: .72rem; font-weight: 500; color: #94a3b8; margin-left: 3px; }
.chat-head-sub { font-size: .75rem; color: #94a3b8; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px 14px 6px; display: flex; flex-direction: column; gap: 4px; -webkit-overflow-scrolling: touch; }
.chat-day { text-align: center; margin: 10px 0 6px; }
.chat-day span { font-size: .72rem; font-weight: 600; color: #64748b; background: #e2e8f0; border-radius: 999px; padding: 2px 10px; }
.chat-msg { display: flex; flex-direction: column; max-width: 78%; }
.chat-msg.mine { align-self: flex-end; align-items: flex-end; }
.chat-msg.theirs { align-self: flex-start; align-items: flex-start; }
.chat-bubble { padding: 7px 12px 6px; border-radius: 18px; font-size: .92rem; line-height: 1.4; overflow-wrap: anywhere; white-space: normal; }
.chat-msg.theirs .chat-bubble { background: #fff; border: 1px solid var(--color-border); border-bottom-left-radius: 6px; }
.chat-msg.mine .chat-bubble { background: var(--color-accent); color: var(--color-dark); border-bottom-right-radius: 6px; }
.chat-time { display: inline-block; margin-left: 8px; font-size: .66rem; opacity: .6; vertical-align: bottom; white-space: nowrap; }
.chat-img { display: block; line-height: 0; margin: -2px -8px 6px; }
.chat-img img { display: block; max-width: min(240px, 60vw); max-height: 320px; border-radius: 14px; object-fit: cover; background: #e2e8f0; }
.chat-bubble-img { padding: 4px 4px 4px; }
.chat-bubble-img .chat-img { margin: 0 0 2px; }
.chat-bubble-img .chat-time { display: block; text-align: right; margin: 0 6px 0 0; }
.chat-attach { flex-shrink: 0; width: 38px; height: 42px; display: inline-flex; align-items: center; justify-content: center; color: var(--color-text-2); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.chat-attach:hover { color: var(--color-text); }
.chat-prev { display: flex; align-items: flex-start; gap: 6px; padding: 10px 14px 0; background: #fff; border-top: 1px solid var(--color-border); }
.chat-prev[hidden] { display: none; }
.chat-prev img { height: 72px; max-width: 140px; object-fit: cover; border-radius: 10px; }
.chat-prev button { border: 0; background: #e2e8f0; color: var(--color-text); border-radius: 50%; width: 24px; height: 24px; line-height: 1; font-size: 1rem; cursor: pointer; }
.chat-prev:not([hidden]) + .chat-form { border-top: 0; }
.chat-ro { padding: 10px 14px; background: #fff; border-top: 1px solid var(--color-border, #e5e7eb); font-size: .8rem; color: #94a3b8; text-align: center; }
.chat-seen { font-size: .7rem; color: #94a3b8; margin-top: 2px; }
.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid var(--color-border); }
.chat-form textarea { flex: 1; min-height: 42px; max-height: 140px; resize: none; border-radius: 21px; padding: 10px 16px; font-family: inherit; font-size: .92rem; line-height: 1.4; }
.chat-send { flex-shrink: 0; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--color-accent); color: var(--color-dark); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.chat-send:hover { background: var(--color-accent-hover); }
.chat-send.is-sending { pointer-events: none; opacity: .75; }
.chat-send.is-sending svg { display: none; }
.chat-send.is-sending::after { content: ""; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: chatSpin .7s linear infinite; }
@keyframes chatSpin { to { transform: rotate(360deg); } }
.chat-prev.is-sending img { opacity: .5; }
.chat-placeholder { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #94a3b8; text-align: center; padding: 20px; }

@media (max-width: 700px) {
    .chat-wrap { grid-template-columns: minmax(0, 1fr); height: calc(100vh - 130px); height: calc(100dvh - 130px); min-height: 360px; margin: -4px -6px 0; }
    .chat-wrap.has-chat .chat-list, .chat-wrap:not(.has-chat) .chat-pane { display: none; }
    .chat-list { border-right: 0; }
    .chat-back { display: inline-block; }
    .chat-msg { max-width: 86%; }
    .chat-form textarea { font-size: 16px; }
}

/* Nástěnka – kompaktní příspěvky na mobilu */
@media (max-width: 600px) {
    .wall-post { padding: 14px 14px 10px; margin-bottom: 12px; }
    .wall-post .post-head { gap: 10px; align-items: center; }
    .wall-post .post-head .avatar { width: 38px !important; height: 38px !important; font-size: .9rem; }
    .wall-post .post-time { margin-top: 0; font-size: .74rem; }
    .wall-post .post-title { font-size: 1rem; margin: 8px 0 2px; }
    .wall-post .post-text { margin-top: 8px; font-size: .94rem; line-height: 1.45; }
    .wall-post .post-photos, .wall-post .post-docs, .wall-post .post-inline-media { margin-top: 8px; }
    .wall-post .post-react-summary { margin-top: 8px; padding-bottom: 6px; font-size: .8rem; }
    .wall-post .post-actions-bar { margin-top: 2px; padding-top: 4px; }
    .wall-post .wlike-btn { font-size: .84rem; }
    .wall-post .post-comments { margin-top: 6px; }
    .wall-post .wall-comment { margin-top: 6px; }
    .wall-post .cmt-avatar .avatar { width: 30px !important; height: 30px !important; font-size: .74rem; }
    .wall-post .cmt-col { padding: 7px 11px; border-radius: 10px; }
    .wall-post .comment-text { margin-top: 3px; font-size: .87rem; line-height: 1.4; }
    .wall-post .comment-meta { margin-top: 2px; }
    .wall-post .cmt-expand-wrap { margin-top: 6px; }
    .wall-post .comment-form { margin-top: 8px; }
}

/* Doplnění údajů – zvýraznění chybějících povinných polí */
.auth-box .req { color: #dc2626; font-weight: 700; }
.form-group.field-missing label { color: #b91c1c; font-weight: 700; }
.form-group.field-missing input { border-color: #dc2626; background: #fef2f2; box-shadow: 0 0 0 3px rgba(220,38,38,.12); }
.form-group.field-missing input:focus { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.25); }
.field-missing-hint { display: none; margin: 6px 0 0; font-size: .82rem; font-weight: 600; color: #b91c1c; }
.form-group.field-missing .field-missing-hint { display: block; }

/* Profil v karanténě – upozornění pro admina */
.q-banner { display: flex; gap: 10px; align-items: flex-start; margin: 12px 16px; padding: 10px 14px; border-radius: 10px; background: #fffbeb; border: 1px solid #f59e0b; color: #92400e; font-size: .9rem; line-height: 1.45; }
.q-banner svg { flex: none; margin-top: 1px; }

/* Smazané příspěvky/komentáře – vidí jen administrátor */
.wall-post.is-deleted .post-title, .wall-post.is-deleted .post-text, .wall-post.is-deleted .post-author a,
.wall-post.is-deleted .comment-text, .wall-post.is-deleted .comment-author a,
.wall-comment.cmt-deleted .comment-text, .wall-comment.cmt-deleted .comment-author, .wall-comment.cmt-deleted .comment-author a { color: #9ca3af; }
.wall-post.is-deleted .post-author, .wall-post.is-deleted .comment-author { color: #9ca3af; }
.wall-post.is-deleted .post-photos img, .wall-post.is-deleted .post-inline-media img, .wall-post.is-deleted .comment-photo,
.wall-comment.cmt-deleted .comment-photo, .wall-comment.cmt-deleted .post-inline-media img { opacity: .55; }
.wall-post.is-deleted .doc-link, .wall-comment.cmt-deleted .doc-link { color: #9ca3af; }
.wall-post.is-deleted .avatar, .wall-comment.cmt-deleted .avatar { filter: grayscale(1); opacity: .7; }
.del-info { color: #dc2626; opacity: .6; font-style: italic; font-size: .74rem; margin-top: 6px; }
