/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="a" cx="50%" cy="0%" r="100%"><stop offset="0%" stop-color="rgba(255,255,255,0.1)"/><stop offset="100%" stop-color="rgba(255,255,255,0)"/></radialGradient></defs><rect width="100" height="20" fill="url(%23a)"/></svg>') repeat-x;
    opacity: 0.3;
}

.header span, #title {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

#titleBack {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

/* Navigacja */
nav, #mainPageMenu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav a, #mainPageMenu a {
    display: inline-block;
    padding: 12px 25px;
    margin: 0 10px;
    text-decoration: none;
    color: #667eea;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

nav a:hover, #mainPageMenu a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

nav a.active, #mainPageMenu a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

nav a i, #mainPageMenu a i {
    margin-right: 8px;
    font-size: 1.1em;
}

/* Sekcje główne */
.LandingSection {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.LandingSection::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.LandingSection h2 {
    color: #667eea;
    margin-bottom: 30px;
    font-size: 2.5rem;
    text-align: center;
    font-family: 'Dancing Script', cursive;
    position: relative;
}

.LandingSection h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.LandingSection p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
    color: #555;
}

#MainBottom {
    text-align: center;
    font-weight: bold;
    color: #667eea;
    font-size: 1.2rem;
    margin-top: 30px;
}

/* Slajder galerii - POPRAWIONA WERSJA */
.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto 30px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    background: #f8f9fa;
    /* KLUCZOWE: Stała wysokość responsywna */
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
}

.mySlides {
    display: none;
    position: relative;
    width: 100%;
    height: 100%;
    animation: slideIn 0.6s ease-in-out;
}

.mySlides.active {
    display: block;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* KLUCZOWE: Obrazy dopasowane do kontenera */
.mySlides img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Zachowuje proporcje, wypełnia kontener */
    object-position: center; /* Wyśrodkowuje obraz */
    transition: transform 0.3s ease;
}

.mySlides:hover img {
    transform: scale(1.02);
}

.fade {
    animation: slideIn 0.6s ease-in-out;
}

/* Przyciski nawigacji - ulepszone */
.prev, .next, .nav-button {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(102, 126, 234, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
    user-select: none;
}

.prev, .nav-button.prev {
    left: 20px;
}

.next, .nav-button.next {
    right: 20px;
}

.prev:hover, .next:hover, .nav-button:hover {
    background: rgba(102, 126, 234, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.prev:active, .next:active, .nav-button:active {
    transform: translateY(-50%) scale(0.95);
}

/* Licznik zdjęć - ulepszony */
.numbertext {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    background: rgba(0,0,0,0.7);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    z-index: 5;
}

/* Podpisy zdjęć - ulepszone */
.text, .slide-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 20px;
    background: rgba(0,0,0,0.7);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    z-index: 5;
    max-width: calc(100% - 40px);
}

/* Kropki nawigacji slajdera - ulepszone */
.dots-container {
    text-align: center;
    padding: 20px 0;
    background: rgba(255,255,255,0.8);
    border-radius: 15px;
    margin-top: 20px;
    max-height: 120px;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 6px 8px 6px;
    background-color: rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
}

.dot:hover {
    background-color: rgba(102, 126, 234, 0.6);
    transform: scale(1.3);
}

.activea, .dot.activea {
    background-color: #667eea;
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.dot.activea::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid #667eea;
    border-radius: 50%;
    opacity: 0.5;
}

/* Galeria - dodatkowe style */
.gallery-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.gallery-title {
    color: #667eea;
    margin-bottom: 40px;
    font-size: 2.8rem;
    text-align: center;
    font-family: 'Dancing Script', cursive;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.gallery-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* Strona oferty */
.pokoje {
    position: relative;
    margin: 30px 0;
    padding: 30px;
    background: rgba(255,255,255,0.7);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.pokoje img.right {
    float: right;
    margin: 0 0 20px 30px;
    width: 80px;
    height: 80px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.pokoje img.left {
    float: left;
    margin: 0 30px 20px 0;
    width: 80px;
    height: 80px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.pokoje img:hover {
    opacity: 1;
    transform: scale(1.1);
}

.wiecejZdjec {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.wiecejZdjec:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

#pokojeH2, #pokojeH3, #pokojeH4, #pokojeH5, #pokojeH6 {
    color: #667eea;
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 20px;
}

#pInformacje {
    font-size: 1.1rem;
    line-height: 2;
    padding: 20px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

#okolica span {
    color: #667eea;
    font-weight: bold;
    font-style: italic;
}

/* Strona kontaktu */
#kontaktSection {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
}

.oneHalf {
    width: 48%;
    margin-bottom: 30px;
    padding: 30px;
    background: rgba(255,255,255,0.8);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.oneHalf:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.textLeft, .textRight {
    font-size: 1.2rem;
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
}

.textLeft {
    justify-content: flex-start;
}

.textRight {
    justify-content: flex-end;
    text-align: right;
}

.kontaktLeft {
    margin-right: 15px;
    width: 40px;
    height: 40px;
}

.kontaktRight {
    margin-left: 15px;
    width: 40px;
    height: 40px;
}

#kontaktEmail, #kontaktAdres {
    color: #667eea;
}

#kontaktBottom a {
    text-decoration: none;
    color: #4267B2;
    transition: all 0.3s ease;
}

#kontaktBottom a:hover {
    color: #365899;
    transform: scale(1.05);
}

#height50 {
    line-height: 50px;
}

/* Mapa */
#mapa {
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 20px;
}

#mapa-d {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

#mapa-d iframe {
    border: none;
    filter: grayscale(0.2);
    transition: all 0.3s ease;
}

#mapa-d:hover iframe {
    filter: grayscale(0);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

footer p {
    margin: 10px 0;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

#pRight {
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
}

/* Responsywność mobilna - rozszerzona */
@media (max-width: 768px) {
    .header span, #title {
        font-size: 3rem;
    }
    
    nav a, #mainPageMenu a {
        margin: 5px;
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .LandingSection, .gallery-section {
        margin: 20px 10px;
        padding: 20px 15px;
    }
    
    .LandingSection h2, .gallery-title {
        font-size: 2rem;
    }
    
    .oneHalf {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .pokoje img.right,
    .pokoje img.left {
        width: 60px;
        height: 60px;
        margin: 10px;
    }
    
    /* Galeria responsive */
    .slideshow-container {
        height: 50vh;
        min-height: 300px;
        max-height: 400px;
        margin: 0 10px 20px 10px;
        border-radius: 15px;
    }

    .nav-button, .prev, .next {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .nav-button.prev, .prev {
        left: 15px;
    }

    .nav-button.next, .next {
        right: 15px;
    }

    .numbertext {
        top: 10px;
        right: 15px;
        font-size: 12px;
        padding: 6px 12px;
    }

    .text, .slide-caption {
        bottom: 15px;
        left: 15px;
        font-size: 14px;
        padding: 8px 15px;
    }

    .gallery-title {
        font-size: 2.2rem;
    }

    .dots-container {
        max-height: 100px;
        padding: 15px 0;
    }
}

@media (max-width: 480px) {
    .header span, #title {
        font-size: 2rem;
    }
    
    nav a, #mainPageMenu a {
        display: block;
        margin: 5px 10px;
        text-align: center;
    }
    
    .LandingSection h2, .gallery-title {
        font-size: 1.8rem;
    }
    
    /* Ultra małe ekrany - galeria */
    .slideshow-container {
        height: 40vh;
        min-height: 250px;
        max-height: 350px;
        margin: 0 5px 15px 5px;
    }

    .nav-button, .prev, .next {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .nav-button.prev, .prev {
        left: 10px;
    }

    .nav-button.next, .next {
        right: 10px;
    }

    .numbertext {
        top: 8px;
        right: 10px;
        font-size: 11px;
        padding: 4px 8px;
    }

    .text, .slide-caption {
        bottom: 10px;
        left: 10px;
        font-size: 12px;
        padding: 6px 10px;
        max-width: calc(100% - 20px);
    }

    .dots-container {
        max-height: 80px;
        padding: 10px 0;
    }

    .dot {
        height: 10px;
        width: 10px;
        margin: 0 4px 6px 4px;
    }

    .gallery-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    .gallery-section {
        margin: 15px 5px;
        padding: 15px 10px;
    }
    
    .pokoje {
        padding: 20px;
    }
    
    .pokoje img.right,
    .pokoje img.left {
        float: none;
        display: block;
        margin: 10px auto;
        width: 50px;
        height: 50px;
    }
}

/* Dodatkowe style dla lepszej funkcjonalności */
.slide-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    color: #999;
    font-size: 18px;
}

/* Smooth scrolling dla całej strony */
html {
    scroll-behavior: smooth;
}

/* Accessibility improvements */
.nav-button:focus,
.dot:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* Loading animation for images */
.mySlides img {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mySlides img:not([src]) {
    opacity: 0.5;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
}

/* Preloader placeholder */
.slideshow-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    z-index: -1;
}