@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Jost:wght@200;300;400&display=swap');

:root {
    --ink: #1a1a18;
    --cream: #f5f2ec;
    --gold: #b8a87a;
    --muted: #6b6b60;
    --border: rgba(26,26,24,0.18);
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

a:visited {
    color: inherit;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    width: 100%;
    min-height: 100dvh;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    color: var(--ink);
    background-color: var(--cream);
    -webkit-text-size-adjust: 100%;
}

body::before {
    content: '';
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    background-image: url(images/hero.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -1;
}

/* HEADER */

header {
    width: 100%;
    height: 64px;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 0 32px;
    gap: 2px;
}

header a {
    height: 36px;
    padding: 0 22px;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    text-decoration: none;
    color: var(--ink);
    border: 1px solid transparent;
    transition: border-color 0.4s, background 0.4s, color 0.4s;
}

header a:hover {
    border-color: var(--ink);
    background-color: var(--ink);
    color: var(--cream);
}

header a.active {
    border-color: var(--ink);
}

/* INDEX PAGE */

main {
    display: flex;
    width: 100%;
    height: 100dvh;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

.home-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 2px;
    color: var(--ink);
    background-color: transparent;
    transition: 0.6s;
    scale: 1.2;
}

.home-icon svg {
    width: 80%;
    height: 80%;
}

.home-icon:hover {
    background-color: var(--ink);
    color: var(--cream);
}

main img {
    height: 55%;
    width: auto;
}

main p {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: 30px;
    margin-bottom: 40px;
    margin-left: 50%;
    margin-right: auto;
    text-align: left;
}

.choose_m {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    width: 1100px;
    max-width: calc(100% - 64px);
    margin-left: auto;
    margin-right: auto;
}

.choose_m a {
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--ink);
    width: 23%;
    height: 100%;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: 0.5s;
    border: 1px solid var(--ink);
}

.choose_m a:hover {
    background-color: var(--ink);
    color: var(--cream);
}

/* BUY PAGE */

.page-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 13px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: center;
    margin: 48px 0 12px;
}

.page-headline {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 42px;
    text-align: center;
    margin: 0 0 48px;
    color: var(--ink);
}

.inwestycje {
    width: 100%;
    padding: 0 40px 60px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.inwestycja {
    width: 28%;
    min-width: 260px;
    min-height: 420px;
    text-decoration: none;
    color: var(--cream);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-color: var(--ink);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    overflow: hidden;
    position: relative;
}

.inwestycja::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,26,24,0.92) 0%, rgba(26,26,24,0.1) 55%, transparent 100%);
    pointer-events: none;
}

.inwestycja:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(26,26,24,0.22);
}

.inwestycja img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.5s, transform 0.6s;
}

.inwestycja:hover img {
    opacity: 0.85;
    transform: scale(1.03);
}

.inwestycja-content {
    position: relative;
    z-index: 1;
    padding: 24px;
}

.ititle {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 22px;
    margin: 0 0 8px;
    color: var(--cream);
}

.iDescription {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: rgba(245,242,236,0.7);
    margin: 0;
    line-height: 1.6;
}

.itag {
    display: inline-block;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

/* SELL PAGE */

.sell-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100dvh - 64px);
    padding: 60px 32px;
}

.sell-card {
    max-width: 560px;
    width: 100%;
    text-align: center;
}

.sell-card .eyebrow {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
    display: block;
}

.sell-card h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 48px;
    line-height: 1.15;
    margin: 0 0 24px;
    color: var(--ink);
}

.sell-card p {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.8;
    color: var(--muted);
    margin: 0 0 40px;
}

.sell-divider {
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto 40px;
}

.sell-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
    border: 1px solid var(--ink);
    padding: 14px 36px;
    transition: background 0.45s, color 0.45s;
}

.sell-cta:hover {
    background: var(--ink);
    color: var(--cream);
}

/* ABOUT PAGE */

.about-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: calc(100dvh - 64px);
    padding: 80px 40px 60px;
    gap: 80px;
    max-width: 1100px;
    margin: 0 auto;
}

.about-left {
    flex: 0 0 300px;
}

.about-left .eyebrow {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 14px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 20px;
}

.about-left h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 52px;
    line-height: 1.1;
    margin: 0 0 32px;
    color: var(--ink);
}

.about-left img {
    max-width: 80%;
    height: auto;
}

.about-line {
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin-top: 24px;
}

.about-right {
    flex: 1;
    padding-top: 12px;
}

.about-right p {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 20px;
    line-height: 1.9;
    color: var(--muted);
    margin: 0 0 24px;
}

.about-right p:last-child {
    margin-bottom: 0;
}

.about-values {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-value {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.about-value-num {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 36px;
    color: var(--gold);
    line-height: 1;
    flex-shrink: 0;
    width: 36px;
}

.about-value-text strong {
    display: block;
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 18px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: var(--ink);
}

.about-value-text span {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: var(--muted);
    line-height: 1.6;
}

/* CONTACT PAGE */

.contact-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100dvh - 64px);
    padding: 60px 32px;
}

.contact-inner {
    max-width: 640px;
    width: 100%;
}

.contact-inner .eyebrow {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 20px;
}

.contact-inner h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 52px;
    line-height: 1.1;
    margin: 0 0 16px;
    color: var(--ink);
}

.contact-inner .subtitle {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.8;
    color: var(--muted);
    margin: 0 0 48px;
}

.contact-divider {
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin-bottom: 48px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-item-label {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
}

.contact-item-value {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 26px;
    color: var(--ink);
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
}

.contact-item-value:hover {
    color: var(--gold);
}

.contact-note {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
}

/* ─── TABLET (≤ 900px) ─────────────────────────── */

@media (max-width: 900px) {

    header {
        height: auto;
        min-height: 56px;
        padding: 10px 20px;
        justify-content: center;
        flex-wrap: wrap;
        gap: 4px;
    }

    header a {
        padding: 0 16px;
        font-size: 12px;
        height: 32px;
    }

    main p {
        font-size: 22px;
        margin-left: 0;
        text-align: center;
        padding: 0 24px;
    }

    main img {
        height: 40%;
    }

    .choose_m {
        width: calc(100% - 48px);
        flex-wrap: wrap;
        height: auto;
        gap: 8px;
    }

    .choose_m a {
        width: calc(50% - 4px);
        height: 40px;
        font-size: 12px;
    }

    .about-wrap {
        flex-direction: column;
        gap: 40px;
        padding: 48px 32px;
        min-height: auto;
    }

    .about-left {
        flex: none;
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 24px;
    }

    .about-left img {
        max-width: 140px;
    }

    .about-line {
        display: none;
    }

    .about-right {
        padding-top: 0;
    }

    .about-right p {
        font-size: 17px;
    }

    .inwestycje {
        padding: 0 24px 48px;
    }

    .inwestycja {
        width: calc(50% - 12px);
        min-height: 360px;
    }

    .sell-wrap {
        padding: 48px 24px;
        min-height: auto;
    }

    .sell-card h1 {
        font-size: 38px;
    }

    .contact-wrap {
        padding: 48px 24px;
        min-height: auto;
    }

    .contact-inner h1 {
        font-size: 42px;
    }

    .contact-item-value {
        font-size: 22px;
    }
}

/* ─── MOBILE (≤ 600px) ─────────────────────────── */

@media (max-width: 600px) {

    header {
        padding: 12px 16px;
        gap: 4px;
    }

    header a {
        padding: 0 12px;
        font-size: 11px;
        letter-spacing: 0.07em;
        height: 30px;
    }

    main {
        height: auto;
        min-height: calc(100dvh - 54px);
        padding: 24px 0 40px;
        justify-content: center;
        gap: 0;
    }

    main img {
        height: auto;
        width: 78%;
        max-width: 300px;
        margin-bottom: 12px;
    }

    main p {
        font-size: 17px;
        margin-left: 0;
        margin-bottom: 28px;
        text-align: center;
        padding: 0 20px;
        line-height: 1.55;
    }

    .choose_m {
        width: calc(100% - 40px);
        flex-direction: column;
        height: auto;
        gap: 8px;
    }

    .choose_m a {
        width: 100%;
        height: 44px;
        font-size: 12px;
    }

    .about-wrap {
        padding: 32px 20px 48px;
        gap: 28px;
    }

    .about-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .about-left img {
        max-width: 110px;
    }

    .about-left .eyebrow {
        margin-bottom: 8px;
    }

    .about-right p {
        font-size: 15px;
        line-height: 1.8;
    }

    .about-values {
        margin-top: 32px;
        gap: 20px;
    }

    .about-value-num {
        font-size: 28px;
        width: 28px;
    }

    .about-value-text strong {
        font-size: 13px;
        letter-spacing: 0.07em;
    }

    .about-value-text span {
        font-size: 13px;
    }

    .page-title {
        margin-top: 32px;
        font-size: 11px;
    }

    .page-headline {
        font-size: 28px;
        margin-bottom: 28px;
    }

    .inwestycje {
        padding: 0 20px 48px;
        gap: 16px;
        flex-direction: column;
        align-items: stretch;
    }

    .inwestycja {
        width: 100%;
        min-height: 280px;
    }

    .sell-wrap {
        padding: 40px 20px;
        align-items: flex-start;
    }

    .sell-card {
        text-align: left;
    }

    .sell-card .eyebrow {
        margin-bottom: 16px;
    }

    .sell-card h1 {
        font-size: 30px;
    }

    .sell-card p {
        font-size: 14px;
        margin-bottom: 28px;
    }

    .sell-divider {
        margin: 0 0 28px;
    }

    .sell-cta {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 12px;
    }

    .contact-wrap {
        padding: 40px 20px;
        align-items: flex-start;
    }

    .contact-inner h1 {
        font-size: 34px;
    }

    .contact-inner .subtitle {
        font-size: 14px;
        margin-bottom: 32px;
    }

    .contact-divider {
        margin-bottom: 32px;
    }

    .contact-items {
        gap: 24px;
    }

    .contact-item-value {
        font-size: 20px;
    }

    .contact-note {
        font-size: 12px;
        margin-top: 32px;
        padding-top: 24px;
    }
}

.leaflet-tooltip {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: black;
    font-weight: bold;
    text-shadow: 0 0 3px white;
}

/* ── MAPA ─────────────────────────────────────── */

#map {
    display: block;
    margin: 0 auto 40px;
    width: 80%;
    max-width: 1200px;
    height: 70vh;
    min-height: 300px;
    border: solid 0.6px var(--border);
}

/* ── TABELA DZIAŁEK ───────────────────────────── */

.lista_nieruchomosci {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0 16px 60px;
    box-sizing: border-box;
}

.tabela-dzialek {
    width: 100%;
    max-width: 80vw;
    border-collapse: collapse;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 1px 12px rgba(26,26,24,0.07);
}

.tabela-dzialek thead tr {
    background: var(--ink);
}

.tabela-dzialek th {
    background: var(--ink);
    color: var(--cream);
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 14px 12px;
    border: none;
    text-align: center;
}

.tabela-dzialek td {
    padding: 12px;
    border: none;
    border-bottom: 1px solid rgba(26,26,24,0.08);
    text-align: center;
    color: var(--ink);
}

.tabela-dzialek tbody tr:last-child td {
    border-bottom: none;
}

.tabela-dzialek tbody tr:nth-child(even) {
    background: rgba(245, 242, 236, 0.6);
}

.tabela-dzialek tbody tr:hover {
    background: rgba(184, 168, 122, 0.15);
}

.status-dostepna,
.status-rezerwacja {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 2px;
    font-weight: 400;
}

.status-dostepna {
    background: rgba(46, 125, 50, 0.12);
    color: #2e7d32;
}

.status-rezerwacja {
    background: rgba(243, 156, 18, 0.12);
    color: #c47d0a;
}

/* ── FOOTER ───────────────────────────────────── */

.footer {
    background: #2e2e2c;
    color: #fff;
    padding: 40px 24px 16px;
    font-family: 'Jost', sans-serif;
    font-style: normal;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-col {
    flex: 1;
    min-width: 180px;
}

.footer h3 {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 12px;
}

.footer h4 {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #aaa;
    margin: 0 0 12px;
}

.footer a {
    display: block;
    color: #bbb !important;
    text-decoration: none !important;
    margin: 6px 0;
    font-size: 14px;
    transition: color 0.3s;
}

.footer a:visited {
    color: #bbb !important;
}

.footer a:hover {
    color: #fff !important;
}

.footer p {
    color: #bbb;
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.6;
}

.footer-bottom {
    max-width: 1100px;
    margin: 30px auto 0;
    padding-top: 16px;
    border-top: 1px solid #444;
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* ── RESPONSIVE ───────────────────────────────── */

@media (max-width: 768px) {

    #map {
        width: 95%;
        height: 56vw;
        min-height: 240px;
        margin-bottom: 24px;
    }

    .tabela-dzialek {
        font-size: 13px;
    }

    .tabela-dzialek th {
        padding: 10px 8px;
        font-size: 10px;
        letter-spacing: 0.1em;
    }

    .tabela-dzialek td {
        padding: 10px 8px;
    }

    .footer-container {
        flex-direction: column;
        gap: 24px;
    }

    .footer-col {
        min-width: 100%;
    }
}

@media (max-width: 480px) {

    .tabela-dzialek {
        font-size: 12px;
    }

    .tabela-dzialek th,
    .tabela-dzialek td {
        padding: 8px 6px;
    }
}