.meta {
    display: flex;
    justify-content: space-between;
    width: 100%;
    color: #777;
    border-top: 1px solid #dfdfdf;
    border-bottom: 1px solid #dfdfdf;
    padding-top: 8px;
    padding-bottom: 8px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    color: #848484;
}

.meta-item i {
    font-size: 18px;
}

.meta-text {
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: .15rem;
}

.city-filter {
    display: inline-block;
    margin-left: 20px;
    font-family: 'Inter', sans-serif;
    position: relative;
}

.city-filter label {
    margin-right: 8px;
    font-weight: 600;
    color: #333;
}

.city-filter select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 6px 30px 6px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23333' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 10px 6px;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.city-filter select:focus {
    outline: none;
    border-color: #2ecc71;
    box-shadow: 0 0 4px rgba(46, 204, 113, 0.4);
}

.details {
    margin-top: 6px;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    justify-items: center;
}


.price-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    padding: 3px 7px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.price-change.price-down {
    color: #dc2626;
    background: #fee2e2;
}

.price-change.price-up {
    color: #15803d;
    background: #dcfce7;
}

.property-card {
    background: var(--card);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border .25s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, .04);
    max-width: 400px;
    width: 100%;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .14);
    border-color: #3498db40;
}

.property-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.property-card-active {
    border: 1px solid rgba(46, 204, 113, 0.5);
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.2);
    transition: box-shadow 0.3s, transform 0.2s;
}

.property-card-active:hover {
    box-shadow: 0 0 12px rgba(46, 204, 113, 0.3);
    transform: translateY(-2px);
}

.property-card-inactive {
    border: 1px solid rgba(245, 73, 39, 0.5);
    box-shadow: 0 0 8px rgba(245, 73, 39, 0.2);
    transition: box-shadow 0.3s, transform 0.2s;
}

.property-card-inactive:hover {
    box-shadow: 0 0 12px rgba(245, 73, 39, 0.3);
    transform: translateY(-2px);
}

.property-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;

    z-index: 10;

    background: rgba(0, 0, 0, 0.65);
    color: #fff;

    padding: 5px 9px;
    border-radius: 6px;

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

.new-listing-badge {
    position: absolute;
    top: 10px;
    right: 10px;

    background: #28a745;
    color: white;

    padding: 6px 10px;
    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;

    display: flex;
    align-items: center;
    gap: 5px;

    z-index: 10;
}

.property-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
}

.property-toolbar-seg {
    display: flex;
    align-items: center;
}

.property-toolbar-filters {
    display: flex;
    align-items: center;
    gap: 8px;
}

.property-toolbar-select {
    padding: 7px 10px;
    border-radius: 6px;
    box-sizing: border-box;
    max-width: 100%;
}

.property-filter-control {
    height: 38px;
    padding: 0 34px 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    outline: none;
    min-width: 150px;
    appearance: auto;
}

.property-filter-control:hover {
    border-color: #aaa;
}

.property-filter-control:focus {
    border-color: #999;
}

.husiq-filter-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    height: 40px;
    padding: 0 38px 0 14px;

    border: 1px solid #ddd;
    border-radius: 8px;

    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    background-size: 12px;

    font-size: 14px;
    font-weight: 500;
    color: #333;

    cursor: pointer;

    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);

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

.husiq-filter-select:hover {
    border-color: #bbb;
}

.husiq-filter-select:focus {
    outline: none;
    border-color: #999;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.property-selection {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    background: #f1f1f1;
    border-radius: 9px;
    border: 1px solid #e3e3e3;
}

.property-selection-link,
.property-selection-active {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 34px;
    padding: 0 14px;

    border-radius: 7px;

    font-size: 14px;
    font-weight: 500;

    text-decoration: none;
    white-space: nowrap;

    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease;
}

.property-selection-link {
    color: #666;
    background: transparent;
}

.property-selection-link:hover {
    color: #222;
    background: rgba(255, 255, 255, 0.6);
}

.property-selection-active {
    color: #222;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10);
}

.lifecycle-banner {
    padding: 8px 8px;
    text-align: center;
    font-weight: 400;
    font-size: 14px;
    color: #fff;
}

.lifecycle-planning {
    background: #6c757d;
}

.lifecycle-construction {
    background: #f39c12;
}

.lifecycle-enclosed {
    background: #2980b9;
}

.lifecycle-needs-repairs {
    background: #e67e22;
}

.lifecycle-fixer-upper {
    background: #c0392b;
}

.lifecycle-completed {
    background: #27ae60;
}

.lifecycle-cancelled {
    background: #7f8c8d;
}

.view-toggle-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 18px 0;
}

.view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 3px 8px rgba(0, 0, 0, 0.04);
}

.toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-width: 90px;
    padding: 7px 14px;

    border: 0;
    border-radius: 9px;
    background: transparent;

    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;

    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease;
}

.toggle-btn:hover {
    color: #374151;
}

.toggle-btn:not(.active):hover {
    background: rgba(255, 255, 255, 0.6);
}

.toggle-btn.active {
    background: #fff;
    color: #374151;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.08),
        0 1px 2px rgba(0, 0, 0, 0.04);
}

.toggle-btn:active {
    transform: scale(0.97);
}

@media (max-width:1024px) {
    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

     .property-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .property-toolbar-seg {
        justify-content: center;
    }

    .property-toolbar-filters {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 8px;
    }

    .property-toolbar-select {
        width: 100%;
        min-width: 0;
    }


    .property-filter-control {
        width: 100%;
        min-width: 0;
    }

       .husiq-filter-select {
        width: 100%;
        height: 42px;
    }
}

@media (max-width:500) {
    .property-grid {
        grid-template-columns: 1fr;
    }
    
}