﻿/* ================ ROOT – PROMĚNNÉ ================ */

:root {
    --font-family: Arial, Helvetica, sans-serif; /*Styl fontu*/
    --font-color-light: rgb(249,249,249); /* světlé písmo - použitý pro ovladací prvky */
    --font-color-dark: rgb(249,249,249); /* tmavé písmo - použitý pro nadpisy oken, souřadnice */

    --control-bg-color: rgba(20,51,106,0.85); /*barva pozadí ovládacích prvků*/
    --control-bg-color-active: rgb(225,176,29); /*barva pozadí aktivních ovládacích prvků nebo po najetí myši*/
    --control-color: var(--font-color-light); /*barva fontu/symbolu ovládacích prvků*/
    --control-color-active: var(--font-color-light); /*barva fontu/symbolu aktiv. ovl. prvků nebo po najetí myši*/
    --control-color-unavailable: #aaa; /*barva fontu/symbolu nedostupných ovládacích prvků*/

    --control-border: none; /*okraje ovládacích prvků*/
   --control-corner-radius: 5px; /* poloměr zaoblení rohů ovl. prvků - tlačítka v lištách, v oknech, scale bar */

    --vip-button-bg-color: var(--control-bg-color); /* barva pozadí VIP tlacitek */
    --vip-button-bg-color-active: var(--control-bg-color-active); /* barva pozadí aktivnich VIP tlacitek */
    --vip-button-font-color: var(--font-color-light); /* barva fontu VIP tlacitek */
    --vip-button-font-color-active: var(--font-color-light); /* barva fontu aktivnich VIP tlacitek */
    
    --window-layers-bg-color: rgba(20,51,106,0.9);
    --windows-bg-color: rgba(20,51,106,0.8); /* barva pozadí oken */
    --windows-content-bg-color: var(--window-layers-bg-color); /*rgba(170,170,170*/,1); /* barva pozadí obsahu okna - překrývá pozadí okna */
    --windows-content-iframe-bg-color: rgba(20,51,106,1); /*pozadí okna obsahu iframe*/
    --window-bubble-bg-color: var(--window-layers-bg-color); /* pozadí obsahu bubliny */

    --windows-border-color: transparent; /* barva orámovaní oken */
    --windows-border-width: 1px; /* tloušťka orámovaní oken */

    --windows-active-header-bg: rgba(20,51,106,0.9);

    --link-color: var(--font-color-light); /*barva linků*/
    --link-hover-color: rgb(225,176,29); /*barva linků po najetí myši*/
    --link-visited-color: rgb(62,92,146); /*barva navštívených linků
}

/* ================ ZÁKLAD STRÁNKY ================ */

body {
    font-family: var(--font-family);
    font-weight: normal;
    background: rgb(20,51,106);
    background-size: cover !important;
}

.divCancel, .divCancelon, .okButton, .okButtonon, .cancelCHButton, .cancelCHButtonon {
    top: 130px !important;
}

.divMapInner {
    border: var(--windows-border-width) solid var(--windows-border-color);
}

.IframeDiv {
   background-color: rgba(20,51,106,0.85) !important;
}


/* ================ HLAVIČKA ================ */

.HeadPanelIn, .QuarterPanelIn {
    margin:5px;
    border:1px solid rgb(20,51,106);
    background-color:rgb(20,51,106);
}
.HeadPanelIn {
    margin-bottom:0px;
    /*background-color:rgb(20,51,106);*/
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.HeadPanelIn .HeadText a {
    color: rgba(249,249,249,0.8);            
    text-decoration: none; 
}

.HeadPanelIn .HeadText a:hover {
    color: var(--link-hover-color) !important;          
    text-decoration: underline;
}

.HeadPanelIn .head-left {
    display: flex;
    justify-content: flex-start; /* ← zarovnání doleva */
    align-items: center;
    text-align: left;
}

.QuarterPanelIn {
    margin-top:0px;
    border:0px solid rgb(249,249,249);
    background-color:transparent;
    text-align:center;
    font-size:9px;
    white-space:nowrap;
}

.HeadText {
    height:20px; /*26px;*/
    width:100%;
    padding-top:4px;
    /*background-image: url('../obrazy/Hlavicka_text_new.png');
    background-position: 130px 0;
    background-repeat:no-repeat;*/
    text-align:right;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    white-space: nowrap;
}

.HeadName {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    color: rgb(225,176,29);
    /*font-family: Arial, Helvetica, sans-serif;*/
    font-size: 15px;
    font-weight: bold;
    white-space: nowrap;
    text-align: center;
}

.tool-icon-btn {
    width: 20px;
    height: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
    pointer-events: auto;
    background-color: rgba(21,51,106,0.8);
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.tool-web-link {
    background-image: url('Ico_logoZlin.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
}

.tool-icon-btn:hover {
    border: 2px solid rgb(192,155,106);
}

.head-link-desktop {
    display: inline;
}

.head-link-mobile {
    display: none;
}

@media (max-width:800px) {
    .HeadName {
	font-size: 12px;
     }
     .HeadText {
	font-size: 10px;
     }

    /* schovat textový odkaz */
    .head-link-desktop {
        display: none;
    }

    /* zobrazit ikonové tlačítko */
    .head-link-mobile {
        display: inline-block;
	margin-left: 2px;
	
   }
}

/* ================ VIP PANEL ================ */

.VipPanel {
	left: 4px !important;
}

#VipPanel{
    flex-flow: row;
}
#VipPanel .left-col-flex{
    flex: 1 1 auto;
}
#VipPanel .right-col-fix{
    display: flex;
    flex: 0 0 auto;
    flex-flow: column;
    position: fixed;
    top: 130px;
    right: 5px;
    z-index: 1000;
    pointer-events: auto; /* Nezachytávej události v prostoru panelu */
}
/* úprava pro malé obrazovky */
@media (max-width: 800px) {
    #VipPanel .right-col-fix {
        top:35px;   /* zarovnání hned k horní liště */
    }
}

.divTlacitkoVipLeft.hckd-button {
    margin: 2px;
    padding: 3px;
    pointer-events: auto; /* Ale tlačítka myš zachytí */
}
.divTlacitkoVipLeft.hckd-button.active{
    background-color: var(--control-bg-color-active);
}
.divTlacitkoVipLeft.hckd-button.btn1{
    background-color: rgba(7, 33, 82, 0.8);
}
.divTlacitkoVipLeft.hckd-button.btn11{
    background-color: rgba(35, 68, 129, 0.8);
}
.divTlacitkoVipLeft.hckd-button.btn2{
    background-color: rgba(24, 9, 85, 0.8);
}
.divTlacitkoVipLeft.hckd-button.btn22{
    background-color: rgba(58, 39, 134, 0.8);
}
.divTlacitkoVipLeft.hckd-button.btn3{
    background-color: rgba(0, 77, 69, 0.8);
}
.divTlacitkoVipLeft.hckd-button.btn33{
    background-color: rgba(24, 120, 110, 0.8);
}
.divTlacitkoVipLeft.hckd-button.btn4{
    background-color: rgba(225, 176,29,0.8);
}
.divTlacitkoVipLeft.hckd-button:hover {
    background-color: var(--control-bg-color-active);
}


/* ================ BUTTON DULEZITE INFORMACE ================ */

/* Tlačítko – pozice podle velikosti obrazovky */
  .mz-float-btn{
    position: fixed;
    top: 78px;      /* velká obrazovka: 150 px od horního okraje */
    left: 10px;      /* vlevo */
    z-index: 2147483647; /* Vždy nad mapou */
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: rgba(225, 176, 29, 0.80);
    color: rgb(20,51,106);
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 10px rgba(0,0,0,.25);
    display: flex;
    align-items: center;
    gap: 6px;
  }
   .mz-float-btn:hover{
  	border: 2px solid rgb(20,51,106);
    }

  /* text viditelný */
  .mz-float-btn .btn-text{
	display: inline;
    }

   /* ikona skrytá */
   .mz-float-btn .btn-icon{
  	display: none;
    }
   .mz-float-btn .btn-icon{
  	width: 25px;
  	height: 25px;
  	background-image: url('Ico_Info.png');
  	background-repeat: no-repeat;
  	background-position: center;
  	background-size: contain;
  }

  @media (max-width: 800px){
    .mz-float-btn{
      	top: 98px; 
	left: 4px;
      	right: auto;          /* malá obrazovka: vpravo */
      	bottom: auto;        /* 200 px od spodního okraje */
	padding: 0px;
    }
    .mz-float-btn .btn-text{
	display: none;
    }
    .mz-float-btn .btn-icon{
	display: block;
    }
  }

  /* Popup box – vždy nad mapou, zarovná se pod tlačítko */
  .mz-popup{
    position: fixed;
    display: none;
    z-index: 2147483646; /* těsně pod tlačítkem */
    max-width: min(92vw, 380px);
    max-height: min(70vh, 520px);
    overflow: auto;
    background: rgba(20,51,106,0.85);
    color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
    pointer-events: auto;
  }
  /* volitelně linky uvnitř */
  .mz-popup a { color: #ffd36b; }


.popup-box{
    display: none;
    background: rgba(20, 51, 106, 0.80);
    border: 1px solid #ccc;
    padding: 6px 8px;
    font-size: 12px;
    width: 220px;
    margin-top: 2px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
}


/* ================ BUTTON PRESMEROVANI NA DRUHOU MAPU ================ */

/* Kontejner pro nové tlačítka */
  .mz-btn-container {
    position: fixed;
    top: 44px;
    left: 160px; /* odsazení od původního tlačítka */
    display: flex;
    gap: 10px;
    z-index: 2147483647;
  }

  /* Tlacitko/ikona presmerujici na druhy web Ochrany obyvatelstva */
  .mz-extra-btn {
	padding: 7px 10px;
 	border-radius: 6px;
  	border: none;
  	background: rgba(20, 51, 106, 0.85);
  	color: rgb(225, 176, 29);
  	font-size: 12px;
  	font-weight: bold;
  	cursor: pointer;
  	box-shadow: 0 2px 10px rgba(0,0,0,.25);
  	display: flex;
  	align-items: center;
  	gap: 6px;
   }
   
   .mz-extra-btn:hover {
	background: rgba(225,176,29,0.85);
	color: rgb(20,51,106);
   }

/* text viditelný */
.btn-text {
  display: inline;
}

/* ikona skrytá */
.btn-icon {
  display: none;
}

.btn-icon {
  width: 26px;
  height: 26px;
  background-image: url('IcoObyv.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}


  @media (max-width: 800px) {
    .mz-btn-container {
      top: 68px;
      left: 4px;
      right: auto;
      bottom: auto;
      flex-direction: column; /* na mobilu pod sebe */
      align-items: flex-end;
    }
    .mz-extra-btn {
   	 padding: 0px;
  	}

    .btn-text {
   	 display: none;
  	}

    .btn-icon {
   	 display: block;
  	}
 }
