/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

    color: #1f2933;
    background: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    width: 100%;
    max-width: 100%;
}

button,
a {
    font: inherit;
}

button {
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   VARIABLES
========================================================= */

:root {
    --accent: #087f5b;
    --accent-dark: #056447;
    --accent-light: #e8f5f0;

    --text: #1f2933;
    --text-dark: #111827;
    --muted: #6b7280;
    --muted-light: #9ca3af;
    --muted-color: #6b7280;

    --border: #e5e7eb;
    --border-light: #edf0f2;
    --border-color: #e5e7eb;

    --background: #ffffff;
    --background-soft: #f7f8f8;
    --light-bg: #f7f8f8;

    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.08);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;

    --container: 1180px;
}


/* =========================================================
   CONTAINER
========================================================= */

.container {
    width: min(
            calc(100% - 40px),
            var(--container)
    );

    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   GALLERY
========================================================= */

.gallery {
    width: min(
            calc(100% - 40px),
            1380px
    );

    margin: 28px auto 0;

    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, 280px);

    gap: 6px;

    border-radius: var(--radius-lg);
    overflow: hidden;

    background: #f0f0f0;
}

.gallery-main {
    grid-row: 1 / 3;
    position: relative;
    overflow: hidden;
}

.gallery-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, 280px);
    gap: 6px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 0.45s ease,
    filter 0.3s ease;
}

.gallery-main img {
    cursor: zoom-in;
}

.gallery-item img {
    cursor: zoom-in;
}

.gallery img:hover {
    transform: scale(1.035);
    filter: brightness(0.97);
}


/* =========================================================
   PROPERTY HEADER
========================================================= */

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    gap: 40px;

    padding-top: 42px;
    padding-bottom: 34px;

    border-bottom: 1px solid var(--border);
}

.property-header-main {
    min-width: 0;
}

.property-location {
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.property-header h1 {
    color: var(--text-dark);
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.035em;
    margin-bottom: 12px;
}

.property-subtitle {
    color: var(--muted);
    font-size: 16px;
}

.property-price {
    flex-shrink: 0;
    text-align: right;
}

.price {
    display: block;
    font-size: 32px;
    line-height: 1.1;
    font-weight: 750;
    color: var(--text-dark);
    letter-spacing: -0.025em;
}

.price-per-meter {
    display: block;
    margin-top: 7px;
    font-size: 15px;
    color: var(--muted);
}


/* =========================================================
   PROPERTY STATS
========================================================= */

.property-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);

    border-bottom: 1px solid var(--border);

    padding: 24px 0;
}

.stat {
    display: flex;
    align-items: center;
    gap: 13px;

    padding: 7px 20px;

    border-right: 1px solid var(--border);
}

.stat:first-child {
    padding-left: 0;
}

.stat:last-child {
    border-right: 0;
}

.stat-icon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--accent-light);
    color: var(--accent);

    font-size: 18px;
    font-weight: 700;
}

.stat strong {
    display: block;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

.stat div > span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--muted);
}


/* =========================================================
   MAIN CONTENT LAYOUT
========================================================= */

.content-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        330px;

    gap: 70px;

    padding-top: 60px;
}

.content-main {
    min-width: 0;
}

.content-section {
    padding-bottom: 58px;
    margin-bottom: 58px;

    border-bottom: 1px solid var(--border);
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h2 {
    margin-bottom: 22px;

    color: var(--text-dark);

    font-size: 25px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.content-section h3 {
    margin-bottom: 14px;

    color: var(--text-dark);

    font-size: 16px;
}

.content-section p {
    max-width: 760px;

    color: #4b5563;

    font-size: 16px;
    line-height: 1.8;
}

.content-section p + p {
    margin-top: 14px;
}


/* =========================================================
   FEATURES
========================================================= */

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 14px;
}

.feature {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 12px;

    padding: 18px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: #fff;

    transition: transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.feature:hover {
    transform: translateY(-2px);

    border-color: #d3d9dc;

    box-shadow: var(--shadow-sm);
}

.feature > span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    border-radius: 50%;

    background: var(--accent-light);
    color: var(--accent);

    font-size: 11px;
    font-weight: 800;
}

.feature p {
    font-size: 16px;
    line-height: 1.6;
}

/* =========================================================
   ROOM LIST
========================================================= */

.room-list {
    list-style: none;
    margin-top: 24px;
    border-top: 1px solid var(--border);
}

.room-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.room-list strong {
    color: var(--text-dark);
    font-size: 15px;
}

.room-list span {
    color: var(--muted);
    font-size: 14px;
}


/* =========================================================
   FLOORPLAN
========================================================= */

.floorplan-placeholder {
    display: flex;
    position: relative;
    margin-top: 28px;
    min-height: 300px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #f4f5f5;
}

.floorplan-placeholder img {
    width: 100%;
    height: 380px;
    object-fit: contain;
    background: #f4f5f5;
}

.floorplan-placeholder span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 9px 15px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--muted);
    font-size: 13px;
    box-shadow: var(--shadow-sm);
}


/* =========================================================
   LOCATION
========================================================= */

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    margin-top: 30px;
}

.location-group {
    min-width: 0;
}

.location-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.location-row strong {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.location-row span {
    flex-shrink: 0;
    color: var(--muted);
    font-size: 13px;
}


/* =========================================================
   TRANSPORT
========================================================= */

.transport-list {
    margin-top: 28px;

    border-top: 1px solid var(--border);
}

.transport-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.transport-item strong {
    display: block;

    color: var(--text-dark);

    font-size: 15px;
}

.transport-item span {
    display: block;

    margin-top: 2px;

    color: var(--muted);

    font-size: 13px;
}

.transport-item small {
    color: var(--muted);

    font-size: 13px;
    text-align: right;
}

.transport-destinations {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 12px;

    margin-top: 18px;
}

.transport-destinations > div {
    padding: 16px;

    border: 1px solid var(--border);
    border-radius: var(--radius-sm);

    background: var(--background-soft);
}

.transport-destinations strong {
    display: block;

    color: var(--text-dark);

    font-size: 14px;
}

.transport-destinations span {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 12px;
}


/* =========================================================
   TAGS
========================================================= */

.tags {
    display: flex;
    flex-wrap: wrap;

    gap: 9px;
}

.tags span {
    padding: 9px 13px;

    border: 1px solid #dfe4e6;
    border-radius: 100px;

    background: var(--background-soft);

    color: #4b5563;

    font-size: 13px;
}


/* =========================================================
   DETAILS
========================================================= */

.details-list {
    border-top: 1px solid var(--border);
}

.details-list > div {
    display: grid;
    grid-template-columns: 1fr 1fr;

    padding: 14px 0;

    border-bottom: 1px solid var(--border);
}

.details-list span {
    color: var(--muted);

    font-size: 14px;
}

.details-list strong {
    color: var(--text-dark);

    font-size: 14px;
    font-weight: 600;
}


/* =========================================================
   COST
========================================================= */

.cost-box {
    padding: 25px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: var(--background-soft);
}

.cost-box > div {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding-bottom: 18px;
    margin-bottom: 18px;

    border-bottom: 1px solid var(--border);
}

.cost-box > div span {
    color: var(--muted);
}

.cost-box > div strong {
    color: var(--text-dark);

    font-size: 23px;
}

.cost-box p {
    font-size: 13px;
}


/* =========================================================
   MAP
========================================================= */

#map {
    width: 100%;
    height: 360px;
    border-radius: 14px;
    overflow: hidden;
}

.map-placeholder {
    min-height: 340px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 7px;

    border-radius: var(--radius-md);

    background: linear-gradient(
            135deg,
            #edf1ef 25%,
            #e5ebe8 25%,
            #e5ebe8 50%,
            #edf1ef 50%,
            #edf1ef 75%,
            #e5ebe8 75%
    );

    background-size: 40px 40px;

    color: #5f6966;

    text-align: center;
}

.map-placeholder span {
    padding: 9px 16px;

    border-radius: 100px;

    background: rgba(255, 255, 255, 0.9);

    font-weight: 600;

    box-shadow: var(--shadow-sm);
}

.map-placeholder small {
    max-width: 300px;

    color: #6b7280;

    font-size: 12px;
}


/* =========================================================
   CONTACT CARD
========================================================= */

.contact-card {
    position: relative;
}

.contact-card-inner {
    position: sticky;
    top: 25px;

    padding: 28px;

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    background: #fff;

    box-shadow: var(--shadow-md);
}

.contact-label {
    display: inline-block;

    margin-bottom: 14px;
    padding: 6px 10px;

    border-radius: 100px;

    background: var(--accent-light);
    color: var(--accent);

    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-card h2 {
    margin-bottom: 10px;

    color: var(--text-dark);

    font-size: 25px;
    line-height: 1.2;
}

.contact-card p {
    margin-bottom: 22px;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.7;
}

.contact-button {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    margin-top: 10px;

    border-radius: 10px;

    background: var(--accent);
    color: #fff;

    font-size: 14px;
    font-weight: 700;

    transition: background 0.2s ease,
    transform 0.2s ease;
}

.contact-button:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.contact-button.secondary {
    background: #fff;

    border: 1px solid #d8dddf;

    color: var(--text-dark);
}

.contact-button.secondary:hover {
    background: var(--background-soft);
}

.contact-note {
    margin-top: 20px;
    padding-top: 18px;

    border-top: 1px solid var(--border);

    color: var(--muted);

    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    margin-top: 90px;

    padding: 35px 0;

    border-top: 1px solid var(--border);

    background: #fafafa;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.7;
}

.footer .container {
    max-width: 900px;

    text-align: center;
}

.footer p + p {
    margin-top: 10px;
}

.footer .legal {
    color: #9ca3af;
}


/* =========================================================
   LIGHTBOX
========================================================= */

.lightbox {
    position: fixed;
    z-index: 9999;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 50px;

    background: rgba(10, 15, 20, 0.94);

    opacity: 0;
    visibility: hidden;

    transition: opacity 0.25s ease,
    visibility 0.25s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: min(1200px, 90vw);
    max-height: 85vh;

    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;

    width: auto;

    object-fit: contain;

    border-radius: 5px;

    user-select: none;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.12);
    color: white;

    cursor: pointer;

    transition: background 0.2s ease,
    transform 0.2s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.22);
}

.lightbox-close {
    top: 22px;
    right: 25px;

    font-size: 30px;
    font-weight: 300;
}

.lightbox-prev {
    left: 25px;

    font-size: 40px;
    line-height: 1;
}

.lightbox-next {
    right: 25px;

    font-size: 40px;
    line-height: 1;
}

.lightbox-counter {
    position: absolute;

    bottom: 20px;
    left: 50%;

    transform: translateX(-50%);

    padding: 6px 12px;

    border-radius: 100px;

    background: rgba(255, 255, 255, 0.12);

    color: rgba(255, 255, 255, 0.8);

    font-size: 12px;
}


/* =========================================================
   FOCUS / ACCESSIBILITY
========================================================= */

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(8, 127, 91, 0.35);
    outline-offset: 3px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .property-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .stat:nth-child(3) {
        border-right: 0;
    }

    .stat:nth-child(n + 4) {
        margin-top: 10px;
    }

    .content-layout {
        grid-template-columns:
            minmax(0, 1fr)
            290px;

        gap: 40px;
    }

    .gallery {
        grid-template-rows: repeat(2, 230px);
    }

}


/* =========================================================
   MOBILE
========================================================= */

/* =========================================================
   MOBILE — max 780px
========================================================= */

@media (max-width: 780px) {

    /* ---------------------------------------------------------
       GLOBAL
    --------------------------------------------------------- */
    .container {
        width: min(
                calc(100% - 28px),
                var(--container)
        );
    }

    body {
        overflow-x: hidden;
    }


    /* ---------------------------------------------------------
       GALERIA
    --------------------------------------------------------- */
    .gallery {
        display: grid;

        grid-template-columns: 1fr 1fr;
        grid-template-rows: 230px 115px;

        gap: 3px;

        margin: 0;

        border-radius: 0;
        overflow: hidden;
    }

    .gallery-main {
        grid-column: 1 / -1;
        grid-row: 1;

        min-width: 0;
        min-height: 0;
    }

    .gallery-side {
        display: contents;
    }

    .gallery-item {
        min-width: 0;
        min-height: 0;
    }

    .gallery-item:nth-child(3),
    .gallery-item:nth-child(4) {
        display: none;
    }

    .gallery-main img,
    .gallery-item img {
        width: 100%;
        height: 100%;

        display: block;

        object-fit: cover;
    }

    .gallery-main {
        position: relative;
    }

    .gallery-main::after {
        content: "Zobacz zdjęcia";

        position: absolute;

        right: 14px;
        bottom: 14px;

        padding: 8px 12px;

        border-radius: 8px;

        background: rgba(0, 0, 0, .68);
        color: #fff;

        font-size: 12px;
        font-weight: 600;

        pointer-events: none;
    }


    /* ---------------------------------------------------------
       PROPERTY HEADER
    --------------------------------------------------------- */
    .property-header {
        display: flex;

        flex-direction: column;

        gap: 12px;

        padding-top: 22px;
        padding-bottom: 18px;
    }

    .property-header-main {
        width: 100%;
    }

    .property-location {
        margin-bottom: 7px;

        font-size: 13px;
        line-height: 1.4;
    }

    .property-header h1 {
        margin: 0;

        font-size: 26px;
        line-height: 1.18;

        letter-spacing: -0.5px;
    }

    .property-subtitle {
        margin-top: 9px;

        font-size: 14px;
        line-height: 1.5;
    }

    .property-price {
        display: flex;

        align-items: baseline;
        justify-content: space-between;

        width: 100%;

        padding-top: 5px;
    }

    .property-price .price {
        font-size: 25px;
        line-height: 1;

        font-weight: 750;
    }

    .property-price .price-per-meter {
        font-size: 13px;
    }


    /* ---------------------------------------------------------
       STATYSTYKI
    --------------------------------------------------------- */
    .property-stats {
        display: grid;

        grid-template-columns: repeat(2, 1fr);

        margin: 0 0 30px;

        border: 1px solid var(--border-color, #e5e7eb);

        border-radius: 12px;

        overflow: hidden;
    }

    .stat {
        min-width: 0;

        padding: 14px 12px;

        border-right: 1px solid var(--border-color, #e5e7eb);
        border-bottom: 1px solid var(--border-color, #e5e7eb);

        margin-top: 0 !important;

        display: flex;

        align-items: center;

        gap: 10px;
    }

    .stat:nth-child(2n) {
        border-right: 0;
    }

    .stat:nth-child(n + 5) {
        border-bottom: 0;
    }

    .stat:nth-child(5),
    .stat:nth-child(6) {
        border-bottom: 0;
    }

    .stat-icon {
        flex: 0 0 auto;

        width: 30px;
        height: 30px;

        display: flex;

        align-items: center;
        justify-content: center;

        border-radius: 8px;

        font-size: 15px;
    }

    .stat strong {
        display: block;

        font-size: 14px;
        line-height: 1.25;
    }

    .stat span:not(.stat-icon) {
        display: block;

        margin-top: 3px;

        font-size: 11px;
        line-height: 1.3;
    }


    /* ---------------------------------------------------------
       CONTENT LAYOUT
    --------------------------------------------------------- */
    .content-layout {
        display: block;

        margin-top: 0;
    }

    .content-main {
        min-width: 0;
    }


    /* ---------------------------------------------------------
       SEKCJE
    --------------------------------------------------------- */
    .content-section {
        margin-bottom: 34px;
    }

    .content-section h2 {
        margin-bottom: 14px;

        font-size: 21px;
        line-height: 1.25;

        letter-spacing: -0.25px;
    }

    .content-section h3 {
        font-size: 15px;
    }

    .content-section p {
        font-size: 15px;
        line-height: 1.65;
    }


    /* ---------------------------------------------------------
       DLACZEGO WARTO
    --------------------------------------------------------- */
    .feature-grid {
        grid-template-columns: 1fr;

        gap: 0;

        border-top: 1px solid var(--border-color, #e5e7eb);
    }

    .feature {
        display: grid;

        grid-template-columns: 36px 1fr;

        gap: 10px;

        padding: 15px 0;

        border-bottom: 1px solid var(--border-color, #e5e7eb);
    }

    .feature span {
        font-size: 11px;
        font-weight: 700;

        padding-top: 2px;

        opacity: .55;
    }

    .feature p {
        margin: 0;

        font-size: 14px;
        line-height: 1.55;
    }


    /* ---------------------------------------------------------
       ROZKŁAD POKOI
    --------------------------------------------------------- */
    .room-list {
        margin: 18px 0 20px;
        padding: 0;

        list-style: none;

        border-top: 1px solid var(--border-color, #e5e7eb);
    }

    .room-list li {
        display: flex;

        align-items: center;
        justify-content: space-between;

        gap: 15px;

        padding: 13px 0;

        border-bottom: 1px solid var(--border-color, #e5e7eb);

        font-size: 14px;
    }

    .room-list li strong {
        font-weight: 600;
    }

    .room-list li span {
        flex: 0 0 auto;

        color: var(--muted-color, #737373);

        font-size: 13px;
    }


    /* ---------------------------------------------------------
       RZUT MIESZKANIA
    --------------------------------------------------------- */
    .floorplan-placeholder {
        position: relative;

        min-height: 230px;

        border-radius: 12px;

        overflow: hidden;

        background: #f2f2f2;
    }

    .floorplan-placeholder img {
        width: 100%;
        height: 100%;

        min-height: 230px;

        display: block;

        object-fit: cover;
    }

    .floorplan-placeholder span {
        position: absolute;

        left: 12px;
        bottom: 12px;

        padding: 7px 10px;

        border-radius: 7px;

        background: rgba(0, 0, 0, .65);
        color: #fff;

        font-size: 12px;
        font-weight: 600;
    }


    /* ---------------------------------------------------------
       LOKALIZACJA
    --------------------------------------------------------- */
    .location-grid {
        display: block;
    }

    .location-group {
        margin-bottom: 26px;
    }

    .location-group:last-child {
        margin-bottom: 0;
    }

    .location-group h3 {
        margin-bottom: 9px;
    }

    .location-row {
        display: flex;

        align-items: flex-start;
        justify-content: space-between;

        gap: 12px;

        padding: 12px 0;

        border-bottom: 1px solid var(--border-color, #e5e7eb);
    }

    .location-row strong {
        max-width: 65%;

        font-size: 13px;
        line-height: 1.4;
    }

    .location-row span {
        flex: 0 0 auto;

        color: var(--muted-color, #737373);

        font-size: 12px;

        text-align: right;
        line-height: 1.4;
    }


    /* ---------------------------------------------------------
       KOMUNIKACJA
    --------------------------------------------------------- */
    .transport-list {
        display: block;
    }

    .transport-item {
        padding: 15px 0;

        border-bottom: 1px solid var(--border-color, #e5e7eb);
    }

    .transport-item > div {
        display: flex;

        justify-content: space-between;

        gap: 10px;
    }

    .transport-item strong {
        font-size: 14px;
    }

    .transport-item span {
        color: var(--muted-color, #737373);

        font-size: 12px;

        white-space: nowrap;
    }

    .transport-item small {
        display: block;

        margin-top: 6px;

        color: var(--muted-color, #737373);

        font-size: 12px;
        line-height: 1.45;
    }

    .transport-destinations {
        display: grid;

        grid-template-columns: 1fr 1fr;

        margin-top: 14px;

        border: 1px solid var(--border-color, #e5e7eb);

        border-radius: 10px;

        overflow: hidden;
    }

    .transport-destinations > div {
        padding: 13px 11px;

        border-right: 1px solid var(--border-color, #e5e7eb);
        border-bottom: 1px solid var(--border-color, #e5e7eb);
    }

    .transport-destinations > div:nth-child(2n) {
        border-right: 0;
    }

    .transport-destinations > div:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .transport-destinations strong {
        display: block;

        font-size: 13px;
    }

    .transport-destinations span {
        display: block;

        margin-top: 4px;

        color: var(--muted-color, #737373);

        font-size: 11px;
    }


    /* ---------------------------------------------------------
       TAGI / BUDYNEK
    --------------------------------------------------------- */
    .tags {
        display: flex;

        flex-wrap: wrap;

        gap: 7px;
    }

    .tags span {
        padding: 8px 10px;

        border: 1px solid var(--border-color, #e5e7eb);

        border-radius: 7px;

        background: #fff;

        font-size: 12px;
        line-height: 1.2;
    }


    /* ---------------------------------------------------------
       INFORMACJE DODATKOWE
    --------------------------------------------------------- */
    .details-list {
        border-top: 1px solid var(--border-color, #e5e7eb);
    }

    .details-list > div {
        display: flex;

        justify-content: space-between;

        gap: 20px;

        padding: 12px 0;

        border-bottom: 1px solid var(--border-color, #e5e7eb);
    }

    .details-list span {
        color: var(--muted-color, #737373);

        font-size: 13px;
    }

    .details-list strong {
        font-size: 13px;

        text-align: right;
    }


    /* ---------------------------------------------------------
       KOSZTY
    --------------------------------------------------------- */
    .cost-box {
        padding: 18px;
        border-radius: 12px;
        background: var(--light-bg, #f7f8f8);
        border: 1px solid var(--border-color, #e5e7eb);
    }

    .cost-box > div {
        display: flex;

        align-items: center;
        justify-content: space-between;
    }

    .cost-box span {
        color: var(--muted-color, #737373);

        font-size: 13px;
    }

    .cost-box strong {
        font-size: 20px;
    }

    .cost-box p {
        margin: 9px 0 0;

        font-size: 12px;
        line-height: 1.5;
    }


    /* ---------------------------------------------------------
       MAPA
    --------------------------------------------------------- */
    .map-placeholder {
        min-height: 260px;

        padding: 25px;

        display: flex;

        flex-direction: column;

        align-items: center;
        justify-content: center;

        gap: 7px;

        border-radius: 12px;

        background: linear-gradient(
                135deg,
                #f1f1f1,
                #e7e7e7
        );

        color: #555;

        text-align: center;
    }

    .map-placeholder span {
        font-size: 15px;
        font-weight: 600;
    }

    .map-placeholder small {
        max-width: 260px;

        font-size: 12px;
        line-height: 1.5;
    }


    /* ---------------------------------------------------------
       PANEL KONTAKTOWY
    --------------------------------------------------------- */
    .contact-card {
        position: static;

        width: 100%;

        margin-top: 5px;
        margin-bottom: 35px;

        order: initial;
    }

    .contact-card-inner {
        padding: 20px;

        border-radius: 14px;

        box-shadow: none;
    }

    .contact-card h2 {
        margin: 7px 0 8px;

        font-size: 22px;
    }

    .contact-card p {
        margin-bottom: 17px;

        font-size: 14px;
        line-height: 1.55;
    }

    .contact-button {
        min-height: 48px;

        display: flex;

        align-items: center;
        justify-content: center;

        border-radius: 9px;

        font-size: 14px;
        font-weight: 650;
    }

    .contact-button + .contact-button {
        margin-top: 8px;
    }

    .contact-note {
        margin-top: 13px;

        font-size: 11px;
        line-height: 1.5;

        text-align: center;
    }


    /* ---------------------------------------------------------
       FOOTER
    --------------------------------------------------------- */
    .footer {
        margin-top: 20px;
    }

    .footer .container {
        padding-top: 25px;
        padding-bottom: 25px;
    }

    .footer p {
        font-size: 11px;
        line-height: 1.55;
    }

    .footer .legal {
        margin-top: 10px;
    }


    /* ---------------------------------------------------------
       LIGHTBOX
    --------------------------------------------------------- */
    .lightbox {
        padding: 15px;
    }

    .lightbox-content {
        width: 100%;
        height: auto;

        max-height: 82vh;
    }

    .lightbox-content img {
        max-width: 100%;
        max-height: 82vh;

        object-fit: contain;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;

        width: 38px;
        height: 38px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 38px;
        height: 38px;

        top: 50%;

        font-size: 25px;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }

    .lightbox-counter {
        bottom: 15px;

        font-size: 11px;
    }

}


/* =========================================================
   SMALL MOBILE — max 480px
========================================================= */

@media (max-width: 480px) {

    .container {
        width: calc(100% - 22px);
    }

    .gallery {
        grid-template-rows: 205px 100px;
    }

    .property-header h1 {
        font-size: 23px;
    }

    .property-price .price {
        font-size: 23px;
    }

    .property-stats {
        grid-template-columns: 1fr 1fr;
    }

    .stat {
        padding: 12px 9px;

        gap: 8px;
    }

    .stat-icon {
        width: 27px;
        height: 27px;

        font-size: 13px;
    }

    .stat strong {
        font-size: 13px;
    }

    .stat span:not(.stat-icon) {
        font-size: 10px;
    }

    .transport-destinations {
        grid-template-columns: 1fr;
    }

    .transport-destinations > div,
    .transport-destinations > div:nth-child(2n) {
        border-right: 0;
    }

    .transport-destinations > div:not(:last-child) {
        border-bottom: 1px solid var(--border-color, #e5e7eb);
    }

    .location-row {
        gap: 8px;
    }

    .location-row strong {
        max-width: 62%;
    }

    .details-list > div {
        gap: 10px;
    }

    .details-list span,
    .details-list strong {
        font-size: 12px;
    }

    .contact-card-inner {
        padding: 17px;
    }

}
