@media (pointer:fine) {
    .cursor {
        position: fixed;
        width: 30px;
        height: 30px;
        border: 2px solid var(--primary);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        mix-blend-mode: difference;
        transition: transform .15s ease, width .3s ease, height .3s ease;
        transform: translate(-50%, -50%);
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
    }
    
    .cursor-inner {
        width: 6px;
        height: 6px;
        background: var(--primary);
        border-radius: 50%;
        transition: opacity .3s ease;
        opacity: 0;
    }
    
    .cursor.active {
        width: 50px;
        height: 50px;
        background: rgba(255, 204, 0, 0.2);
    }
    
    .cursor.active .cursor-inner {
        opacity: 1;
    }
    
    .cursor.click {
        transform: translate(-50%, -50%) scale(0.8);
        background: rgba(255, 204, 0, 0.4);
    }
}

@keyframes zoom {
    0% { transform: scale(1); }
    to { transform: scale(1.1); }
}

section {
    max-width: 1200px;
    margin: 15px auto;
    background: var(--overlay);
    border: 2px solid rgba(255, 204, 0, 0.5);
    border-radius: var(--border-radius);
    padding: 15px 30px;
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--primary);
}

h1, h2 {
    font-family: 'Dancing Script', cursive;
    color: var(--primary);
    text-align: center;
    margin-bottom: 15px;
}

h1 {
    font-size: clamp(3.8rem, 8vw, 6.5rem);
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.7);
    line-height: 1.2;
    width: 100%;
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

h2 i {
    margin-right: 10px;
}

.hotel-domain {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    color: var(--secondary);
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
}

.phone {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: var(--primary);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    line-height: 1.2;
    font-weight: 700;
}

.phone i {
    color: var(--primary);
}

.welcome {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--primary);
    margin-top: 0;
    line-height: 1.2;
    font-weight: 700;
}

/* GALERIA - WYŚRODKOWANE ZDJĘCIA */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
    place-items: center;
}

@media (max-width: 480px) and (orientation: portrait) {
    .gallery {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .gallery-item {
        aspect-ratio: 16/9;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 4/3;
    cursor: pointer;
    border: 2px solid rgba(255, 204, 0, 0.3);
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* POPRAWIONY LIGHTBOX - WYŚRODKOWANIE */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    touch-action: pan-y;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
    border: 2px solid var(--primary);
    box-shadow: 0 0 40px rgba(255, 204, 0, 0.6);
    object-fit: contain; /* Gwarantuje poprawne skalowanie */
    margin: 0 auto; /* Centrowanie */
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border: none;
    z-index: 1001;
}

.close-lightbox:hover {
    transform: rotate(90deg);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.nav-btn:hover {
    background: var(--primary);
    color: var(--dark);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* Mniejsze strzałki na telefonach */
@media (max-width: 480px) {
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

.pricing {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.price-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 204, 0, 0.5);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 204, 0, 0.2);
    border-color: var(--primary);
}

.price-card h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.price {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary);
    margin: 15px 0;
}

.price-card p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.contact-info, .map {
    flex: 1;
    min-width: 300px;
}

.contact-info p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: var(--primary);
    width: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: hsla(0, 0%, 100%, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-5px);
}

.map-buttons {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.map-button {
    background: var(--primary);
    color: var(--dark);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 700;
}

.map-button:hover {
    background: var(--secondary);
    color: var(--light);
}

.map {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(255, 204, 0, 0.5);
}

.map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

footer {
    text-align: center;
    padding: 15px;
    margin-top: 30px;
}

footer p {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: bold;
    color: var(--primary);
}

/* Poprawa czytelności mapy */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
    
    .map {
        height: 300px;
        order: -1;
        margin-bottom: 20px;
    }
}

/* Lepsze zarządzanie obrazem tła */
@media (max-width: 768px) {
    .background {
        background-attachment: scroll;
    }
}

@media (max-width: 768px) {
    section {
        padding: 15px;
        margin: 10px;
    }
    
    h1 {
        font-size: clamp(2.5rem, 5vw, 3.5rem);
    }
    
    .hotel-domain {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }
    
    .phone {
        font-size: clamp(1.5rem, 3vw, 2rem);
    }
    
    .welcome {
        font-size: clamp(2rem, 4vw, 2.5rem);
    }
    
    .price-card {
        min-width: 100%;
    }
}

.background {
    animation: zoom 30s infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
    .background {
        animation: none;
    }
}