/* ==========================================================================
   Camp content sections — universal styles
   Each .rk-cs is a section. Layouts: default, sand, dark, centered.
   ========================================================================== */

.rk-cs { padding: 64px 24px; position: relative; }
.rk-cs-inner { max-width: 1200px; margin: 0 auto; }

.rk-cs--default  { background: var(--rk-bg); }
.rk-cs--sand     { background: var(--rk-yellow-50); }
.rk-cs--dark     { background: var(--rk-navy-900); color: #fff; }
.rk-cs--dark .rk-cs-heading,
.rk-cs--dark .rk-cs-feature-title,
.rk-cs--dark .rk-cs-tl-title,
.rk-cs--dark .rk-cs-card-title { color: #fff; }
.rk-cs--dark .rk-cs-prose,
.rk-cs--dark .rk-cs-prose p,
.rk-cs--dark .rk-cs-feature-body,
.rk-cs--dark .rk-cs-tl-body,
.rk-cs--dark .rk-cs-faq-body { color: rgba(255,255,255,0.85); }
.rk-cs--dark .rk-eyebrow { color: var(--rk-yellow-500) !important; }
.rk-cs--dark .rk-cs-check li { color: rgba(255,255,255,0.92); }
.rk-cs--dark .rk-cs-check-icon { background: rgba(255,199,0,0.18); color: var(--rk-yellow-500); }

.rk-cs--centered .rk-cs-head { text-align: center; max-width: 700px; margin: 0 auto 32px; }

.rk-cs-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.rk-cs-heading {
    font-family: var(--rk-font-display);
    font-weight: 800;
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--rk-navy-900);
    margin: 0;
}

/* Generic prose (output of WYSIWYG) */
.rk-cs-prose { color: var(--rk-fg-muted); font-size: 16px; line-height: 1.7; max-width: 760px; }
.rk-cs-prose p { margin: 0 0 14px; }
.rk-cs-prose p:last-child { margin-bottom: 0; }
.rk-cs-prose strong { color: var(--rk-navy-900); font-weight: 700; }
.rk-cs--dark .rk-cs-prose strong { color: #fff; }
.rk-cs-prose ul, .rk-cs-prose ol { margin: 8px 0 14px 22px; padding: 0; }
.rk-cs-prose li { margin: 4px 0; }
.rk-cs-prose a { color: var(--rk-navy-900); text-decoration: underline; }
.rk-cs--dark .rk-cs-prose a { color: var(--rk-yellow-500); }
.rk-cs-prose h2, .rk-cs-prose h3 { font-family: var(--rk-font-display); color: var(--rk-navy-900); margin: 24px 0 8px; line-height: 1.2; }
.rk-cs-prose h3 { font-size: 20px; font-weight: 700; }

/* Stats ----------------------------------------------------------------- */
.rk-cs--stats { padding: 40px 24px; }
.rk-cs-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    text-align: center;
}
.rk-cs-stat { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.rk-cs-stat-icon {
    width: 44px; height: 44px;
    border-radius: 999px;
    background: var(--rk-yellow-500);
    color: var(--rk-navy-900);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 4px;
}
.rk-cs-stat-icon i { width: 22px; height: 22px; stroke-width: 2; }
.rk-cs-stat-value {
    font-family: var(--rk-font-display);
    font-weight: 800;
    font-size: 24px;
    color: var(--rk-navy-900);
    letter-spacing: -0.01em;
}
.rk-cs-stat-label {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--rk-fg-muted);
}

/* Check list ------------------------------------------------------------ */
.rk-cs-check {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    list-style: none;
    padding: 0; margin: 0;
}
.rk-cs-check li {
    display: flex; align-items: flex-start; gap: 12px;
    font-size: 15px; color: var(--rk-navy-900);
    line-height: 1.4;
}
.rk-cs-check-icon {
    flex-shrink: 0;
    width: 28px; height: 28px;
    border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
}
.rk-cs-check-icon i { width: 16px; height: 16px; stroke-width: 2.5; }
.rk-cs-color--palm   .rk-cs-check-icon { background: var(--rk-palm-100);  color: var(--rk-palm-500); }
.rk-cs-color--coral  .rk-cs-check-icon { background: rgba(255,111,77,0.15); color: var(--rk-coral-600); }
.rk-cs-color--yellow .rk-cs-check-icon { background: var(--rk-yellow-100); color: var(--rk-yellow-700); }

/* Feature list ---------------------------------------------------------- */
.rk-cs-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}
.rk-cs-feature {
    background: #fff;
    border: 1px solid var(--rk-border);
    border-radius: 18px;
    padding: 22px;
    display: flex; flex-direction: column; gap: 10px;
    box-shadow: var(--rk-shadow-sm);
}
.rk-cs--dark .rk-cs-feature { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
.rk-cs-feature-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--rk-yellow-100);
    color: var(--rk-yellow-700);
    display: inline-flex; align-items: center; justify-content: center;
}
.rk-cs-feature-icon i { width: 22px; height: 22px; stroke-width: 2; }
.rk-cs-feature-title {
    font-family: var(--rk-font-display);
    font-weight: 700;
    font-size: 18px;
    color: var(--rk-navy-900);
    margin: 0;
    letter-spacing: -0.005em;
}
.rk-cs-feature-body { font-size: 14px; line-height: 1.5; }

/* Timeline -------------------------------------------------------------- */
.rk-cs-timeline {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column;
    border-left: 2px solid var(--rk-yellow-300);
    padding-left: 28px;
}
.rk-cs-tl-item {
    position: relative;
    padding: 14px 0 28px;
}
.rk-cs-tl-item:last-child { padding-bottom: 0; }
.rk-cs-tl-dot {
    position: absolute; left: -36px; top: 18px;
    width: 14px; height: 14px;
    border-radius: 999px;
    background: var(--rk-yellow-500);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--rk-yellow-300);
}
.rk-cs--dark .rk-cs-tl-dot { border-color: var(--rk-navy-900); }
.rk-cs-tl-date {
    font-family: var(--rk-font-sans);
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--rk-yellow-700);
    margin-bottom: 4px;
}
.rk-cs--dark .rk-cs-tl-date { color: var(--rk-yellow-500); }
.rk-cs-tl-title {
    font-family: var(--rk-font-display);
    font-weight: 700;
    font-size: 22px;
    color: var(--rk-navy-900);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.rk-cs-tl-body { font-size: 15px; line-height: 1.6; }
.rk-cs-tl-body ul { list-style: none; padding: 0; margin: 0; }
.rk-cs-tl-body ul li {
    padding: 6px 0;
    border-bottom: 1px dashed var(--rk-border);
}
.rk-cs-tl-body ul li:last-child { border: 0; }

/* FAQ ------------------------------------------------------------------- */
.rk-cs-faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 880px; margin: 0 auto; }
.rk-cs-faq-item {
    background: #fff;
    border: 1px solid var(--rk-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--rk-shadow-sm);
}
.rk-cs--dark .rk-cs-faq-item { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
.rk-cs-faq-item summary {
    list-style: none;
    padding: 18px 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: var(--rk-font-display);
    font-weight: 700;
    font-size: 17px;
    color: var(--rk-navy-900);
}
.rk-cs--dark .rk-cs-faq-item summary { color: #fff; }
.rk-cs-faq-item summary::-webkit-details-marker { display: none; }
.rk-cs-faq-chev { transition: transform 220ms var(--rk-ease-out); flex-shrink: 0; width: 18px; height: 18px; }
.rk-cs-faq-item[open] .rk-cs-faq-chev { transform: rotate(180deg); }
.rk-cs-faq-body {
    padding: 0 22px 20px;
    border-top: 1px solid var(--rk-border);
    margin-top: 0;
}
.rk-cs--dark .rk-cs-faq-body { border-color: rgba(255,255,255,0.1); }
.rk-cs-faq-body p:first-child { padding-top: 14px; }

/* Cards ----------------------------------------------------------------- */
.rk-cs-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 8px;
}
.rk-cs-card {
    background: #fff;
    border: 1px solid var(--rk-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--rk-shadow-sm);
    display: flex; flex-direction: column;
}
.rk-cs-card-img { aspect-ratio: 4/3; background-size: cover; background-position: center; }
.rk-cs-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.rk-cs-card-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--rk-yellow-100);
    color: var(--rk-yellow-700);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 4px;
}
.rk-cs-card-icon i { width: 18px; height: 18px; stroke-width: 2; }
.rk-cs-card-title {
    font-family: var(--rk-font-display);
    font-weight: 700; font-size: 17px;
    color: var(--rk-navy-900);
    margin: 0;
    letter-spacing: -0.005em;
}
.rk-cs-card-sub { font-size: 13px; color: var(--rk-fg-muted); font-weight: 600; }

/* Image block ----------------------------------------------------------- */
.rk-cs--image-block .rk-cs-imgblock-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
}
.rk-cs--image-block.rk-cs-img-left .rk-cs-imgblock-grid { grid-template-columns: 1fr 1.1fr; }
.rk-cs--image-block.rk-cs-img-left .rk-cs-imgblock-img  { order: -1; }
.rk-cs-imgblock-text { display: flex; flex-direction: column; gap: 16px; }
.rk-cs-imgblock-img {
    aspect-ratio: 4/3;
    border-radius: 22px;
    background-size: cover;
    background-position: center;
    box-shadow: var(--rk-shadow-md);
    min-height: 280px;
}
.rk-cs-amenities {
    list-style: none; padding: 0; margin: 12px 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px 16px;
}
.rk-cs-amenities li {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; color: var(--rk-navy-900);
}
.rk-cs-amenities li i {
    width: 18px; height: 18px; stroke-width: 2;
    color: var(--rk-yellow-700);
}

/* CTA ------------------------------------------------------------------- */
.rk-cs--cta { padding: 56px 24px; }
.rk-cs-cta-card {
    background: var(--rk-yellow-500);
    border-radius: 28px;
    padding: 48px;
    text-align: center;
    max-width: 880px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}
.rk-cs-cta-title {
    font-family: var(--rk-font-display);
    font-weight: 800;
    font-size: clamp(26px, 3.5vw, 38px);
    line-height: 1.1;
    color: var(--rk-navy-900);
    margin: 0 0 14px;
    letter-spacing: -0.02em;
}
.rk-cs-cta-body { color: rgba(33,28,67,0.85); margin: 0 auto 20px; max-width: 620px; }
.rk-cs-cta-actions {
    display: inline-flex; align-items: center; gap: 22px;
    flex-wrap: wrap; justify-content: center;
}
.rk-cs-cta-phone {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--rk-navy-900);
    text-decoration: none;
    font-family: var(--rk-font-display);
    font-weight: 800;
    font-size: 18px;
}
.rk-cs-cta-phone i { width: 20px; height: 20px; stroke-width: 2; }

/* Gallery + Lightbox ---------------------------------------------------- */
.rk-cs--gallery .rk-cs-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 12px; }
.rk-cs-gallery-count {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 700;
    color: var(--rk-fg-muted);
    background: var(--rk-yellow-50);
    border: 1px solid var(--rk-yellow-200);
    padding: 6px 12px; border-radius: 999px;
}
.rk-cs-gallery-count i { width: 14px; height: 14px; stroke-width: 2; color: var(--rk-yellow-700); }

.rk-cs-gallery {
    display: grid;
    grid-template-columns: repeat(var(--cols, 4), 1fr);
    gap: 10px;
}
.rk-cs-gallery-tile {
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    background-color: var(--rk-gray-100);
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: transform 220ms var(--rk-ease-out), box-shadow 220ms var(--rk-ease-out);
}
.rk-cs-gallery-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--rk-shadow-md);
}
.rk-cs-gallery-tile:hover::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(33,28,67,0.45), transparent 60%);
}
.rk-cs-gallery-caption {
    position: absolute; left: 12px; right: 12px; bottom: 10px;
    color: #fff;
    font-size: 12px; font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
    opacity: 0; transition: opacity 220ms;
    z-index: 1;
}
.rk-cs-gallery-tile:hover .rk-cs-gallery-caption { opacity: 1; }

.rk-lightbox {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: 60px 80px;
}
.rk-lightbox[hidden] { display: none; }
.rk-lightbox-backdrop {
    position: absolute; inset: 0;
    background: rgba(20,16,42,0.92);
    backdrop-filter: blur(6px);
}
.rk-lightbox-figure {
    position: relative; z-index: 1;
    max-width: 100%; max-height: 100%;
    margin: 0;
    display: flex; flex-direction: column; gap: 14px;
    align-items: center;
}
.rk-lightbox-img {
    max-width: 100%;
    max-height: calc(100vh - 180px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.rk-lightbox-cap {
    color: #fff;
    font-family: var(--rk-font-display);
    font-size: 16px; font-weight: 600;
    text-align: center;
    max-width: 720px;
}
.rk-lightbox-counter {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    z-index: 2;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-family: var(--rk-font-display);
    font-weight: 700; font-size: 14px;
    padding: 8px 18px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
}
.rk-lightbox-close, .rk-lightbox-prev, .rk-lightbox-next {
    position: fixed;
    z-index: 2;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background 140ms;
    font-weight: 700;
    font-size: 28px;
    line-height: 1;
}
.rk-lightbox-close:hover,
.rk-lightbox-prev:hover,
.rk-lightbox-next:hover { background: rgba(255,255,255,0.3); }
.rk-lightbox-close { top: 24px; right: 24px; width: 48px; height: 48px; font-size: 24px; }
.rk-lightbox-prev  { left: 24px;  top: 50%; transform: translateY(-50%); width: 56px; height: 56px; font-size: 32px; padding-bottom: 4px; }
.rk-lightbox-next  { right: 24px; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; font-size: 32px; padding-bottom: 4px; }

@media (max-width: 720px) {
    .rk-cs-gallery { grid-template-columns: repeat(2, 1fr); }
    .rk-lightbox { padding: 40px 16px; }
    .rk-lightbox-prev, .rk-lightbox-next { width: 44px; height: 44px; font-size: 24px; }
}

/* Responsive ------------------------------------------------------------ */
/* Image block collapses to single column at ≤1024px.
 * SPECIFICITY NOTE: `.rk-cs--image-block.rk-cs-img-left .rk-cs-imgblock-grid`
 * (specificity 0,3,0) is set in the desktop default block above, so a media
 * override with just `.rk-cs--image-block .rk-cs-imgblock-grid` (0,2,0) gets
 * out-specificity'd for img-left sections and stays 2-column. We must match
 * BOTH selector forms with the same specificity to flip them on mobile. */
@media (max-width: 1024px) {
    .rk-cs--image-block .rk-cs-imgblock-grid,
    .rk-cs--image-block.rk-cs-img-left .rk-cs-imgblock-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .rk-cs--image-block.rk-cs-img-left .rk-cs-imgblock-img { order: 0; }
}
@media (max-width: 820px) {
    .rk-cs { padding: 48px 20px; }
    .rk-cs-stats { gap: 16px; }
}

/* On very narrow screens (≤480px), the image_block image's `min-height: 280px`
   combined with aspect-ratio 4/3 forces width = 280 × 4/3 = 373px, which is
   wider than the viewport — that's what was making "Gdzie mieszkamy" cause
   horizontal scroll. Drop the min-height + soften the ratio so the image
   sizes from width-down on phones. */
@media (max-width: 480px) {
    .rk-cs { padding: 40px 16px; }
    .rk-cs-imgblock-img {
        aspect-ratio: 4/3;
        min-height: 0;
        width: 100%;
    }
    /* Stats grid — at 320–400px width, 2 columns (180×2 = 360px) overflow.
       Force single column with auto-fit collapse, smaller gap. */
    .rk-cs-stats { grid-template-columns: 1fr 1fr; gap: 14px; }
}
