/*!
 * CSS custom
 * Version: 1.0
*/

/*
 * vzhled formulare - menu (horni nabidka)
 */

.navbar {
    border-radius: 0 !important;
    margin-bottom: 0 !important;
}
.poh-navbar {
    background-color: #286090 !important; /* Tmavší odstín primary */
    border-color: #204d74 !important;
}
.poh-navbar .navbar-brand,
.poh-navbar .navbar-nav>li>a {
    color: #ffffff !important;
}
.poh-navbar .navbar-nav>li>a:hover {
    background-color: #204d74;
}

.dropdown-submenu {
    position: relative;
}
.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    border-radius: 0 6px 6px 6px;
    background-color: #222; /* tmavé pozadí */
    color: #fff; /* světlý text */
}
.dropdown-submenu > .dropdown-menu > li > a {
    color: #fff;
}
.dropdown-submenu > .dropdown-menu > li > a:hover {
    background-color: #444;
    color: #fff;
}
.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}
.dropdown-submenu > a:after {
    content: "›";
    float: right;
    margin-top: 5px;
    margin-right: -10px;
    color: #fff;
}

.card-primary {
    border-color: #286090;
}
.card-primary>.card-heading {
    background-color: #286090;
    color: #ffffff;
    border-color: #204d74;
}
.btn-primary {
    background-color: #204d74;
    border-color: #204d74;
}
.btn-primary:hover {
    background-color: #163d5a;
}
.btn-xs {
    padding: 0.15rem 0.3rem;
    font-size: 0.75rem;
    line-height: 1.2;
}
.rozcestnik {
    text-align: center;
    margin-top: 50px;
}
.card-link {
    display: inline-block;
    text-decoration: none;
    color: #333;
    width: 200px;
    height: 150px;
    margin: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: 0.3s;
}
.card-link:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-decoration: none;
}
.card-link h4 {
    margin-top: 30px;
}

/*
 * vzhled formulare
 */

.odsaz-a-n { margin: 0; }
.odsaz-a-0 { margin: 5px; }
.odsaz-a-1 { margin: 10px; }
.odsaz-a-2 { margin: 20px; }
/*
.odsaz-t-n { margin-top: 0; }
.odsaz-t-0 { margin-top: 5px; }
.odsaz-t-1 { margin-top: 10px; }
.odsaz-t-2 { margin-top: 20px; }
.odsaz-t-2p { margin-top: 25px; }
.odsaz-t-3 { margin-top: 30px; }
.odsaz-b-n { margin-bottom: 0; }
.odsaz-b-0 { margin-bottom: 5px; }
.odsaz-b-1 { margin-bottom: 10px; }
.odsaz-b-2 { margin-bottom: 20px; }
.odsaz-l-n { margin-left: 0; }
.odsaz-l-0 { margin-left: 5px; }
.odsaz-l-1 { margin-left: 10px; }
.odsaz-l-2 { margin-left: 20px; }
.odsaz-l-3 { margin-left: 30px; }
.odsaz-r-n { margin-right: 0; }
.odsaz-r-0 { margin-right: 5px; }
.odsaz-r-1 { margin-right: 10px; }
.odsaz-r-2 { margin-right: 20px; }
.odsaz-r-3 { margin-right: 30px; }
*/

.odsad-lr-n { padding-left: 0;    padding-right: 0; }
.odsad-lr-1 { padding-left: 5px;  padding-right: 5px; }
.odsad-lr-2 { padding-left: 10px; padding-right: 10px; }
.odsad-lr-3 { padding-left: 20px; padding-right: 20px; }

.odsad-lr {
    padding-left: 30px;
    padding-right: 60px;
}
@media (max-width: 767px) {
    .odsad-lr {
        padding-right: 30px;
    }
}

.w-50px  { width: 50px !important; }
.w-75px  { width: 75px !important; }
.w-100px { width: 100px !important; }
.w-200px { width: 200px !important; }
.w-300px { width: 300px !important; }

.vedle-sebe { display: inline-block; }

#chciNapovedu { margin-top: 25px; }
.text-bila { color: white !important; }

.modal-wide  { width: 90%; max-width: 1200px; }

/* Omez výšku těla modalu */
.modal-body {
    max-height: 70vh; /* nebo např. 500px */
    overflow-y: auto;
}

/* Obrázky – přizpůsobí se velikosti modalu */
.modal-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

/* Zvětší samotný checkbox */
.checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    transform: scale(1.2); /* alternativa pro větší zvětšení */
    margin-right: 10px;
}

/*
 * -----------------------------------
 * pro mapu
 * -----------------------------------
 */

#dpi {
    height: 1in;
    width: 1in;
    position: absolute;
    left: -100%;
    top: -100%;
}

.map {
    height: 600px;
    min-height: 200px;
    width: 100%;
}

#gpsMapControl {
    background-color: rgba(255, 255, 255,1);
    border-radius: 4px;
    position: absolute;
    top: 1rem;
    right: 6px;
    opacity: 1;
}

#gpsMapControl div {
    margin-right : 3px;
    margin-left : 3px;
}

.disabled-btn-graphic {
    pointer-events: none;
    opacity: 0.6; /* volitelné: efekt „neaktivního“ tlačítka */
}

#goToXY_MapControl{
    background-color: rgba(255, 255, 255,1);
    border-radius: 4px;
    position: absolute;
    top: 60px;
    right: 6px;
    opacity: 1;
}


/*
 * -----------------------------------
 * pro točící se kolečko pro ajax
 * -----------------------------------
 */

.spinner {
    margin: 20px auto;
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top: 4px solid #337ab7; /* Bootstrap primary barva */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.carousel-titulek {
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7); /* tmavý podklad */
    color: #fff;
    font-size: 18px;
}
.carousel-caption {
    display: block !important;
    position: absolute;
    bottom: 25px;
    z-index: 10;
    color: #fff;
    background: rgba(0,0,0,0.5); /* Pro lepší čitelnost */
    padding: 12px;
}
.carousel-indicators {
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.7); /* tmavý podklad */
    color: #fff;
}

input[type="file"] {
    display: none;
}
.custom-file-label {
    display: inline-block;
    padding: 7px 15px;
    cursor: pointer;
    border-radius: 5px;
}
/* Styl pro "disabled" stav tlačítka, kdy je label až za inputem */
input[type="file"]:disabled + .custom-file-label {
    background-color: gray;
    cursor: not-allowed;
    opacity: 0.6;
}

/* naseptavac */
.autocomplete-suggestions {
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    background-color: white;
    z-index: 9999;
    width: 100%;
}
.autocomplete-suggestion {
    padding: 8px;
    cursor: pointer;
}
.autocomplete-suggestion:hover {
    background-color: #f5f5f5;
}
.autocomplete-suggestion strong {
    color: darkred;
    font-weight: bold;
}
