/* ── Single: Sala (wynajem) ──────────────────────────────────────────────────── */

.wsr-page {
    --wsr-accent: var(--wp--preset--color--purple, #7E33E2);
    background: var(--wp--preset--color--white);
}

.wsr-page--zolty     { --wsr-accent: #FFC400; }
.wsr-page--zielony   { --wsr-accent: #1F9D6B; }
.wsr-page--niebieski { --wsr-accent: #2563C9; }
.wsr-page--czerwony  { --wsr-accent: #D82C2C; }
.wsr-page--bialy     { --wsr-accent: #9AA0A6; }
.wsr-page--rozowy    { --wsr-accent: var(--wp--preset--color--pink-500, #DF006E); }
.wsr-page--fioletowy { --wsr-accent: var(--wp--preset--color--purple, #7E33E2); }
.wsr-page--neutralny { --wsr-accent: var(--wp--preset--color--purple-500, #430B8E); }

/* ── Hero ──────────────────────────────────────────────────────────────────── */

.wsr-hero {
    position: relative;
    padding-bottom: 48px;
    background-color: #0d0020;
    background-image: url('../images/headline-bg.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    color: var(--wp--preset--color--white);
}

.wsr-breadcrumb {
    padding-top: 16px;
    padding-bottom: 24px;
    font-size: 13px;
}

.wsr-breadcrumb .hl-bc-text a,
.wsr-breadcrumb .hl-bc-text span {
    color: rgba(245, 245, 252, 0.5);
    text-decoration: none;
}

.wsr-breadcrumb .hl-bc-text a:hover,
.wsr-breadcrumb .hl-bc-home:hover {
    color: var(--wp--preset--color--neutral-100);
}

.wsr-breadcrumb .hl-bc-home {
    color: rgba(245, 245, 252, 0.5);
}

.wsr-breadcrumb .hl-bc-item--page {
    color: var(--wp--preset--color--neutral-100);
}

.wsr-breadcrumb .hl-bc-ellipsis {
    display: none;
}

@media (min-width: 768px) {
    .wsr-breadcrumb .hl-bc-home-icon {
        display: none;
    }
}

@media (max-width: 767px) {
    .wsr-breadcrumb .hl-bc-home-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

.wsr-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    padding-top: 24px;
}

.wsr-hero-media {
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: rgba(255, 255, 255, 0.06);
    border-bottom: 4px solid var(--wsr-accent);
}

.wsr-hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wsr-hero-photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wsr-accent);
}

.wsr-hero-text {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
}

.wsr-title {
    margin: 0;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--wp--preset--color--white);
}

.wsr-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wsr-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--wp--preset--color--white);
}

.wsr-hero-desc {
    margin: 0;
    max-width: 620px;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.wsr-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border: 0;
    border-radius: 4px;
    background: var(--wp--preset--color--yellow, #FFE500);
    color: var(--wp--preset--color--dark, #2E2E39);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.wsr-cta:hover {
    transform: translateY(-1px);
    background: #f0d800;
}

/* ── Coordinator (hero) ────────────────────────────────────────────────────── */

.wsr-coord {
    margin-top: 4px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    width: 100%;
    max-width: 420px;
}

.wsr-coord-label {
    display: block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.wsr-coord-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wsr-coord-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.12);
}

.wsr-coord-avatar--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
}

.wsr-coord-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.wsr-coord-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--wp--preset--color--white);
}

.wsr-coord-role {
    font-size: 12px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
}

.wsr-coord-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-top: 4px;
    font-size: 13px;
}

.wsr-coord-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.wsr-coord-links a:hover {
    color: var(--wp--preset--color--yellow, #FFE500);
    text-decoration: underline;
}

/* ── Body ──────────────────────────────────────────────────────────────────── */

.wsr-body {
    padding: 56px 0 72px;
}

.wsr-section + .wsr-section {
    margin-top: 48px;
}

.wsr-section-title {
    margin: 0 0 20px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--wp--preset--color--black);
}

.wsr-section-title::after {
    content: "";
    display: block;
    width: 44px;
    height: 3px;
    margin-top: 10px;
    background: var(--wsr-accent);
    border-radius: 2px;
}

/* ── Gallery ───────────────────────────────────────────────────────────────── */

.wsr-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.wsr-gallery-item {
    padding: 0;
    border: 0;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3 / 2;
    background: var(--wp--preset--color--neutral-100, #F5F5FC);
}

.wsr-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.wsr-gallery-item:hover img {
    transform: scale(1.04);
}

.wsr-gallery-item:focus-visible {
    outline: 2px solid var(--wsr-accent);
    outline-offset: 2px;
}

/* ── Description ───────────────────────────────────────────────────────────── */

.wsr-desc {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--wp--preset--color--neutral-300);
    max-width: 760px;
}

.wsr-desc p {
    margin: 0 0 16px;
}

.wsr-desc p:last-child {
    margin-bottom: 0;
}

/* ── Equipment / amenities ─────────────────────────────────────────────────── */

.wsr-equip-list,
.wsr-amenities-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 32px;
}

.wsr-equip-item,
.wsr-amenities-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--wp--preset--color--black);
}

.wsr-equip-ic {
    flex-shrink: 0;
    display: inline-flex;
    color: var(--wsr-accent);
    margin-top: 1px;
}

/* ── Layouts ───────────────────────────────────────────────────────────────── */

.wsr-layouts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.wsr-layout-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px;
    border-radius: 4px;
    border: 1px solid var(--wp--preset--color--neutral-200, #C5C5CD);
    background: var(--wp--preset--color--neutral-50, #FCFCFF);
}

.wsr-layout-fig {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    color: var(--wsr-accent);
}

.wsr-layout-card--img .wsr-layout-fig {
    position: relative;
    padding: 0;
    margin-bottom: 6px;
    border: 1px solid var(--wp--preset--color--neutral-200, #C5C5CD);
    border-radius: 4px;
    background: var(--wp--preset--color--white);
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

button.wsr-layout-fig {
    cursor: zoom-in;
    transition: border-color 0.15s ease;
}

button.wsr-layout-fig:hover {
    border-color: var(--wsr-accent);
}

button.wsr-layout-fig:focus-visible {
    outline: 2px solid var(--wsr-accent);
    outline-offset: 2px;
}

.wsr-layout-fig img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 8px;
}

.wsr-layout-zoom {
    position: absolute;
    right: 6px;
    bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(26, 26, 37, 0.72);
    color: #fff;
    opacity: 0;
    transition: opacity 0.15s ease;
}

button.wsr-layout-fig:hover .wsr-layout-zoom,
button.wsr-layout-fig:focus-visible .wsr-layout-zoom {
    opacity: 1;
}

.wsr-layout-ic {
    display: inline-flex;
    color: var(--wsr-accent);
}

.wsr-layout-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--wp--preset--color--black);
}

.wsr-layout-max {
    font-size: 13px;
    font-weight: 600;
    color: var(--wsr-accent);
}

/* ── Other rooms ───────────────────────────────────────────────────────────── */

.wsr-others-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.wsr-other-card {
    --wsr-accent: var(--wp--preset--color--purple, #7E33E2);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--wp--preset--color--neutral-200, #C5C5CD);
    transition: box-shadow 0.25s ease;
}

.wsr-other-card--zolty     { --wsr-accent: #FFC400; }
.wsr-other-card--zielony   { --wsr-accent: #1F9D6B; }
.wsr-other-card--niebieski { --wsr-accent: #2563C9; }
.wsr-other-card--czerwony  { --wsr-accent: #D82C2C; }
.wsr-other-card--bialy     { --wsr-accent: #9AA0A6; }
.wsr-other-card--rozowy    { --wsr-accent: var(--wp--preset--color--pink-500, #DF006E); }
.wsr-other-card--fioletowy { --wsr-accent: var(--wp--preset--color--purple, #7E33E2); }
.wsr-other-card--neutralny { --wsr-accent: var(--wp--preset--color--purple-500, #430B8E); }

.wsr-other-card:hover {
    box-shadow: 4px 4px 8px 0 rgba(0, 0, 0, 0.15);
}

.wsr-other-media {
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
    background: var(--wp--preset--color--neutral-100, #F5F5FC);
}

.wsr-other-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wsr-other-accent {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--wsr-accent);
}

.wsr-other-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px 16px;
}

.wsr-other-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--wp--preset--color--black);
}

.wsr-other-meta {
    font-size: 12px;
    font-weight: 600;
    color: var(--wsr-accent);
}

/* ── Lightbox ──────────────────────────────────────────────────────────────── */

.wsr-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}

.wsr-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.28s ease;
}

.wsr-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 20, 0);
    backdrop-filter: blur(0);
    transition: background 0.28s ease, backdrop-filter 0.28s ease;
}

.wsr-lightbox.is-open .wsr-lightbox__backdrop {
    background: rgba(10, 10, 20, 0.9);
    backdrop-filter: blur(3px);
}

.wsr-lightbox__img {
    position: relative;
    max-width: min(1100px, 90vw);
    max-height: 85vh;
    object-fit: contain;
    border-radius: 6px;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.24s ease, transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.wsr-lightbox.is-open .wsr-lightbox__img {
    opacity: 1;
    transform: scale(1);
}

.wsr-lightbox.is-swapping .wsr-lightbox__img {
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.14s ease, transform 0.14s ease;
}

.wsr-lightbox__close,
.wsr-lightbox__nav {
    opacity: 0;
    transition: background 0.15s ease, opacity 0.2s ease 0.1s;
}

.wsr-lightbox.is-open .wsr-lightbox__close,
.wsr-lightbox.is-open .wsr-lightbox__nav {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .wsr-lightbox,
    .wsr-lightbox__backdrop,
    .wsr-lightbox__img,
    .wsr-lightbox__close,
    .wsr-lightbox__nav {
        transition-duration: 0.01ms;
    }

    .wsr-lightbox__img {
        transform: none;
    }
}

.wsr-lightbox__close,
.wsr-lightbox__nav {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
}

.wsr-lightbox__close:hover,
.wsr-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.wsr-lightbox__close {
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
}

.wsr-lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
}

.wsr-lightbox__nav--prev { left: 24px; }
.wsr-lightbox__nav--next { right: 24px; }

/* ── Dark mode ─────────────────────────────────────────────────────────────── */

html[data-theme="dark"] .wsr-page {
    background: var(--wp--preset--color--dark, #2E2E39);
}

html[data-theme="dark"] .wsr-section-title,
html[data-theme="dark"] .wsr-equip-item,
html[data-theme="dark"] .wsr-amenities-item,
html[data-theme="dark"] .wsr-layout-name,
html[data-theme="dark"] .wsr-other-name {
    color: var(--wp--preset--color--white);
}

html[data-theme="dark"] .wsr-desc {
    color: rgba(255, 255, 255, 0.72);
}

html[data-theme="dark"] .wsr-layout-card {
    background: var(--wp--preset--color--black, #1A1A25);
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .wsr-other-card {
    background: var(--wp--preset--color--black, #1A1A25);
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .wsr-other-media {
    background: rgba(255, 255, 255, 0.04);
}

/* ── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 960px) {
    .wsr-hero-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .wsr-hero-media {
        max-width: 480px;
    }

    .wsr-title {
        font-size: 32px;
    }

    .wsr-layouts-grid,
    .wsr-others-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .wsr-breadcrumb .hl-bc-text {
        flex-wrap: wrap;
        white-space: normal;
        row-gap: 4px;
    }

    .wsr-body {
        padding: 40px 0 56px;
    }

    .wsr-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wsr-equip-list,
    .wsr-amenities-list {
        grid-template-columns: 1fr;
    }

    .wsr-layouts-grid,
    .wsr-others-grid {
        grid-template-columns: 1fr;
    }

    .wsr-lightbox {
        padding: 16px;
    }

    .wsr-lightbox__nav--prev { left: 8px; }
    .wsr-lightbox__nav--next { right: 8px; }
}
