/* =====================================================
   UKŁAD GŁÓWNY
===================================================== */
.layout-container {
    width: 100%;
    max-width: 1700px; /* 1080p */
    margin: 0 auto;    /* Wyśrodkowanie */
    position: relative;
}

/* =====================================================
   GĘSTA GALAKTYKA - STAŁY, POWOLNY RUCH
===================================================== */
.stars, .stars-medium, .stars-big {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: -1;
    pointer-events: none;
    background: transparent;
    border-radius: 50%;
    /* Stała animacja dla wszystkich warstw */
    animation: constantWarp 20s linear infinite;
}

/* MAŁE GWIAZDY - EKSTREMALNA GĘSTOŚĆ */
.stars {
    width: 1px;
    height: 1px;
    box-shadow: 
        -5vw -10vh #fff, 12vw -25vh #fff, -30vw 15vh #7df9ff, 42vw 35vh #fff,
        -18vw -45vh #fff, 35vw -12vh #7df9ff, -22vw 32vh #fff, 28vw -20vh #fff,
        15vw 45vh #7df9ff, -38vw -5vh #fff, 5vw -18vh #fff, -45vw 40vh #fff,
        -8vw -35vh #fff, 32vw 10vh #7df9ff, -25vw 25vh #fff, 48vw -30vh #fff,
        -12vw -48vh #fff, 18vw -15vh #fff, -5vw 38vh #7df9ff, 35vw 25vh #fff,
        -42vw 8vh #fff, 8vw 45vh #fff, -35vw -35vh #fff, 22vw 22vh #7df9ff,
        -28vw 12vh #fff, 42vw 18vh #fff, -15vw -15vh #fff, 25vw -42vh #7df9ff,
        -3vw -25vh #fff, 40vw -5vh #fff, -48vw 30vh #fff, 12vw 12vh #7df9ff,
        -20vw -40vh #fff, 30vw -30vh #fff, -10vw 48vh #7df9ff, 45vw 45vh #fff;
}

/* ŚREDNIE GWIAZDY - DODATKOWE OPÓŹNIENIE */
.stars-medium {
    width: 2px;
    height: 2px;
    animation-delay: -5s; /* Zaczyna w połowie cyklu, by nie było dziur */
    box-shadow: 
        -15vw -20vh #00eaff, 25vw -35vh #fff, -35vw 25vh #00eaff, 40vw 20vh #fff,
        -10vw 42vh #fff, 45vw -45vh #00eaff, -40vw -15vh #fff, 12vw 15vh #fff,
        -25vw -8vh #00eaff, 32vw 45vh #fff, -5vw -48vh #fff, 42vw 12vh #00eaff,
        -20vw -15vh #fff, 15vw -42vh #00eaff, -48vw 5vh #fff, 35vw 35vh #00eaff;
}

/* DUŻE GWIAZDY - DODATKOWE OPÓŹNIENIE */
.stars-big {
    width: 3px;
    height: 3px;
    animation-delay: -12s;
    filter: blur(0.4px);
    box-shadow: 
        -25vw -30vh #ff4fd8, 35vw 30vh #ff4fd8, -42vw -40vh #00eaff, 48vw 42vh #00eaff,
        -8vw -45vh #fff, 45vw -8vh #fff, -3vw 38vh #ff4fd8, 18vw -35vh #00eaff,
        -18vw -10vh #ff4fd8, 28vw 42vh #00eaff, -45vw 15vh #fff, 12vw -48vh #ff4fd8;
}

/* ANIMACJA STAŁEGO PRZELOTU */
@keyframes constantWarp {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: scale(2.5);
    }
}

/* =====================================================
   RESET & BAZA
===================================================== */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Inter, sans-serif;
    color:#fff;
    background:#03050b;
    overflow-x:hidden;
}

/* =====================================================
   SEKCJE
===================================================== */
.section{
    padding:10px 10%;
    margin-top:40px; /* Zbalansowany margines między sekcjami strony */
}

.section.dark{
    background:#0f1117;
}

/* =====================================================
   TYTUŁY SEKCJI + LASERY
===================================================== */
.section-title{
    display:flex;
    align-items:center;
    justify-content:center;
    font-family:Orbitron;
    font-size:32px;
    letter-spacing:4px;
    margin-bottom:60px;
    color:#fff;
}

.section-title span{
    position:relative;
    z-index:2;
    white-space:nowrap;
    padding:0 18px;
    text-shadow:
        0 0 6px #7df9ff,
        0 0 12px #00eaff;
}

.section-title::before{
    content:'';
    flex:1;
    height:2px;
    background:linear-gradient(90deg, transparent 0%, #7df9ff 40%, #00eaff 100%);
    box-shadow: 0 0 6px #7df9ff, 0 0 14px #00eaff, 0 0 26px #00eaff;
}

.section-title::after{
    content:'';
    flex:1;
    height:2px;
    background:linear-gradient(90deg, #00eaff 0%, #7df9ff 60%, transparent 100%);
    box-shadow: 0 0 6px #7df9ff, 0 0 14px #00eaff, 0 0 26px #00eaff;
}

/* =====================================================
   HERO
===================================================== */
.hero{
    height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
}

.hero-inner{
    position:relative;
    width:100%;
    max-width:1400px;
    height:100%;
    margin:0 auto;
    overflow:hidden;
}

.hero-bg{
    position:absolute;
    top:50%;
    left:50%;
    width:100%;
    height:100%;
    object-fit:cover;
    transform:translate(-50%,-50%);
    filter:brightness(.65);
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:
        radial-gradient(circle at top, rgba(125,249,255,.15), transparent 60%),
        radial-gradient(circle at bottom, rgba(255,79,216,.15), transparent 60%);
}

.hero-content{
    position:relative;
    z-index:2;
    height:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
}

.logo{
    width:420px;
    filter:
        drop-shadow(0 0 10px #ff4fd8)
        drop-shadow(0 0 25px #ff4fd8)
        drop-shadow(0 0 40px #00eaff);
}

.light-line{
    width:200px;
    height:2px;
    background:linear-gradient(90deg,#7df9ff,#ff4fd8);
    margin:24px 0;
}

.neon-btn{
    padding:16px 20px;
    border:2px solid #00eaff;
    border-radius:40px;
    color:#00eaff;
    text-decoration:none;
    font-family:Orbitron;
    letter-spacing:2px;
    background:transparent;
    box-shadow:0 0 20px #00eaff;
    transition:.3s;
}

.neon-btn:hover{
    background:#00eaff;
    color:#000;
}

/* =====================================================
   O MIEJSCU (Z FILMEM W PĘTLI) - DUŻE OKNO MULTIMEDIALNE
===================================================== */
.place-section{
    position:relative;
}

.place-grid{
    max-width: 1600px;     
    padding-left: 30px;
    display:grid;
    /* ZMIANA: 1.2fr dla filmu sprawia, że prawa kolumna jest szersza niż tekstowa */
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px; /* Zwiększony odstęp między tekstem a dużym filmem */
    align-items: center;
    margin-bottom: 80px;
}

.place-text p{
    max-width: 100%; /* Pozwalamy tekstowi naturalnie wypełnić jego kolumnę */
    font-size:16px;
    line-height:1.7;
    opacity:.9;
}

.features{
    margin-top:20px;
    display:flex;
    gap:16px;
    flex-wrap:wrap;
    opacity:.85;
}

/* RAMA MULTIMEDIÓW - MAKSYMALNIE POWIĘKSZONA */
.place-image {
    position: relative;
    width: 100%;
    height: 580px;          /* Potężna wysokość okna (dopasowana do galerii 3D) */
    overflow: hidden;
    background: transparent;
    border: none;           
    box-shadow: none;       
    border-radius: 0;       

    /* MASKA - płynne przejście w przezroczystość z 4 stron */
    -webkit-mask-image: 
        linear-gradient(to bottom, transparent, black 12%, black 88%, transparent),
        linear-gradient(to right, transparent, black 12%, black 88%, transparent);
    mask-image: 
        linear-gradient(to bottom, transparent, black 12%, black 88%, transparent),
        linear-gradient(to right, transparent, black 12%, black 88%, transparent);
    
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

/* WYŚRODKOWANIE FILMU I ZDJĘCIA OD GÓRY, DOŁU I BOKÓW */
.place-image img, .place-image video {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center center; /* WYŚRODKOWANIE: Idealny środek kadru w pionie i poziomie */
    transition: transform 0.5s ease, opacity 0.4s ease;
}

.place-image::after{
    content:'';
    position:absolute;
    inset:0;
    pointer-events:none;
    z-index:2;
    background: transparent; 
}

/* =====================================================
   ATRAKCJE - KONTENER I ZDJĘCIA
===================================================== */
.attractions-container {
    display: flex;         
    align-items: center;   
    justify-content: center;
    max-width: 1600px;     
    padding: 0 20px;
    flex-direction: row;
    gap: 40px;
    width: 100%;
    margin: 40px auto 20px auto; /* Zmniejszono dolny margines kontenera */
}

.attraction-main-view {
    flex: 0 0 600px;
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 900px;
    height: 390px;         
    margin-bottom: 10px;   
    margin-inline: auto;
    overflow: hidden;
    border-radius: 0;
object-fit: contain;
object-position: center center;

    -webkit-mask-image: 
        linear-gradient(to bottom, transparent, black 15%, black 85%, transparent), 
        linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: 
        linear-gradient(to bottom, transparent, black 15%, black 85%, transparent),
        linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

.attraction-main-view img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =====================================================
   ATRAKCJE - IKONY & NEONY
===================================================== */
.attractions-bar{
    margin-top: 50px;
    flex: 0 0 640px;    
    display:flex;
    gap:36px;
    justify-content:center;
    flex-wrap:wrap;
    overflow:visible;
    padding-bottom:10px; /* Zmniejszono dopełnienie na dole paska ikon */
}

.attraction-icon{
    background: #000;
    font-family: inherit;
    outline: none;
    border:1px solid rgba(125,249,255,.3);
    border-radius:10px;
    padding-top: 3px;
    font-size:34px;
    color:#fff;
    text-align:center;
    box-shadow:
        0 0 20px rgba(125,249,255,.3),
        inset 0 0 20px rgba(125,249,255,.08);

    position:relative;
    width:130px;
    height:130px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content: flex-start; 
    cursor:pointer;
    transition:.35s ease;
}

.attraction-icon.active{
    transform:translateY(-6px) scale(1.04);
    box-shadow:0 0 35px rgba(255,79,216,.6);
    border-color:#ff4fd8;
}

.attraction-icon img{
    width:100px;
    height:100px;
    object-fit:contain;
}

.attraction-icon span{
    display:block;
    font-size:10px;
    margin-top:2px;
    font-family:Orbitron, sans-serif;
    letter-spacing:2px;
    text-transform:uppercase;
    color:#eafcff;
    text-shadow: 0 0 6px #7df9ff, 0 0 14px #00eaff;
    opacity:.95;
}

.attraction-icon:hover {
    transform: translateY(-6px);
    border-color: #b026ff; 
    box-shadow: 0 0 28px rgba(176, 38, 255, 0.75); 
}

.attraction-icon.active:hover {
    border-color: #ff4fd8; 
    box-shadow: 0 0 35px rgba(255, 79, 216, 0.6); 
}

/* =====================================================
   FORMULARZ & STRUKTURY REZERWACJI
===================================================== */
.form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

input, textarea {
    padding: 12px;
    background: #111;
    border: 1px solid rgba(125, 249, 255, 0.3);
    color: #fff;
    border-radius: 8px;
    transition: 0.3s ease; 
}

input::-webkit-calendar-picker-indicator {
    filter: invert(1); 
    cursor: pointer;
    opacity: 0.6;
    transition: 0.3s;
}

input::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #00eaff;
    box-shadow: 0 0 10px rgba(0, 234, 255, 0.4);
}

footer {
    text-align: center;
    padding: 40px;
    opacity: .8;
}

.target-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.target-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    color: #e0faff;
}

.target-list li::before {
    content: "▣";
    position: absolute;
    left: 0;
    top: 0;
    color: #00f6ff;
    text-shadow: 0 0 5px #00f6ff, 0 0 10px rgba(0, 246, 255, 0.6);
}

.target-box {
    margin-top: 30px;
    padding: 20px;
    border-left: 2px solid #00f6ff;
    background: rgba(0, 246, 255, 0.03);
}

/* =====================================================
   RESPONSYWNOŚĆ (MEDIA QUERIES)
===================================================== */
@media (max-width: 1440px) and (min-width: 1025px) {
    .attractions-container, .place-grid {
        transform: scale(0.9);
        transform-origin: center top;
    }
}

@media (max-width: 1200px) and (min-width: 769px) {
    .attractions-container {
        transform: scale(0.8); 
    }
}

@media (max-width: 768px) {
    .section { padding: 40px 5%; }
    .place-grid {
        grid-template-columns: 1fr;
        padding-left: 0;
        margin-bottom: 80px;
    }
    .place-image { height: 300px; }
    .attractions-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .attraction-main-view {
        flex: 0 0 auto;
        width: 100%;
        height: 250px;
    }
    .attractions-bar {
        flex: 0 0 auto;
        width: 100%;
        grid-template-columns: repeat(3, 1fr);
        justify-content: center;
    }
    .attraction-icon {
        width: 100%;
        height: 100px;
    }
    .attraction-icon img {
        width: 60px;
        height: 60px;
    }
}

/* =====================================================
   GALERIA 3D - NAPRAWIONE ODSTĘPY I WYMIARY
===================================================== */

/* Kontener główny galerii */
.gallery-perspective {
    position: relative;
    width: 100%;
    height: 540px;         /* Zmniejszone ze 580px - likwiduje pustą lukę pod filmem/atrakcjami */
    perspective: 1500px;   
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;     
    margin: 30px 0 70px 0; /* Zmniejszone marginesy góra/dół (idealny, równy odstęp pionowy) */
}

/* Wrapper na zdjęcia */
.gallery-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

/* Podstawowy styl zdjęcia - Baza wymiarowa dla środka */
.gallery-item {
    position: absolute !important;
    top: 50%;
    left: 50%;
    
    /* GŁÓWNY POWIĘKSZONY WYMIAR ŚRODKA */
    width: 800px;  
    height: 500px; 
    
    /* CENTROWANIE PUNKTU ZERO */
    margin-left: -400px;  
    margin-top: -250px;
    
    object-fit: cover;
    border-radius: 20px;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    
    opacity: 0;
    transform: translate3d(0, 0, -500px); 
    pointer-events: none;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ZDJĘCIE GŁÓWNE (Środek) */
.gallery-item.active {
    opacity: 1;
    z-index: 10;
    transform: translate3d(0, 0, 0) scale(1);
    pointer-events: auto;
    border: 2px solid #ff4fd8;
    box-shadow: 0 0 40px rgba(255, 79, 216, 0.5);
}

/* ZDJĘCIE LEWE (Mniejsze o 25%, wysunięte symetrycznie) */
.gallery-item.prev {
    opacity: 0.5;
    z-index: 5;
    transform: translate3d(-65%, 0, -150px) rotateY(25deg) scale(0.75);
    pointer-events: auto;
}

/* ZDJĘCIE PRAWE (Mniejsze o 25%, wysunięte symetrycznie) */
.gallery-item.next {
    opacity: 0.5;
    z-index: 5;
    transform: translate3d(65%, 0, -150px) rotateY(-25deg) scale(0.75);
    pointer-events: auto;
}

/* Przyciski sterujące */
.gallery-controls {
    position: absolute;
    bottom: -30px;         /* Podciągnięte wyżej, bliżej dolnej ramy dużego zdjęcia */
    display: flex;
    gap: 20px;
    z-index: 20;
}