/*
   STRÁNKA Z OBSAHU (Trello jyaoK1in, 29. 9. 2026) - stranky/show.blade.php
   Nadpis a text majú písmo z Nastavenia → Písma (h1, text) - tu len rozloženie.
   Šírka = šírka hlavičky (.container), Trello 6vZ9Ktav, 29. 9. 2026.
*/
.st {
    padding-top: 20px;
    padding-bottom: 60px;
}

.st .st-nadpis {
    margin: 0 0 20px;
}

.st-obrazok {
    display: block;
    width: 100%;
    max-width: 480px;
    height: auto;
    margin: 0 0 24px;
    border-radius: 6px;
}

.st-obsah img {
    max-width: 100%;
    height: auto;
}

.st-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 30px;
}

.st-galeria img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
}

/* Text stránky vždy písmom Text z Nastavenia → Písma (Trello 6vZ9Ktav) -
   aj odseky a zoznamy z CKEditora. */
.st-obsah,
.st-obsah p,
.st-obsah li,
.st-obsah td {
    font-family: var(--pismo-text-rodina, inherit);
    font-size: var(--pismo-text-velkost, 15px);
    font-weight: var(--pismo-text-vaha, 400);
    color: var(--pismo-text-farba, inherit);
}

/* ==========================================================================
   VIZUÁLNY EDITOR (Vojto 4. 10. 2026) - HTML z App\Support\VizualnyEditor
   --------------------------------------------------------------------------
   .ve-sekcia = sekcia (div), .ve-obsah = obsah divu (text / obrázok).
   sekcia-1 obsah pod sebou, sekcia-1-doprava vedľa seba, sekcia-2 2 stĺpce;
   na mobile všetko pod sebou.
   ========================================================================== */
.ve-stranka {
    display: flex;
    flex-direction: column;
    /* Sekcie bez medzier - odstupy nastavuje Dizajn sekcie (Vojto 4. 10. 2026). */
    gap: 0;
}

.ve-sekcia {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ve-sekcia--sekcia-1-doprava {
    flex-direction: row;
    align-items: flex-start;
}

.ve-sekcia--sekcia-1-doprava > .ve-stlpec,
.ve-sekcia--sekcia-1-doprava > .ve-obsah {
    flex: 1 1 0;
    min-width: 0;
}

.ve-sekcia--sekcia-2 {
    display: grid;
    grid-template-columns: var(--ve-stlpce, 1fr 1fr);
    gap: 40px;
}

.ve-sekcia--sekcia-2-3,
.ve-sekcia--sekcia-3-2,
.ve-sekcia--sekcia-3 {
    display: grid;
    gap: 40px;
}

.ve-sekcia--sekcia-2-3 {
    grid-template-columns: var(--ve-stlpce, 1fr 2fr);
}

.ve-sekcia--sekcia-3-2 {
    grid-template-columns: var(--ve-stlpce, 2fr 1fr);
}

.ve-sekcia--sekcia-3 {
    grid-template-columns: var(--ve-stlpce, repeat(3, 1fr));
}

.ve-sekcia--sekcia-4,
.ve-sekcia--sekcia-5 {
    display: grid;
    gap: 30px;
}

.ve-sekcia--sekcia-4 {
    grid-template-columns: var(--ve-stlpce, repeat(4, 1fr));
}

.ve-sekcia--sekcia-5 {
    grid-template-columns: var(--ve-stlpce, repeat(5, 1fr));
}

.ve-stlpec {
    min-width: 0;
}

.ve-obsah > :first-child {
    margin-top: 0;
}

.ve-obsah > :last-child {
    margin-bottom: 0;
}

.ve-obsah--obrazok img {
    display: block;
    width: 100%;
    height: auto;
    /* Zaoblenie len z Dizajnu stĺpca (Vojto 4. 10. 2026). */
}

.ve-stlpec {
    overflow: hidden;   /* rádius stĺpca oreže aj obrázok */
}

/* Galéria - mriežka obrázkov (3 na riadok, na mobile 2). */
.ve-obsah--galeria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.ve-obsah--galeria img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

/* Widgety Doprava / Platba - tabuľka spôsobov. */
.ve-tabulka {
    width: 100%;
    border-collapse: collapse;
}

.ve-tabulka th,
.ve-tabulka td {
    padding: 12px 10px;
    border-bottom: 1px solid #E5E5E5;
    text-align: left;
    vertical-align: middle;
}

.ve-tabulka th {
    font-weight: 700;
    color: #000000;
    border-bottom-color: #000000;
}

.ve-tabulka .ve-tabulka-cena {
    text-align: right;
    white-space: nowrap;
}

.ve-tabulka-sposob {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ve-tabulka-sposob img {
    flex: none;
    width: 48px;
    height: 32px;
    object-fit: contain;
}

.ve-tabulka-popis {
    margin-top: 2px;
    font-size: 0.9em;
}

.ve-tabulka-popis > :first-child { margin-top: 0; }
.ve-tabulka-popis > :last-child { margin-bottom: 0; }

.ve-tabulka-pozn {
    margin: 10px 0 0;
    font-size: 0.9em;
}

@media (max-width: 767px) {
    .ve-stranka {
        gap: 0;
    }

    .ve-sekcia--sekcia-1-doprava {
        flex-direction: column;
    }

    .ve-tabulka th,
    .ve-tabulka td {
        padding: 10px 6px;
    }

    .ve-tabulka-sposob img {
        width: 36px;
    }

    .ve-sekcia--sekcia-2,
    .ve-sekcia--sekcia-2-3,
    .ve-sekcia--sekcia-3-2,
    .ve-sekcia--sekcia-3,
    .ve-sekcia--sekcia-4,
    .ve-sekcia--sekcia-5 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Dizajn sekcie / stĺpca (inline štýly z VizualnyEditor) - stĺpec so šírkou
   v %, rámik a odsadenie sa započítajú do šírky. */
.ve-sekcia,
.ve-stlpec {
    box-sizing: border-box;
    max-width: 100%;
}

@media (max-width: 767px) {
    .ve-sekcia--sekcia-1 > .ve-stlpec,
    .ve-sekcia--sekcia-1-doprava > .ve-stlpec {
        width: auto !important;
        flex: 1 1 auto !important;
    }
}


/* Text z HTML editora rovnako ako v editore (Vojto 5. 10. 2026): odsek 10 px
   pod sebou, riadkovanie 1,5, tabuľka s bunkami 5 / 8 px bez okrajov odsekov
   v bunkách - inak boli riadky tabuľky na webe oveľa vyššie (css/html-editor.css). */
.ve-obsah--text {
    line-height: 1.5;
}

.ve-obsah--text p,
.ve-obsah--text ul,
.ve-obsah--text ol,
.ve-obsah--text blockquote,
.ve-obsah--text table {
    margin: 0 0 10px;
}

.ve-obsah--text table {
    border-collapse: collapse;
}

.ve-obsah--text td,
.ve-obsah--text th {
    padding: 5px 8px;
    vertical-align: top;
}

.ve-obsah--text td > :first-child,
.ve-obsah--text th > :first-child {
    margin-top: 0;
}

.ve-obsah--text td > :last-child,
.ve-obsah--text th > :last-child {
    margin-bottom: 0;
}

/* Widget Ikony s textom (Vojto 5. 10. 2026) - zoznam z Obsah → Grafické →
   Ikony s textom; dlaždice vedľa seba, v úzkom stĺpci pod sebou. */
.ve-ikony-text {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.ve-ikony-text-polozka {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.ve-ikony-text-ikona {
    display: block;
    width: 48px;
}

.ve-ikony-text-ikona img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
}

.ve-ikony-text-nazov {
    font-family: var(--ve-it-nazov-rodina, inherit);
    font-size: var(--ve-it-nazov-velkost, inherit);
    font-weight: var(--ve-it-nazov-vaha, 700);
    color: var(--ve-it-nazov-farba, inherit);
}

.ve-ikony-text-nazov--pozadie {
    padding: 2px 10px;
}

.ve-ikony-text-popis > :first-child { margin-top: 0; }
.ve-ikony-text-popis > :last-child { margin-bottom: 0; }

/* Ikony s textom - Interakcia (Vojto 7. 10. 2026): odkazy na ploche,
   ikone, názve a popise nemenia vzhľad (farba a písmo ostanú). */
.ve-ikony-text-odkaz,
.ve-ikony-text-odkaz:hover {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

a.ve-ikony-text-polozka:hover .ve-ikony-text-nazov,
.ve-ikony-text-nazov a.ve-ikony-text-odkaz:hover,
a.ve-ikony-text-popis:hover {
    text-decoration: underline;
}
