:root {
    --swp-primary: #480505;
    --swp-primary-dark: #350303;
    --swp-background: #FFFCFA;
    --swp-surface: #FFFFFF;
    --swp-text: #1B1919;
    --swp-muted: #746B67;
    --swp-border: rgba(72, 5, 5, .14);
    --swp-heading-font: "Old Standard TT", Georgia, "Times New Roman", serif;
    --swp-text-font: "Manrope", Arial, sans-serif;
    --swp-radius: 4px;
    --swp-container: 1320px;
    --swp-header-offset: 112px;
}

.siteware-property-page *,
.siteware-property-page *::before,
.siteware-property-page *::after {
    box-sizing: border-box;
}

body.siteware-property-page {
    background: var(--swp-background);
}

.swp-property-page-main {
    color: var(--swp-text);
    background: var(--swp-background);
    font-family: var(--swp-text-font);
    font-size: clamp(16px, calc(16px + (18 - 16) * ((100vw - 390px) / (1920 - 390))), 18px);
    font-weight: 400;
    line-height: 1.7;
}

.swp-property-page-main h1,
.swp-property-page-main h2,
.swp-property-page-main h3 {
    color: var(--swp-text);
    font-family: var(--swp-heading-font);
    font-weight: 800;
}

.swp-property__container {
    width: min(100% - 40px, var(--swp-container));
    margin: 0 auto;
    padding: calc(var(--swp-header-offset) + 52px) 0 104px;
}

.swp-property__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 38px;
    color: var(--swp-primary);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .03em;
    text-decoration: none;
    transition: transform .25s ease, color .25s ease;
}

.swp-property__back:hover,
.swp-property__back:focus-visible {
    color: var(--swp-primary-dark);
    transform: translateX(-3px);
}

.swp-property__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 56px;
    margin-bottom: 40px;
}

.swp-property__eyebrow,
.swp-contact-card__label {
    margin: 0 0 12px;
    color: var(--swp-primary);
    font-family: var(--swp-text-font);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.swp-property__title {
    max-width: 980px;
    margin: 0;
    font-size: clamp(40px, calc(40px + (80 - 40) * ((100vw - 390px) / (1920 - 390))), 80px);
    font-weight: 800;
    line-height: .98;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.swp-property__location {
    margin: 20px 0 0;
    color: var(--swp-muted);
    font-size: inherit;
    font-weight: 500;
}

.swp-property__price-box {
    flex: 0 0 auto;
    padding-bottom: 6px;
    text-align: right;
}

.swp-property__price {
    display: block;
    color: var(--swp-primary);
    font-family: var(--swp-heading-font);
    font-size: clamp(32px, 3vw, 50px);
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.swp-property__price-per-m2 {
    display: block;
    margin-top: 10px;
    color: var(--swp-muted);
    font-size: 14px;
    font-weight: 600;
}

.swp-gallery {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 8px;
    overflow: hidden;
    border-radius: var(--swp-radius);
    background: #EEE8E4;
}

.siteware-property-page .swp-gallery .swp-gallery__trigger {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    border: 0 !important;
    border-radius: 0 !important;
    color: inherit !important;
    background: #EEE8E4 !important;
    box-shadow: none !important;
    appearance: none;
    cursor: zoom-in;
}

.siteware-property-page .swp-gallery .swp-gallery__trigger::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(110deg, #EEE8E4 8%, #E3DCD7 18%, #EEE8E4 33%);
    background-size: 220% 100%;
    animation: swp-gallery-skeleton 1.15s linear infinite;
    transition: opacity 180ms ease;
}

.siteware-property-page .swp-gallery .swp-gallery__trigger.is-loaded::before {
    opacity: 0;
    pointer-events: none;
}

@keyframes swp-gallery-skeleton {
    to { background-position-x: -220%; }
}

.swp-gallery img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.swp-gallery__trigger:hover img,
.swp-gallery__trigger:focus-visible img {
    transform: scale(1.025);
}

.swp-gallery__trigger:focus-visible {
    outline: 2px solid var(--swp-primary) !important;
    outline-offset: -2px;
}

.swp-gallery__main { min-height: 580px; }

.swp-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.swp-gallery__thumb { min-height: 182px; }

.swp-gallery__more {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #FFFFFF;
    background: rgb(0 0 0 / 58%);
    font-family: var(--swp-heading-font);
    font-size: 34px;
    font-weight: 800;
}

body.swp-lightbox-open { overflow: hidden; }
.swp-lightbox[hidden] { display: none !important; }
.swp-lightbox:not([hidden]) { display: grid !important; }

.swp-lightbox {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    place-items: center;
    width: 100vw !important;
    height: 100vh !important;
    padding: 72px 100px 48px !important;
    margin: 0 !important;
    background: rgb(10 10 10 / 96%) !important;
}

.swp-lightbox__stage {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: min(100%, 1500px);
    height: 100%;
    margin: 0;
}

.swp-lightbox__image {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 140px);
    object-fit: contain;
    opacity: 0;
    transition: opacity 160ms ease;
    user-select: none;
    -webkit-user-drag: none;
}

.swp-lightbox__image.is-visible { opacity: 1; }

.swp-lightbox__stage::after {
    content: '';
    position: absolute;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 3px solid rgb(255 255 255 / 24%);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    animation: swp-lightbox-spinner 720ms linear infinite;
    transition: opacity 120ms ease;
}

.swp-lightbox__stage.is-loading::after { opacity: 1; }
@keyframes swp-lightbox-spinner { to { transform: rotate(360deg); } }

.swp-lightbox__counter {
    position: fixed;
    z-index: 4;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #FFFFFF;
    font-family: var(--swp-text-font);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .08em;
}

body.siteware-property-page .swp-lightbox button.swp-lightbox__control {
    position: fixed !important;
    z-index: 5 !important;
    display: grid !important;
    place-items: center !important;
    width: 56px !important;
    min-width: 56px !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    color: #FFFFFF !important;
    background: rgb(0 0 0 / 60%) !important;
    box-shadow: none !important;
    appearance: none !important;
    cursor: pointer !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: transform 180ms ease, background-color 180ms ease !important;
}

body.siteware-property-page .swp-lightbox button.swp-lightbox__control svg {
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    pointer-events: none;
}

body.siteware-property-page .swp-lightbox button.swp-lightbox__control:hover,
body.siteware-property-page .swp-lightbox button.swp-lightbox__control:focus-visible,
body.siteware-property-page .swp-lightbox button.swp-lightbox__control:active {
    color: #FFFFFF !important;
    background: rgb(0 0 0 / 82%) !important;
    outline: 2px solid rgb(255 255 255 / 72%) !important;
    outline-offset: 3px !important;
}

body.siteware-property-page .swp-lightbox button.swp-lightbox__close {
    top: 22px !important;
    right: 22px !important;
}

body.siteware-property-page .swp-lightbox button.swp-lightbox__close:hover,
body.siteware-property-page .swp-lightbox button.swp-lightbox__close:focus-visible,
body.siteware-property-page .swp-lightbox button.swp-lightbox__close:active {
    transform: scale(1.06) !important;
}

body.siteware-property-page .swp-lightbox button.swp-lightbox__nav {
    top: 50% !important;
    transform: translateY(-50%) !important;
}

body.siteware-property-page .swp-lightbox button.swp-lightbox__nav:hover,
body.siteware-property-page .swp-lightbox button.swp-lightbox__nav:focus-visible,
body.siteware-property-page .swp-lightbox button.swp-lightbox__nav:active {
    transform: translateY(-50%) scale(1.06) !important;
}

body.siteware-property-page .swp-lightbox button.swp-lightbox__nav--prev { left: 24px !important; }
body.siteware-property-page .swp-lightbox button.swp-lightbox__nav--next { right: 24px !important; }

.swp-facts {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: 40px 0 72px;
    overflow: hidden;
    border: 1px solid var(--swp-border);
    border-radius: var(--swp-radius);
    background: var(--swp-surface);
}

.swp-facts__item {
    min-width: 0;
    padding: 26px 22px;
    border-right: 1px solid var(--swp-border);
}

.swp-facts__item:last-child { border-right: 0; }

.swp-facts__item span,
.swp-details dt {
    display: block;
    margin-bottom: 7px;
    color: var(--swp-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.swp-facts__item strong {
    color: var(--swp-text);
    font-family: var(--swp-heading-font);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.15;
}

.swp-property__content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: clamp(48px, 6vw, 92px);
    align-items: start;
}

.swp-section {
    padding: 0 0 56px;
    margin: 0 0 56px;
    border-bottom: 1px solid var(--swp-border);
}

.swp-section:last-child { margin-bottom: 0; }

.swp-section h2 {
    margin: 0 0 28px;
    font-size: clamp(34px, 3.2vw, 50px);
    line-height: 1.05;
    letter-spacing: -.02em;
}

.swp-property__description,
.swp-section p {
    color: var(--swp-text);
    font-size: inherit;
    font-weight: 400;
    line-height: 1.85;
}

.swp-property__description > :first-child { margin-top: 0; }
.swp-property__description > :last-child { margin-bottom: 0; }

.swp-details { margin: 0; }

.swp-details__row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(0, 1fr);
    gap: 28px;
    padding: 16px 0;
    border-bottom: 1px solid var(--swp-border);
}

.swp-details dd {
    margin: 0;
    color: var(--swp-text);
    text-align: right;
    font-weight: 600;
}

.swp-contact-card {
    position: sticky;
    top: calc(var(--swp-header-offset) + 18px);
    padding: 34px;
    border: 1px solid var(--swp-border);
    border-radius: var(--swp-radius);
    background: var(--swp-surface);
    box-shadow: 0 18px 48px rgba(27, 25, 25, .055);
}

.swp-contact-card h2 {
    margin: 0 0 26px;
    font-size: 34px;
    line-height: 1.1;
}

.swp-contact-card__details {
    display: grid;
    gap: 20px;
    padding: 22px 0 8px;
    border-top: 1px solid var(--swp-border);
}

.swp-contact-card__detail {
    display: grid;
    gap: 6px;
}

.swp-contact-card__detail span {
    color: var(--swp-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.swp-contact-card__detail a {
    width: fit-content;
    color: var(--swp-text);
    text-decoration: none;
    line-height: 1.55;
}

.swp-contact-card__detail a:hover,
.swp-contact-card__detail a:focus-visible {
    color: var(--swp-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.swp-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 52px;
    padding: 14px 20px;
    margin-top: 24px;
    border: 1px solid var(--swp-primary);
    border-radius: 2px;
    color: #FFFFFF;
    background: var(--swp-primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .35s ease, box-shadow .35s ease, background-color .35s ease;
}

.swp-button:hover,
.swp-button:focus-visible {
    transform: translateY(-2px) scale(1.015);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .10);
}

body.siteware-property-page .swp-contact-card a.swp-button--primary,
body.siteware-property-page .swp-contact-card a.swp-button--primary:link,
body.siteware-property-page .swp-contact-card a.swp-button--primary:visited,
body.siteware-property-page .swp-contact-card a.swp-button--primary:hover,
body.siteware-property-page .swp-contact-card a.swp-button--primary:focus-visible,
body.siteware-property-page .swp-contact-card a.swp-button--primary:active {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    background: var(--swp-primary) !important;
    border-color: var(--swp-primary) !important;
    text-decoration: none !important;
}

body.siteware-property-page .swp-contact-card a.swp-button--primary:hover,
body.siteware-property-page .swp-contact-card a.swp-button--primary:focus-visible {
    background: var(--swp-primary-dark) !important;
}

.swp-contact-card__video {
    display: inline-block;
    margin-top: 22px;
    color: var(--swp-primary);
    font-weight: 700;
}

@media (max-width: 1024px) {
    :root { --swp-header-offset: 96px; }

    .swp-property__header {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .swp-property__price-box { text-align: left; }

    .swp-gallery { grid-template-columns: 1fr; }
    .swp-gallery__main { min-height: 480px; }
    .swp-gallery__thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .swp-gallery__thumb { min-height: 132px; }

    .swp-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .swp-facts__item:nth-child(3n) { border-right: 0; }

    .swp-property__content-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .swp-contact-card { position: static; }
}

@media (max-width: 767px) {
    :root { --swp-header-offset: 82px; }

    .swp-property__container {
        width: min(100% - 24px, var(--swp-container));
        padding: calc(var(--swp-header-offset) + 30px) 0 64px;
    }

    .swp-property__back { margin-bottom: 28px; }
    .swp-property__title { line-height: 1.02; }

    .swp-gallery__main { min-height: 320px; }
    .swp-gallery__thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .swp-lightbox { padding: 70px 12px 80px !important; }
    .swp-lightbox__image { max-height: calc(100vh - 170px); }

    body.siteware-property-page .swp-lightbox button.swp-lightbox__control {
        width: 48px !important;
        min-width: 48px !important;
        height: 48px !important;
        min-height: 48px !important;
    }

    body.siteware-property-page .swp-lightbox button.swp-lightbox__close {
        top: 14px !important;
        right: 14px !important;
    }

    body.siteware-property-page .swp-lightbox button.swp-lightbox__nav {
        top: auto !important;
        bottom: 18px !important;
        transform: none !important;
    }

    body.siteware-property-page .swp-lightbox button.swp-lightbox__nav:hover,
    body.siteware-property-page .swp-lightbox button.swp-lightbox__nav:focus-visible,
    body.siteware-property-page .swp-lightbox button.swp-lightbox__nav:active {
        transform: scale(1.06) !important;
    }

    body.siteware-property-page .swp-lightbox button.swp-lightbox__nav--prev { left: 18px !important; }
    body.siteware-property-page .swp-lightbox button.swp-lightbox__nav--next { right: 18px !important; }
    .swp-lightbox__counter { bottom: 32px; }

    .swp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .swp-facts__item,
    .swp-facts__item:nth-child(3n) { border-right: 1px solid var(--swp-border); }
    .swp-facts__item:nth-child(2n) { border-right: 0; }

    .swp-details__row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .swp-details dd { text-align: left; }
    .swp-contact-card { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .siteware-property-page .swp-gallery .swp-gallery__trigger::before,
    .swp-lightbox__stage::after { animation: none; }

    .swp-gallery img,
    .swp-button,
    .swp-lightbox__control,
    .swp-property__back { transition: none; }
}

/* ==========================================================
 * 1.0.8 — zabezpieczenia responsywne pojedynczej oferty
 * ========================================================== */

body.siteware-property-page {
    overflow-x: hidden;
}

.swp-property-page-main,
.swp-property__container,
.swp-property__header,
.swp-property__content-grid,
.swp-gallery,
.swp-gallery__main,
.swp-gallery__thumbs,
.swp-contact-card,
.swp-details,
.swp-facts {
    min-width: 0;
}

.swp-property__title,
.swp-property__location,
.swp-property__price,
.swp-property__price-per-m2,
.swp-section,
.swp-section p,
.swp-details dt,
.swp-details dd,
.swp-contact-card,
.swp-contact-card a {
    overflow-wrap: anywhere;
    word-break: normal;
}

.swp-property__price {
    white-space: normal;
}

.swp-gallery__main {
    aspect-ratio: 16 / 10;
    min-height: 0;
}

.swp-gallery__thumb {
    aspect-ratio: 4 / 3;
    min-height: 0;
}

.swp-contact-card__detail a,
.swp-contact-card__video {
    max-width: 100%;
}

.swp-section img,
.swp-section video,
.swp-section iframe,
.swp-property-page-main iframe {
    max-width: 100%;
}

@media (max-width: 1180px) and (min-width: 1025px) {
    .swp-property__container {
        width: min(100% - 48px, var(--swp-container));
    }

    .swp-property__header {
        gap: 34px;
    }

    .swp-gallery {
        grid-template-columns: minmax(0, 1.75fr) minmax(270px, .85fr);
    }

    .swp-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .swp-facts__item:nth-child(3n) {
        border-right: 0;
    }
}

@media (max-width: 1024px) {
    .swp-property__container {
        width: min(100% - 36px, var(--swp-container));
        padding-bottom: 82px;
    }

    .swp-gallery__main {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    .swp-gallery__thumbs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .swp-gallery__thumb {
        aspect-ratio: 4 / 3;
        min-height: 0;
    }

    .swp-contact-card {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .swp-property__container {
        width: min(100% - 22px, var(--swp-container));
        padding-top: calc(var(--swp-header-offset) + 26px);
        padding-bottom: 58px;
    }

    .swp-property__header {
        gap: 22px;
        margin-bottom: 30px;
    }

    .swp-property__title {
        font-size: clamp(38px, 11.2vw, 58px);
        line-height: 1;
        letter-spacing: -.028em;
    }

    .swp-property__location {
        margin-top: 14px;
    }

    .swp-property__price {
        font-size: clamp(30px, 9vw, 42px);
        line-height: 1.05;
    }

    .swp-gallery {
        gap: 6px;
    }

    .swp-gallery__main {
        aspect-ratio: 4 / 3;
        min-height: 0;
    }

    .swp-gallery__thumbs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .swp-gallery__thumb {
        aspect-ratio: 4 / 3;
        min-height: 0;
    }

    .swp-section,
    .swp-contact-card {
        max-width: 100%;
    }

    .swp-contact-card__detail a {
        display: inline-block;
    }

    .swp-button {
        min-height: 50px;
        padding-inline: 16px;
    }
}

@media (max-width: 480px) {
    :root {
        --swp-header-offset: 76px;
    }

    .swp-property__container {
        width: min(100% - 18px, var(--swp-container));
        padding-top: calc(var(--swp-header-offset) + 22px);
        padding-bottom: 48px;
    }

    .swp-property__back {
        min-height: 44px;
        margin-bottom: 22px;
    }

    .swp-property__eyebrow,
    .swp-contact-card__label {
        font-size: 11px;
    }

    .swp-property__title {
        font-size: clamp(36px, 11.8vw, 48px);
    }

    .swp-gallery__main {
        aspect-ratio: 4 / 3;
    }

    .swp-gallery__thumbs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .swp-facts {
        grid-template-columns: 1fr;
    }

    .swp-facts__item,
    .swp-facts__item:nth-child(2n),
    .swp-facts__item:nth-child(3n) {
        border-right: 0;
        border-bottom: 1px solid var(--swp-border);
    }

    .swp-facts__item:last-child {
        border-bottom: 0;
    }

    .swp-details__row {
        padding: 14px 0;
    }

    .swp-contact-card {
        padding: 25px 18px;
    }

    .swp-contact-card h2 {
        font-size: 31px;
    }

    .swp-button {
        width: 100%;
        min-height: 50px;
    }

    .swp-lightbox {
        padding-inline: 8px !important;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    .swp-lightbox {
        padding: 12px 76px 12px !important;
    }

    .swp-lightbox__image {
        max-height: calc(100vh - 24px);
    }

    body.siteware-property-page .swp-lightbox button.swp-lightbox__close {
        top: 10px !important;
        right: 10px !important;
    }

    body.siteware-property-page .swp-lightbox button.swp-lightbox__nav--prev {
        left: 10px !important;
    }

    body.siteware-property-page .swp-lightbox button.swp-lightbox__nav--next {
        right: 10px !important;
    }

    .swp-lightbox__counter {
        bottom: 8px;
    }
}

