/* ==========================================================================
   NOWY STYL BUTIKOWY DLA SLIDERÓW (Quick.Cms.Ext)
   ========================================================================== */

/* --- 1. GLOBALNE USTAWIENIA KONTENERA --- */
.quick-slider {
    position: relative;
    margin: auto;
    overflow: hidden;
    width: 100%;
}
.quick-slider ul {
    padding: 0;
    margin: 0 auto;
    list-style: none;
    height: 100%;
}
.quick-slider-slide {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100% !important; /* Wymuszenie pełnej wysokości na urządzeniach */
    text-align: center;
    overflow: hidden;
    margin: 0 auto;
    /* Domyślnie ukryte w QuickCMS (display:none) */
}
.quick-slider-slide:first-child {
    display: block;
}

/* Ukrycie slajdów zanim załadują się skrypty */
div[id^="slider-"] > ul > li {
    display: none; 
}

/* --- 2. SKALOWANIE OBRAZÓW (OBJECT-FIT) --- */
.quick-slider-slide img,
.quick-slider-slide a img {
    width: 100%;
    height: 100%;
    object-fit: cover !important; /* Gwarancja dopasowania bez ucięć i zniekształceń */
    object-position: center center;
}

/* Subtelne przyciemnienie obrazu (opcjonalne, poprawia czytelność) */
.quick-slider-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Przyciemnienie dla bieli czcionki */
    pointer-events: none;
}

/* --- 3. NAPRAWA WIDOCZNOŚCI TEKSTU I ANIMACJA --- */
.quick-slider-slide .description {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%); /* Lekko podniesiony na start */
    z-index: 10;
    text-align: center;
    width: 90%;
    max-width: 900px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, transform 0.8s ease;
    padding: 0;
    background: transparent; /* Nadpisuje domyślne półprzezroczyste tło */
    height: auto;
}

/* KLUCZOWE: Pojawianie się tekstu tylko wtedy, gdy slajd nie ma display:none */
.quick-slider-slide:not([style*="display: none"]):not([style*="display:none"]) .description {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

/* Box wymuszający centralny układ w starych szablonach */
#header .slider .description .box {
    margin: 0 auto;
    width: 100%;
    padding: 0;
    text-align: center;
    display: block;
}

#slider-1 {
    width: calc(100% - 40px) !important; 
    margin: 20px auto; 
    border-radius: 24px;
    border: 2px solid #cdae68; /* Mocny border */
    overflow: hidden; 
    
    /* Dodany lekki, butikowy cień */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    
    /* Dotychczasowe ustawienia wysokości */
    height: 80vh !important; 
    min-height: 500px;
    max-height: 900px;
    clear: both;
    position: relative;
}

/* --- 4. STYLOWANIE TEKSTÓW (NADROBIENIE STYLU Z EDYTORA) --- */
#slider-1 li .description h2 {
    font-size: clamp(26px, 5vw, 64px); /* Elastyczna wielkość */
    font-weight: 400;
    color: #ffffff;
    font-family: 'Lora', serif; /* Butikowy font szeryfowy */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    line-height: 1.2 !important;
}
#slider-1 li .description h2 strong {
    font-weight: 600;
}
#slider-1 li .description h2 span {
    color: #dfc585 !important; /* Wymuszone złoto */
    font-family: 'Nunito', sans-serif;
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 300;
    display: block;
    margin-top: 5px;
}

#slider-1 .quick-slider-slide .description p {
    color: #faf9f7; /* Przyjemna, złamana biel (nie czysty #fff) */
    font-size: clamp(12px, 2vw, 18px);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.5;
    font-family: 'Nunito', sans-serif;
}

/* --- 5. STYLOWANIE PRZYCISKU (NADROBIENIE STYLU Z EDYTORA) --- */
#slider-1 .quick-slider-slide .description a {
    display: inline-block !important;
    background: #dfc585 !important; /* Złote tło przycisku */
    color: #1a1a1a !important; /* Ciemny, elegancki tekst na złocie */
    text-decoration: none !important;
    padding: 15px 32px !important;
    border-radius: 50px !important; /* Kształt pastylki */
    font-family: 'Montserrat', sans-serif !important;
    font-size: clamp(6px, 2vw, 13px) !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    box-shadow: 0 8px 25px rgba(223, 197, 133, 0.3) !important;
    border: 2px solid #dfc585 !important;
    transition: all 0.3s ease !important;
}
#slider-1 .quick-slider-slide .description a:hover {
    background: #ffffff !important; /* Po najechaniu przycisk robi się biały */
    color: #1a1a1a !important;
    border-color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.2);
}


/* --- 6. STRZAŁKI NAWIGACYJNE (#prev i #next) --- */
.quick-slider-nav-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    z-index: 20;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    display: block;
    min-height: auto;
    margin: 0;
    padding: 0;
    opacity: 1; /* Były wcześniej przezroczyste */
}
.quick-slider-nav-arrows:before {
    display: none; /* Usuwamy stare obrazki ze strzałkami */
}
.quick-slider-nav-arrows:hover {
    background: #dfc585;
    border-color: #dfc585;
}
.quick-slider-nav-arrows .wai { 
    display: none; 
}
.quick-slider-nav-arrows::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-top: 2px solid #ffffff;
    border-right: 2px solid #ffffff;
    transition: border-color 0.3s ease;
}
.quick-slider-nav-arrows:hover::after {
    border-color: #1a1a1a;
}
.quick-slider-nav-arrows-prev { left: 40px; }
.quick-slider-nav-arrows-prev::after {
    transform: translate(-30%, -50%) rotate(-135deg);
}
.quick-slider-nav-arrows-next { right: 40px; }
.quick-slider-nav-arrows-next::after {
    transform: translate(-70%, -50%) rotate(45deg);
}

/* --- 7. KROPKI NAWIGACYJNE --- */
.quick-slider-nav-dots-wrapper {
    position: absolute;
    bottom: 30px;
    width: 100%;
    list-style: none;
    text-align: center;
    z-index: 10;
    padding-inline-start: 0;
}

.quick-slider-nav-dots-wrapper li {
    display: inline-block;
}
.quick-slider-nav-dots {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 6px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    text-indent: -9999px; /* Ukrywa cyfry z HTML */
    overflow: hidden;
    transition: all 0.3s ease;
}
.quick-slider-nav-dots.active, 
.quick-slider-nav-dots:hover {
    background: #dfc585;
    transform: scale(1.3);
}

/* --- 8. USTAWIENIA KONKRETNYCH SLIDERÓW (Zastąpienie starych wysokości) --- */
#slider-1 {
    height: 80vh !important; /* Butikowa, duża wysokość na desktop */
    min-height: 500px;
    max-height: 900px;
    clear: both;
}
#slider-1 li.img { line-height: 0; }

/* Inne bannery w systemie */
#slider-1.bannerStatic { height: auto !important; line-height: 0; }
#slider-1.bannerStatic img { width: 100%; object-fit: cover !important; }

/* Usunięte sztywne animacje wjazdu z boku z domyślnego pliku, 
   ponieważ nasz nowy styl obsługuje gładkie FadeIn dla całego opisu. */

/* --- 9. RWD (Responsywność) --- */
@media screen and (max-width: 1300px) {
    /* Przywracamy strzałki, które stary kod ukrywał */
    .quick-slider-nav-arrows { display: block; } 
}

@media screen and (max-width: 768px) {
    #slider-1 { height: 70vh !important; min-height: 400px; }
    
    /* Zmiana rozmiarów, aby slider nie psuł układu na telefonie */
    #slider-1 li.img img { width: 100%; height: 100%; }
    
    .quick-slider-nav-arrows {
        width: 36px;
        height: 36px;
    }
    .quick-slider-nav-arrows-prev { left: 15px; }
    .quick-slider-nav-arrows-next { right: 15px; }
    .quick-slider-nav-arrows::after {
        width: 10px;
        height: 10px;
    }
    
    /* Przywrócenie kropek na mobile (w starym kodzie ukryte na 720px) */
    .quick-slider-nav-dots-wrapper { display: block; bottom: 20px; }
}

@media print {
  /* PRINT STYLES */
  #slider-1, .quick-slider img, .quick-slider-nav-arrows, .quick-slider-nav-dots { display: none; }
}

/* ==========================================================================
   STATYCZNY BANER PODSTRONY (Dopasowanie do stylu slidera)
   ========================================================================== */

.bannerStatic {
    position: relative;
    width: 100% !important;
    height: 200px !important; /* Określona wysokość banera (możesz zmienić np. na 350px lub 450px) */
    max-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Obrazek wypełniający całą przestrzeń bez zniekształceń */
.bannerStatic img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center;
    z-index: 1;
}

/* Nakładka przyciemniająca (żeby biały tekst nigdy się nie zlewał ze zdjęciem) */
.bannerStatic .banner-overlay {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* 45% przyciemnienia - idealny balans */
    z-index: 2;
    pointer-events: none;
}

/* Pozycjonowanie tytułu (h1) na środku banera nad nakładką */
.bannerStatic #head-title2 {
    position: relative;
    z-index: 3;
    width: 100%;
    text-align: center;
}

.bannerStatic .heading-1 {
    color: #ffffff !important;
    font-size: clamp(32px, 4vw, 48px); /* Płynnie skalowany nagłówek */
    font-family: 'Playfair Display', serif; /* Elegancki hotelowy font */
    font-weight: 600;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    margin: 0;
}

/* Responsywność dla mniejszych ekranów (telefonów) */
@media screen and (max-width: 768px) {
    .bannerStatic {
        height: 280px !important; /* Nieco niższy baner na telefonach */
    }
}

/* ==========================================================================
   MINIMALISTYCZNE OKRUSZKI CHLEBA (Breadcrumb)
   ========================================================================== */

#head-title3 {
    background-color: #fffafa; /* Dopasowane do miękkiego tła strony */
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 30px; /* Odstęp od właściwej treści podstrony */
}

#head-title3 .breadcrumb {
    margin: 0;
    padding: 0;
}

#head-title3 .breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px; /* Odstęp między elementami a separatorami */
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    letter-spacing: 0.3px;
}

#head-title3 .breadcrumb li {
    display: flex;
    align-items: center;
    color: #777777; /* Stonowany szary kolor dla nieaktywnych / wcześniejszych kroków */
}

/* Separator między elementami (dodaje ukośnik automatycznie) */
#head-title3 .breadcrumb li:not(:last-child):after {
    content: '/';
    margin-left: 8px;
    color: #b0a89d;
    font-weight: 300;
}

#head-title3 .breadcrumb a {
    color: #666666;
    text-decoration: none;
    transition: color 0.3s ease;
}

#head-title3 .breadcrumb a:hover {
    color: #dfc585; /* Podświetlenie na złoty akcent po najechaniu */
}

/* Ostatni element (aktualna podstrona) – wyróżniony ciemniejszym, eleganckim kolorem */
#head-title3 .breadcrumb li:last-child span,
#head-title3 .breadcrumb li:last-child {
    color: #1a1a1a;
    font-weight: 600;
}

/* Subtytuł (nad nagłówkiem - w tagu span) */
#slider-1 li .description h2 span {
    display: block !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: clamp(11px, 2vw, 14px) !important;
    color: #dfc585 !important; /* Butikowe złoto */
    text-transform: uppercase !important;
    letter-spacing: 4px !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.9) !important;
}

/* Pogrubienie głównego nagłówka (w tagu strong) */
#slider-1 li .description h2 strong {
    font-weight: 700 !important;
    color: #ffffff !important;
    text-transform: none !important;
}