html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    white-space: nowrap;   
    overflow: hidden;        
    text-overflow: ellipsis;
    overflow-x: hidden; /* Pojistka proti vytečení do strany */
    box-sizing: border-box;
}

#map {
    width: 100%;
    height: 100%;
    touch-action: none;
}
.map-tiles canvas {
    filter: grayscale(80%) brightness(1.1);
}
/*radky 20-63 smazany*/

/*
@keyframes pokaz {
    from {display: none;}
    to {display: block;}
}
@keyframes ukryc {
    from {display: block;}
    to {display: none;}
}
*/

/* Zmenšeno na cca 70 % při zachování poměrů */
.infowozowe {
    height: 252px;
    width: 350px;
    background-color: #363635;
    border-radius: 4px;
}
.zahlavi {
    width: 100%;
    height: 28px;
    line-height: 28px;
    display: flex;
    background-color: #C8C8C8;
    color: #1D1D1B;
}
.zahlavilinka {
    font-family: Arial, Helvetica, sans-serif;
    width: 15%;
    height: 100%;
    font-size: 15pt;
    text-align: center;
    font-weight: bold;
    background-color: transparent;
    color: #1D1D1B;
}
.zahlavismer {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    width: 85%;
    height: 100%;
    font-size: 15pt;
    text-align: left;
    font-weight: 500;
    background-color: transparent;
    color: #1D1D1B;
}
.zpozdeni {
    font-family: Arial, Helvetica, sans-serif;
    width: 100%;
    height: 18px;
    line-height: 18px;
    font-size: 10pt;
    text-align: center;
    background-color: #575757;
    color: #ffffff;
}

.zpozdenicolor {
    width: 100%;
    height: 2px;
}
/* Dynamické barvy baru odpovídající zpoždění */
.zpozdenicolor-zelena { background-color: #5eff5e; }
.zpozdenicolor-oranzova { background-color: #f7e35e; }
.zpozdenicolor-cervena { background-color: #ff7070; }
.zpozdenicolor-fialova { background-color: #e080a7; }
.zpozdenicolor-smodra { background-color: #5edef7; }
.zpozdenicolor-tmodra { background-color: #5e82f7; }
.zpozdenicolor-konecna { background-color: #92dec3; }
.zpozdenicolor-mimo { background-color: #e2af96; }
.zpozdenicolor-po { background-color: #bfe296; }

.lastmessagefromdervehikl {
    font-family: Arial, Helvetica, sans-serif;
    width: 100%;
    height: 14px;
    line-height: 14px;
    font-size: 8pt;
    text-align: center;
    color: #aaaaaa;
}
.m1 {
    width: 100%;
    height: 5px;
}
.m2 {
    width: 100%;
    height: 5px;
    background-color: #C8C8C8;
}
.row {
    font-family: Arial, Helvetica, sans-serif;
    width: 100%;
    height: 14px;
    line-height: 14px;
    font-size: 14pt;
    text-align: center;
    color: #ffffff;
    display: flex;
}
.rowaktual {
    font-family: Arial, Helvetica, sans-serif;
    width: 100%;
    height: 14px;
    line-height: 14px;
    font-size: 14pt;
    text-align: center;
    color: #1D1D1B;
    background-color: #C8C8C8;
    display: flex;
}
.rowpred {
    font-family: Arial, Helvetica, sans-serif;
    width: 32%;
    height: 100%;
    line-height: 14px;
    font-size: 7pt;
    text-align: right;
}
.mezera {
    width: 7px;
    height: 100%;
}
.rowjo {
    font-family: Arial, Helvetica, sans-serif;
    width: 55%;
    height: 100%;
    line-height: 14px;
    font-size: 12pt;
    text-align: left;
}
.rowjovychozi {
    font-family: Arial, Helvetica, sans-serif;
    width: 55%;
    height: 100%;
    line-height: 14px;
    font-size: 9pt;
    text-align: left;
}
.rowne {
    font-family: Arial, Helvetica, sans-serif;
    width: 13%;
    height: 100%;
    line-height: 14px;
    font-size: 8pt;
    text-align: left;
}
.naspis {
    font-family: Arial, Helvetica, sans-serif;
    width: 20%;
    height: 21px;
    line-height: 21px;
    font-size: 8pt;
    text-align: center;
    color: #ffffff;
}
.spis {
    font-family: Arial, Helvetica, sans-serif;
    width: 100%;
    height: 21px;
    line-height: 21px;
    font-size: 10pt;
    text-align: center;
    color: #ffffff;
}

.dolniinfo {
    font-family: Arial, Helvetica, sans-serif;
    width: 100%;
    height: 32px;
    background-color: #575757;
    color: #ffffff;
}
.infolink:link {
    font-family: Arial, Helvetica, sans-serif;
    height: 100%;
    width: 100%;
    font-size: 15pt;
    font-weight: bold;
    line-height: 32px;
    text-align: right;
    color: #ffffff;
}
.infolink:visited {
    font-family: Arial, Helvetica, sans-serif;
    height: 100%;
    width: 100%;
    font-size: 15pt;
    font-weight: bold;
    line-height: 32px;
    text-align: right;
    color: #ffffff;
}
/**/
.zahlavi {
    width: 100%;
    height: 40px;
    line-height: 40px;
    display: flex;
    background-color: #C8C8C8;
    color: #1D1D1B;
    
}
.zahlavilinka {
    font-family: Arial, Helvetica, sans-serif;
    width: 15%;
    height: 100%;

    font-size: 22pt;
    text-align: center;
    font-weight: bold;
    background-color: transparent;
    color: #1D1D1B;
}
.zahlavitlaclinky {
    font-family: Arial, Helvetica, sans-serif;
    width: 40px;
    height: 40px;
    position: absolute;
    font-size: 22pt;
    text-align: center;
    font-weight: bold;
    border: none;
    background-color: transparent;
    color: #1D1D1B;
}

.zahlavitlaclinkyvybe {
    font-family: Arial, Helvetica, sans-serif;
    width: 40px;
    height: 40px;
    position: absolute;
    font-size: 22pt;
    text-align: center;
    font-weight: bold;
    border: none;
    background-color: transparent;
    color: #1Daa1B;
}
.zahlavismer {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    width: auto;
    min-width: 30%;                     /* Minimální šířka bude např. 50% */
    width: calc(85% - 160px);
    height: 100%;

    font-size: 22pt;
    text-align: left;
    font-weight: 500;
    background-color: transparent;
    color: #1D1D1B;
}
.filtrynadpis {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    width: 80%;
    height: 100%;

    font-size: 22pt;
    text-align: left;
    font-weight: 500;
    background-color: transparent;
    color: #1D1D1B;
}
.zpozdenibar {
    font-family: Arial, Helvetica, sans-serif;
    width: 100%;
    height: 25px;
    line-height: 25px;
    font-size: 14pt;
}
.zpozdenibar-zelena { background-color: #5eff5e; }
.zpozdenibar-oranzova { background-color: #f7e35e; }
.zpozdenibar-cervena { background-color: #ff7070; }
.zpozdenibar-fialova { background-color: #e080a7; }
.zpozdenibar-smodra { background-color: #5edef7; }
.zpozdenibar-tmodra { background-color: #5e82f7; }
.zpozdenibar-konecna { background-color: #92dec3; }
.zpozdenibar-mimo { background-color: #e2af96; }
.zpozdenibar-po { background-color: #bfe296; }
.zpozdeni {
    font-family: Arial, Helvetica, sans-serif;
    width: 75%;
    height: 100%;
    line-height: 25px;
    font-size: 14pt;
    left: 5%;
    text-align: left;
    color: #1D1D1B;
    background-color: transparent;
    position:absolute ;
}
.zpozdenitemu {
    font-family: Arial, Helvetica, sans-serif;
    width: 20%;
    height: 100%;
    /*line-height: 25px;*/
    font-size: 10pt;
    text-align: right;
    font-weight: 200;
    right: 8%;
    color: #1D1D1B;
    position:absolute ;
}
.m1 {
    width: 100%;
    height: 20px;

}
.row {
    font-family: Arial, Helvetica, sans-serif;
    width: 100%;
    height: 20px;
    line-height: 20px;
    font-size: 20pt;
    text-align: center;
    color: #ffffff;
    display: flex;

}
.rowpred {
    font-family: Arial, Helvetica, sans-serif;
    width: 25%;
    height: 100%;
    line-height: 20px;
    font-size: 12pt;
    text-align: right;


}
.mezera {

    width: 10px;
    height: 100%;

}
.rowjo {
    font-family: Arial, Helvetica, sans-serif;
    width: 62%;
    height: 100%;
    line-height: 20px;
    font-size: 17pt;
    text-align: left;


}
.rowjovychozi {
    font-family: Arial, Helvetica, sans-serif;
    width: 62%;
    height: 100%;
    line-height: 20px;
    font-size: 17pt;
    text-align: left;


}
.kolecko-official {
    position: absolute;
    left: 20%;
    top:5px;
    width: 25px;
    height: 25px;
    
    background-color: #363636;
    border: 2px solid #ffffff; 
    border-radius: 50%;
    font-family: Arial Narrow, Helvetica, sans-serif;
    z-index: 20;
    text-align: center;
    line-height: 25px;
    color: #ffffff;
    font-weight: 700;
}
.kolecko-pelne {
    position: absolute;
    left: 20%;
    top:5px;
    width: 25px;
    height: 25px;
    
    background-color: #ffffff;
    border: 2px solid #ffffff; 
    border-radius: 50%;
    font-family: Arial Narrow, Helvetica, sans-serif;
    z-index: 20;
    text-align: center;
    line-height: 25px;
    color: #1D1D1B;
    font-weight: 700;
}
.hran-official {
    position: absolute;
    left: 20%;
    top:5px;
    width: 25px;
    height: 25px;
    
    background-color: #363636;
    border: 2px solid #ffffff; 
    border-radius: 10%;
    font-family: Arial Narrow, Helvetica, sans-serif;
    z-index: 20;
    text-align: center;
    line-height: 25px;
    color: #ffffff;
    font-weight: 700;
}
.hran-pelne {
    position: absolute;
    left: 20%;
    top:5px;
    width: 25px;
    height: 25px;
    
    background-color: #ffffff;
    border: 2px solid #ffffff; 
    border-radius: 10%;
    font-family: Arial Narrow, Helvetica, sans-serif;
    z-index: 20;
    text-align: center;
    line-height: 25px;
    color: #1D1D1B;
    font-weight: 700;
}
.hrankolko-neviditelne {
    position: absolute;
    left: 20%;
    top:5px;
    width: 25px;
    height: 25px;
    
    background-color: transparent;
    border: 2px solid transparent; 
    border-radius: 10%;
    font-family: Arial Narrow, Helvetica, sans-serif;
    z-index: 20;
    text-align: center;
    line-height: 25px;
    color: #1D1D1B;
    font-weight: 700;
}
.carka-official {
    position: absolute;
    left: calc(20% + 10.5px);
    width: 8px;
    height: 100%;
    
    background-color: #ffffff;
    z-index: 0;
}
.jrtrasa {
    font-family: Arial, Helvetica, sans-serif;
    height: 360px;
    width: 100%;
    background-color: #363635;
    overflow-y: scroll;
    overflow-x: hidden;
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
.infojine {
    font-family: Arial, Helvetica, sans-serif;
    height: 360px;
    width: 100%;
    background-color: #363635;
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
.jrtrasa.jo {
    opacity: 1;
    visibility: visible;
}
.infojine.jo {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}


.jrtrasa::-webkit-scrollbar {
    height: 100%;
    scroll-behavior:smooth;
}
.jrtrasabar {
    height: 40px;
    width: 100%;
    
    position: relative;
}
.casjr {
    width: 8%;
    height: 100%;
    position: absolute;
    line-height: 40px;
    text-align: center;
    color: #ffffff;
    font-size: 1.5vw;
    font-weight:normal;
}
.casrealne {
    width: 8%;
    left: 9%;
    line-height: 40px;
    height: 100%;
    position: absolute;
    text-align: center;
    color: #aaffaa;
    font-size: 1.5vw;
    font-weight:normal;
}
.small {
    font-size: 1vw;
}

.stopn {
    width: 60%;
    left: 30%;
    height: 100%;
    position: absolute;
    line-height: 40px;
    text-align: left;

    color: #ffffff;
    font-size: 17pt;
    font-weight:600;
}
.stoppasmo {
    width: 10%;
    right: 0%;
    height: 100%;
    position: absolute;
    line-height: 40px;
    text-align: right;
    padding-right: 5px;
    color: #ffffff;
    font-size: 15pt;
    font-weight:400;
}
.slovo {
    width: 50%;
    height: 5px;
    padding-left: 30%;
    line-height: 5px;
    text-align: left;
    color: #ffffff;
    font-size: 10pt;
    font-weight:normal;
}
.infoovoze {
    width: 100.9%;
    height: 40px;
    background-color:#575757;
}
.infoovozetext {
    position: absolute;
    font-family: Arial, Helvetica, sans-serif;
    width: 20%;
    height: 40px;
    line-height: 40px;
    font-size: 15pt;
    padding-left:  5%;
    text-align: center;
    color: #ffffff;
}
.infoovozeikonyoddil {
    position: absolute;
    width: 100%;
    height:40px;
    right: -50%;
    padding-top: 5px;
}
.infoovozeikony {
    width: 30px;
    height:30px;
    padding-left:  5%;
}

.jropravdepol {
    position: absolute;
    bottom: 0;
    height: 50%;
    width: 100%;
    background-color: #363635;
    
    /* Plynulý přechod pro pohyb i pro bezpečné schování */
    transition: transform 0.4s ease-in-out, visibility 0.4s ease-in-out;
    visibility: visible;
}

/* 1. Stav: Úplně vysunutý nahoru */
.jropravdepol {
    transform: translateY(calc(100% - 420px));
}

/* 2. Stav: Částečně zalezlý (tvoje původní .jrschov) */
.jropravdepol.jrschov {
    transform: translateY(calc(100% - 200px));
}

/* 3. Stav: Úplně zalezu dole / schovaný pryč z obrazovky */
.jropravdepol.je-zcela-skryty {
    transform: translateY(100%); /* Zajede o 100% své výšky dolů mimo obrazovku */
    visibility: hidden;          /* Zakáže klikání, když je schovaný */
}


.buttonnavfr {
    position: absolute;
    bottom: 6px;
    left: 8px;
    height: 50px;
    width: 100%;
    display: flex;
    gap: 8px;
}

.buttonnav {
    aspect-ratio: 1/1;
    height: 100%;
    background-color: #000014;
    color: #ffffff;
    padding: 0;
    text-align: center;
    font-size: 10pt;
    border: none;
    box-sizing: border-box;
}
.buttoreling {
    aspect-ratio: 1/1;
    height: 100%;
    background-color: #500000;
    color: #ffffff;
    padding: 0;
    text-align: center;
    font-size: 10pt;
    border: none;
    box-sizing: border-box;
}


.fmbarlinomez {
    width: 100%;
    height: 40px;
    line-height: 40px;
    background-color: #575757;
    display: flex;
    gap: 10px;
}

.fmbarlinomez-vysvetliv {
    width: 50%;
    height: 100%;
    font-size: 15pt;
    color: #ffffff;
    text-align: center;
}
.fmbarlinomez-pak {
    width: 25%;
    height: 100%;
    font-size: 15pt;
    color: #ffffff;
    background-color: #1D1D1B;
    text-align: center;
    border: none;
}
.fmbarlinomez-clr {
    aspect-ratio: 1/1;
    height: 100%;
    font-size: 15pt;
    color: #ffffff;
    background-color: #1D1D1B;
    text-align: center;
    padding: 0;
    border: none;
    box-sizing: border-box;
}

.fmbarlindalsi {
    width: 100%;
    height: 100px;
    line-height: 100px;
    background-color: #363635;

    font-size: 20pt;
    color: #ffffff;
    text-align: center;
}

.fmbarlinomez-potom-vice {
    width: 10%;
    height: 100%;
    font-size: 15pt;
    color: #ffffff;
    background-color: #1D1D1B;
    text-align: center;
    border: none;
}

.fmbarlinomez2 {
    width: 100%;
    min-height: 40px;
    line-height: 40px;
    background-color: #575757;
    display: flex;
    gap: 10px;
    flex-direction: row;    /* Prvky jdou vedle sebe */
    flex-wrap: wrap;
}
.chckboxvysvetliv {
    font-size: 12pt;
    color: #ffffff;
}

.fmbarfilt {
    padding-top: 5px;
    width: 100%;
    height: 40px;
    line-height: 40px;
    background-color: #363635;
    display: flex;
    gap: 10px;
}

.fiopravdepol {
    position: absolute;
    bottom: 0;
    transform: translateY(calc(100% - 420px));
    height: 50%;
    width: 100%;
    background-color: #363635;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease; /* Plynulý přechod */
}

.fiopravdepol.vis {
    opacity: 1;
    visibility: visible;
}

.fopp {
    font-family: Arial, Helvetica, sans-serif;
    height: 380px;
    width: 100%;
    background-color: #363635;
    overflow-y: scroll;
    overflow-x: hidden;
    position: relative;
}

.fopp::-webkit-scrollbar {
    height: 100%;
    scroll-behavior:smooth;
}

.ifnobar1 {
    width: 100%;
    height: auto;
    line-height: 40px;
    background-color: #575757;
    color: #ffffff;
    font-size: 22pt;
    text-align: center;
    text-wrap: wrap;
    flex-wrap: wrap;
}
.ifnobar2 {
    width: 100%;
    height: auto;
    line-height: 40px;
    background-color: #363635;
    color: #ffffff;
    font-size: 15pt;
    text-align: center;
    text-wrap: wrap;
    flex-wrap: wrap;
}

.ifspoj {
    width: 100%;
    height: 30px;
    line-height: 30px;
    background-color: #363635;
    color: #ffffff;
    font-size: 15pt;
    text-align: center;
}

.ifspoj2 {
    width: 100%;
    min-height: 30px;
    line-height: 30px;
    background-color: #1D1D1B;
    color: #ffd0aa;
    font-size: 15pt;
    text-align: center;
    display: flex;
    text-wrap: wrap;
    flex-wrap: wrap;
}


/* Třída, která zajistí plynulý přechod průhlednosti */
.bodova-vrstva-animace {
    transition: opacity 0.3s ease-in-out;
}

/* Když se přidá tato třída, vrstva se zneviditelní */
.bodova-vrstva-animace.is-hidden {
    opacity: 0;
}