
/* PRAWNIKOM PRO - MASY UPADLOSCIOWE */

html body main.estate-fast {
    --ef-navy: #142641;
    --ef-dark: #0e1b30;
    --ef-gold: #c6a46a;
    --ef-border: #dce4ee;
    --ef-muted: #64748b;
    --ef-bg: #f1f5f9;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 24px !important;
    margin: 0 !important;
    background: var(--ef-bg);
    color: var(--ef-navy);
    box-sizing: border-box;
    font-family: "Inter","Segoe UI",Arial,sans-serif;
}

.estate-fast *,
.estate-fast *::before,
.estate-fast *::after {
    box-sizing: border-box;
    border-radius: 0 !important;
}

.estate-fast a {
    text-decoration: none !important;
}

.estate-fast [hidden] {
    display: none !important;
}

/* NAGLOWEK */

html body .estate-fast .estate-fast-hero {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    padding: 38px !important;
    margin: 0 0 24px !important;
    background: linear-gradient(120deg,#0e1b30,#203957);
    border: 0;
    border-bottom: 3px solid #c6a46a;
    color: #fff;
}

.estate-fast-hero > div {
    flex: 1 1 420px;
    min-width: 0;
}

.estate-fast-hero .eyebrow {
    display: block;
    color: #d6b77c !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    margin-bottom: 12px;
}

.estate-fast-hero h1 {
    font-family: Georgia,serif !important;
    font-size: clamp(28px,3vw,42px) !important;
    line-height: 1.2;
    color: #fff !important;
    margin: 0 0 16px !important;
}

.estate-fast-hero p {
    color: #cbd5e1 !important;
    max-width: 760px;
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

.estate-fast-hero nav {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
}

html body .estate-fast-hero nav a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px !important;
    border: 1px solid #c6a46a !important;
    background: transparent !important;
    color: #fff !important;
}

html body .estate-fast-hero nav a.primary {
    background: #c6a46a !important;
    color: #142641 !important;
}

/* KATALOG */

html body .estate-fast .estate-fast-catalog {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* STATYSTYKI */

html body .estate-fast .estate-fast-stats {
    display: grid !important;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 16px;
    margin: 0 0 24px !important;
}

.estate-fast-stats article {
    position: relative;
    min-width: 0;
    min-height: 150px;
    padding: 24px !important;
    background: #fff !important;
    border: 1px solid #dce4ee !important;
    border-top: 3px solid #c6a46a !important;
}

.estate-fast-stats article small {
    display: block;
    color: #64748b !important;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.estate-fast-stats article b {
    display: block;
    font-size: clamp(22px,2.1vw,34px);
    font-weight: 700;
    line-height: 1.3;
    color: #142641 !important;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.estate-fast-stats article span {
    display: block;
    color: #64748b !important;
    font-size: 12px;
    margin-top: 8px;
}

.estate-fast-stats article:last-child {
    background: #f5f0e5 !important;
    border-color: #e1d3b5 !important;
    border-top-color: #c6a46a !important;
}

/* PANEL FILTROW */

html body .estate-fast .estate-filter-sidebar {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 24px !important;
    padding: 24px !important;
    background: #fff !important;
    border: 1px solid #dce4ee !important;
    border-top: 3px solid #c6a46a !important;
    color: #142641 !important;
}

.estate-fast .estate-filter-sidebar > summary {
    padding: 0 0 18px !important;
    font-size: 18px !important;
    font-weight: 700;
    color: #142641 !important;
    cursor: pointer;
}

.estate-fast .estate-filter-sidebar > h2 {
    display: none !important;
}

html body .estate-fast .estate-fast-filter {
    display: grid !important;
    grid-template-columns:
        minmax(0,2fr)
        minmax(0,1fr)
        150px;
    align-items: end;
    gap: 16px;
    padding: 0 !important;
    margin: 0 !important;
}

.estate-fast-filter label {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    margin: 0 !important;
}

.estate-fast-filter label > span {
    color: #142641 !important;
    font-size: 13px;
    font-weight: 600;
}

html body .estate-fast-filter input,
html body .estate-fast-filter select:not(.smart-select-native),
html body .estate-fast-filter .smart-select-trigger {
    width: 100% !important;
    min-width: 0 !important;
    height: 48px !important;
    padding: 10px 14px !important;
    border: 1px solid #cbd5e1 !important;
    background: #fff !important;
    color: #142641 !important;
    font-size: 14px;
    box-shadow: none !important;
}

.estate-fast-filter input::placeholder {
    color: #94a3b8;
}

.estate-fast-filter input:focus,
.estate-fast-filter select:focus {
    border-color: #c6a46a !important;
    box-shadow: none !important;
}

html body .estate-fast-filter > button[type="submit"] {
    height: 48px !important;
    background: #142641 !important;
    color: #fff !important;
    border: 1px solid #142641 !important;
    font-weight: 600;
}

/* FILTRY ZAAWANSOWANE */

html body .estate-fast .estate-fast-advanced {
    grid-column: 1 / -1;
    width: 100%;
    margin: 4px 0 0 !important;
    padding: 16px 0 0 !important;
    border: 0 !important;
    border-top: 1px solid #dce4ee !important;
    background: #fff !important;
}

.estate-fast-advanced > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #142641 !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.estate-fast-advanced > summary::-webkit-details-marker {
    display: none;
}

.estate-fast-advanced > summary span {
    color: #96702d !important;
    font-size: 22px;
}

.estate-fast-advanced[open] > summary span {
    transform: rotate(45deg);
}

.estate-fast-advanced[open] > div {
    display: grid !important;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 16px;
    padding-top: 20px;
}

/* PASEK WYNIKOW */

html body .estate-fast .estate-fast-summary {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 18px 22px !important;
    margin: 0 0 16px !important;
    background: #fff !important;
    border: 1px solid #dce4ee !important;
}

.estate-fast-summary > b {
    font-size: 16px;
    color: #142641 !important;
}

.estate-fast-summary > span {
    color: #64748b !important;
    font-size: 12px;
}

.estate-fast-view {
    display: flex !important;
    gap: 4px;
    margin-left: auto;
}

html body .estate-fast-view button {
    min-height: 36px !important;
    padding: 8px 18px !important;
    background: #fff !important;
    border: 1px solid #dce4ee !important;
    color: #142641 !important;
    font-size: 12px;
}

html body .estate-fast-view button.is-active {
    background: #142641 !important;
    border-color: #142641 !important;
    color: #fff !important;
}

/* KARTY POSTEPOWAN */

html body .estate-fast .estate-fast-list {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px;
    width: 100%;
    min-width: 0;
}

html body .estate-fast .estate-fast-row {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 24px !important;
    margin: 0 !important;
    background: #fff !important;
    border: 1px solid #dce4ee !important;
    border-left: 3px solid #c6a46a !important;
    box-shadow: none !important;
    transition: border-color .2s,box-shadow .2s;
}

.estate-fast-row:hover {
    border-color: #c6a46a !important;
    box-shadow: 0 4px 18px #1426410d !important;
}

.estate-fast-row > header {
    display: flex !important;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 0 0 20px !important;
    margin: 0 0 18px !important;
    background: transparent !important;
    border-bottom: 1px solid #dce4ee;
}

.estate-fast-row > header > div {
    flex: 1 1 200px;
    min-width: 0;
}

.estate-fast-row h2 {
    font-family: Georgia,serif !important;
    font-size: 23px !important;
    line-height: 1.3;
    color: #142641 !important;
    margin: 12px 0 6px !important;
    overflow-wrap: anywhere;
}

.estate-fast-row header p {
    font-size: 12px !important;
    line-height: 1.7;
    color: #64748b !important;
    margin: 0 !important;
    overflow-wrap: anywhere;
}

/* STATUS SPISU */

.estate-fast-state {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    background: #edf2f7;
    color: #142641;
    border: 1px solid #dce4ee;
    font-size: 11px;
    font-weight: 600;
}

.estate-fast-state.waiting {
    background: #f5f0e5 !important;
    color: #92651e !important;
    border-color: #e5d7ba !important;
}

.estate-fast-state.complete {
    background: #edf7f0 !important;
    color: #166534 !important;
    border-color: #c7e5d0 !important;
}

.estate-fast-state::before {
    content: "";
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50% !important;
}

/* PRZYCISK KARTY */

html body .estate-fast-row > header > a.btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 40px !important;
    padding: 10px 16px !important;
    background: #142641 !important;
    color: #fff !important;
    border: 1px solid #142641 !important;
    font-size: 12px;
    white-space: nowrap;
}

html body .estate-fast-row > header > a.btn:hover {
    background: #203957 !important;
    border-color: #c6a46a !important;
}

/* DANE POSTEPOWANIA */

html body .estate-fast-row > dl {
    display: grid !important;
    grid-template-columns:
        minmax(0,1.5fr)
        minmax(0,.8fr)
        minmax(0,1fr);
    gap: 10px;
    padding: 0 !important;
    margin: 0 !important;
}

.estate-fast-row dl > div {
    min-width: 0;
    padding: 14px !important;
    background: #f5f7fa !important;
    border: 1px solid #dce4ee !important;
}

.estate-fast-row dl > div:last-child {
    background: #f5f0e5 !important;
    border-color: #e5d7ba !important;
}

.estate-fast-row dt {
    font-size: 11px !important;
    color: #64748b !important;
    margin: 0 0 8px !important;
}

.estate-fast-row dd {
    font-size: 14px !important;
    font-weight: 600;
    color: #142641 !important;
    line-height: 1.5;
    margin: 0 !important;
    overflow-wrap: anywhere;
}

.estate-fast-row dl small {
    display: block;
    color: #64748b !important;
    font-size: 11px;
    line-height: 1.5;
    margin-top: 8px;
}

/* LISTA PRO */

.estate-fast-catalog:has(
    [data-estate-view="compact"].is-active
) .estate-fast-list {
    grid-template-columns: minmax(0,1fr) !important;
}

.estate-fast-catalog:has(
    [data-estate-view="compact"].is-active
) .estate-fast-row {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(0,1.4fr);
    align-items: center;
    gap: 24px;
    padding: 16px 20px !important;
}

.estate-fast-catalog:has(
    [data-estate-view="compact"].is-active
) .estate-fast-row > header {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.estate-fast-catalog:has(
    [data-estate-view="compact"].is-active
) .estate-fast-row h2 {
    font-family: "Segoe UI",Arial,sans-serif !important;
    font-size: 17px !important;
}

/* PAGINACJA */

html body .estate-fast .estate-fast-pages {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 24px !important;
    margin: 20px 0 0 !important;
    background: #fff !important;
    border: 1px solid #dce4ee !important;
}

.estate-fast-pages > span {
    color: #64748b !important;
    font-size: 13px;
}

.estate-fast-pages > span b {
    color: #142641 !important;
}

html body .estate-fast-pages button {
    min-height: 42px !important;
    padding: 10px 20px !important;
    background: #142641 !important;
    border: 1px solid #142641 !important;
    color: #fff !important;
}

html body .estate-fast-pages button:disabled {
    background: #f5f7fa !important;
    color: #94a3b8 !important;
    border-color: #dce4ee !important;
    cursor: not-allowed;
}

/* RESPONSYWNOSC */

@media(max-width:1300px) {

    html body .estate-fast .estate-fast-list {
        grid-template-columns: minmax(0,1fr);
    }

    .estate-fast-advanced[open] > div {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media(max-width:1000px) {

    html body .estate-fast .estate-fast-stats {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    html body .estate-fast .estate-fast-filter {
        grid-template-columns: minmax(0,1fr);
    }

    .estate-fast-catalog:has(
        [data-estate-view="compact"].is-active
    ) .estate-fast-row {
        grid-template-columns: minmax(0,1fr);
    }
}

@media(max-width:600px) {

    html body main.estate-fast {
        padding: 12px !important;
    }

    html body .estate-fast .estate-fast-hero {
        padding: 24px !important;
    }

    .estate-fast-hero > div {
        flex-basis: 100%;
    }

    .estate-fast-hero nav {
        width: 100%;
    }

    .estate-fast-hero nav a {
        flex: 1 1 100%;
    }

    .estate-fast-stats article {
        padding: 16px !important;
        min-height: 120px;
    }

    html body .estate-fast .estate-filter-sidebar,
    html body .estate-fast .estate-fast-row {
        padding: 16px !important;
    }

    .estate-fast-advanced[open] > div {
        grid-template-columns: minmax(0,1fr);
    }

    html body .estate-fast-row > dl {
        grid-template-columns: minmax(0,1fr);
    }

    .estate-fast-row > header > a {
        width: 100%;
    }

    .estate-fast-view {
        width: 100%;
        margin-left: 0;
    }

    .estate-fast-view button {
        flex: 1;
    }

    html body .estate-fast .estate-fast-pages {
        gap: 8px;
        padding: 12px !important;
    }
}

@media(prefers-reduced-motion:reduce) {
    .estate-fast * {
        transition: none !important;
    }
}

