:root {
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --blue-light: #eff6ff;
    --slate-950: #0f172a;
    --slate-900: #1e293b;
    --slate-800: #334155;
    --slate-700: #475569;
    --slate-600: #64748b;
    --slate-500: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --white: #fff;
    --green: #059669;
    --amber: #f59e0b;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .07);
    --shadow-md: 0 10px 28px rgba(15, 23, 42, .09);
    --radius: 14px;
}

.listing-hero {
    padding: 34px 0;
    border-bottom: 1px solid var(--slate-200);
    background: var(--white);
}

.listing-hero-grid {
    display: grid;
    grid-template-columns: 35% 1fr;
    align-items: center;
    gap: 30px;
}

.page-title {
    margin: 0 0 7px;
    color: var(--slate-950);
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -.7px;
}

.page-copy {
    margin: 0;
    color: var(--slate-600);
}

.listing-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 165px 165px auto;
    gap: 8px;
    padding: 9px;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.listing-search .control {
    border-color: transparent;
    background: var(--white);
}

.listing-body {
    padding: 34px 0 50px;
    background: var(--slate-50);
}

.listing-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 26px;
}

.filter-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.filter-heading h2 {
    margin: 0;
    color: var(--slate-950);
    font-size: 17px;
    width: auto;
}

.link-button {
    color: var(--blue);
    background: transparent;
    font-size: 12px;
}

.filter-toggle {
    display: none;
    align-items: center;
    gap: 5px;
    padding: 7px 10px;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    color: var(--slate-800);
    background: var(--white);
    font-size: 12px;
    font-weight: 700;
}

.filter-card {
    padding: 17px;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.filter-group+.filter-group {
    margin-top: 17px;
    padding-top: 17px;
    border-top: 1px solid var(--slate-100);
}

.filter-group h3 {
    margin: 0 0 11px;
    color: var(--slate-950);
    font-size: 14px;
}

.option-list {
    display: grid;
    gap: 9px;
}

.option {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--slate-700);
    font-size: 13px;
    font-weight: 400;
}

.option input {
    width: 16px;
    height: 16px;
    accent-color: var(--blue);
    margin: 0px;
}

.control {
    display: flex;
    width: 100%;
    height: 46px;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid var(--slate-200);
    border-radius: 11px;
    color: var(--slate-700);
    background: var(--slate-50);
}

input,
button {
    margin: 0px;
    padding: 0px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 10px 0;
}

.service-tag {
    padding: 4px 7px;
    border-radius: 5px;
    color: var(--blue);
    background: var(--blue-light);
    font-size: 11px;
    font-weight: 700;
}

.card-facts {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 0 12px;
    border-top: 1px solid var(--slate-100);
    color: var(--slate-600);
    font-size: 11px;
}


.btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    transition: .2s ease;
}

.btn-outline {
    color: var(--blue);
    border: 1px solid #bfdbfe;
    background: var(--white);
}


.btn-primary {
    color: var(--white);
    background: var(--blue);
    box-shadow: 0 5px 12px rgba(37, 99, 235, .2);
}

.contractor-card {
    overflow: hidden;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: .2s ease;
}

.contractor-body {
    padding: 18px;
}

.contractor-cover {
    position: relative;
    height: 176px;
    overflow: hidden;
}

.control input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    color: var(--slate-800);
    background: transparent;
}

.filter-card .control {
    height: 40px;
    font-size: 12px;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.toolbar strong {
    color: var(--slate-800);
    font-size: 13px;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--slate-600);
    font-size: 13px;
}

.sort select {
    padding: 8px 30px 8px 11px;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    outline: 0;
    color: var(--slate-800);
    background: var(--white);
    font-weight: 700;
    height: unset;
    width: auto;
    margin-bottom: 0;
}

.view-switch {
    display: flex;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    background: var(--white);
}

.view-switch button {
    display: grid;
    width: 30px;
    height: 28px;
    place-items: center;
    border-radius: 5px;
    color: var(--slate-500);
    background: transparent;
}

.view-switch button.active {
    color: var(--blue);
    background: var(--blue-light);
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.listing-card .contractor-cover {
    height: 190px;
}

.heart {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    color: var(--slate-500);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 10px 0;
}

.service-tag {
    padding: 4px 7px;
    border-radius: 5px;
    color: var(--blue);
    background: var(--blue-light);
    font-size: 11px;
    font-weight: 700;
}

.card-facts {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 0 12px;
    border-top: 1px solid var(--slate-100);
    color: var(--slate-600);
    font-size: 11px;
}

.listing-table {
    display: none;
    overflow: hidden;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    background: var(--white);
}

.listing-table.active {
    display: block;
}

.listing-grid.hidden {
    display: none;
}

.table-head,
.table-row {
    display: grid;
    grid-template-columns: 2.1fr 1.6fr 1fr 1.1fr .7fr .7fr 1.2fr;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}

.table-head {
    color: var(--slate-800);
    background: var(--slate-50);
    font-size: 11px;
    font-weight: 800;
}

.table-row {
    border-top: 1px solid var(--slate-100);
    color: var(--slate-700);
    font-size: 12px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 28px;
}

.pagination a {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    color: var(--slate-700);
    background: var(--white);
    font-weight: 700;
}

.pagination a.active {
    color: var(--white);
    border-color: var(--blue);
    background: var(--blue);
}

.benefits {
    padding: 52px 0;
    border-top: 1px solid var(--slate-200);
    background: var(--white);
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.benefit {
    text-align: center;
}

.benefit .stat-icon {
    margin: 0 auto 12px;
}

.benefit h3 {
    margin: 0 0 5px;
    color: var(--slate-950);
    font-size: 15px;
}

.benefit p {
    max-width: 220px;
    margin: auto;
    color: var(--slate-600);
    font-size: 12px;
}

.contractor-card h3 {
    min-height: 43px;
    margin: 0 0 7px;
    color: var(--slate-950);
    font-size: 15px;
    line-height: 1.35;
}

.rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: var(--slate-600);
    font-size: 12px;
}

.stars {
    color: var(--amber);
    letter-spacing: -1px;
}

.meta-list {
    display: grid;
    gap: 5px;
    margin: 10px 0 14px;
    color: var(--slate-700);
    font-size: 12px;
}

.meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-block {
    width: 100%;
    margin-top: 24px;
}

.verified {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 6px;
    color: #047857;
    background: #ecfdf5;
    font-size: 11px;
    font-weight: 700;
}

.cover-badge {
    position: absolute;
    top: 11px;
    left: 11px;
}

.ntf-filter-form .filter-toggle {
    display: inline-flex;
}

.ntf-filter-form .nha-thau-filter.is-collapsed:not(.open) {
    display: none;
}

.ntf-filter-form[data-filter-mode="auto"] .ntf-apply-filter {
    display: none;
}

.ntf-filter-form select.ntf-filter-control {
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 8px 30px 8px 11px;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    color: var(--slate-800);
    background: var(--white);
    font-size: 13px;
}

.ntf-contractor-results {
    position: relative;
}

.ntf-contractor-results.loading {
    min-height: 180px;
    opacity: .55;
    pointer-events: none;
}

.ntf-empty {
    padding: 28px;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    color: var(--slate-600);
    background: var(--white);
    text-align: center;
}

.ntf-filter-form.is-loading .ntf-filter-control,
.ntf-filter-form.is-loading .ntf-apply-filter,
.ntf-filter-form.is-loading .ntf-clear-filter {
    pointer-events: none;
}

.view-switch .icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.benefits svg path {
    fill: transparent;
}