/* ======================================================================
   PROJEKT: Hotel Besední dům Ivančice 
   STYL: Verze 4.6 - Final Edition (Clean & Responsive)
   ====================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: 'Lora', serif; 
    color: #2c2c2c;
    line-height: 1.6;
    overflow: hidden; /* Roluje se jen obsah panelu, ne celá stránka */
}

body {
    background: url('../img/background.webp') no-repeat center center fixed;
    background-size: cover;
    background-color: #f4e8d1;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: -1;
}

/* --- LOGO A HLAVA --- */
.main-header {
    position: fixed;
    top: 40px;
    left: 40px;
    z-index: 100;
}

.logo-link {
    text-decoration: none !important;
    display: block;
    outline: none;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    text-transform: uppercase;
    line-height: 0.85;
    color: #332b1a;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9);
}

.city {
    font-size: 2.1rem;
    font-weight: 400;
    letter-spacing: 6px;
    display: block;
    margin-top: 15px;
}

/* --- MENU --- */
.main-nav {
    margin-top: 35px;
}

.main-nav ul {
    list-style: none;
    display: inline-flex;
    flex-direction: column;
}

.main-nav li {
    margin-bottom: 12px;
}

.main-nav a {
    text-decoration: none;
    color: #fff;
    background: rgba(51, 43, 26, 0.9);
    padding: 12px 25px;
    display: block; 
    transition: all 0.3s ease;
    border-radius: 2px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-align: center;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.2);
}

.main-nav a:hover {
    background: #c19a6b;
    color: #000;
    transform: translateX(10px);
}

/* --- KONTEJNER PRO SEKCE --- */
.content-container {
    padding: 80px 40px 80px 480px; 
    height: 100vh;
    display: flex;
    align-items: flex-start;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s;
}

.content-container.active {
    visibility: visible;
    opacity: 1;
}

/* --- JEDNOTLIVÉ PANELY --- */
.section-content {
    display: none;
}

.section-content.visible {
    display: block;
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.97);
    padding: 50px;
    border-radius: 4px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.5);
    max-width: 850px;
    width: 100%;
    border-left: 8px solid #332b1a;
    max-height: 85vh;
    overflow-y: auto;
}

/* Stylování obsahu uvnitř sekcí */
.glass-panel h2 {
    font-family: 'Playfair Display', serif;
    color: #332b1a;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.glass-panel hr {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid #d1b48c;
    opacity: 0.6;
}

.glass-panel p {
    margin-bottom: 15px;
}

.close-btn {
    display: inline-block;
    margin-top: 30px;
    color: #8b0000;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #ff0000;
}

/* --- ELEGANTNÍ SCROLLBAR --- */
.glass-panel::-webkit-scrollbar {
    width: 8px;
}

.glass-panel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.glass-panel::-webkit-scrollbar-thumb {
    background: #332b1a;
    border-radius: 4px;
}

.glass-panel::-webkit-scrollbar-thumb:hover {
    background: #c19a6b;
}

/* --- LEGISLATIVNÍ PATIČKA --- */
.footer-legal {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 110;
    background: #332b1a;
    padding: 10px 25px;
    border-top-left-radius: 12px;
}

.footer-legal ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.footer-legal a {
    text-decoration: none;
    color: #c19a6b;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: #fff;
}

/* --- ANIMACE --- */
@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(60px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* --- RESPONZIVITA --- */
@media (max-width: 1100px) {
    .content-container { 
        padding-left: 40px; 
        padding-top: 420px; 
    }
    .glass-panel {
        max-height: none;
    }
    body, html {
        overflow-y: auto;
    }
}

@media (max-width: 768px) {
    .main-header { 
        position: relative; 
        top: 20px; 
        left: 20px; 
    }
    h1 { font-size: 2.2rem; }
    .city { font-size: 1.5rem; }
    .content-container { 
        padding: 40px 15px; 
    }
    .glass-panel {
        padding: 25px;
    }
}