@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Patrick+Hand&display=swap');

:root {
  /* Tloušťka okraje (výseče) */
  --tloustka-okraje: 0.2em; 
  
  /* Barvy pro jednotlivé úrovně */
  --barva-jedna:  #31d136; /* 1/5: Zelená */
  --barva-dve:    #29b2be; /* 2/5: Zelenomodrá / Tyrkysová */
  --barva-tri:    #b8a039; /* 3/5: Světlejší modrá */
  --barva-ctyri:  #df4bec; /* 4/5: Středně modrá */
  --barva-pet:    #084d86; /* 5/5: Modrá */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-variation-settings:"width" 100;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  background-image: url("../img/bckmapa.jpg");
  background-position: center top;
  background-repeat: repeat;
  background-attachment: fixed;
}

/* Header */
header {
    background: linear-gradient(135deg, #2c5530, #4a7c59);
    color: white;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo sekce */
.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-section {
    text-decoration: none;
    color: white;
}

.logo {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    color: #FFF;
}

.site-title {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 1px;
}

header h1 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: rgba(255,255,255,0.2);
}

main {
    display: grid;
    gap: 2rem;
    margin: 0 auto;

    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 1rem;
}


h1, h2 {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

section {
    justify-self: center;
    background: white;
    padding-bottom: 7rem;
    margin-top: 2rem;
    border-radius: 10px;
    text-align: center;
    background-image: url("../img/bcksection.png");
    background-position: center bottom;
    background-repeat: repeat-x;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    width: 1200px;
}

.sectionbox {
    padding: 2rem;
}

section h2 {
    color: #2c5530;
    margin-bottom: 0.3rem;
    font-size: 1.8rem;
}

section p {
    color: #666;
    margin-bottom: 1.5rem;
}

.rozdeleno {
    display: grid;
    gap: 2em;
    grid-template-columns: auto 30%;
}

.podtitul {
    font-weight: 600;
    margin-top:-1rem;
}

.maintext {
    text-align: left;
}

.part {
    justify-self: center;
}

.part img {
    width: 100%;
}


.fesak {
    border-radius: 3em;
}

/* Aktuální túry */
.tury {
    grid-column: 1;
    grid-row: 1;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.tury h2 {
    color: #2c5530;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 2rem;
}

/* Náhledové boxy */
.nahledbox-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: space-evenly; 
    gap: 2rem;
}

.nahledbox {
    display: flex;
    position: relative;
    flex-direction: column;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
    transition: transform 0.3s, box-shadow 0.3s;
    width: auto;
    max-width: 360px;
    justify-self: center;
}

.nahledbox-obsah {
    padding: 1rem;
}

.nahledbox:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.nahledbox img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.nahledbox h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2c5530;
}

.nahledbox p {
    color: #666;
    margin-bottom: 1rem;
    min-height: 10rem;
    text-align: left;
}

.text {
    text-align: left;
    padding-left: 3rem;
    padding-right: 3rem;
}

.text h1 {
    margin-bottom: 2rem;
    font-size: 2rem;
}

.text h3 {
    margin-bottom: 1.3rem;
    font-size: 1.3rem;
}

/* Ikony */
.infoikony {
    position: absolute;
    top: 15px;
    left: -10px;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    color: white;
    font-size: 1.3rem;
    border: 2px solid #f8f9fa;
    padding-top: 7px;
    background-color: #084d86;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    transition: all .5s;
    cursor: pointer;
}

.icon:hover {
    transform: scale(1.3);
}

.kalendar-ikona {
    font-size: 3rem;
}

.obtiznost {
    position: absolute;
    top: -10px;
    right: -10px;
    display: inline-block;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px solid #f8f9fa;
    font-size: 2rem;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    background: var(--barva-okraje);
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.obtiznost::after {
  content: var(--cislo); /* Obsah (číslo) načteme z proměnné */
  
  /* Pozicování přesně do středu */
  position: absolute;
  top: var(--tloustka-okraje);
  left: var(--tloustka-okraje);
  right: var(--tloustka-okraje);
  bottom: var(--tloustka-okraje);
  
  background-color: white;
  border-radius: 50%;
  
  /* Centrování čísla uvnitř tohoto vnitřního kruhu */
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Styl písma */

  color: #333;
}

.obtiznost.jedna {
  --cislo: "1";
  --barva-okraje: conic-gradient(var(--barva-jedna) 20%, white 0);
}

.obtiznost.dva {
  --cislo: "2";
  --barva-okraje: conic-gradient(var(--barva-dve) 40%, white 0);
}

.obtiznost.tri {
  --cislo: "3";
  --barva-okraje: conic-gradient(var(--barva-tri) 60%, white 0);
}

.obtiznost.ctyri {
  --cislo: "4";
  --barva-okraje: conic-gradient(var(--barva-ctyri) 80%, white 0);
}

.obtiznost.pet {
  --cislo: "5";
  /* Pro 5/5 je celý okraj barevný */
  --barva-okraje: var(--barva-pet);
}

.cena {
  /* --- Základní vzhled --- */
  display: inline-block; /* Aby fungovaly transformace a padding */
  position: relative; /* Nutné pro pozicování dírky (pseudo-elementu) */
  background-color: #f3e9dd; /* Barva kartonu */
  padding: 0.5em 2em 0.5em 1.2em; /* Místo pro text, vpravo více kvůli zobáčku, vlevo více kvůli dírce */
  color: #333; /* Barva textu */
  border-radius: 4px; /* Lehce zaoblené rohy */
  
  /* --- Vzhled písma "fixem" --- */
  font-family: 'Patrick Hand', cursive; /* Použijeme naimportované písmo */
  font-size: 1.5em; /* Větší písmo než okolní text */
  line-height: 1;

  /* --- Mírné pootočení a stín --- */
  transform: rotate(2.5deg);
  box-shadow: inset 0px -2px 4px 2px rgba(0, 0, 0, 0.15);
  margin: 0.5em; /* Odsazení od okolního textu */

  clip-path: polygon(0% 0%, 90% 0%, 100% 50%, 90% 100%, 0% 100%);
}

/* --- Dírka pro provázek (vytvořená pomocí pseudo-elementu) --- */
.cena::before {
  content: '';
  position: absolute;
  
  /* Pozice vlevo uprostřed */
  left: 0.5em;
  top: 50%;
  transform: translateY(-50%); /* Přesné vertikální centrování */

  /* Vzhled dírky */
  width: 0.6em;
  height: 0.6em;
  background-color: white; /* Předpokládá bílé pozadí stránky */
  border-radius: 50%;
  
  /* Kovový kroužek kolem dírky */
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.2); 
}

.kalendar {
    border: 0;
    width:800px;
    height:600px;
}

#scrollToTopBtn {
  /* --- Pozice --- */
  position: fixed; /* Zůstane na místě i při skrolování */
  bottom: 20px;
  right: 30px;
  z-index: 99; /* Bude nad většinou ostatních prvků */

  /* --- Vzhled --- */
  background-color: #007BFF; /* Příklad: modrá barva */
  color: white; /* Tímto nastavíme barvu SVG ikony na bílou */
  border: none;
  border-radius: 50%; /* Udělá z tlačítka kruh */
  width: 50px;
  height: 50px;
  cursor: pointer;

  /* --- Zarovnání ikony uvnitř --- */
  display: flex;
  align-items: center;
  justify-content: center;

  /* --- Klíčová část: Skrytí a animace --- */
  opacity: 0; /* Plně průhledné */
  visibility: hidden; /* Skryté a neklikatelné */
  transform: translateY(20px); /* Lehce posunuté dolů pro animaci */
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s ease-in-out;
}

/* Třída, kterou budeme přidávat pomocí JavaScriptu, aby se tlačítko zobrazilo */
#scrollToTopBtn.show {
  opacity: 1; /* Plně viditelné */
  visibility: visible; /* Viditelné a klikatelné */
  transform: translateY(0); /* Vrátí se na původní pozici */
}

/* Malý efekt při najetí myší */
#scrollToTopBtn:hover {
  background-color: #0056b3; /* Tmavší modrá */
}

/* Zmenšení ikony uvnitř tlačítka */
#scrollToTopBtn svg {
  width: 24px;
  height: 24px;
}

section h2 {
  color: #2c5530;
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-title {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 2rem;
    font-weight: 300;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    outline: none;
}

.form-input:focus {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.2);
    background: white;
}

.form-label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: #999;
    font-size: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
    background: transparent;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: -0.5rem;
    left: 0.8rem;
    font-size: 0.8rem;
    color: #667eea;
    background: white;
    padding: 0 0.5rem;
    font-weight: 500;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(-1px);
}

/* Animace při načtení */
.form-container {
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating placeholder efekt pro Safari */
.form-input::placeholder {
    color: transparent;
}

.flex {
    display: inline-flex;
    justify-content: space-between;
    gap: 0.8em;
}

/* CTA tlačítka */
.cta {
    display: inline-flex;
    gap: 0.8em;
    background: linear-gradient(135deg, #4a7c59, #2c5530);
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    margin: 0.5rem;
    text-align: center;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 0.9rem;
    align-items: center;
    justify-items: center;
}

.kalendar-button {
    display: inline-flex;
    gap: 0.8em;
    color: #2c5530;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    border: 3px solid #2c5530;
    margin: 0.5rem;
    text-align: center;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 1rem;
    width: fit-content;
    height: fit-content;
}

.cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #5a8c69, #3c6540);
}

button[type="submit"] {
    background: linear-gradient(135deg, #4a7c59, #2c5530);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Footer */
footer {
    background: #fae2c0;
    color: rgb(49, 48, 48);
    text-align: center;
    padding: 2rem;
    background-image:url("../img/bckfooter.jpg");
    background-position: center bottom;
    background-repeat: repeat-x;
    height: 400px;
    border-top: 6px solid white;
    line-height: 2rem;
}

footer a {
    color: rgb(49, 48, 48);
    text-decoration: none;
}

footer a:hover {
    color: #000;
}

footer .social {
    color:#777777;
    margin: 0.5rem;
}

@media (max-width: 1270px) {
    main {
        gap: 0;
        padding: 0;
    }

    section {
        margin-top: 0;
        border-radius: 0;
        box-shadow: none;
        width: 100%;
    }

    .nahledbox-container {
        grid-template-columns: 1fr 1fr;
    }

    .rozdeleno {
        grid-template-columns: 1fr;
    }

    .kalendar {
        border: 0;
        width: 95%;
        height: auto;
        aspect-ratio: 8 / 6;
    }
}

@media (max-width: 800px) {
    main section {
        grid-column: 1;
        grid-row: auto;
    }

    header h1 {
        font-size: 2rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nahledbox-container {
    grid-template-columns: 1fr;
    }
}