/* ── Grid wrapper ──────────────────────────────────────── */
.ss-tour-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
}

@media (max-width: 991px) {
    .ss-tour-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .ss-tour-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Single card ───────────────────────────────────────── */
.ss-tour-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(10, 10, 10, 0.10);
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.ss-tour-card:hover {
    box-shadow: 0 20px 50px rgba(10, 10, 10, 0.17);
    transform: translateY(-5px);
}

/* ── Thumbnail – proporcja 7:5 ────────────────────────── */
.ss-tour-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 7 / 5;
    overflow: hidden;
}

.ss-tour-thumbnail img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.ss-tour-card:hover .ss-tour-thumbnail img {
    transform: scale(1.07);
}

/* ── Ribbon (odznaka) ──────────────────────────────────── */
.ss-tour-ribbon {
    position: absolute;
    top: 12px;
    left: 0;
    padding: 4px 14px 4px 12px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background-color: #008ba3;
    border-radius: 0 20px 20px 0;
    z-index: 2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── Content area ──────────────────────────────────────── */
.ss-tour-content {
    padding: 20px 22px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}

/* ── 1. Tytuł ──────────────────────────────────────────── */
.ss-tour-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: #1a1a2e;
}

/* ── 2. Podtytuł ──────────────────────────────────────── */
.ss-tour-subtitle {
    font-size: 12.5px;
    color: #777;
    line-height: 1.5;
    margin: 0;
}

/* ── 3. Czas trwania / Info o dobie ────────────────────── */
.ss-tour-duration {
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0; /* Wyzerowany margines górny dla czystego wyrównania */
    font-weight: 500;
}

/* SVG zegar (odcień morski #008ba3) */
.ss-tour-duration i.icon_clock_alt {
    display: inline-block;
    width: 15px;
    height: 15px;
    min-width: 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='none' stroke='%23008ba3' stroke-width='2'/%3E%3Cpolyline points='12 6 12 12 16 14' fill='none' stroke='%23008ba3' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    font-size: 0;
}

/* ── 4. Footer: osoby | cena ───────────────────────────── */
.ss-tour-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

/* Liczba osób (odcień morski #008ba3) */
.ss-tour-people {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
    font-weight: 500;
    padding-top: 10px;
}

.ss-tour-people::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    min-width: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4' fill='none' stroke='%23008ba3' stroke-width='2'/%3E%3Cpath d='M4 20c0-4 3.6-7 8-7s8 3 8 7' fill='none' stroke='%23008ba3' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

/* Cena */
.ss-tour-price-wrap {
    text-align: right;
}

.ss-tour-price-from {
    display: block;
    font-size: 10px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1px;
}

.ss-tour-price-amount {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #e748b1;
    line-height: 1;
    padding-top: 0; /* Usunięto padding-top, który spychał cenę */
}

#przetwarzanie {
    scroll-margin-top: 100px;
}

/* Custom Divider Height */
.ss-hero-divider {
    height: 250px; /* Domyślna wysokość dla urządzeń mobilnych */
}

@media (min-width: 992px) {
    .ss-hero-divider {
        height: 40vh; /* 40% wysokości ekranu na desktopie */
        min-height: 300px; /* Zabezpieczenie przed zbyt niskim rozdzielczościami */
    }
}

/**
 * Galeria Rewianka - Dedykowany styl CSS
 */
/* Styl sekcji i kontenera */
.rewianka-gallery-section {
    padding: 40px 0;
    width: 100%;
    box-sizing: border-box;
}

.rewianka-gallery-container {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 60px; /* Miejsce na boczne strzałki */
    box-sizing: border-box;
}

/* Obramowanie slidera */
.rewianka-slider-wrapper {
    overflow: hidden;
    width: 100%;
    border-radius: 20px;
}

.rewianka-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* Wymiary kart: 3 widoczne na desktopie */
.rewianka-slide {
    flex: 0 0 33.333%;
    padding: 0 10px;
    box-sizing: border-box;
}

.rewianka-card {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background-color: #f0f0f0;
    aspect-ratio: 4 / 5; /* Zachowuje pionowy proporcjonalny profil ze zdjęcia */
}

.rewianka-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
    transition: transform 0.4s ease;
}

.rewianka-card:hover img {
    transform: scale(1.03);
}

/* Strzałki po dwóch stronach */
.rewianka-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 5;
    padding: 0;
}

.rewianka-nav-btn:hover {
    color: #333;
}

.rewianka-nav-btn:active {
    transform: translateY(-50%) scale(0.9);
}

.rewianka-nav-btn svg {
    width: 32px;
    height: 32px;
}

.rewianka-nav-btn.prev-btn {
    left: 10px;
}

.rewianka-nav-btn.next-btn {
    right: 10px;
}

/* RWD: Na telefonach 1 obrazek na raz */
@media (max-width: 768px) {
    .rewianka-gallery-container {
        padding: 0 45px;
    }

    .rewianka-slide {
        flex: 0 0 100%;
        padding: 0;
    }
    
    .rewianka-nav-btn.prev-btn {
        left: 0;
    }

    .rewianka-nav-btn.next-btn {
        right: 0;
    }
}