/* =========================================================
   HOMENOW - PROPERTY LIST PAGE
   Scope: Views/Property/List.cshtml only
   Note: Property card UI stays in Content/style/shared/property-cards.css
========================================================= */

:root {
    --hn-list-primary: #2563eb;
    --hn-list-primary-dark: #1d4ed8;
    --hn-list-accent: #00B1FE;
    --hn-list-danger: #ef4444;
    --hn-list-text: #0f172a;
    --hn-list-text-soft: #475569;
    --hn-list-text-muted: #64748b;
    --hn-list-border: #e5e7eb;
    --hn-list-border-soft: #eef2f7;
    --hn-list-bg: #ffffff;
    --hn-list-bg-soft: #f1f5f9;
    --hn-list-header-bg: #F8F7F4;
    --hn-list-shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
    --hn-list-shadow-md: 0 10px 30px rgba(15, 23, 42, .12);
    --hn-list-radius-sm: 10px;
    --hn-list-radius-md: 14px;
    --hn-list-radius-lg: 18px;
    --hn-list-radius-pill: 999px;
    --hn-list-fixed-header-height: 86px;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* List page does not show floating chat box. */
.hn-chatbox {
    display: none;
}

/* =========================================================
   1. FIXED HEADER + PAGE SHELL
========================================================= */

.home-hero.list-hero {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    width: 100%;
    background: var(--hn-list-header-bg) !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}

.home-hero.list-hero .home-hero-shell {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
    background: var(--hn-list-header-bg) !important;
}

.home-hero.list-hero .home-hero-header {
    min-height: 76px;
    align-items: center;
}

.hn-acc-overlay {
    z-index: 200000 !important;
}

.property-list-page,
.list-shell {
    width: min(1200px, calc(100% - 32px));
    max-width: 1200px;
    margin: 0 auto;
    padding-top: var(--hn-list-fixed-header-height);
    box-sizing: border-box;
    overflow: visible !important;
}

.property-list-page *,
.property-list-page *::before,
.property-list-page *::after {
    box-sizing: border-box;
}

.list-head,
.property-list-results,
.list-results_class,
.property-list-search__panel,
.list-pagination-wrap {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.list-head,
.list-results_class {
    scroll-margin-top: var(--hn-list-fixed-header-height);
}

/* =========================================================
   2. SEARCH / FILTER BAR
========================================================= */

#listSearchForm.property-list-search,
#listSearchForm.home-search-form {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    z-index: 10;
    width: 100%;
    margin: 0 0 14px;
    padding: 0;
    transform: none !important;
}

.property-list-search__panel,
.home-search-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    padding: 8px 10px 6px;
    margin: 0 auto;
    background: var(--hn-list-bg);
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: var(--hn-list-radius-lg);
    box-shadow: var(--hn-list-shadow-md);
}

.property-list-search__top,
.home-search-top {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: clamp(8px, 1vw, 12px);
    min-width: 0;
    padding: 2px 4px 0;
}

.home-search-tabs {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    max-width: 100%;
    padding: 2px;
    background: var(--hn-list-bg-soft);
    border-radius: var(--hn-list-radius-pill);
}

.home-search-tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 8px 14px;
    background: transparent;
    color: var(--hn-list-text-soft);
    border-radius: var(--hn-list-radius-pill);
    cursor: pointer;
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.home-search-tab-btn.active {
    color: var(--hn-list-text);
    background: var(--hn-list-bg);
    border: 1px solid var(--hn-list-accent);
    box-shadow: var(--hn-list-shadow-sm);
}

.home-search-input-wrap {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 8px;
}

.home-search-input-wrap input {
    width: 100%;
    min-width: 0;
    height: 38px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--hn-list-text);
    font-size: 16px;
}

.home-search-input-wrap input::placeholder {
    color: #9ca3af;
}

.home-search-btn-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 35px;
    width: 35px;
    height: 35px;
    border: 0;
    border-radius: var(--hn-list-radius-pill);
    background: var(--hn-list-accent);
    color: #fff;
    cursor: pointer;
    font-size: clamp(14px, 1.1vw, 17px);
    transition: transform .2s ease, filter .2s ease;
}

.home-search-btn-main:hover {
    filter: brightness(.97);
}

.home-search-btn-main:active {
    transform: scale(.96);
}

.property-list-search__filters,
.home-search-bottom {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: clamp(8px, 1vw, 12px);
    width: 100%;
    min-width: 0;
    padding: 4px 8px 2px;
    margin-top: 2px;
    border-top: 1px solid var(--hn-list-border);
}

.home-search-filter {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    color: var(--hn-list-text-soft);
    font-size: 14px;
}

.home-search-filter-select {
    width: 100%;
    height: 30px;
    border: 0;
    outline: 0;
    appearance: none;
    background: transparent;
    color: var(--hn-list-text);
    cursor: pointer;
    padding: 0 18px 0 7px;
    font-size: 16px;
}

.list-city-hidden-select {
    display: none !important;
}

.home-search-filter-city-fixed {
    flex: 0 0 clamp(118px, 12vw, 150px);
    width: clamp(118px, 12vw, 150px);
    min-width: clamp(118px, 12vw, 150px);
    max-width: clamp(118px, 12vw, 150px);
}

.home-search-city-display {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    height: 26px;
    min-height: 26px;
    padding: 0 7px;
    color: var(--hn-list-accent);
    font-size: clamp(12px, .85vw, 14px);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-search-city-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 14px;
    width: 14px;
    color: var(--hn-list-danger);
    font-size: 13px;
    line-height: 1;
}

.home-search-city-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-search-filter-ward {
    flex: 0 0 clamp(170px, 22vw, 284px);
    max-width: clamp(170px, 22vw, 284px);
}

.home-search-filter-price,
.home-search-filter-type {
    flex: 1 1 clamp(150px, 18vw, 280px);
    min-width: 0;
}

/* =========================================================
   3. SELECT2 IN LIST SEARCH
========================================================= */

.select2-container--open {
    z-index: 9500 !important;
}

.select2-dropdown {
    z-index: 9501 !important;
    overflow: hidden;
    border: 1px solid #dbe3ee !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
}

.list-shell .home-search-filter-ward .select2-container,
.list-shell .home-search-filter-price .select2-container,
.list-shell .home-search-filter-type .select2-container {
    width: 100% !important;
    max-width: 100% !important;
}

.list-shell .home-search-filter-ward .select2-selection--single,
.list-shell .home-search-filter-price .select2-selection--single,
.list-shell .home-search-filter-type .select2-selection--single {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    height: 26px !important;
    min-height: 26px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.list-shell .home-search-filter-ward .select2-selection__rendered,
.list-shell .home-search-filter-price .select2-selection__rendered,
.list-shell .home-search-filter-type .select2-selection__rendered {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-left: 0 !important;
    padding-right: 22px !important;
    /*color: var(--hn-list-text-soft) !important;*/
    font-size: 14px !important;
    line-height: 26px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.list-shell .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #111827 !important;
}

.list-shell .home-search-filter-ward .select2-selection__arrow,
.list-shell .home-search-filter-price .select2-selection__arrow,
.list-shell .home-search-filter-type .select2-selection__arrow {
    right: 0 !important;
    height: 26px !important;
}

.list-shell .select2-container--default.select2-container--focus .select2-selection--single,
.list-shell .select2-container--open .select2-selection--single {
    border: 0 !important;
    box-shadow: none !important;
}

.list-shell .select2-container--default .select2-selection--single .select2-selection__clear {
    position: absolute !important;
    right: 3px !important;
    top: 50% !important;
    z-index: 5 !important;
    width: 18px !important;
    height: 22px !important;
    margin: 0 !important;
    padding: 0 4px !important;
    color: var(--hn-list-text-soft) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 20px !important;
    text-align: center !important;
    transform: translateY(-50%) !important;
}

.list-shell .select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: var(--hn-list-danger) !important;
}

.list-shell .select2-container--has-value .select2-selection--single .select2-selection__arrow,
.list-shell .select2-container--default .select2-selection--single .select2-selection__clear ~ .select2-selection__arrow {
    display: none !important;
}

.list-shell .select2-container--has-value .select2-selection--single .select2-selection__rendered {
    padding-right: 24px !important;
    color: #00B1FE !important;
}

.select2-search--dropdown {
    padding: 10px;
    background: #fff;
    border-bottom: 1px solid var(--hn-list-border-soft);
}

.select2-search--dropdown .select2-search__field {
    min-height: 38px !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 8px !important;
    padding: 8px 10px !important;
    font-size: 16px !important;
    outline: none !important;
}

.select2-results__option {
    padding: 10px 12px !important;
    font-size: 14px !important;
}

.select2-results__option--highlighted[aria-selected] {
    background: var(--hn-list-primary) !important;
    color: #fff !important;
}

/* =========================================================
   4. TOOLBAR / PRICE SORT
========================================================= */

.property-list-toolbar,
.list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.list-head h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    margin: 0;
    color: var(--hn-list-text);
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 800;
    line-height: 1.25;
}

.list-head h2::before {
    content: "";
    flex: 0 0 4px;
    width: 4px;
    height: clamp(18px, 2vw, 28px);
    border-radius: var(--hn-list-radius-pill);
    background: var(--hn-list-danger);
}

.list-head-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    min-width: 0;
    margin-left: auto;
}

.list-price-sort-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    height: 34px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: var(--hn-list-text);
    cursor: pointer;
    outline: none;
    text-decoration: none;
    white-space: nowrap;
    appearance: none;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.list-price-sort-btn:hover {
    background: rgba(0, 177, 254, .08);
    color: var(--hn-list-text);
    text-decoration: none;
    transform: translateY(-1px);
}

.list-price-sort-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 177, 254, .16);
}

.list-price-sort-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 24px;
    line-height: 1;
}

.list-price-sort-svg {
    display: block;
    width: 28px;
    height: 24px;
    overflow: visible;
}

.list-price-sort-svg path {
    fill: none;
    stroke: #7b8490;
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke .18s ease, transform .18s ease;
}

.list-price-sort-text {
    color: var(--hn-list-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.list-price-sort-btn.is-asc .sort-arrow-up,
.list-price-sort-btn.is-desc .sort-arrow-down {
    stroke: var(--hn-list-accent);
}

.list-price-sort-btn.is-asc .sort-arrow-up {
    transform: translateY(-1px);
}

.list-price-sort-btn.is-desc .sort-arrow-down {
    transform: translateY(1px);
}

.list-price-sort-btn.is-asc .sort-arrow-down,
.list-price-sort-btn.is-desc .sort-arrow-up,
.list-price-sort-btn.is-neutral .sort-arrow-up,
.list-price-sort-btn.is-neutral .sort-arrow-down {
    stroke: #7b8490;
}

/* =========================================================
   5. RESULTS
========================================================= */

.property-list-results,
.list-results_class,
.list-results-desktop,
.list-results-mobile {
    position: relative;
    clear: both;
    min-width: 0;
    max-width: 100%;
}

.list-results-desktop {
    display: block;
}

.list-results-mobile {
    display: none;
}

.list-results-desktop .property-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 100%;
}

.list-results-desktop .property-grid > * {
    min-width: 0;
}

.list-results-mobile .property-row-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 100%;
}

.list-results-mobile .p-row {
    width: 100%;
    max-width: 100%;
}

.list-results_class a,
.list-results_class a:hover {
    text-decoration: none;
}

.list-results_class img {
    display: block;
    max-width: 100%;
}

/* =========================================================
   6. PAGINATION
========================================================= */

.property-list-pagination-wrap,
.list-pagination-wrap {
    margin-top: 14px;
}

.list-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
}

.list-pagination-left,
.list-pagination-center,
.list-pagination-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.list-pagination-center {
    flex: 1 1 auto;
    justify-content: center;
}

.list-pagination-center-mobile {
    display: none;
}

.list-pager-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 116px;
    height: 42px;
    padding: 0 18px;
    border: 1px solid #cfe8f9;
    border-radius: var(--hn-list-radius-md);
    background: #eaf6ff;
    color: #3b82a8;
    font-size: clamp(12px, 1vw, 16px);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}

.list-pager-btn:hover {
    background: #dff0fc;
    color: #256d90;
    text-decoration: none;
}

.list-pager-btn.disabled,
.list-pager-btn[aria-disabled="true"] {
    opacity: .5;
    pointer-events: none;
}

.list-pager-btn-text {
    display: inline;
}

.list-pager-page,
.list-pager-page-active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: var(--hn-list-radius-sm);
    font-size: clamp(13px, 1vw, 17px);
    font-weight: 700;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.list-pager-page {
    border: 1px solid #d9dee7;
    background: #fff;
    color: var(--hn-list-text-soft);
}

.list-pager-page:hover {
    border-color: #b8c3d4;
    color: var(--hn-list-text);
    text-decoration: none;
}

.list-pager-page-active {
    border: 1px solid #08245f;
    background: linear-gradient(135deg, #07215d 0%, #0b2b72 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(7, 33, 93, .22);
}

.list-pager-ellipsis {
    min-width: 22px;
    color: var(--hn-list-text-muted);
    font-size: clamp(14px, 1.1vw, 20px);
    line-height: 1;
    text-align: center;
}

/* Kept for future use if page-size select is re-enabled. */
.list-page-size-select {
    min-width: 250px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #d9dee7;
    border-radius: 12px;
    background: #fff;
    color: #334155;
    cursor: pointer;
    font-size: 16px;
    outline: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}

.list-page-size-select:focus {
    border-color: #8fb8dd;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .08);
}

/* =========================================================
   7. HELPERS
========================================================= */

.scroll-top-btn {
    position: fixed;
    right: 18px;
    bottom: 154px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--hn-list-radius-pill);
    background: rgba(15, 23, 42, .85);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
    opacity: 0;
    pointer-events: none;
    text-decoration: none;
    transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease;
}

.scroll-top-btn.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.footer-section {
    position: relative;
    clear: both;
}

/* =========================================================
   8. RESPONSIVE
   Desktop: >1000px | Tablet/Mobile: <=1000px | Small: <=600px
========================================================= */

@media (max-width: 1200px) {
    .property-list-page,
    .list-shell {
        width: calc(100% - 32px);
    }
}

@media (max-width: 1000px) {
    .property-list-page,
    .list-shell {
        width: 100%;
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }

    .list-results-desktop {
        display: none !important;
    }

    .list-results-mobile {
        display: block !important;
    }

    .property-list-search__panel,
    .home-search-wrapper {
        border-radius: 8px !important;
    }

    .property-list-search__filters,
    .home-search-bottom {
        gap: 8px;
        flex-wrap: nowrap;
    }

    .home-search-filter-city-fixed {
        flex: 0 0 112px;
        width: 112px;
        min-width: 112px;
        max-width: 112px;
    }

    .home-search-filter-ward {
        flex: 0 0 190px;
        max-width: 190px;
    }

    .home-search-filter-price,
    .home-search-filter-type {
        flex: 1 1 150px;
    }

    .home-search-input-wrap input,
    .home-search-filter-select,
    .select2-search--dropdown .select2-search__field {
        font-size: 16px !important;
    }

    .home-search-city-display,
    .list-shell .home-search-filter-ward .select2-selection__rendered,
    .list-shell .home-search-filter-price .select2-selection__rendered,
    .list-shell .home-search-filter-type .select2-selection__rendered {
        font-size: 14px !important;
    }

    .list-head {
        align-items: center;
        gap: 14px;
    }

    .list-price-sort-btn {
        height: 32px;
        gap: 6px;
        padding: 0 10px;
    }

    .list-price-sort-icon,
    .list-price-sort-svg {
        width: 26px;
        height: 22px;
    }

    .list-price-sort-icon {
        flex-basis: 26px;
    }

    .list-price-sort-text {
        font-size: 15px;
    }

    .list-pagination {
        gap: 10px;
    }

    .list-pager-btn {
        min-width: 96px;
        padding: 0 14px;
    }

    .list-page-size-select {
        min-width: 190px;
    }
}

@media (min-width: 1001px) {
    .list-results-desktop {
        display: block !important;
    }

    .list-results-mobile {
        display: none !important;
    }
}

@media (max-width: 770px) {
    :root {
        --hn-list-fixed-header-height: 76px;
    }

    .home-hero.list-hero .home-hero-header {
        min-height: 66px;
    }

    .property-list-page,
    .list-shell {
        padding-left: 8px;
        padding-right: 8px;
    }

    .property-list-search__panel,
    .home-search-wrapper {
        overflow: visible !important;
    }

    .property-list-search__filters,
    .home-search-bottom {
        display: grid !important;
        grid-template-columns: 0.9fr 1.18fr .9fr .9fr !important;
        gap: 0 !important;
        max-width: 100%;
        min-width: 0;
        padding: 6px 0 0 !important;
        margin-top: 6px !important;
        border-top: 1px solid var(--hn-list-border) !important;
        overflow: visible !important;
    }

    .home-search-filter-city-fixed,
    .home-search-filter-ward,
    .home-search-filter-price,
    .home-search-filter-type {
        flex: initial !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .home-search-filter + .home-search-filter {
        border-left: 1px solid var(--hn-list-border-soft) !important;
    }

    .home-search-city-display,
    .home-search-filter-ward .select2-selection--single,
    .home-search-filter-price .select2-selection--single,
    .home-search-filter-type .select2-selection--single {
        height: 25px !important;
        min-height: 25px !important;
    }

    .home-search-filter-ward .select2-selection__rendered,
    .home-search-filter-price .select2-selection__rendered,
    .home-search-filter-type .select2-selection__rendered {
        line-height: 34px !important;
    }

    .select2-container--default .select2-selection--single .select2-selection__clear {
        right: 2px !important;
        height: 24px !important;
        line-height: 22px !important;
    }

    .select2-container--has-value .select2-selection--single .select2-selection__rendered {
        padding-right: 22px !important;
    }

    .home-search-top {
        gap: 6px;
        padding: 2px 2px 0;
    }

    .home-search-tab-btn {
        padding: 7px 12px;
        font-size: 13px;
    }

    .home-search-input-wrap {
        padding: 0 4px;
    }

    .home-search-input-wrap input {
        height: 36px;
    }

    .home-search-btn-main {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        font-size: 15px;
    }

    .list-head {
        justify-content: space-between;
        gap: 10px;
    }

    .list-head h2 {
        gap: 10px;
        font-size: clamp(20px, 4.5vw, 24px);
    }

    .list-head h2::before {
        height: 24px;
    }

    .list-pagination {
        align-items: center;
        flex-wrap: nowrap;
        gap: 8px;
        padding: 10px 8px;
        border-radius: 16px;
    }

    .list-pagination-left,
    .list-pagination-right {
        flex: 0 0 auto;
        width: auto;
        justify-content: center;
        gap: 6px;
    }

    .list-pagination-center-desktop {
        display: none !important;
    }

    .list-pagination-center-mobile {
        display: flex !important;
        align-items: center;
        justify-content: center;
        flex: 1 1 auto;
        gap: 6px;
        min-width: 0;
    }

    .list-pager-btn {
        gap: 0;
        min-width: 34px;
        width: 34px;
        height: 34px;
        padding: 0;
        border-radius: 10px;
    }

    .list-pager-btn-text {
        display: none !important;
    }

    .list-pager-page,
    .list-pager-page-active {
        flex: 0 0 32px;
        width: 32px;
        height: 32px;
        border-radius: 8px;
        font-size: 12px;
    }

    .list-pager-ellipsis {
        min-width: 14px;
        font-size: 12px;
    }

    .list-page-size-select {
        width: 100%;
        max-width: 220px;
        min-width: 0;
        height: 34px;
        padding: 0 10px;
        border-radius: 10px;
        font-size: 16px;
    }

    .list-price-sort-btn {
        height: 31px;
    }

    .list-price-sort-icon,
    .list-price-sort-svg {
        width: 24px;
        height: 21px;
    }

    .list-price-sort-icon {
        flex-basis: 24px;
    }

    .list-price-sort-text {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .home-search-city-display {
        padding: 0 5px;
    }

    .list-head {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .list-head h2 {
        gap: 8px;
        font-size: 18px;
    }

    .list-head h2::before {
        flex-basis: 3px;
        width: 3px;
        height: 20px;
    }

    .scroll-top-btn {
        right: 12px;
        bottom: 154px;
    }
}

@media (max-width: 520px) {
    :root {
        --hn-list-fixed-header-height: 70px;
    }

    .home-hero.list-hero .home-hero-header {
        min-height: 62px;
    }

    .property-list-search__panel,
    .home-search-wrapper {
        padding: 8px 8px 6px;
    }

    .home-search-top {
        gap: 5px;
    }

    .home-search-tabs {
        max-width: 170px;
    }

    .home-search-tab-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .home-search-input-wrap {
        padding: 0 2px;
    }

    .home-search-input-wrap input {
        height: 34px;
    }

    .home-search-btn-main {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .list-pagination {
        gap: 6px;
        padding-left: 6px;
        padding-right: 6px;
    }

    .list-pager-btn {
        min-width: 32px;
        width: 32px;
        height: 32px;
        border-radius: 9px;
    }

    .list-pager-page,
    .list-pager-page-active {
        flex: 0 0 30px;
        width: 30px;
        height: 30px;
        border-radius: 7px;
        font-size: 11px;
    }

    .list-pager-ellipsis {
        min-width: 10px;
        font-size: 11px;
    }
    .home-search-input-wrap input,
    .home-search-filter-select,
    .select2-search--dropdown .select2-search__field {
        font-size: 12px !important;
    }
    .home-search-city-display,
    .list-shell .home-search-filter-ward .select2-selection__rendered,
    .list-shell .home-search-filter-price .select2-selection__rendered,
    .list-shell .home-search-filter-type .select2-selection__rendered {
        font-size: 12px !important;
    }
}

@media (max-width: 391px) {
    :root {
        --hn-list-fixed-header-height: 66px;
    }

    .property-list-page,
    .list-shell {
        padding-left: 8px;
        padding-right: 8px;
        padding-bottom: 8px;
    }

    .property-list-search__panel,
    .home-search-wrapper {
        padding: 7px 7px 5px;
    }

    .property-list-search__filters,
    .home-search-bottom {
        grid-template-columns: 1fr 1.15fr .9fr .9fr !important;
    }

    .home-search-tabs {
        max-width: 152px;
        padding: 2px;
    }

    .home-search-tab-btn {
        padding: 6px 8px;
        font-size: 11px;
    }

    .home-search-input-wrap input {
        height: 32px;
    }

    .home-search-btn-main {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .home-search-filter-select {
        height: 24px;
        padding-left: 1px;
        padding-right: 12px;
    }

    .list-head h2 {
        gap: 7px;
        font-size: 18px;
    }

    .list-head h2::before {
        height: 18px;
    }

    .list-price-sort-btn {
        height: 28px;
        gap: 5px;
        padding: 0 10px;
    }

    .list-price-sort-icon,
    .list-price-sort-svg {
        width: 22px;
        height: 19px;
    }

    .list-price-sort-icon {
        flex-basis: 22px;
    }

    .list-price-sort-text {
        font-size: 12px;
    }
}

@media (max-width: 340px) {
    .home-search-tabs {
        max-width: 140px;
    }

    .home-search-tab-btn {
        padding: 5px 7px;
        font-size: 10px;
    }

    .home-search-btn-main {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
    }

    .list-pager-btn {
        min-width: 28px;
        width: 28px;
        height: 28px;
        font-size: 10px;
    }

    .list-pager-page,
    .list-pager-page-active {
        flex: 0 0 26px;
        width: 26px;
        height: 26px;
        font-size: 10px;
    }
}
