/* --- Proměnné a základní nastavení --- */
:root {
    --primary: #FF6B35; /* Moderní živá oranžová */
    --primary-dark: #e55a2b;
    --dark: #1a1a1a;
    --light: #f8f9fa;
    --body-font: 'Inter', sans-serif;
    --heading-font: 'Poppins', sans-serif;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
    --border-radius: 1rem;
}

body {
    font-family: var(--body-font);
    color: #4a4a4a;
    line-height: 1.7;
}

h1, h2, h3, h4, h5 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--dark);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* --- Navigace --- */
#mainNav {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    transition: all 0.3s ease;
    background-color: transparent;
}

#mainNav.navbar-shrink {
    background-color: rgba(26, 26, 26, 0.95); /* Tmavé sklo */
    backdrop-filter: blur(10px);
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

#mainNav .navbar-brand {
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 1.5rem;
}

#mainNav .nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0 1.2rem !important;
    color: rgba(255,255,255,0.85);
}

#mainNav .nav-link:hover {
    color: var(--primary);
}

.btn-rezervace {
    background-color: var(--primary);
    color: white !important;
    border-radius: 2rem;
    padding: 0.5rem 1.5rem !important;
    margin-left: 1rem;
}

.btn-rezervace:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* --- Hero Sekce --- */
header.masthead {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: url('https://images.unsplash.com/photo-1478131143081-80f7f84ca84d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
}

header.masthead .overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 0;
}

header.masthead .container {
    position: relative;
    z-index: 1;
}

header.masthead h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

header.masthead .subheading {
    display: block;
    font-family: var(--body-font);
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    header.masthead h1 {
        font-size: 2.5rem;
    }
}

/* --- Tlačítka --- */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    border-radius: 2rem;
    padding: 1rem 2.5rem;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-light {
    border-radius: 2rem;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-width: 2px;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: var(--dark);
}

/* --- Sekce obecně --- */
.page-section {
    padding: 6rem 0 1rem 0;
}

.section-heading {
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.divider {
    width: 3rem;
    height: 0.3rem;
    background-color: var(--primary);
    margin: 1.5rem auto;
    border: none;
    opacity: 1;
}

/* --- Karty Služeb --- */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover) !important;
}

.icon-box i {
    transition: transform 0.3s ease;
}

.service-card:hover .icon-box i {
    transform: scale(1.1);
}

/* --- Karty Ubytování --- */
.accommodation-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.accommodation-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover) !important;
}

.card-img-top-wrapper {
    height: 250px;
    position: relative;
}

.card-img-top {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.accommodation-card:hover .card-img-top {
    transform: scale(1.05);
}

.price-tag {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 1.5rem;
    font-weight: 700;
    border-top-left-radius: 1rem;
}

.bg-soft-primary {
    background-color: rgba(255, 107, 53, 0.1);
    font-weight: 600;
    padding: 0.5em 1em;
}

/* --- Ceník --- */
#cenik {
    background-color: var(--dark);
    color: #ffffff !important;
}

#cenik h1, #cenik h2, #cenik h3, #cenik h4, #cenik h5, #cenik h6 {
    color: #ffffff !important;
}

#cenik small, #cenik .small, #cenik .text-muted, #cenik .text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

#cenik .border-secondary {
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.price {
    white-space: nowrap;
}

.pricing-item {
    transition: background-color 0.2s;
}

.pricing-item:hover {
    background-color: rgba(255,255,255,0.05);
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 8px;
}

/* --- Kontakt --- */
.contact-box {
    border-radius: var(--border-radius);
    transition: transform 0.3s;
}

.contact-box:hover {
    transform: translateY(-5px);
}

/* --- Ostatní --- */
.img-wrapper {
    position: relative;
    height: 380px;
    width: 100%;
}

@media (max-width: 991px) {
    .img-wrapper {
        height: 280px;
    }
}

.img-wrapper img {
    border-radius: var(--border-radius);
}

footer a:hover {
    color: var(--primary) !important;
}

/* --- Patička --- */
footer {
    font-size: 0.9rem;
}

footer h5 {
    font-weight: 600;
    letter-spacing: 0.5px;
}

footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

footer a.text-white-50:hover {
    color: var(--primary) !important;
}

.partner-box a {
    transition: background-color 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

.partner-box a:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--primary);
}

/* --- Accordion --- */
.accordion-button:not(.collapsed) {
    color: #fff;
    background-color: var(--primary);
    box-shadow: none;
}

.accordion-button {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

.accordion-button::after {
    filter: invert(1);
}

.accordion-item {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* --- Recenze --- */
#recenze .carousel-item {
    min-height: 300px;
}
#recenze .carousel-control-prev-icon,
#recenze .carousel-control-next-icon {
    background-size: 50%, 50%;
}

#reviews-container .carousel-item {
    padding-left: 4rem;
    padding-right: 4rem;
}

#recenze .carousel-control-prev,
#recenze .carousel-control-next {
    width: 50px;
}

@media (max-width: 576px) {
    #reviews-container .carousel-item {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
    #recenze .carousel-control-prev { left: -10px; }
    #recenze .carousel-control-next { right: -10px; }
}

/* --- Galerie O nás (Slider + BaguetteBox) --- */

/* Překryvná vrstva s ikonou lupy */
.carousel-caption-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

/* Ikona lupy */
.carousel-caption-overlay i {
    color: white;
    opacity: 0; /* Ve výchozím stavu skryté */
    text-shadow: 0 0 10px rgba(0,0,0,0.7);
    transform: scale(0.8);
    transition: all 0.3s ease;
}

/* Efekt při najetí myší */
@media (hover: hover) {
    .carousel-item:hover .carousel-caption-overlay {
        background-color: rgba(0,0,0,0.3);
        cursor: pointer;
    }
    .carousel-item:hover .carousel-caption-overlay i {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Šipky slideru - viditelné */
#aboutCarousel .carousel-control-prev,
#aboutCarousel .carousel-control-next {
    opacity: 0.7;
    width: 10%;
}

/* --- Optimalizace mobilního hamburger menu pro telefony a tablety --- */
@media (max-width: 991.98px) {
    /* 1. Vytvoření elegantní tmavé plovoucí karty pro rozbalené menu */
    #mainNav .navbar-collapse {
        background-color: rgba(26, 26, 26, 0.98); /* Téměř neprůhledná tmavá pro 100% čitelnost */
        backdrop-filter: blur(10px);               /* Efekt rozostřeného skla */
        border-radius: 1rem;                       /* Zaoblené rohy */
        margin-top: 1rem;                          /* Mezera od horní lišty */
        padding: 1.5rem;                           /* Vnitřní rozestupy */
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);   /* Výrazný stín pro prostorový efekt */
    }

    /* 2. Zvětšení rozestupů odkazů pro pohodlné klikání prstem */
    #mainNav .nav-link {
        padding: 0.8rem 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Jemné dělicí linky */
        text-align: center;                        /* Vycentrování textu */
    }

    /* 3. Úprava tlačítka "Rezervovat" pro mobilní zobrazení */
    #mainNav .nav-link.btn-rezervace {
        margin-left: 0 !important;
        margin-top: 0.8rem;
        border-bottom: none;                       /* Bez dělicí linky */
        display: block;
        width: 100%;
    }
}

/* --- GDPR Cookie Bar (Varianta B) --- */
.cookie-bar {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(250px);
    width: 92%;
    max-width: 960px;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem;
    padding: 1.5rem;
    z-index: 10000;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-bar.show {
    transform: translateX(-50%) translateY(0);
}

.cookie-container {
    width: 100%;
}

.cookie-main-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-title-wrapper {
    display: flex;
    align-items: center;
}

.cookie-icon {
    font-size: 1.3rem;
}

.cookie-description {
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-action-buttons {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.cookie-switch-box {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.75rem;
    padding: 1rem 1rem 1rem 4rem !important; /* Vytvoří bezpečný a vzdušný prostor pro přepínač vlevo */
    position: relative;
    height: 100%;
    min-height: 110px;
    transition: all 0.2s ease;
}

.cookie-switch-box:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.cookie-switch-box .form-check-input {
    position: absolute;
    left: 1rem;
    top: 1.2rem;
    margin: 0 !important;
    width: 2.2rem;
    height: 1.2rem;
    cursor: pointer;
}

.cookie-switch-box .form-check-label {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
    cursor: pointer;
}

.cookie-switch-box .small {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.8rem;
    line-height: 1.3;
    display: block;
}

.cookie-settings-panel .form-check-input {
    cursor: pointer;
}

.cookie-settings-panel .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Responzivita pro mobilní telefony */
@media (max-width: 991.98px) {
    .cookie-bar {
        bottom: 15px;
        padding: 1.25rem;
    }
    
    .cookie-main-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .cookie-action-buttons {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: space-between;
    }
    
    .cookie-action-buttons button {
        flex: 1;
        text-align: center;
        padding: 0.6rem 0.2rem;
        font-size: 0.85rem;
        margin: 0 !important;
    }
}

/* --- Vynucení navigačních šipek v galerii (baguetteBox) na mobilech --- */
@media (max-width: 768px) {
    #baguetteBox-overlay .baguetteBox-button#next-button,
    #baguetteBox-overlay .baguetteBox-button#previous-button {
        display: block !important;
    }
}