:root {
    --ink: #1c1424;
    --muted: #6d6274;
    --line: #eadff0;
    --paper: #f6f2f8;
    --card: #ffffff;
    --brand: #43125a;
    --brand-deep: #2d0c3e;
    --accent: #f3b23a;
    --shadow: 0 10px 30px rgba(67, 18, 90, 0.08);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Poppins", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top right, rgba(243, 178, 58, 0.18), transparent 28%),
        linear-gradient(180deg, #fbf8fc 0%, var(--paper) 220px);
    min-height: 100vh;
}

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

.page {
    width: min(920px, calc(100% - 24px));
    margin: 0 auto;
    padding-bottom: 96px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 0 8px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.brand strong {
    display: block;
    font-size: 16px;
    line-height: 1.2;
}

.brand small,
.summary,
.field label,
.meta,
.empty p {
    color: var(--muted);
}

.brand small {
    font-size: 12px;
}

.list-head h1 {
    margin: 8px 0 4px;
    font-size: 26px;
    line-height: 1.2;
}

.list-head .lede {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 4px;
}

.active-filters span {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 500;
}

.share-box {
    margin: 0 0 16px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.share-title {
    margin: 0;
    font-weight: 600;
}

.share-note {
    margin: 4px 0 10px;
    color: var(--muted);
    font-size: 13px;
}

.share-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.share-row input {
    min-width: 0;
    border: 1px solid #e4d7ea;
    border-radius: 12px;
    min-height: 44px;
    padding: 0 12px;
    font: inherit;
    color: var(--ink);
    background: #fcfafd;
}

.share-actions {
    display: flex;
    gap: 8px;
}

.share-row button,
.whatsapp-share {
    border: 0;
    border-radius: 12px;
    min-height: 44px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.share-row button {
    background: var(--brand);
    color: #fff;
    padding: 0 14px;
}

.whatsapp-share {
    width: 44px;
    display: grid;
    place-items: center;
    background: #25d366;
    color: #fff;
}

.whatsapp-share svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.filter-fab {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    min-height: 52px;
    padding: 0 18px;
    font: inherit;
    font-weight: 600;
    box-shadow: 0 12px 24px rgba(67, 18, 90, 0.28);
    cursor: pointer;
}

.filter-fab svg {
    width: 20px;
    height: 20px;
}

.filter-count {
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: var(--brand-deep);
    font-size: 12px;
}

.filter-dialog {
    width: min(460px, calc(100% - 24px));
    border: 0;
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 24px 60px rgba(28, 20, 36, 0.28);
}

.filter-dialog::backdrop {
    background: rgba(28, 20, 36, 0.55);
}

.dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.dialog-head h2 {
    margin: 0;
    font-size: 20px;
}

.close-filter {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: #f4eef7;
    color: var(--brand);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.fields {
    display: grid;
    gap: 12px;
}

.field label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.field input,
.field select {
    width: 100%;
    border: 1px solid #e4d7ea;
    background: #fcfafd;
    border-radius: 14px;
    min-height: 48px;
    padding: 0 14px;
    font: inherit;
    color: var(--ink);
}

.field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--brand) 50%), linear-gradient(135deg, var(--brand) 50%, transparent 50%);
    background-position: calc(100% - 18px) 22px, calc(100% - 12px) 22px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 36px;
}

.field input:focus,
.field select:focus {
    outline: 3px solid rgba(67, 18, 90, 0.15);
    border-color: var(--brand);
    background-color: #fff;
}

.actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-top: 14px;
}

.actions button,
.actions a,
.details,
.pager a,
.pager span {
    font: inherit;
}

.actions button,
.details {
    border: 0;
    border-radius: 14px;
    background: var(--brand);
    color: #fff;
    min-height: 48px;
    padding: 0 16px;
    font-weight: 600;
    cursor: pointer;
}

.actions a,
.pager a,
.pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 14px;
    background: #f4eef7;
    color: var(--brand);
    font-weight: 600;
}

.summary {
    margin: 18px 4px 12px;
    font-size: 13px;
}

.list {
    display: grid;
    gap: 14px;
}

.card {
    background: var(--card);
    border-radius: 22px;
    padding: 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(67, 18, 90, 0.05);
}

.card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.pid {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.price {
    margin: 0;
    text-align: right;
    font-weight: 600;
    color: var(--brand-deep);
    font-size: 14px;
}

.price span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.chip {
    background: #f7f1fa;
    color: var(--brand);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 500;
}

.address {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
}

.meta {
    display: grid;
    gap: 6px;
    margin: 12px 0 0;
    font-size: 13px;
}

.meta div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.meta dt {
    color: var(--muted);
}

.meta dd {
    margin: 0;
    text-align: right;
    font-weight: 500;
}

.details {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
}

.empty {
    background: #fff;
    border-radius: 22px;
    padding: 28px 18px;
    text-align: center;
    box-shadow: var(--shadow);
}

.empty h2 {
    margin: 0 0 6px;
    font-size: 18px;
}

.pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
}

.pager .count {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    background: transparent;
    min-height: auto;
    padding: 0;
}

.pager .disabled {
    opacity: 0.45;
}

@media (min-width: 720px) {
    .fields {
        grid-template-columns: 1fr 1.4fr;
    }

    .actions {
        grid-template-columns: 180px auto;
        justify-content: start;
    }

    .list {
        grid-template-columns: 1fr 1fr;
    }
}
