:root {
    --color-primary: #018d71;
    --color-secondary: #feef10;
    --color-third: #3dc7ab;

    --color-text: #111111;
    --color-muted: rgba(17, 17, 17, 0.58);

    --color-surface: #ffffff;
    --color-background: #f7fbfa;

    --color-border: rgba(1, 141, 113, 0.18);

    --radius-sm: 8px;
    --radius-md: 12px;

    --content-width: 1640px;

    --font-main: "Inter", Arial, sans-serif;
    --font-accent: "Bodoni Moda", Georgia, serif;
}


/* =========================================================
   PAGE
   ========================================================= */

.sold-properties {
    width: min(calc(100% - 48px), var(--content-width));
    margin: 0 auto;
    padding: 32px 0 70px;

    color: var(--color-text);
    font-family: var(--font-main);
}


/* =========================================================
   HEADER
   ========================================================= */

.sold-properties__header {
    margin-bottom: 26px;
}

.sold-properties__kicker {
    margin: 0 0 4px;

    color: var(--color-primary);

    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 700;
}

.sold-properties__header h1 {
    margin: 0;

    color: var(--color-text);

    font-family: var(--font-accent);
    font-size: 38px;
    font-weight: 500;
    line-height: 1.1;
}

.sold-properties__intro {
    margin: 10px 0 0;

    color: var(--color-muted);

    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   TABS
   ========================================================= */

.sold-properties__tabs {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 18px;
    padding: 12px;

    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);

    background: var(--color-surface);

    box-shadow: 0 5px 18px rgba(1, 141, 113, 0.05);
}

.sold-properties__tab {
    padding: 9px 18px;

    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);

    background: var(--color-surface);
    color: var(--color-text);

    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.sold-properties__tab:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.sold-properties__tab.is-active {
    border-color: var(--color-primary);

    background: var(--color-primary);
    color: #ffffff;
}


/* =========================================================
   GRID
   ========================================================= */

.sold-properties__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.sold-properties__year {
    display: flex;
    align-items: center;
    gap: 16px;
    grid-column: 1 / -1;
    margin: 24px 0 4px;
    color: var(--color-raspberry, #b8325f);
    font-family: var(--font-accent);
    font-size: 26px;
    font-weight: 600;
}

.sold-properties__year::after {
    content: "";
    flex: 1;
    min-width: 20px;
    height: 1px;
    background: currentColor;
    opacity: 0.4;
}

.sold-properties__year[hidden] {
    display: none;
}


/* =========================================================
   CARD
   ========================================================= */

.sold-property-card {
    min-width: 0;
}

.sold-property-card__link {
    display: flex;
    flex-direction: column;

    height: 100%;

    overflow: hidden;

    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);

    background: var(--color-surface);

    color: inherit;
    text-decoration: none;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.sold-property-card__link:hover {
    color: inherit;
    text-decoration: none;

    border-color: rgba(1, 141, 113, 0.38);

    box-shadow: 0 8px 20px rgba(1, 141, 113, 0.08);

    transform: translateY(-2px);
}


/* =========================================================
   IMAGE
   ========================================================= */

.sold-property-card__media {
    position: relative;

    width: 100%;
    height: 220px;

    overflow: hidden;

    background: #edf5f3;
}

.sold-property-card__media img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.3s ease;
}

.sold-property-card__link:hover .sold-property-card__media img {
    transform: scale(1.025);
}


/* SOLD BADGE */

.sold-property-card__badge {
    position: absolute;

    top: 10px;
    left: 10px;

    padding: 5px 10px;

    border: 1px solid rgba(184, 50, 95, 0.7);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.92);
    color: #b8325f;

    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;
}


/* =========================================================
   CONTENT
   ========================================================= */

.sold-property-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;

    padding: 14px 15px 15px;
}


/* TYPE */

.sold-property-card__type {
    margin: 0 0 5px;

    color: var(--color-primary);

    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;
}


/* TITLE */

.sold-property-card__title {
    margin: 0;

    color: var(--color-text);

    font-family: var(--font-accent);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;

    display: -webkit-box;
    overflow: hidden;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}


/* =========================================================
   FEATURES
   ========================================================= */

.sold-property-card__features {
    display: flex;
    flex-wrap: wrap;

    margin-top: 10px;

    color: var(--color-muted);

    font-size: 12px;
    font-weight: 600;
}

.sold-property-card__features span + span::before {
    content: "•";

    margin: 0 8px;

    color: var(--color-muted);
}


/* =========================================================
   PRICE
   ========================================================= */

.sold-property-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-top: auto;
    padding-top: 14px;
}

.sold-property-card__price {
    color: var(--color-text);

    font-size: 14px;
    font-weight: 800;
}

.sold-property-card__arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    border-radius: 50%;

    background: rgba(1, 141, 113, 0.08);
    color: var(--color-primary);

    font-size: 17px;

    transition:
        background-color 0.18s ease,
        transform 0.18s ease;
}

.sold-property-card__link:hover .sold-property-card__arrow {
    background: var(--color-primary);
    color: #ffffff;

    transform: translateX(2px);
}


/* =========================================================
   EMPTY
   ========================================================= */

.sold-properties__empty {
    grid-column: 1 / -1;

    margin: 0;
    padding: 50px;

    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);

    background: var(--color-surface);

    color: var(--color-muted);

    text-align: center;
}


/* =========================================================
   INFINITE SCROLL SENTINEL
   ========================================================= */

.sold-properties__sentinel {
    width: 100%;
    height: 1px;
}


/* =========================================================
   TABLET
   ========================================================= */




/* =========================================================
   PHONE
   ========================================================= */

/* =========================
   RESPONSIVE
========================= */

@media (min-width: 641px) and (max-width: 1200px) {
.sold-properties {
        width: calc(100% - 32px);
        padding-top: 24px;
    }

    .sold-properties__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sold-property-card__media {
        height: 240px;
    }
}

@media (max-width: 640px) {
.sold-properties {
        width: calc(100% - 32px);
        padding-top: 24px;
    }

    .sold-properties__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sold-property-card__media {
        height: 240px;
    }

.sold-properties {
        width: calc(100% - 24px);
        padding: 20px 0 50px;
    }

    .sold-properties__header {
        margin-bottom: 20px;
    }

    .sold-properties__header h1 {
        font-size: 32px;
    }

    .sold-properties__tabs {
        overflow-x: auto;

        padding: 9px;

        scrollbar-width: none;
    }

    .sold-properties__tabs::-webkit-scrollbar {
        display: none;
    }

    .sold-properties__tab {
        flex: 0 0 auto;

        padding: 8px 14px;
    }

    .sold-properties__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sold-property-card__media {
        height: 230px;
    }
}
