/* ==========================================================================
   Regions Grid — "Odkryj nasze kierunki podróży"
   Wgraj do: wp-content/themes/generatepress_child/regions-grid.css
   ========================================================================== */

.rg-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 50px 20px;
}

.rg-heading {
    text-align: center;
    font-family: "Lora", serif;
    font-size: 26px;
    font-weight: 700;
    color: #2B2B28;
    margin: 0 0 32px;
}

.rg-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.rg-card {
    width: calc(25% - 18px); /* 4 karty w rzędzie na desktopie */
    min-width: 220px;
    flex-grow: 1;
}

.rg-card-link {
    display: block;
    position: relative;
    text-decoration: none;
}

.rg-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1; /* ujednolicone z resztą serwisu */
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.rg-card-link:hover .rg-image {
    transform: scale(1.03);
    filter: brightness(0.85);
}

.rg-label {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: inline-block;
}

.rg-label-text {
    display: inline-block;
    background-color: #ffffff;
    color: #2B2B28;
    font-family: "Raleway", sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 10px 22px;
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.rg-card-link:hover .rg-label-text {
    background-color: #1E5B41;
    color: #ffffff !important;
}

/* ==========================================================================
   Responsywność
   ========================================================================== */

@media (max-width: 1024px) {
    .rg-card {
        width: calc(50% - 12px); /* 2 karty w rzędzie na tablecie */
    }
}

@media (max-width: 600px) {
    .rg-wrapper {
        padding: 36px 12px;
    }
    .rg-heading {
        font-size: 21px;
        margin-bottom: 24px;
    }
    .rg-grid {
        gap: 16px;
    }
    .rg-card {
        width: 100%; /* 1 kolumna na telefonie */
    }
    .rg-label-text {
        font-size: 14px;
        padding: 8px 18px;
    }
}
