:root {
    --bg: #f5f7fa;
    --card: #fff;
    --txt: #333;
    --muted: #555;
    --line: #e5e7eb;
    --hover: #ffc631;
    --hover-sold: #ff6b6b;
    --hover-free: #88e37c
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    font-family: Arial, Helvetica, sans-serif;
    color: var(--txt)
}

.page {
    max-width: 1200px;
    margin: 32px auto;
    padding: 0 16px
}

header.card {
    text-align: center;
    margin-bottom: 28px
}

.card {
    background: var(--card);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    padding: 28px 36px
}

.demo-card {
    margin-top: 40px;
}

.demo-card__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.demo-card__left,
.demo-card__right {
    margin: 0;
}

.demo-card__right {
    margin-left: auto;
    text-align: right;
    color: var(--muted);
    opacity: .7;
    font-size: .82rem;
    font-weight: 400;
}

h1 {
    font-size: 1.6rem;
    margin: 0 0 8px
}

.muted {
    color: var(--muted);
    margin: 4px 0
}

.list {
    display: flex;
    flex-direction: column;
    gap: 20px
}

.offer {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    transition: background-color .15s, box-shadow .15s, border-color .15s;
    padding: 22px 28px
}

.offer:hover {
    background: var(--hover);
    border-color: #e3cb00;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .08)
}

.offer.sold:hover {
    background: var(--hover-sold);
    border-color: #e33
}

.offer.free:hover {
    background: var(--hover-free);
    border-color: #3bb33b
}

.row {
    display: grid;
    grid-template-columns:180px 160px 1fr 180px 180px;
    align-items: center;
    gap: 18px
}

.k {
    font-size: .95rem;
    color: #666
}

.v {
    font-weight: 600;
    font-size: 1.35rem
}

.mini {
    font-size: .8rem;
    font-weight: 400;
    color: #666;
    margin-top: 4px
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
    color: #222;
    background: #f0f0f0;
    font-size: .95rem
}

@media (max-width: 800px) {
    .row {
        grid-template-columns:1fr 1fr;
    }

    .row > div {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .k {
        font-size: .8rem;
    }

    .v {
        font-size: 1.15rem;
    }

    .row > div:nth-child(1) {
        grid-column: 1 / -1;
        margin-bottom: 6px;
    }
}

@media (max-width: 480px) {
    .row {
        grid-template-columns:1fr;
    }
}

.hide {
    opacity: .55;
    font-weight: 400
}

.history-btn {
    margin-top: 12px;
    padding: 8px 16px;
    font-size: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    color: var(--txt);
    cursor: pointer;
    transition: background-color .15s, border-color .15s;
}

.history-btn:hover {
    background: var(--hover);
    border-color: #e3cb00;
}

.history-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.history-modal-content {
    background: var(--card);
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
}

.history-modal-close {
    float: right;
    font-size: 1.5rem;
    cursor: pointer;
}

.history-modal table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.history-modal th,
.history-modal td {
    padding: 8px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

/* Sekcja inwestycji */
.investment-section {
    position: relative;
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    margin: 40px 0;
    border-radius: 16px;
}

.investment-section h2 {
    font-size: 2rem;
    margin: 0 0 20px;
}

.investment-btn {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: background .2s;
}

.investment-btn:hover {
    background: rgba(0,0,0,0.8);
}

.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
}

.text-end {
    text-align: right;
}

.text-start {
    text-align: left;
}

.text-center {
    text-align: center;
}

.basia-lokale-list-wrapper {
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-500: #64748b;
    --blue-600: #2563eb;
    font-family: 'Inter', sans-serif;
    color: #1e293b;
}

.basia-lokale-list-wrapper .card-table {
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    overflow: hidden;
    background: #fff;
}

.basia-lokale-list-wrapper .basia-lokale-list {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    vertical-align: middle;
}

.basia-lokale-list-wrapper .basia-lokale-list__head-row th {
    background-color: var(--slate-50);
    color: var(--slate-500);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--slate-200);
    padding: 1rem;
    border-top: none;
    white-space: nowrap;
}

.basia-lokale-list-wrapper .basia-lokale-list td {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--slate-100);
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.basia-lokale-list-wrapper .hover-effect {
    transition: all 0.2s ease;
}

.basia-lokale-list-wrapper .hover-effect:hover td {
    background-color: #001f3f;
    color: #fff;
    cursor: pointer;
}

.basia-lokale-list-wrapper .hover-effect:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
    position: relative;
    z-index: 1;
}

.basia-lokale-list-wrapper .badge-pill-custom {
    padding: 0.35em 0.8em;
    font-weight: 600;
    border-radius: 9999px;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.basia-lokale-list-wrapper .basia-lokale-list__status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.basia-lokale-list-wrapper .basia-lokale-list__symbol {
    font-weight: 600;
    color: var(--blue-600);
}

.basia-lokale-list-wrapper .basia-lokale-list__history-btn {
    border: 0;
    background: transparent;
    padding: 8px;
    border-radius: 50%;
    color: #94a3b8;
    transition: all 0.2s;
    line-height: 1;
}

.basia-lokale-list-wrapper .basia-lokale-list__history-btn:hover {
    color: var(--blue-600);
    background-color: #eff6ff;
}

.basia-lokale-list-wrapper .basia-lokale-list__history-btn:disabled {
    cursor: default;
    opacity: 1;
}

.basia-lokale-list-wrapper .basia-lokale-list__history-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.basia-lokale-list-wrapper .basia-lokale-list__history-icon--disabled {
    color: #94a3b8;
    padding: 8px;
}

.basia-lokale-list-wrapper .basia-lokale-list__history-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.basia-lokale-list-wrapper .basia-lokale-list__row--sold td {
    background-color: #f8fafc;
    color: #94a3b8;
}

.basia-lokale-list-wrapper .basia-lokale-list__filters {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.basia-lokale-list-wrapper .basia-lokale-list__filter-label {
    font-size: 0.875rem;
    color: var(--slate-500);
}

.basia-lokale-list-wrapper .basia-lokale-list__filter-select {
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.875rem;
    background: #fff;
    color: #0f172a;
}

.basia-lokale-list-wrapper .basia-lokale-list__otodom-logo {
    height: 1rem;
    width: auto;
    display: inline-block;
}

.basia-lokale-list-wrapper .basia-lokale-list__otodom-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.basia-lokale-list-wrapper .basia-lokale-list__otodom-link:hover {
    background-color: #f1f5f9;
}

.basia-lokale-list-wrapper .hover-effect:hover .basia-lokale-list__otodom-link {
    background-color: #f1f5f9;
}

.basia-lokale-list-wrapper .basia-lokale-list__external-links {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
