.vovo-search-wrap,
.vovo-home-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Filter bar */
.vovo-filter-bar {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.vovo-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    margin-bottom: 0.75rem;
}

.vovo-filter-row:last-child {
    margin-bottom: 0;
}

.vovo-filter-field {
    display: flex;
    flex-direction: column;
    min-width: 110px;
}

.vovo-filter-field-wide {
    min-width: 220px;
    flex: 1 1 220px;
}

.vovo-filter-field label,
.vovo-filter-group-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.3rem;
}

.vovo-filter-field input[type="text"],
.vovo-filter-field input[type="number"],
.vovo-filter-field select {
    padding: 0.45rem 0.6rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.9rem;
}

.vovo-filter-field-checkbox {
    justify-content: center;
}

.vovo-filter-field-checkbox-group {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    align-items: center;
}

.vovo-filter-field-checkbox-group label {
    font-size: 0.85rem;
    font-weight: 400;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.vovo-filter-row-actions {
    justify-content: flex-end;
}

.vovo-btn-search {
    width: auto;
    padding: 0.55rem 1.5rem;
}

.vovo-btn-reset {
    align-self: center;
    font-size: 0.85rem;
    color: #64748b;
    text-decoration: underline;
}

/* Toolbar */
.vovo-search-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #475569;
}

.vovo-view-toggle a {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border: 1px solid #cbd5e1;
    text-decoration: none;
    color: #334155;
    font-size: 0.85rem;
}

.vovo-view-toggle a:first-child {
    border-radius: 6px 0 0 6px;
}

.vovo-view-toggle a:last-child {
    border-radius: 0 6px 6px 0;
    border-left: none;
}

.vovo-view-toggle a.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

/* Results grid/list */
.vovo-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.vovo-results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vovo-results-list .vovo-card-link {
    display: flex;
    flex-direction: row;
}

.vovo-results-list .vovo-card-photo {
    width: 240px;
    flex-shrink: 0;
}

/* Card */
.vovo-card {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.vovo-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.vovo-save-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 5;
    display: flex;
    gap: 0.4rem;
}

.vovo-favorite-btn,
.vovo-basket-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155;
}

.vovo-favorite-btn.active {
    color: #e11d48;
}

.vovo-basket-btn.active {
    color: #2563eb;
    background: #eff6ff;
}

.vovo-card-photo {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #e2e8f0;
}

.vovo-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vovo-card-dom-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: rgba(15, 23, 42, 0.75);
    color: #fff;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.vovo-card-body {
    padding: 0.85rem 1rem;
}

.vovo-card-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.vovo-card-txn {
    font-size: 0.75rem;
    font-weight: 400;
    color: #64748b;
}

.vovo-card-address {
    font-size: 0.9rem;
    color: #1e293b;
    margin-top: 0.15rem;
}

.vovo-card-city {
    font-size: 0.8rem;
    color: #64748b;
}

.vovo-card-specs {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #475569;
    margin-top: 0.5rem;
}

.vovo-card-mls {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 0.4rem;
}

/* Pagination */
.vovo-pagination {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1.5rem;
}

.vovo-pagination a {
    padding: 0.4rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    text-decoration: none;
    color: #334155;
    font-size: 0.85rem;
}

.vovo-pagination a.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

/* Home page */
.vovo-home-hero {
    text-align: center;
    padding: 3rem 1rem;
}

.vovo-home-search-form {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    max-width: 520px;
    margin: 1.5rem auto 0;
}

.vovo-home-search-form input[type="text"] {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
}

.vovo-home-search-form .vovo-btn {
    width: auto;
    padding: 0.7rem 1.5rem;
}

.vovo-home-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

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

.vovo-stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

.vovo-stat-label {
    font-size: 0.8rem;
    color: #64748b;
}

.vovo-home-cities {
    margin-bottom: 2rem;
}

.vovo-city-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.vovo-city-chip {
    padding: 0.45rem 0.9rem;
    background: #f1f5f9;
    border-radius: 999px;
    text-decoration: none;
    color: #1e293b;
    font-size: 0.85rem;
}

.vovo-city-chip span {
    color: #64748b;
}

/* Mobile */
@media (max-width: 640px) {
    .vovo-results-list .vovo-card {
        flex-direction: column;
    }
    .vovo-results-list .vovo-card-photo {
        width: 100%;
    }
    .vovo-search-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

.vovo-location-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.vovo-location-suggestion {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.75rem;
    background: none;
    border: none;
    font-size: 0.85rem;
    cursor: pointer;
}

.vovo-location-suggestion:hover {
    background: #f1f5f9;
}
