/* ===========================
   MOBILE — pełny layout aplikacyjny
=========================== */
@media screen and (max-width: 768px) and (hover: none) and (pointer: coarse) {

    /* ===========================
       GLOBALNY FONT
    ============================ */
    body,
    header.main-header .logo,
    header.main-header nav a,
    .hero-title,
    .hero-content h1,
    .hero-content p,
    .note p,
    .notes-section .note-title,
    .notes-section .note-subtitle,
    .countries-grid .note-title,
    .countries-grid .note p,
    footer.footer {
        font-family: 'Patrick Hand', cursive;
    }

    /* ===========================
       RESET
    ============================ */
    html, body {
    margin: 0;
    padding: 0;
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    background: #000;
}

    /* ===========================
       HEADER
    ============================ */
    header.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 35px;
    padding: 0 12px;
    background: #e8dfc8;
    z-index: 9999;
}

    header.main-header .logo {
        font-size: 18px;
    }

    header.main-header nav a {
        font-size: 16px;
        margin: 0 4px;
        padding: 4px 6px;
    }

    /* ===========================
       HERO
    ============================ */
section.hero,
.hero-country {
    height: auto !important;        /* było 100vh */
    min-height: 100vh !important;   /* zostaje, żeby tło zawsze było min. na cały ekran */
    overflow: visible !important;   /* było hidden — to ucinało dół */

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    padding-top: 35px;
}


    .hero-content h1 {
        font-size: 34px;
        margin-top: 45px;
        margin-bottom: 10px;
        text-align: center;
    }

   
.hero-content p {
    display: none !important;
}

    /* ===========================
       KOMUNIKAT NA DOLE STRONY GŁÓWNEJ
    ============================ */
    body.home section.hero::after {
        content: none !important;
        display: none !important;
    }

    body .hero-notes::after {
        content: "Strona została zoptymalizowana dla monitorów komputerowych, laptopów i tabletów w rozdzielczościach od Full HD (1080p) wzwyż. W wersji mobilnej, można jedynie obejrzeć galerie zdjęć w poszczególnych krajach.";
        display: block;

        background: #e8dfc8;
        color: #1e4fa3;

        padding: 12px 20px;
        border-radius: 10px;
        font-size: 24px;
        line-height: 1.25;

        max-width: 320px;
        text-align: center;

        margin: 60px auto;
        box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    }

    /* ===========================
       KAFELKI NA MAPIE
    ============================ */
   .hero-notes {
    position: absolute !important;
    top: 160px !important; /* tak jak w krajach */
    left: 50% !important;
    transform: translateX(-50%) !important;

    width: 100%;
    max-width: 360px;

    display: flex;
    flex-direction: column;
    gap: 18px;

    z-index: 20 !important;
}


    .note,
    .notes-section .note {
        background: none;
        border: none;
        box-shadow: none;
        position: static;
        padding: 0;
        margin: 0;
    }

    .note p,
    .notes-section .note-title {
        width: 320px;
        height: 50px;

        background: #e8dfc8;
        color: #1e4fa3;

        font-size: 24px;
        font-weight: 400;

        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.25);

        display: flex;
        justify-content: center;
        align-items: center;

        margin: 0 auto;
    }

    /* ===========================
       KONTYNENTY — kafelki państw
    ============================ */
    .countries-grid {
        position: absolute !important;
        top: 140px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;

        width: 100%;
        max-width: 360px;

        display: flex;
        flex-direction: column;
        gap: 18px;

        z-index: 20 !important;
    }

    .countries-grid .note p {
        width: 320px;
        height: 50px;

        background: #e8dfc8;
        color: #1e4fa3;

        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.25);

        display: flex;
        justify-content: center;
        align-items: center;

        font-size: 24px;
        margin: 0 auto;
    }

    /* ===========================
       KRAJE — kafelki galerii
    ============================ */
    .notes-section {
        position: absolute !important;
        top: 180px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;

        width: 100%;
        max-width: 360px;

        display: flex;
        flex-direction: column;
        gap: 18px;

        z-index: 20 !important;
    }

    .notes-left,
    .notes-right {
        display: contents;
    }

    .notes-section .note-title {
        width: 320px;
        height: 50px;

        background: #e8dfc8;
        color: #1e4fa3;

        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.25);

        display: flex;
        justify-content: center;
        align-items: center;

        font-size: 24px;
        margin: 0 auto;
    }

    .notes-section .note-photo,
    .notes-section .pin,
    .notes-section .note-subtitle {
        display: none !important;
    }

    /* ===========================
       GALERIE — tytuł + zdjęcia
    ============================ */
    .continent-title-box {
    position: relative !important;
    top: 5px !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
}


    .hero-title {
        font-size: 30px;
        line-height: 1.3;
        font-weight: 600;
        text-align: center;
        margin-top: 10;
        padding-top: 0;
    }

    .gallery-hero {
    height: auto;
    min-height: 0;
    background-size: cover;
    background-position: center;
    padding-top: 10px !important; /* mały odstęp od tytułu */
    margin-top: 80px !important;  /* header */
}


    .gallery-grid {
        position: relative;
        width: 100%;
        max-width: 420px;
        margin: 10px auto 40px auto;

        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;

        padding: 0 12px;
        box-sizing: border-box;
        z-index: 5;
    }

    .gallery-grid img {
        width: 100%;
        height: auto;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.25);

        opacity: 0;
        transform: translateY(10px);
        animation: fadeInGallery 0.4s ease forwards;
    }

    @keyframes fadeInGallery {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    html.gallery body {
        overflow-y: auto;
    }

    /* ===========================
       UKRYWANIE ELEMENTÓW
    ============================ */
    .note img,
    .note .pin,
    .note-photo,
    .note-photo img,
    .note-planned,
    .note-contact-bottom,
    .note-about-bottom,
    .country-note,
    .hero-icons,
    .hero-icons .hero-icon {
        display: none !important;
    }

    /* ===========================
       MENU — tylko kontynenty
    ============================ */
    header.main-header nav a {
        display: none !important;
    }

    header.main-header nav a[href*="europa"],
    header.main-header nav a[href*="azja"],
    header.main-header nav a[href*="ameryka"] {
        display: inline-block !important;
    }

    /* ===========================
       STOPKA
    ============================ */
   footer.footer {
    display: none !important;
}


.map-container {
    position: relative !important;
    min-height: auto !important; /* kluczowa zmiana */
    padding-top: 30px !important; /* header + tytuł */
}


}

