/* Shared sales and rental search pagination. */
.property-pagination {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    margin-bottom: 0;
    flex-wrap: nowrap;
    gap: 0.38rem;
}

.pagination .page-link {
    color: #355273;
    border: 1px solid #9fb6d0;
    border-radius: 999px;
    background: #ffffff;
    min-width: 3rem;
    min-height: 3rem;
    padding: 0.56rem 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    border-radius: 999px !important;
}

.pagination .page-link:hover {
    background-color: #f9fbfe;
    border-color: #6f93bd;
    color: #173b6d;
}

.pagination .page-item.active .page-link {
    background-color: #173b6d;
    border-color: #173b6d;
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #7f8da0;
    background-color: white;
    border-color: #d6e0ea;
}

.property-pagination__pages {
    display: flex;
    align-self: center;
    width: fit-content;
    max-width: 100%;
}

.property-pagination__pages--desktop {
    display: none;
}

.property-pagination__desktop-nav {
    display: none;
    flex: 0 0 auto;
}

.property-pagination__mobile-nav {
    display: flex;
    gap: 0.65rem;
}

.property-pagination__mobile-nav--single .page-link--nav {
    width: 100%;
}

.property-pagination__mobile-nav--split .page-link--nav {
    flex: 1 1 0;
}

.page-link--nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 50px;
    padding: 0.78rem 1rem !important;
    border-radius: 18px !important;
    border: 1.5px solid #4f78aa !important;
    background: #eef4fb !important;
    color: #143864 !important;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.78) inset;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.page-link--nav:hover,
.page-link--nav:focus {
    background: #dfeafb !important;
    border-color: #305d95 !important;
    color: #102f56 !important;
    box-shadow: 0 6px 14px rgba(20, 56, 100, 0.12);
}

.page-link--nav:active {
    background: #cfdff5 !important;
    border-color: #254c7f !important;
    color: #0d2748 !important;
    box-shadow: inset 0 2px 5px rgba(17, 47, 86, 0.14);
    transform: translateY(1px);
}

.page-link--nav.disabled,
.page-link--nav[aria-disabled="true"] {
    color: #8b97a8 !important;
    border-color: #dee6ef !important;
    background: #f8fbff !important;
    box-shadow: none;
    pointer-events: none;
}

.page-link__caret {
    font-size: 1em;
    line-height: 1;
    opacity: 0.58;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .property-pagination__pages--mobile {
        gap: 0.3rem;
    }

    .property-pagination__pages--mobile .page-link {
        min-width: 2.65rem;
        min-height: 2.65rem;
        padding: 0.48rem 0.68rem;
        font-size: 0.94rem;
    }

    .property-pagination__mobile-nav {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .property-pagination {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0.55rem;
    }

    .property-pagination__desktop-nav {
        display: flex;
    }

    .property-pagination__pages--desktop {
        display: flex;
    }

    .property-pagination__pages--mobile {
        display: none;
    }

    .property-pagination__mobile-nav {
        display: none;
    }
}

