/* --- ZÁKLADNÍ NASTAVENÍ A PROMĚNNÉ --- */
:root {
    /* TVÉ PŮVODNÍ BARVY */
    --primary-color: #2c3e50; 
    --secondary-color: #3498db; 
    --accent-color: #e74c3c;
    
    /* Původní Light Mode */
    --background-light: #f4f7f9; 
    --surface-light: #ffffff; 
    --text-light: #333333; 
    
    /* Původní Dark Mode */
    --background-dark: #1e272e; 
    --surface-dark: #2c3a47; 
    --text-dark: #e0e0e0; 
    
    /* Dynamické proměnné pro přepínání */
    --c-bg: var(--background-light); 
    --c-surface: var(--surface-light); 
    --c-text: var(--text-light);
    --c-heading: var(--primary-color);
    --c-secondary: var(--secondary-color);
    
    --shadow: 0 4px 15px rgba(0,0,0,0.06); 
    --shadow-hover: 0 8px 25px rgba(0,0,0,0.1);
    --border-radius: 12px; 
    --transition: all 0.3s ease-in-out;
}

/* OPRAVA ČITELNOSTI TEXTŮ V TMAVÉM REŽIMU */
body.dark-mode { 
    --c-bg: var(--background-dark); 
    --c-surface: var(--surface-dark); 
    --c-text: var(--text-dark); 
    --c-heading: #ffffff; /* Bílé nadpisy, aby nezanikly na tmavém pozadí */
    --c-secondary: #5dade2; /* Světlejší odstín tvé modré pro lepší čitelnost textů */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; line-height: 1.7; background-color: var(--c-bg); color: var(--c-text); transition: background-color 0.3s, color 0.3s; }

/* GLOBÁLNÍ ZAROVNÁNÍ DO BLOKU BEZ DĚLENÍ SLOV POMLČKOU */
p { text-align: justify; hyphens: none; -webkit-hyphens: none; -ms-hyphens: none; }

h2 { text-align: center; font-size: 2.5rem; font-weight: 600; letter-spacing: -1px; margin-bottom: 3.5rem; position: relative; color: var(--c-heading); transition: color 0.3s; }
h2::after { content: ''; width: 80px; height: 4px; background: var(--c-secondary); border-radius: 2px; position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); transition: background-color 0.3s; }
main { max-width: 1200px; margin: auto; padding: 0 2rem; overflow: hidden; }
section { padding: 5rem 0; opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
section.visible { opacity: 1; transform: translateY(0); }

/* --- NAVIGACE --- */
nav { display: flex; justify-content: space-between; align-items: center; padding: 1rem 5%; width: 100%; position: fixed; top: 0; left: 0; z-index: 1000; transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease; }
nav.scrolled { background-color: rgba(44, 62, 80, 0.95); backdrop-filter: blur(8px); padding: 0.5rem 5%; box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
nav .logo { font-size: 1.8rem; font-weight: 700; color: #fff; }
.nav-links { display: flex; align-items: center; }
.nav-links a { color: #fff; text-decoration: none; margin: 0 0.8rem; padding-bottom: 5px; position: relative; transition: color 0.3s ease; font-size: 0.95rem;}
.nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 50%; transform: translateX(-50%); background-color: var(--c-secondary); transition: width 0.3s ease, background-color 0.3s; }
.nav-links a:hover { color: var(--c-secondary); }
.controls { display: flex; align-items: center; gap: 1rem; }
.lang-switcher button { background: none; border: 1px solid #fff; color: #fff; padding: 0.3rem 0.6rem; border-radius: 5px; cursor: pointer; transition: var(--transition); }
.lang-switcher button:hover, .lang-switcher button.active { background-color: var(--secondary-color); border-color: var(--secondary-color); color: #fff; }
.dark-mode-toggle { cursor: pointer; font-size: 1.5rem; color: #fff; transition: transform 0.3s ease; }
.dark-mode-toggle:hover { transform: scale(1.1); }

/* --- HERO SEKCE --- */
header { background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/janoli-apartman-dolni-poustevna-uvod.jpg') no-repeat center center/cover; color: #fff; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.hero h1 { font-size: 3.5rem; font-weight: 700; text-shadow: 2px 2px 8px rgba(0,0,0,0.5); }
.hero p { font-size: 1.4rem; margin-bottom: 2rem; text-align: center; }
.cta-button { background-color: var(--secondary-color); color: #fff; padding: 1rem 2.5rem; text-decoration: none; border-radius: 50px; font-weight: 600; transition: var(--transition); box-shadow: var(--shadow); }
.cta-button:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); background-color: #2980b9; }

/* --- O NÁS A ZAROVNÁNÍ --- */
.about-content { display: flex; align-items: center; gap: 3rem; }
.about-content img { max-width: 50%; border-radius: var(--border-radius); box-shadow: var(--shadow); }
.about-content p, .faq-answer p { text-align: justify; hyphens: none; -webkit-hyphens: none; color: var(--c-text); transition: color 0.3s;}

/* --- GALERIE --- */
.gallery-category { margin-bottom: 4rem; }
.gallery-section-title { font-size: 2rem; font-weight: 700; margin-bottom: 2rem; color: var(--c-heading); text-align: left; transition: color 0.3s; }
.gallery-section-title::after { display: none; }
.gallery-subsection-title { font-size: 1.5rem; margin-bottom: 1.5rem; margin-top: 2rem; color: var(--c-secondary); border-bottom: 1px solid rgba(0,0,0,0.1); padding-bottom: 0.5rem; transition: color 0.3s; }
body.dark-mode .gallery-subsection-title { border-bottom: 1px solid rgba(255,255,255,0.1); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; align-items: center; }
.gallery-grid img { width: 100%; height: auto; border-radius: var(--border-radius); box-shadow: var(--shadow); transition: var(--transition); cursor: pointer; }
.gallery-grid img:hover { transform: scale(1.03); box-shadow: var(--shadow-hover); }

/* --- LIGHTBOX (Zvětšování fotek) --- */
.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.9); z-index: 3000; display: none; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; }
.lightbox.show { display: flex; opacity: 1; }
.lightbox-content { max-width: 90%; max-height: 90vh; border-radius: 8px; box-shadow: 0 0 20px rgba(0,0,0,0.5); object-fit: contain; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; transition: color 0.3s ease; }
.lightbox-close:hover { color: var(--c-secondary); }

/* --- VIDEO SEKCE --- */
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 900px; margin: 0 auto; border-radius: var(--border-radius); box-shadow: var(--shadow); }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* --- CENÍK --- */
.pricing-table { width: 100%; max-width: 800px; margin: 0 auto; background-color: var(--c-surface); border-radius: var(--border-radius); padding: 2rem; box-shadow: var(--shadow); overflow-x: auto; }
.pricing-table table { width: 100%; border-collapse: collapse; text-align: center; min-width: 450px; }
.pricing-table th, .pricing-table td { padding: 1rem; color: var(--c-text); transition: color 0.3s; text-align: center; }
.pricing-table th { font-weight: 600; font-size: 1.2rem; color: var(--c-secondary); border-bottom: 2px solid var(--c-secondary); transition: color 0.3s, border-color 0.3s; }
.pricing-table td { font-size: 1.1rem; }
.pricing-note { margin-top: 1.5rem; text-align: center; font-size: 0.9rem; opacity: 0.8; color: var(--c-text); hyphens: none; }

/* --- RECENZE SLIDER A TLAČÍTKO --- */
.reviews-summary { text-align: center; margin-bottom: 2.5rem; }
.reviews-summary .stars { font-size: 2rem; color: #f39c12; }
.swiper-container { width: 100%; padding: 1rem 0 3rem 0; overflow: hidden; }
.swiper-slide { display: flex; justify-content: center; height: auto; }
.review-card { background: var(--c-surface); padding: 2rem; border-radius: var(--border-radius); box-shadow: var(--shadow); border-top: 4px solid var(--c-secondary); display: flex; flex-direction: column; width: 90%; max-width: 500px; min-height: 250px; transition: var(--transition); }
.swiper-slide:hover .review-card { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.review-text { font-style: italic; margin-bottom: 1rem; flex-grow: 1; color: var(--c-text); transition: color 0.3s; text-align: justify; hyphens: none; -webkit-hyphens: none; }
.review-footer { display: flex; justify-content: space-between; align-items: center; }
.review-author { font-weight: 600; color: var(--c-secondary); transition: color 0.3s;}
.translate-btn { background: none; border: 1px solid var(--c-secondary); color: var(--c-secondary); padding: 0.4rem 0.8rem; border-radius: 50px; cursor: pointer; transition: var(--transition); font-size: 0.9rem; }
.translate-btn:hover { background: var(--c-secondary); color: #fff; border-color: var(--c-secondary); }
.swiper-pagination-bullet-active { background-color: var(--c-secondary) !important; }
.swiper-button-next, .swiper-button-prev { color: var(--c-secondary) !important; }
.add-review-container { text-align: center; margin-top: 2rem; }
.add-review-container a { display: inline-block; }

/* --- FAQ (ČASTÉ DOTAZY) --- */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(0,0,0,0.1); }
body.dark-mode .faq-item { border-bottom: 1px solid rgba(255,255,255,0.1); }
.faq-item:last-child { border-bottom: none; }
.faq-question { width: 100%; background: none; border: none; padding: 1.5rem 0; text-align: left; font-size: 1.1rem; font-weight: 600; cursor: pointer; color: var(--c-heading); position: relative; padding-right: 30px; transition: color 0.3s; }
.faq-question::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--c-secondary); transition: transform 0.3s ease, color 0.3s; }
.faq-item.active .faq-question::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
.faq-answer p { padding: 0 0 1.5rem 0; opacity: 0.9; text-align: justify; hyphens: none; -webkit-hyphens: none; }

/* --- KONTAKTNÍ FORMULÁŘ --- */
#contact-form-section { background-color: var(--c-surface); padding: 4rem; border-radius: var(--border-radius); box-shadow: var(--shadow); transition: background-color 0.3s; }
.contact-container { display: flex; gap: 3rem; align-items: center; }
.contact-info, .contact-form { flex: 1; }
.contact-info p, .contact-info a { color: var(--c-text); transition: color 0.3s; text-decoration: none; text-align: left; }
.contact-info a:hover { color: var(--c-secondary); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: .5rem; font-weight: 600; color: var(--c-heading); }
.form-group input, .form-group textarea { width: 100%; padding: .8rem; border-radius: 5px; border: 1px solid #ccc; background-color: var(--c-bg); color: var(--c-text); transition: var(--transition); font-family: inherit; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--c-secondary); box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2); outline: none; }
.submit-btn { background: var(--secondary-color); color: #fff; padding: .8rem 1.5rem; border: none; border-radius: 50px; cursor: pointer; font-size: 1rem; font-weight: 600; transition: var(--transition); }
.submit-btn:hover { background-color: #2980b9; transform: translateY(-2px); }

/* --- PATIČKA A SOCIÁLNÍ SÍTĚ --- */
footer { background-color: var(--primary-color); color: #e0e0e0; text-align: center; padding: 2rem 0; margin-top: 3rem; }
footer p { text-align: center; } /* <-- TOTO JE TA OPRAVA */
.social-links { margin-top: 1rem; display: flex; justify-content: center; gap: 15px; }
.social-links a { color: #fff; transition: color 0.3s ease; display: inline-block; }
.social-links a:hover { color: var(--c-secondary); transform: scale(1.1); }

/* --- COOKIES LIŠTA --- */
.cookie-banner { position: fixed; bottom: 0; left: 0; width: 100%; background-color: var(--c-surface); color: var(--c-text); padding: 1rem 5%; display: flex; justify-content: space-between; align-items: center; z-index: 2000; box-shadow: 0 -4px 15px rgba(0,0,0,0.1); transform: translateY(100%); transition: transform 0.5s ease-in-out, background-color 0.3s; border-top: 2px solid var(--c-secondary); }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { margin: 0; font-size: 0.95rem; padding-right: 2rem; text-align: left; }
.cookie-banner button { background-color: var(--secondary-color); color: white; border: none; padding: 0.6rem 1.2rem; border-radius: 5px; font-weight: bold; cursor: pointer; transition: background-color 0.3s; white-space: nowrap; }
.cookie-banner button:hover { background-color: #2980b9; }

/* --- TLAČÍTKO NAHORU --- */
#back-to-top { position: fixed; bottom: 80px; right: 20px; background-color: var(--secondary-color); color: white; width: 50px; height: 50px; text-align: center; line-height: 50px; border-radius: 50%; text-decoration: none; font-size: 24px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s, transform 0.3s; z-index: 1000; }
#back-to-top.show { opacity: 1; visibility: visible; }
#back-to-top:hover { background-color: #2980b9; transform: scale(1.1); }

/* --- HAMBURGER MENU --- */
.hamburger { display: none; font-size: 2rem; color: #fff; cursor: pointer; user-select: none; }

/* --- RESPONZIVITA --- */
@media (max-width: 900px) { 
    .about-content, .contact-container { flex-direction: column; } 
    .about-content img { max-width: 100%; } 
}

@media (max-width: 768px) { 
    section { padding: 3rem 0; }
    h2 { font-size: 2rem; margin-bottom: 2rem; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    #contact-form-section { padding: 2rem; }
    
    .pricing-table { padding: 1rem; }
    .pricing-table th, .pricing-table td { padding: 0.8rem 0.5rem; }

    #map iframe { height: 300px; }

    .hamburger { display: block; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background-color: rgba(44, 62, 80, 0.98); padding: 1rem 0; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
    .nav-links.active { display: flex; }
    .nav-links a { margin: 1rem 0; display: block; }
    
    .cookie-banner { flex-direction: column; text-align: center; gap: 1rem; } 
    .cookie-banner p { padding-right: 0; text-align: center; } 

    .gallery-grid { grid-template-columns: 1fr; gap: 1rem; }
    .gallery-grid img { height: auto; }
}