:root {
    --bg: #0b0b0b; /* téměř černá */
    --fg: #ffffff; /* bílá */
    --muted: #b3b3b3; /* šedá */
    --accent: #e5e5e5; /* světlá na hover/rámečky */
    --maxw: 1150px;
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Ubuntu', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: #ffcc99;
    text-underline-offset: 2px;
    text-decoration: none;
}

a:hover {
    color: #ff9966;
    text-decoration: underline;
}


img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius);
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(16px, 2vw, 28px);
}

/* HERO */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero video,
.hero .poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0,0,0,.45) 0%,
        rgba(0,0,0,.55) 50%,
        rgba(0,0,0,.65) 100%);
}

.hero .content {
    position: relative;
    text-align: center;
    padding: 0 18px;
    max-width: 900px;
}

.headline {
    font-size: clamp(28px, 4vw, 56px);
    font-weight: 700;
    letter-spacing: .2px;
}

.sub {
    margin-top: 14px;
    color: var(--muted);
    font-size: clamp(16px, 2.2vw, 20px);
}

.cta {
    margin-top: 28px;
    display: inline-block;
    padding: 14px 22px;
    border: 1px solid var(--accent);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 500;
    backdrop-filter: saturate(120%);
}

.cta:hover {
    background: rgba(255,255,255,.06);
}

/* Sekce */
section {
    scroll-margin-top: 80px;
}

.section {
    padding: clamp(15px, 6vw, 10px) 0;
    border-top: 1px solid rgba(255,255,255,.06);
}

.section h2 {
    font-size: clamp(24px, 3vw, 36px);
    margin: 0 0 14px;
}

.section p {
    color: var(--accent);
    margin: 8px 0;
}

p.price-info {
    color: #ffffff;       /* čistě bílá */
    font-size: 1.15em;    /* o něco větší než standardní text */
    line-height: 1.6;     /* lepší čitelnost */
}

p.note {
    font-style: italic;       /* kurzíva */
    font-size: 0.9em;         /* o něco menší než normální text */
    color: #777;              /* středně šedá barva */
    margin-top: 0.5rem;       /* lehký odstup od předchozího textu */
}


/* Grid layout */
.grid {
    display: grid;
    gap: clamp(16px, 2vw, 36px);
    grid-template-columns: 1fr;
    align-items: center;
}

@media (min-width: 980px) {
    .grid {
        grid-template-columns: 1.05fr .95fr;
    }
    .rtl {
        grid-template-columns: .95fr 1.05fr;
    }
}

/* Cards */
.cards {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

.cards figure {
    margin: 0;
}

/* 2–3 sloupce na desktopu */
@media (min-width: 760px) {
    .cards {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        justify-content: center; /* vycentruje blok, když nejsou všechny sloupce obsazené */
    }
}

@media (min-width: 760px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius);
    padding: 18px;
    background: rgba(255,255,255,.02);
}

.card h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.card p {
    margin: 0;
    color: var(--muted);
}

/* Timeline */
.timeline {
    position: relative;
    margin: 8px 0;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255,255,255,.15);
}

.step {
    position: relative;
    padding-left: 40px;
    margin: 18px 0;
}

.dot {
    position: absolute;
    left: 6px;
    top: .35em;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
}

.step strong {
    display: block;
}

/* Price panel */
.pricepanel {
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.03);
    border-radius: var(--radius);
    padding: 18px;
}

.pricepanel strong {
    font-size: 18px;
}

/* Kontakt */
form {
    display: grid;
    gap: 12px;
    max-width: 760px;
}

input,
textarea {
    background: #111;
    color: #fff;
    border: 1px solid rgba(25,255,255,.14);
    border-radius: 10px;
    padding: 12px;
    font: inherit;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

button {
    cursor: pointer;
}

footer {
    padding: 40px 0;
    color: #8c8c8c;
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,.06);
}


.lang-switch {
    position: absolute;
    top: 12px;
    right: 18px;
    display: flex;
    gap: 8px;
    z-index: 20;
}

.lang-switch img {
    width: 32px;
    height: auto;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,.3);
    cursor: pointer;
    transition: transform 0.2s;
}

.lang-switch img:hover {
    transform: scale(1.08);
}

.topbar {
    position: fixed;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(6px) saturate(120%);
    background: rgba(0,0,0,.45);
    border-bottom: 1px solid rgba(255,255,255,.06);
    width: 100%;
}
.topbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
}
.brand { text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1; }
.brand-top { font-weight: 700; letter-spacing: .4px; }
.brand-bottom { font-size: 12px; color: var(--muted); }
.topbar-right { display: flex; align-items: center; gap: 14px; }

/* Nav */
.mainnav { position: relative; text-align: center; vertical-align: middle; }
.mainnav ul { display: none; list-style: none; margin: 0; padding: 0; gap: 8px; }
.mainnav a.nav-link {
    display: inline-block; padding: 8px 12px; border-radius: 999px; text-decoration: none;
    color: var(--fg); border: 1px solid transparent; font-weight: 500;
}
.mainnav a.nav-link:hover { border-color: rgba(255,255,255,.15); }
.mainnav a.nav-link.is-active { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.06); }

/* Burger */
.nav-toggle {
    width: 42px; height: 38px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 10px;
    background: rgba(255,255,255,.03);
    display: grid; place-items: center;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    content: ""; display: block; width: 20px; height: 2px; background: #fff; border-radius: 1px; position: relative;
}
.nav-toggle-bar::before { position: absolute; top: -6px; }
.nav-toggle-bar::after  { position: absolute; top: 6px; }

/* Flags */
.flags { display: flex; gap: 8px; }
.flags .flag { display: inline-flex; border: 1px solid rgba(255,255,255,.3); border-radius: 6px; padding: 2px; opacity: .9; }
.flags .flag.is-current { outline: 2px solid rgba(255,255,255,.25); }
.flags img { width: 32px; height: 20px; border-radius: 4px; display: block; }

/* Desktop */
@media (min-width: 900px) {
    .nav-toggle { display: none; }
    .mainnav ul { display: flex; }
}

/* Mobile dropdown */
.mainnav[data-open="true"] ul {
    display: grid;
    position: absolute;
    right: 0; top: calc(100% + 8px);
    background: rgba(0,0,0,.85);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius);
    padding: 8px;
    min-width: 220px;
}

/* ======= HERO STRIP PRO PODSTRANY ======= */
.hero-strip {
    position: relative;
    min-height: 38svh;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.hero-strip .bg {
    position: absolute; inset: 0; width:100%; height:100%; object-fit: cover; filter: brightness(1.1);
}


.hero-strip .shade {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 100%);
}
.hero-strip .title { position: relative; text-align: center; padding: 0 18px; opacity: 0; }
.hero-strip h1 { font-size: clamp(48px, 4.2vw, 96px); text-transform: capitalize; margin: 0; opacity: 0.2; letter-spacing: .2px; text-align: right; }

/* ======= ACCESSIBILITY ======= */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
    left: 12px; top: 12px; z-index: 2000;
    background: #000; color: #fff; padding: 8px 12px; border-radius: 8px;
    border: 1px solid rgba(255,255,255,.25);
}
/* ===== Footer ===== */
.site-footer {
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,.06);
    text-align: center;
}

.footer-contact {
    padding: 20px 0 10px;
    font-size: 14px;
    color: #cfcfcf;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    justify-content: center;   /* vycentruje flex obsah vodorovně */
    text-align: center;        /* jistota pro více řádků */
}

.footer-contact a {
    color: var(--fg);
    text-decoration: none;
    border-bottom: 1px dotted rgba(255,255,255,.25);
}
.footer-contact a:hover {
    border-bottom-color: rgba(255,255,255,.5);
}

.footer-contact .sep {
    color: #8c8c8c;
}

.footer-copy {
    border-top: 1px solid rgba(255,255,255,.06);
    color: #8c8c8c;
    font-size: 13px;
    padding: 12px 0;
    text-align: center;
}


/* Centered footer (jak jsme nastavili dříve) */
.site-footer { text-align: center; }
.footer-contact { justify-content: center; text-align: center; }

.centertext {
    display: flex;
    justify-content: center;
    text-align: center;
}

.center {
    align-content: center;
}

/* Footer form */
.footer-form {
    padding: 28px 0 6px;
}
.footer-form-title {
    margin: 0 0 10px;
    font-size: clamp(18px, 2.2vw, 22px);
    color: var(--accent);
}

.footer-form form {
    margin: 0 auto;
    max-width: 760px;
    display: grid;
    gap: 12px;
}
.footer-form .ff-row {
    display: grid; gap: 12px;
}
@media (min-width: 700px) {
    .footer-form .ff-row { grid-template-columns: 1fr 1fr; }
    .footer-form .ff-row:last-child { grid-template-columns: 1fr auto; align-items: center; }
}

/* Honeypot (neviditelné pro lidi) */
.hp-field {
    position: absolute !important;
    left: -5000px !important;
    width: 1px !important; height: 1px !important;
    opacity: 0 !important; pointer-events: none;
}

/* Stavové hlášení */
.form-msg {
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
}
.form-msg.ok {
    color: #c9ffd3;
    border-color: rgba(0,255,128,.25);
    background: rgba(0,255,128,.06);
}
.form-msg.err {
    color: #ffd1d1;
    border-color: rgba(255,64,64,.25);
    background: rgba(255,64,64,.06);
}


/* Viditelnost dle zařízení – jen pro homepage */
.mobile  { display: none !important; }
.desktop { display: block !important; }

@media (max-width: 900px) {
.mobile  { display: block !important; }
.desktop { display: none !important; }
}



/* LIGHTBOX */
#lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
}

#lightbox img.lightbox-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
}

#lightbox .close {
    position: absolute;
    top: 20px; right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}


    .map-wrap{position:relative;max-width:1200px;margin:auto}
    .map-base, .map-overlay{display:block;width:100%;height:auto}
    .map-overlays{position:absolute;inset:0;pointer-events:none}
    .map-overlay{position:absolute;inset:0;opacity:0;transition:opacity .15s ease}
    .map-overlay.is-active{opacity:1}

    .map-hitlayer{position:absolute;inset:0}
    .map-hitlayer svg{display:block;width:100%;height:auto}
    /* ⬇️ přidejte toto – zajistí správné škálování načteného externího SVG */
    #map-holder svg{display:block;width:100%;height:auto}

    .hit{fill:transparent;cursor:pointer}
    .hit:focus{outline:none}
    .hit:focus-visible{stroke:#000;stroke-width:2;stroke-dasharray:4 3}

    .tooltip{position:absolute;top:0;left:0;padding:.35rem .5rem;background:#fff;border:1px solid #ddd;border-radius:.35rem;font:500 14px/1.2 system-ui,Segoe UI,Roboto,Arial;transform:translate(-50%,-120%);pointer-events:none;opacity:0;transition:opacity .12s}
    .tooltip.is-visible{opacity:1}
    .map-hitlayer svg * { fill:transparent; stroke:none; }
    .map-hitlayer svg .hit { pointer-events:all; }



/* VIDEO YOUTUBE */

.video-block {
    display: flex;
    justify-content: center;
}

.video-wrapper {
    width: 100%;
    max-width: 800px; /* můžeš změnit podle potřeby */
    aspect-ratio: 16 / 9;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Desktop: 50 % šířky */
@media (min-width: 768px) {
    .video-wrapper {
        width: 50%;
    }
}



/* ===== HeritageFilms – PISMA Explorer ===== */
.hf-pisma { padding: var(--section-pad, 2rem 0); }
.hf-pisma .hf-pisma__controls {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px;
}
.hf-pisma .hf-row { display: flex; align-items: center; gap: 8px; }
.hf-pisma .hf-label { color: var(--muted, #888); font-size: 0.95rem; }
.hf-pisma .hf-select {
    background: var(--hf-ui-bg, #141414); color: var(--hf-ui-fg, #f0efe9);
    border: 1px solid var(--hf-ui-border, #2a2a28); border-radius: 12px; padding: 10px 12px;
}
.hf-pisma .hf-btn {
    background: var(--hf-ui-bg, #141414); color: var(--hf-ui-fg, #f0efe9);
    border: 1px solid var(--hf-ui-border, #2a2a28); border-radius: 12px; padding: 10px 12px; cursor: pointer;
}
.hf-pisma .hf-count { color: var(--muted, #888); font-size: 0.95rem; }

.hf-pisma .hf-pisma__desc {
    white-space: pre-wrap; color: var(--muted, #888);
    margin: 0 0 14px; border-left: 3px solid var(--hf-ui-border, #2a2a28); padding-left: 10px;
}

.hf-pisma .hf-pisma__grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px;
}
.hf-pisma .hf-card {
    background: linear-gradient(180deg,rgba(255,255,255,.02),rgba(0,0,0,.04)), var(--hf-card, #171614);
    border: 1px solid var(--hf-ui-border, #2a2a28); border-radius: 16px; overflow: hidden;
}
.hf-pisma .hf-thumb {
    position: relative; background: #0a0a0a; aspect-ratio: 4/3; display: grid; place-items: center;
}
.hf-pisma .hf-thumb img { width: 100%; height: 100%; object-fit: contain; background: #0a0a0a; }

.hf-pisma .hf-caption {
    padding: 8px 10px; font-size: 13px; color: var(--hf-ui-fg, #f0efe9);
    border-top: 1px solid var(--hf-ui-border, #2a2a28);
}
.hf-pisma .hf-meta {
    padding: 8px 10px; color: var(--muted, #aaa); font-size: 12px; display: flex; justify-content: space-between; gap: 8px;
}
.hf-pisma .hf-file { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 85%; }
.hf-pisma .hf-open { opacity: .8; }
.hf-pisma .hf-pisma__empty {
    color: var(--muted, #888); padding: 20px; border: 1px dashed var(--hf-ui-border, #2a2a28);
    border-radius: 16px; text-align: center;
}

/* Volitelně můžete sjednotit s vašimi CSS proměnnými */
:root {
    --hf-ui-bg: #141414;
    --hf-ui-fg: #f0efe9;
    --hf-ui-border: #2a2a28;
    --hf-card: #171614;
}

fieldset {
    border: 2px solid #292929;   /* barva rámečku */
    border-radius: 6px;       /* volitelné zaoblení rohů */
    padding: 1rem;            /* vnitřní odsazení */
    margin-bottom: 1.5rem;    /* mezera pod fieldsetem */
}

legend {
    font-weight: bold;
    color: #fff;              /* barva textu legendy */
    padding: 0 8px;           /* mezera kolem textu */
    background: #444;         /* podklad legendy */
    border-radius: 4px;       /* lehce zaoblené */
}

textarea {
    width: 100%;
}


/* tlačítka – normální stav */
button[type=submit],
.cta {
    background-color: #333;    /* tmavě šedé pozadí */
    color: #fff;               /* bílé písmo */
    border: 2px solid #333;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    border-radius: 8px;        /* zakulacené rohy */
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

/* hover – inverze barev */
button[type=submit]:hover:not(:disabled),
.cta:hover {
    background-color: #fff;
    color: #000;
    border-color: #000;
}

/* disabled stav */
button[type=submit]:disabled,
.cta:disabled {
    background-color: #777;    /* světlejší šedá */
    color: #ccc;               /* vybledlé písmo */
    border-color: #777;
    cursor: not-allowed;       /* kurzor přes škrtnutý kruh */
    opacity: 0.7;              /* lehce vybledlé */
}


/* --- Pretty radios (square with checkmark) --- */
.pretty-radios fieldset {
    border: 2px solid #2a2a2a;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0 1.25rem;
}
.pretty-radios fieldset legend {
    padding: 0 .5rem;
    font-weight: 600;
}

/* Každá volba */
.pretty-radios .radio-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: .6rem;
    cursor: pointer;
    margin: .35rem 0;
    user-select: none;
}

/* Skryj vizuálně, ale ponech přístupnost */
.pretty-radios .radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    inset: 0 0 0 0;       /* zachová focus v rámci řádku */
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

/* Vlastní čtvercová „krabička“ */
.pretty-radios .radio-option .box {
    width: 22px;
    height: 22px;
    border: 2px solid #666;
    border-radius: 6px;
    background: #111;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    transition: all .18s ease;
    flex: 0 0 22px;
}

/* Popisek vpravo */
.pretty-radios .radio-option .label-text {
    color: #ddd;
}

/* Hover / active */
.pretty-radios .radio-option:hover .box {
    border-color: #888;
}

/* Focus ring (klávesnice) */
.pretty-radios .radio-option input[type="radio"]:focus-visible ~ .box {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Checked stav */
.pretty-radios .radio-option input[type="radio"]:checked ~ .box {
    background: #2ecc71;
    border-color: #2ecc71;
    color: #fff;
}
.pretty-radios .radio-option input[type="radio"]:checked ~ .box::before {
    content: "✔";
}

/* Volitelně: zhuštění mezer pod .note uvnitř fieldsetu */
.pretty-radios fieldset .note {
    margin-top: .5rem;
}
