/* ========================== PODSTAWY I NAVBAR ========================== */
/* BLOKADA ZAZNACZANIA DLA CAŁEJ STRONY */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    -webkit-user-select: none;  
    -moz-user-select: none;     
    -ms-user-select: none;      
    user-select: none;          
    -webkit-touch-callout: none; 
}

/* BLOKADA PRZECIĄGANIA OBRAZKÓW */
img {
    -webkit-user-drag: none;
    pointer-events: none;
}

/* Pozwolenie na klikanie w przyciski i linki */
a, button, .promo-btn, .btn-kontakt, .hero-btn {
    -webkit-user-select: auto;
    user-select: auto;
    pointer-events: auto;
}

html { scroll-behavior: smooth; }

body {
    background: #fff;
    line-height: 1.6;
}

/* --- BAZOWY NAVBAR (DESKTOP) --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: black;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    z-index: 1000;
}

.logo { font-size: 28px; font-weight: bold; }

.navbar nav a {
    color: white;
    text-decoration: none;
    margin-left: 35px;
    font-size: 18px;
    transition: 0.3s;
}

.navbar nav a:hover { color: #2f69ff; }

/* ========================== HERO ========================== */
.subpage-hero {
    height: 50vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding-top: 80px;
}

.subpage-hero h1 {
    font-size: 48px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ========================== TYTUŁY I FILTRY ========================== */
.packages-title {
    margin-top: 55px;
    text-align: center;
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 30px;
    text-transform: uppercase;
    position: relative;
}

.packages-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 5px;
    background: #2f69ff;
    margin: 10px auto 0;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #f4f4f4;
    border: 1px solid #ddd;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    transition: 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* ========================== SLIDER I KARTY ========================== */
.gallery-section, .map-section {
    scroll-snap-align: start;
}
.slider-wrapper {
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 60px;
}

.packages-slider {
    margin-bottom: 50px;
    display: flex;
    gap: 25px;
    overflow: hidden;
    padding: 10px 0;
    align-items: stretch;
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #000;
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.slide-btn.prev { left: 0; }
.slide-btn.next { right: 0; }

.gallery-card {
    min-width: calc((100% - 50px) / 3);
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #222;
    display: flex;
    flex-direction: column;
}

.ba-container {
    position: relative;
    height: 300px;
    cursor: pointer;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.img-before {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    transition: opacity 0.5s;
}

.ba-container:hover .img-before,
.ba-container.active .img-before { opacity: 0; }

.ba-label {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: #2f69ff;
    color: #fff;
    padding: 5px 15px;
    font-size: 10px;
    border-radius: 20px;
    z-index: 3;
}

.gallery-info { 
    padding: 20px; 
    text-align: center; 
    color: #fff; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.gallery-info h3 { margin-bottom: 15px; }
.gallery-info span { color: #2f69ff; font-weight: bold; font-size: 12px; }

/* ========================== STOPKA BAZOWA ========================== */
.footer {
    background-color: #000;
    color: #fff;
    padding: 30px 0 20px 0; 
    width: 100%;
}

.footer-container {
    max-width: 1300px; 
    margin: 0 auto;
    padding: 0 70px 20px 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-left: 350px;
}

.footer-bottom a { color: #888; text-decoration: none; }
.footer-bottom {
    text-align: center;
    padding: 40px 0 20px;
    border-top: 1px solid #222;
    font-size: 12px;
    color: #888;
    scroll-snap-align: none;
}

.footer-contact { display: flex; flex-wrap: wrap; gap: 30px; }
.footer-contact i{ padding-right: 3px; }
.contact-item a { color: #fff; text-decoration: none; transition: 0.3s; }
.contact-item a:hover, .footer-social a:hover { color: #2f69ff; }
.footer-social { display: flex; gap: 20px; font-size: 24px; }
.footer-social a { color: #fff; transition: 0.3s; }
.footer-social a:hover {
    color: #1a51e6;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.footer-bottom strong { color: #fff; }

/* ==========================================================================
   WSPÓLNE STYLE DLA TELEFONÓW (PONIŻEJ 768PX)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. NAVBAR MOBILE */
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }

    .navbar nav {
        margin-top: 10px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .navbar nav a {
        margin: 0 10px;
        font-size: 14px;
    }

    .subpage-hero h1 {
        font-size: 32px;
    }

    /* 2. SLIDER GALERII MOBILE */
    .slider-wrapper {
        padding: 0 45px;
    }

    .packages-slider {
        gap: 15px;
        overflow-x: auto;
        scroll-snap-type: x mandatory; 
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }

    .packages-slider::-webkit-scrollbar { display: none; }

    .gallery-card {
        min-width: 100%; 
        flex: 0 0 100%;
        max-width: 100%;
        scroll-snap-align: center;
    }

    .slide-btn {
        width: 35px;
        height: 35px;
    }
    
    /* 3. FILTRY MOBILE */
    .gallery-filters {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 10px !important;
        padding: 0 15px !important;
    }

    .filter-btn {
        flex: 0 0 calc(50% - 5px) !important; 
        text-align: center !important;
        white-space: nowrap !important;
        font-size: 11px !important;      
        padding: 10px 5px !important;
    }

    /* 4. STOPKA MOBILE */
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        margin-left: 0;
        padding: 0 20px;
        width: 100%;
    }
    
    .footer-contact {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .footer-social {
        justify-content: center;
        width: 100%;
    }
}