/* Zmienne globalne */
:root {
    --primary: #1a1a1a;
    --accent: #003b95;
    --bg: #f8f9fb;
    --white: #ffffff;
    --radius: 24px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --b-blue: #003b95;
    --b-green: #008009;
}

html {
    scroll-behavior: smooth;
}

/* Reset i ustawienia bazowe */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--primary);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Navbar --- */
/* Główne ustawienia paska */
:root {
    --b-blue: #003b95;
    --gold: #c5a059;
    --white: #ffffff;
    --dark: #1a1a1a;
}

/* --- KONSTRUKCJA NAVBARA --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
    padding: 20px 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Styl po scrollowaniu */
.navbar.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Chowanie na mobile przy scrollu w dół */
@media (max-width: 992px) {
    .navbar.nav-hidden {
        transform: translateY(-100%);
    }
}

/* --- LOGO --- */
.logo {
    font-size: 1.5rem; 
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
    transition: all 0.4s ease;
}

.logo span { color: var(--gold); }

.navbar.scrolled .logo {
    color: var(--b-blue);
}

/* --- MENU DESKTOP --- */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
    list-style: none;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    position: relative;
    transition: 0.3s;
}

.navbar.scrolled .nav-link { color: var(--dark); }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 2px;
    background: var(--b-blue);
    transition: 0.3s;
}

.nav-link:hover::after { width: 100%; }

/* UKRYWANIE SOCIALI NA KOMPUTERZE */
.social-mobile {
    display: none; 
}

/* --- PRZYCISK --- */
.btn-nav {
    background: var(--white);
    color: var(--b-blue) !important;
    padding: 12px 25px;
    border-radius: 100px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
}

.navbar.scrolled .btn-nav {
    background: var(--b-blue);
    color: var(--white) !important;
}

/* --- HAMBURGER (CZARNE KRESKI) --- */
.menu-toggle {
    display: none;
    cursor: pointer;
    width: 28px;
    height: 18px;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2101;
}

.bar {
    width: 100%;
    height: 2px;
    background: #000000; /* Twoje czarne kreski */
    transition: all 0.3s ease;
}

/* Jeśli chcesz, żeby na samej górze (na ciemnym zdjęciu) były białe: */
.navbar:not(.scrolled) .bar {
    background: #ffffff;
}

/* --- MENU MOBILNE --- */
@media (max-width: 992px) {
    .menu-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        gap: 25px;
        transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        padding: 40px;
    }

    .nav-menu.active { right: 0; }

    /* Animacja wjazdu linków (Stagger) */
    .nav-menu.active li {
        animation: fadeInRight 0.5s ease forwards;
        opacity: 0;
    }

    .nav-menu li:nth-child(1) { animation-delay: 0.2s; }
    .nav-menu li:nth-child(2) { animation-delay: 0.3s; }
    .nav-menu li:nth-child(3) { animation-delay: 0.4s; }
    .nav-menu li:nth-child(4) { animation-delay: 0.5s; }

    .nav-link { color: var(--dark) !important; font-size: 1.5rem; }

    /* SOCIALE TYLKO NA MOBILE */
    .social-mobile {
        display: flex;
        gap: 20px;
        margin-bottom: 20px;
        order: -1; /* Wrzuca je na samą górę listy */
    }

    .social-icon { color: var(--b-blue); }

    /* Transformacja Hamburgera w X */
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); background: var(--dark) !important; }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: var(--dark) !important; }
}

/* Animacja dla linków mobilnych */
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px); 
    transform: scale(1.05); 
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5) 0%, 
        rgba(0, 0, 0, 0.1) 50%,
        var(--bg, #fff) 100% 
    );
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3; /* Zwiększone, by być nad overlay */
    width: 100%;
}

/* --- ANIMACJA I TREŚĆ --- */
.hero-content {
    max-width: 600px;
    color: var(--white, #fff);
    animation: heroFadeIn 1.2s ease-out forwards; 
    opacity: 0;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.booking-info {
    font-size: 0.85rem;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 8vw, 4.5rem);
    margin-bottom: 15px;
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    margin-bottom: 35px;
    opacity: 0.95;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
}

/* --- PRZYCISK --- */
.btn-primary {
    display: inline-block;
    background-color: var(--b-blue, #003b95);
    color: white;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    background-color: #002d72;
    box-shadow: 0 8px 25px rgba(0, 59, 149, 0.4);
}




/* --- OPTYMALIZACJA MOBILNA --- */
@media (max-width: 768px) {
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
    
    .hero-badge {
        justify-content: center;
    }

    .hero-img {
        filter: blur(4px);
    }
}


/* --- Sekcje ogólne --- */
.section {
    padding: 60px 0;
}

.title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 25px;
    text-align: center;
}

.mainSwiper {
    border-radius: var(--radius);
    height: 500px;
    box-shadow: var(--shadow);
}

.mainSwiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* --- Formularz Kontaktowy --- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

input, 
textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 12px;
    border: 1px solid #eee;
    font-family: inherit;
}

.btn-send {
    display: block;
    width: 100%;
    padding: 18px;
    border-radius: 15px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    background: var(--primary);
    color: white;
}

/* --- Kalendarz --- */
/* --- ANIMACJA --- */
@keyframes cardEntrance {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}


.animate-reveal { animation: cardEntrance 1.5s ease-out forwards; }

/* --- KONTENER GŁÓWNY --- */
.booking-wrapper {
    padding: 20px;
    display: flex;
    justify-content: center;
}

.booking-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.07);
    max-width: 1100px;
    width: 100%;
    padding: 50px;
    overflow: hidden; /* To blokuje uciekanie kalendarza */
}

.booking-main {
    display: flex;
    gap: 50px;
    margin-bottom: 40px;
}

/* --- LEWA STRONA --- */
.booking-intro { flex: 1; max-width: 320px; }
.top-label { 
    display: block; color: #003b95; font-weight: 700; 
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 15px;
}
.booking-title { font-size: 2.2rem; font-weight: 800; color: #111; margin-bottom: 15px; line-height: 1.1; }
.booking-desc { color: #666; line-height: 1.6; font-size: 0.95rem; }

/* --- PRAWA STRONA (KALENDARZ) --- */
.booking-calendar-area { flex: 2; }

/* Poprawka uciekania Flatpickr */
.flatpickr-calendar.inline {
    width: 100% !important;
    max-width: 620px !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent;
}

/* --- DATY POD KALENDARZEM --- */
.selection-bar {
    display: flex;
    align-items: center;
    margin-top: 25px;
    padding: 20px;
    background: #fcfcfc;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    max-width: 620px;
}

.flatpickr-day.selected, 
.flatpickr-day.startRange, 
.flatpickr-day.endRange {
    background: #003b95 !important;
    border-color: #003b95 !important;
    box-shadow: 0 4px 10px rgba(0, 59, 149, 0.2);
}

.date-item { flex: 1; }
.date-item small { display: block; font-size: 0.65rem; color: #999; font-weight: 700; margin-bottom: 4px; }
.date-item b { font-size: 1.5rem; color: #111; font-weight: 800; }
.date-divider { width: 1px; height: 30px; background: #eee; margin: 0 30px; }

/* --- PRZYCISKI --- */
.booking-footer { border-top: 1px solid #f2f2f2; padding-top: 35px; text-align: center; }
.select-label { font-size: 0.75rem; font-weight: 700; color: #bbb; letter-spacing: 1px; margin-bottom: 20px; }
.platform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.p-link {
    height: 60px; border-radius: 14px; border: none; font-weight: 700; font-size: 1.1rem;
    color: white; cursor: not-allowed; transition: all 0.4s ease;
    opacity: 0.2; filter: grayscale(1);
}
.p-link.booking { background: #003b95; }
.p-link.airbnb { background: #FF385C; }

.p-link.active { opacity: 1; filter: grayscale(0); cursor: pointer; }
.p-link.active:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.15); }

.numInputWrapper, .flatpickr-monthDropdown-months {
    pointer-events: none !important; /* Nie da się kliknąć */
    cursor: default;
}

/* --- RWD: TELEFON --- */
@media (max-width: 992px) {
    .booking-card { padding: 30px 20px; }
    .booking-main { flex-direction: column; gap: 30px; }
    .booking-intro { max-width: 100%; text-align: center; }
    .booking-calendar-area { display: flex; flex-direction: column; align-items: center; }
    .flatpickr-calendar.inline { max-width: 300px !important; }
    .selection-bar { width: 100%; justify-content: center; }
    .platform-grid { grid-template-columns: 1fr; }
}

.flatpickr-prev-month svg, .flatpickr-next-month svg {
    fill: #003b95 !important; /* Ciemny niebieski */
    transition: transform 0.2s ease;
}



/* --- Opinie & Slider --- */
.review-card {
    min-width: 100%;
    box-sizing: border-box;
    background: white;
    border: 1px solid #e7e7e7;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }

  .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
  }

  .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .avatar {
    width: 44px;
    height: 44px;
    background-color: var(--b-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
  }

  .user-details h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
  }

  .country {
    font-size: 12px;
    color: #6b6b6b;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
  }

  .score-badge {
    background-color: var(--b-blue);
    color: white;
    padding: 8px;
    border-radius: 6px 6px 6px 0;
    font-weight: 700;
    font-size: 16px;
  }

  .review-content {
    text-align: left;
  }

  .date-added {
    font-size: 12px;
    color: #6b6b6b;
    margin-bottom: 4px;
  }

  .review-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px 0;
  }

  .review-body {
    display: flex;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #1a1a1a;
  }

  .smile-icon {
    color: var(--b-green);
    font-size: 20px;
    flex-shrink: 0;
  }

  /* Karuzela */
  .slider-viewport {
    overflow: hidden;
  }
  .slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-out;
  }

  .dots {
    text-align: center;
    margin-top: 15px;
  }
  .dot {
    height: 8px;
    width: 8px;
    background: #ccc;
    border-radius: 50%;
    display: inline-block;
    margin: 0 5px;
    cursor: pointer;
  }
  .dot.active { background: var(--b-blue); }

/* --- Footer --- */
.footer {
    padding: 40px 0;
    background: var(--white);
    border-top: 1px solid #eee;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Responsive Web Design (RWD) --- */
@media (min-width: 992px) {
    #inline-calendar {
        min-width: 615px;
    }
    .flatpickr-month:first-child .flatpickr-next-month {
        display: none !important;
    }
    .flatpickr-month:last-child .flatpickr-prev-month {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .flatpickr-calendar {
        width: 300px !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 800px) {
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
}

/*O NAS*/
/* --- Główna sekcja --- */
.overlap-section {
    padding: 120px 0;
    background-color: #f9f9f9;
    
}

.overlap-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    padding-bottom: 50px;
}

/* --- Zdjęcie --- */
.overlap-image {
    width: 65%;
    height: 600px;
    margin-left: auto;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    
    /* Animacja wejściowa */
    opacity: 0;
    transform: translateX(50px);
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.overlap-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    
}

/* --- Box z tekstem --- */
.overlap-content {
    position: absolute;
    left: 0;
    width: 45%;
    background: white;
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    z-index: 5;

    /* Animacja wejściowa */
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: 0.2s;
}

.sub-title {
    color: var(--b-blue);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 15px;
}

.overlap-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: #1a1a1a;
}

.text-block p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

/* --- Statystyki (Bonus) --- */
.stats-mini {
    display: flex;
    gap: 25px;
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.stat {
    font-size: 0.9rem;
    color: #777;
}

.stat strong {
    color: var(--b-blue);
    display: block;
    font-size: 1.2rem;
    
    /* Animacja bonusu */
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- KLASY AKTYWNE --- */
.overlap-image.appear, 
.overlap-content.appear {
    opacity: 1;
    transform: translateX(0);
}

/* Wyskakiwanie numerów jeden po drugim */
.overlap-content.appear .stat strong {
    opacity: 1;
    transform: translateY(0);
}

.overlap-content.appear .stat:nth-child(1) strong { transition-delay: 0.6s; }
.overlap-content.appear .stat:nth-child(2) strong { transition-delay: 0.8s; }
.overlap-content.appear .stat:nth-child(3) strong { transition-delay: 1.0s; }

/* --- Responsywność --- */
@media (max-width: 992px) {
    .overlap-section {
        padding: 30px 0;
    }
    .overlap-wrapper {
        flex-direction: column;
        padding-bottom: 0;
    }
    .overlap-image {
        width: 100%;
        height: 350px;
        margin-bottom: -40px;
        border-radius: 20px 20px 20px 20px;
        transform: translateY(30px); /* Na mobile wjeżdża z dołu */
    }
    .overlap-content {
        position: relative;
        width: 92%;
        left: 0;
        margin: 0 auto;
        padding: 40px 25px;
        text-align: center;
        transform: translateY(30px); /* Na mobile wjeżdża z dołu */
    }
    .stats-mini {
        justify-content: center;
        gap: 15px;
    }
    .overlap-content h2 {
        font-size: 1.8rem;
    }
}


/* --- INTRO --- */
/* --- OGÓLNE USTAWIENIA GALERII --- */
.gallery-section {
    padding: 10px 0;
    overflow: hidden;
}

/* --- NAGŁÓWEK SEKCI (INTRO) --- */
.gallery-intro {
    padding: 100px 0 60px;
    text-align: center;
}

.intro-content {
    max-width: 700px;
    margin: 0 auto;
}

.intro-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin: 15px 0 25px;
}

/* --- GRID GALERII --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 320px);
    gap: 15px;
}

.gallery-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    background-color: #000;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.6s ease,
                filter 0.6s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

/* --- ANIMACJE PRZEŁĄCZANIA (JS) --- */
.gallery-item.switching {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
    filter: blur(10px);
}

.gallery-item.incoming {
    animation: slideInRight 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px) scale(0.95);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0);
    }
}

/* --- EFEKT OVERLAY (NAPIS PO NAJECHANIU) --- */
.img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 59, 149, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.img-overlay span {
    color: #fff;
    font-weight: 700;
    border: 2px solid #fff;
    padding: 10px 24px;
    text-transform: uppercase;
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item.show-hint .img-overlay,
.gallery-item:hover .img-overlay {
    opacity: 1;
}

.gallery-item.show-hint .img-overlay span,
.gallery-item:hover .img-overlay span {
    transform: translateY(0);
}

/* --- LIGHTBOX (PODGLĄD ZDJĘĆ) --- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 12px;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 60px;
    cursor: pointer;
}

/* --- SCROLL ANIMATION (GALLERY INTRO) --- */
.animate-on-scroll .sub-title,
.animate-on-scroll h2,
.animate-on-scroll p {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.appear .sub-title,
.animate-on-scroll.appear h2,
.animate-on-scroll.appear p {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.appear .sub-title {
    transition-delay: 0.2s;
}

.animate-on-scroll.appear h2 {
    transition-delay: 0.4s;
}

.animate-on-scroll.appear p {
    transition-delay: 0.6s;
}

/* --- RESPONSYWNOŚĆ (MOBILE) --- */
/* --- RESPONSYWNOŚĆ (MOBILE) --- */
@media (max-width: 992px) {
    .gallery-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 40px; /* Miejsce na ładniejszy pasek */
        -webkit-overflow-scrolling: touch;
        gap: 0;
        /* Ukrywamy standardowy, brzydki pasek przewijania */
        scrollbar-width: none; 
        -ms-overflow-style: none;
    }

    /* Ukrywamy scrollbar dla Chrome/Safari/Edge */
    .gallery-grid::-webkit-scrollbar {
        display: none;
    }

    .gallery-item {
        flex: 0 0 100%; /* Pełna szerokość - brak podglądu sąsiednich zdjęć */
        height: 480px;
        scroll-snap-align: center;
        background-color: transparent; /* Usuwamy czarne tło */
        padding: 0 15px; /* Odstęp od krawędzi ekranu */
        box-sizing: border-box;
        position: relative;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 24px; /* Zaokrąglone rogi samego zdjęcia */
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05); /* Delikatny cień zamiast tła */
    }

    .gallery-item .img-overlay {
        position: absolute;
        /* Musimy uwzględnić padding 15px, żeby overlay nie był szerszy niż zdjęcie */
        top: 0;
        left: 15px; 
        right: 15px;
        bottom: 0;
        /* Zaokrąglamy rogi nakładki tak samo jak zdjęcia */
        border-radius: 24px;
        /* To dotnie niebieski kolor w rogach */
        overflow: hidden;
    }

    .gallery-item.large {
        grid-column: auto;
        grid-row: auto;
    }

    /* --- NOWOCZESNY PASEK POSTĘPU (Symulowany przez CSS) --- */
    /* Jeśli nie używasz biblioteki typu Swiper, najładniejszy pasek 
       uzyskasz stylizując natywny scrollbar w ten sposób:
    */
.gallery-grid {
        display: flex;
        /* Zmieniamy na mandatory, by zdjęcie idealnie centrowało się na środku */
        scroll-snap-type: x mandatory;
        overflow-x: scroll; /* Wymuszamy scroll zamiast auto */
        padding-bottom: 50px; /* Więcej miejsca pod spodem na pasek */
        gap: 0;
        
        /* Dla Firefox */
        scrollbar-width: thin;
        scrollbar-color: #003b95 #e0e0e0;
    }

    /* --- STAŁY I ŁADNY PASEK (Chrome, Safari, Android, iOS) --- */
    .gallery-grid::-webkit-scrollbar {
        height: 6px; /* Nieco grubszy, by łatwiej było go zauważyć */
        display: block !important;
    }

    .gallery-grid::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 10px;
        margin: 0 40px; /* Zmniejszyłem margines, by pasek był nieco dłuższy i stabilniejszy */
    }

    .gallery-grid::-webkit-scrollbar-thumb {
        background-color: #003b95; /* Twój kolor niebieski */
        border-radius: 10px;
        /* Kluczowe dla iOS/Safari: obramowanie czasem wymusza widoczność */
        border: 1px solid #f0f0f0; 
    }
}

@media (max-width: 768px) {
    .gallery-intro h2 {
        font-size: 2.5rem;
    }
}


/* --- SEKCJA WYPOSAŻENIE - 4 KOLUMNY I SUPER ANIMACJE --- */
.amenities-section {
    padding: 100px 0;
    background: transparent;
    width: 100%;
    overflow: hidden;
}

.full-width-container {
    width: 100%;
    max-width: 1600px; /* Optymalna szerokość dla 4 kart */
    margin: 0 auto;
    padding: 0 20px;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 karty w jednym rzędzie */
    gap: 25px; 
    margin-top: 50px;
}

/* --- KARTA WYPOSAŻENIA (STAN POCZĄTKOWY SCROLLA) --- */
.amenity-card {
    background: #ffffff;
    padding: 50px 25px; 
    border-radius: 35px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    
    /* Bardzo płynne przejście */
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    
    /* Magia scrolla: Karta przed doscrollowaniem jest mała i schowana w dół */
    opacity: 0;
    transform: translateY(80px) scale(0.85); 
}

/* --- ANIMACJA SCROLLOWANIA (Aktywacja) --- */
.amenities-section.appear .amenity-card {
    opacity: 1;
    transform: translateY(0) scale(1); /* Wskakuje na miejsce i rośnie do normalnych rozmiarów */
}

/* Kaskada wchodzenia (efekt fali - każda kolejna karta wchodzi z minimalnym opóźnieniem) */
@media (min-width: 993px) {
    .amenities-section.appear .amenity-card:nth-child(1) { transition-delay: 0.1s; }
    .amenities-section.appear .amenity-card:nth-child(2) { transition-delay: 0.25s; }
    .amenities-section.appear .amenity-card:nth-child(3) { transition-delay: 0.4s; }
    .amenities-section.appear .amenity-card:nth-child(4) { transition-delay: 0.55s; }
    /* Jeśli masz więcej niż 4 karty, pojawią się w kolejnym rzędzie z dalszym opóźnieniem: */
    .amenities-section.appear .amenity-card:nth-child(5) { transition-delay: 0.7s; }
    .amenities-section.appear .amenity-card:nth-child(6) { transition-delay: 0.85s; }
}

/* --- EFEKT HOVER NA MYSZKĘ --- */
.amenity-card:hover {
    transform: translateY(-15px) !important; /* Podnosi kartę wyżej do użytkownika */
    box-shadow: 0 25px 50px rgba(0, 59, 149, 0.1);
    border-color: var(--b-blue);
    /* Przyspieszamy czas reakcji, gdy ktoś zjeżdża kursorem */
    transition: all 0.4s cubic-bezier(0.2, 1, 0.2, 1);
}

/* Styl ikony */
.icon-wrapper {
    width: 75px;
    height: 75px;
    margin: 0 auto 25px;
    background: #f4f7fc;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--b-blue);
    /* Specjalna "sprężysta" animacja dla ikony */
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); 
}

.icon-wrapper svg {
    width: 35px;
    height: 35px;
}

/* MAGIA: Sprężysty obrót o 180 stopni przy najechaniu na kartę */
.amenity-card:hover .icon-wrapper {
    background: var(--b-blue);
    color: #ffffff;
    transform: rotateY(180deg) scale(1.15); 
}

/* Teksty */
.amenity-card h3 {
    font-size: 1.25rem;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 800;
}

.amenity-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* --- RESPONSYWNOŚĆ --- */
/* Mniejsze laptopy (np. MacBooki 13-calowe) - przejście na 3 karty */
@media (max-width: 1200px) {
    .amenities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablety i duże telefony poziomo - 2 karty */
@media (max-width: 992px) {
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .amenity-card {
        padding: 40px 20px;
        /* Na telefonie scroll musi być lżejszy (tylko 40px zjazdu zamiast 80px), żeby nie klatkowało */
        transform: translateY(40px) scale(0.95);
    }
}

/* Zwykłe smartfony w pionie - 1 karta */
@media (max-width: 600px) {
    .amenities-grid {
        grid-template-columns: 1fr;
    }
}

/* --- RESPONSYWNOŚĆ I EFEKTY MOBILNE --- */
@media (max-width: 992px) {
    .full-width-container {
        padding: 0 15px;
    }

    .amenities-grid {
        grid-template-columns: 1fr; /* Jeden pod drugim na telefonie dla czytelności */
        gap: 30px; /* Większy odstęp, żeby animacje miały miejsce */
    }

    .amenity-card {
        padding: 45px 25px;
        /* Na telefonie startujemy z lekkim obrotem i przesunięciem w bok */
        opacity: 0;
        transform: translateY(60px) scale(0.9) rotateX(-10deg);
        transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    }

    /* Gdy karta "wchodzi" na ekran (klasa appear dodawana przez JS) */
    .amenities-section.appear .amenity-card {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }

    /* Na telefonie wyłączamy kaskadę czasową (transition-delay), 
       żeby każda karta reagowała indywidualnie na Twój scroll */
    .amenities-section.appear .amenity-card:nth-child(n) {
        transition-delay: 0s !important;
    }
}

/* Dodatkowy efekt "pływania" ikony na mobile */
@media (max-width: 768px) {
    .amenities-section.appear .amenity-card .icon-wrapper {
        animation: mobileFloat 3s ease-in-out infinite;
        animation-delay: 0.5s;
    }
}

@keyframes mobileFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* --- NOWOCZESNA STOPKA (PODMIANA TWOJEGO .footer) --- */
.main-footer {
    background-color: #002d72; /* Bardzo ciemny granat oparty na Twoim --b-blue */
    color: var(--white);
    padding: 80px 0 40px;
    margin-top: 80px;
}

.main-footer a {
    text-decoration: none !important;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    font-size: 1.5rem; 
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
    transition: all 0.4s ease;
}

.footer-about {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    max-width: 400px;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* SOCJALE - BIAŁE IKONY */
.footer-socials {
    display: flex;
    gap: 20px;
}

.social-icon-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon-link svg {
    width: 22px;
    height: 22px;
    fill: var(--white);
    transition: 0.3s;
}

.social-icon-link:hover {
    background: var(--black);
    transform: translateY(-5px);
}

/* TYTUŁY I LINKI */
.footer-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-link {
    display: block;
    color: var(--white);
    text-decoration: none;
    margin-bottom: 15px;
    font-weight: 500;
    transition: 0.3s;
    opacity: 0.8;
}

.footer-link:hover {
    opacity: 1;
    color: var(--white);
    padding-left: 5px;
}

.footer-address {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-top: 20px;
}

/* PRZYCISKI MAPY */
.footer-map-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-map {
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    transition: 0.3s;
}

.btn-map:hover {
    background: var(--white);
    color: var(--b-blue);
}

/* COPYRIGHT */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

/* RWD DLA STOPKI */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .footer-brand .footer-about {
        margin: 0 auto 30px;
    }
    .footer-socials {
        justify-content: center;
    }
}


