* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body { 
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #2f404a;
  background-color: #fff;
}

a {
  text-decoration: none;
  cursor: pointer;
  color: #2f404a;
}

a:hover {
  text-decoration: underline;
}

img {
  border: 0;
}

div.reset {
  clear: both;
}

table
{
  border-collapse:collapse; 
  border-spacing: 0px;   
  border-style: hidden;  
}

input,select {
  border: 1px solid #ccc;
  outline: none;
}

input:focus, input:hover,select:focus, select:hover {
  border: 1px solid rgb(40,60,137);
  transition: 0.5s;
}

h1 {
  font-size: 1.4rem;
  padding: 40px 0;
  display: inline-block;
}

h1 span {
  margin-left: 15px;
  padding-left: 15px;
  border-left: solid 1px #ccc;
}

.logo {
  float: right;
  height: 100px;
  padding: 20px 0;
}

h2 {
  font-size: 1.3rem;
  padding: 30px 0 20px 0;
}

h3 {
  font-size: 1.2rem;
  width: 100%;
  text-align: center;
  padding: 15px 0 5px 0;
}

h4 {
  margin-block-start: 0.6em;
  font-size: 1.0rem;
  width: 100%;
  text-align: center;
}


.stred {
  max-width: 1236px;
  padding-left: 30px;
  padding-right: 30px;
  margin: auto;
}

hr {
  border: none;
  border-top: 1px solid #ccc;
}

input#hladat {
  width: 100%;
  padding: 10px 15px 10px 30px;
}

#hladat_form {
  position: relative;
}

.polozka {
  width: 260px;
  border-radius: 20px;
  border: 1px solid #ccc;
  height: 300px;
  margin-top: 30px;
  margin-right: 30px;
  float: left;
  cursor: pointer;
}

.polozka:hover {
  color: rgb(40,60,137);
  transition: 0.3s;
  border: 1px solid rgb(40,60,137);
}


.polozka .nad_banerik {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 150px;
  }

.polozka .banerik {
  max-width: 100%;
  max-height: 100%;
  *border-top-left-radius: 20px;
  *border-top-right-radius: 20px;
}

.polozka .nad_banerik2 {
  height: 195px;
  width: 100%;
  *border-top-left-radius: 20px;
  *border-top-right-radius: 20px;
  *border-bottom: solid 1px #ccc; 
  *border-top: solid 1px #ccc; 
}


.nad_banner {
  margin-top: 50px;

  height: 500px;
  width: 100%;
  border-radius: 20px;
}

.sluzba {
  font-size: 1.2rem;
  border: solid 1px #ccc;
  border-radius: 20px;
  margin-top: 30px;
}

.sluzba span.text {
  padding: 25px 15px;
  display: inline-block;
}

.sluzba span.tlacidlo {
  padding: 5px 15px;
  border: #C44848 solid 1px;
  float: right;
  cursor: pointer;
  position: relative;
  display: inline-block;
  border-radius: 20px;
  margin-right: 15px;
  margin-top: 20px;
}

.den {
  width: 100px;
  font-weight: bold;
  display: inline-block;
}

.stlpec {
  width: 300px;
  float: left;
  margin-right: 30px;
  line-height: 25px;
}

.stlpec_mapa {
  float: right;
  margin-right: 0;
  width: 400px;
}

#kalendar td {
  width: 40px;
  height: 40px;
  vertical-align: middle;
  text-align: center;
}

#kalendar td span {
  padding: 8px;
  background-color: #ccc;
  border-radius: 30px;
  cursor: pointer;
  border: 1px solid #ccc;
  width: 40px;
  display: inline-block;
  height: 40px;
}

#kalendar td span:hover {
  color: rgb(40,60,137);
  transition: 0.3s;
  border: 1px solid rgb(40,60,137);
}

#kalendar td span.oznacene {
  color: #fff;
  border: 1px solid rgb(40,60,137);
  background-color: rgb(40,60,137);
}


.cas {
  padding: 8px;
  border-radius: 20px;
  border: solid 1px #ccc;
  float: left;
  margin-left: 10px;
  margin-bottom: 10px;
  cursor: pointer;
}

.cas:hover {
  color: rgb(40,60,137);
  transition: 0.3s;
  border: 1px solid rgb(40,60,137);
}

.oznaceny_cas {
  background-color: rgb(40,60,137);
  border: 1px solid rgb(40,60,137);
  color: #fff;
}

.oznaceny_cas:hover {
  color: #fff;
}

input.zakaznik,textarea.zakaznik {
  padding: 8px 15px;
  width: 100%;
  margin-bottom: 20px;
  border-radius: 5px;
}

select.zakaznik {
  border-radius: 5px;
}

textarea.zakaznik {
  height: 80px;
}



input[type="submit"],.tlacidlo {
  padding: 8px 15px;
  float: right;
  cursor: pointer;
  position: relative;
  display: inline-block;
  border-radius: 20px;
  margin-top: 20px;
  background-color: #C44848;
  color: white;
  border: 1px solid #C44848; /* Vďaka tomuto už neposkočí */
}

input[type="submit"]:hover,.tlacidlo:hover,.sluzba span.tlacidlo:hover {
  background-color: rgb(46,49,146);
  color: white;
  transition: 0.3s;
  border: solid 1px rgb(46,49,146); 
}



.fa {
  background-position: center;
  background-repeat: no-repeat;
  display: inline-block;
}

.fa-hladat {
  background-image: url("../img/search_icon.svg");
  background-size: 18px 18px;
  width: 18px;
  height: 18px;
  position: absolute;
  top: 8px;
  left: 8px;
}

/* Samotná ikonka zväčšená pre mobilné "fat-finger" klikanie */
.fa-otaznik {
  background-image: url("../img/question_icon.svg");
  background-size: 20px 20px;
  background-position: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  vertical-align: middle;
}

/* Obalový prvok, ktorý drží ikonku aj text bublinky */
.vlastny-tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin-left: -15px; /* Jemné priblíženie k textu služby */
  vertical-align: middle;
}

/* Samotná bublinka s textom */
.vlastny-tooltip .tooltip-text {
  visibility: hidden;
  width: max-content;
  max-width: 250px;
  background-color: rgb(40,60,137); /* Firemná modrá z SP NEXT */
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 10px 15px;
  position: absolute;
  z-index: 100;
  bottom: 100%; /* Umiestnenie nad ikonku */
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  opacity: 0;
  transition: all 0.3s ease; /* Plynulá animácia zobrazenia */
  font-size: 13px;
  font-weight: normal;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.15); /* Jemný tieň */
  line-height: 1.5;
  pointer-events: none; /* Aby nezavadzala myši pri miznutí */
}

/* Malý trojuholník (šípka) smerujúci nadol k ikonke */
.vlastny-tooltip .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: rgb(40,60,137) transparent transparent transparent;
}

/* Zobrazenie na :hover (PC) alebo pridaním triedy .zobraz (Mobil) */
.vlastny-tooltip:hover .tooltip-text,
.vlastny-tooltip.zobraz .tooltip-text {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(-5px); /* Bublinka pri zobrazení jemne poskočí dole */
}


.fa-prev {
  background-image: url("../img/arrow_back_left_previous_icon.svg");
  background-size: 22px 22px;
  width: 22px;
  height: 22px;
  cursor: pointer;
}

.fa-next {
  background-image: url("../img/arrow_forward_next_right_icon.svg");
  background-size: 22px 22px;
  width: 22px;
  height: 22px;
  cursor: pointer;
}

#map-canvas3 {
  width: 100%;
  height: 300px;
  border: solid 1px #333;
}

.mapa_iframe {
  width: 400px;
  height: 300px;
  border: 0;
}

label a {
  text-decoration: underline;
}

.fixed-footer {
  position: fixed;
  bottom: 0;
  width: 100%;
}

footer {
  margin-top: 50px;
  width: 100%;
  height: 50px; /* Nastavte výšku pätnej časti podľa potreby */
  background-color: rgb(37,35,38); /* Prispôsobte farbu pätnej časti podľa potreby */
  line-height: 50px;
  color: white;
}

footer a {
  color: white;
}

footer a:hover {
  color: white;
}

div#text_navyse_spopl {
  margin-top: 30px; 
  color: red; 
  margin-bottom: 10px;
  font-weight: bold;
}

div#text_navyse_spopl2 {
  margin-top: 30px; 
  margin-bottom: 10px;
  font-weight: bold;
}

@media only screen and (min-width: 320px) and (max-width: 767px) {
  .logo {
    position: absolute;
    top: 20px; 
    right: 30px;
    height: 80px;
  }
  
  h1 {
    padding-top: 100px; 
  }

  h1 span {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    display: block;
  }  
  
  h3 {
    padding: 12px 0 6px 0;
  }

  
  
  .stlpec_mapa {
    float: left;
    margin-right: 0;
    width: 300px;
  } 

  .mapa_iframe {
    width: 300px;
  }
  
  
  .sluzba span.text {
    max-width: 200px;
  }
  
  .nad_banner {
    height: 150px;
  }
}

  .tel-group {
      display: flex;
      gap: 10px;
  }
  /* Select musí byť trochu širší, aby sa zmestila vlajka aj číslo */
  .tel-predvolba {
      width: 100px; 
      height: 33px;   
  }
  .tel-cislo {
      flex: 1;
  }

  
/* ==========================================================================
   ROVNOMERNÉ ROZLOŽENIE STĹPCOV PRE STRÁNKU S DÁTUMAMI
   ========================================================================== */

@media (min-width: 992px) {
    /* 1. Stĺpec "Dátum" */
    .stlpec:has(#kalendar) {
        width: 31%;
        margin-right: 3.5%;
    }

    /* 2. Stĺpec "Čas" */
    a#cas + .stlpec {
        width: 31%;
        margin-right: 3.5%;
    }

    /* 3. Stĺpec "Zákazník" */
    a#zakaznik + .stlpec {
        width: 31%;
        margin-right: 0;
    }
}

/* ==========================================================================
   10. ROVNOMERNÉ ROZLOŽENIE POBOČIEK NA ÚVODNEJ STRÁNKE
   ========================================================================== */

#prevadzky {
    display: grid;
    /* Vytvorí stĺpce o šírke 260px a automaticky zistí, koľko sa ich zmestí vedľa seba */
    grid-template-columns: repeat(auto-fill, 260px); 
    /* Rovnomerne roztiahne voľný priestor medzi stĺpcami */
    justify-content: space-between; 
    /* Nastaví medzeru medzi riadkami a stĺpcami */
    gap: 30px; 
    padding-top: 20px;
}

#prevadzky .polozka {
    margin-right: 0 !important; /* Zrušíme pôvodné odsadenie, riadi to "gap" v gride */
    margin-top: 0 !important;
    float: none !important; /* Zrušíme plávanie, grid nepotrebuje float */
}

/* Jemné doladenie pre veľmi úzke mobilné displeje, aby karta nepretiekla */
@media only screen and (max-width: 320px) {
    #prevadzky {
        grid-template-columns: 1fr;
        justify-content: center;
    }
}

/* ==========================================================================
   MODERNÉ MOBILNÉ ZOBRAZENIE (Do global24.css)
   ========================================================================== */

@media only screen and (max-width: 767px) {
    /* 1. OPRAVA HLAVIČKY (Logo a Nadpis) */
    .logo {
        position: static !important; /* Vráti logo späť do normálneho toku stránky */
        float: none !important;
        display: block;
        margin: 15px auto !important;
        height: 60px !important; /* Na mobile jemne zmenšíme */
    }
    
    h1 {
        padding-top: 15px !important; /* Zrušenie tých pôvodných 100px zhora */
        text-align: center;
        display: block;
        width: 100%;
    }
    
    h1 span {
        display: block;
        margin-top: 10px; /* Aby SP NEXT a prevádzka neboli na sebe nalepené */
    }

    /* 2. OPRAVA ÚVODNEJ STRÁNKY (Pobočky) */
    #prevadzky {
        display: flex;
        flex-direction: column;
        align-items: center; /* Krásne vycentruje karty pod sebou */
    }
    
    #prevadzky .polozka {
        width: 100% !important;
        max-width: 320px !important; /* Aby neboli natiahnuté úplne od okraja po okraj */
        margin: 0 auto 20px auto !important;
        float: none !important;
    }

    /* 3. OPRAVA ČASOV (Už žiadny nadpis vedľa tlačidiel) */
    a#cas + .stlpec {
        display: block !important; /* Zrušíme problémový flexbox z minula */
        text-align: center; /* Vycentruje nadpis aj všetko v stĺpci */
    }
    
    .cas {
        display: inline-block !important; /* Usporiada ich pekne vedľa seba s možnosťou zalamovania */
        float: none !important;
        margin: 5px !important;
    }

    /* 4. VŠEOBECNÉ ROZLOŽENIE STĹPCOV */
    .stlpec, .stlpec_mapa {
        width: 100% !important;
        float: none !important;
        margin-right: 0 !important;
        margin-bottom: 40px !important;
    }

    .stlpec h2 {
        text-align: center;
    }

    #kalendar {
        margin: 0 auto;
    }

    .mapa_iframe {
        width: 100% !important;
        border-radius: 15px;
    }

    input[type="submit"] {
        width: 100%;
        margin-top: 30px;
        float: none;
    }
    /* 1. OPRAVA HLAVIČKY (Logo a Nadpis) */
    .logo {
        position: absolute !important;
        top: 5px !important; /* Posunuté úplne hore k okraju */
        left: 50% !important;
        transform: translateX(-50%) !important; /* Dokonalé vycentrovanie na stred */
        height: 75px !important; /* Zväčšené logo */
        margin: 0 !important;
    }
    
    h1 {
        padding-top: 95px !important; /* Posunutie nadpisu bezpečne až pod logo */
        text-align: center;
        display: block;
        width: 100%;
        margin-top: 0 !important;
    }
    
    h1 span {
        display: block;
        margin-top: 8px; /* Jemná medzera medzi názvom a pobočkou */
    }
}