/* Search page design, scoped to body.abv-design.
   Spacing, radii, shadows, focus ring and motion follow the Astryx neutral scale (MIT), with Abhavij's colours. */
.abv-design {
    --abv-s1: .25rem;
    --abv-s1-5: .375rem;
    --abv-s2: .5rem;
    --abv-s3: .75rem;
    --abv-s4: 1rem;
    --abv-s5: 1.25rem;
    --abv-s6: 1.5rem;
    --abv-s8: 2rem;

    --abv-r-inner: .375rem;
    --abv-r-element: .625rem;
    --abv-r-container: .75rem;
    --abv-r-page: 1.75rem;
    --abv-r-full: 9999px;

    --abv-shadow-low: 0 2px 4px rgb(0 0 0 / 5%), 0 4px 8px rgb(0 0 0 / 10%);
    --abv-shadow-med: 0 2px 4px rgb(0 0 0 / 5%), 0 4px 12px rgb(0 0 0 / 10%);
    --abv-shadow-high: 0 4px 6px rgb(0 0 0 / 10%), 0 12px 24px rgb(0 0 0 / 15%);

    --abv-fast: 125ms;
    --abv-medium: 300ms;
    --abv-ease: cubic-bezier(.24, 1, .4, 1);
    --abv-ease-exit: cubic-bezier(.3, 0, .6, .6);

    --abv-ink: #1f2328;
    --abv-muted: #5c6168;
    --abv-line: rgb(0 0 0 / 8%);
    --abv-edge: #d4d4d4;
    --abv-hover: rgb(0 0 0 / 5%);
    --abv-skeleton: #f1f1f1;
    --abv-surface: #fff;
    --abv-orange: #ff6900;
    --abv-gradient: linear-gradient(to left, #ff6900, #ffab00);
    --abv-orange-hover: inset 0 0 0 100vmax rgb(225 40 0 / 25%);
    --abv-orange-rest: inset 0 0 0 100vmax rgb(225 40 0 / 0%);
    --abv-bar-shadow: 0 1px 2px rgb(0 0 0 / 4%), 0 3px 8px -3px rgb(0 0 0 / 10%);
    --abv-focus: 2px solid var(--abv-ink);
}
[dir="rtl"] .abv-design {
    --abv-gradient: linear-gradient(to right, #ff6900, #ffab00);
}

/* Focus ring: one style for every control on the page */
.abv-design .geodir-map-sticky :is(a, button, input, select, [tabindex]):focus-visible,
.abv-design .abv-sheet-close:focus-visible {
    outline: var(--abv-focus) !important;
    outline-offset: 3px;
    box-shadow: none !important;
}
.abv-design .geodir-search .form-control:focus-visible {
    outline-offset: -2px;
}
.abv-design .geodir-post .card-img-top a:focus-visible {
    outline-offset: -4px !important;
    outline-color: #fff !important;
}

/* Layout: list beside the map */
.abv-design .geodir-map-sticky {
    gap: var(--abv-s8);
}
.abv-design .geodir-map-sticky > .wp-block-column:first-child {
    flex: 0 0 52%;
    min-width: 0;
}
.abv-design .geodir-map-sticky > .wp-block-column:first-child > .wp-block-columns {
    display: block;
    margin: 0 0 var(--abv-s2) !important;
}
.abv-design .geodir-map-sticky > .wp-block-column:first-child > .wp-block-columns > .wp-block-column {
    margin: 0;
}
.abv-design .geodir-loop-actions-container > div {
    margin: 0 !important;
    padding: 0 !important;
}
.abv-design .gd-list-view-select {
    display: none !important;
}

/* Search bar */
.abv-design .geodir-search-form-wrapper {
    margin-bottom: 0 !important;
}
.abv-design .geodir-search {
    flex-wrap: wrap;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0;
}
.abv-design .geodir-search::after {
    content: "";
    order: 3;
    flex-basis: 100%;
    height: var(--abv-s3);
}
.abv-design .geodir-search .gd-search-field-search[data-rule-key="s"],
.abv-design .geodir-search .gd-search-field-near {
    order: 1;
    flex: 1 1 0 !important;
    min-width: 0;
}
.abv-design .geodir-search .form-control {
    min-width: 0;
    height: 3rem;
    border: 1px solid var(--abv-edge);
    box-shadow: none;
    font-size: 1.0625rem;
    color: var(--abv-ink);
    background: var(--abv-surface);
    transition: border-color var(--abv-fast) var(--abv-ease);
}
.abv-design .geodir-search .input-group-inside .form-control {
    padding-inline-start: 2.6rem;
}
.abv-design .geodir-search .gd-search-field-search[data-rule-key="s"] .form-control,
.abv-design .geodir-search .gd-search-field-near .form-control,
/* The orange buttons fade to the reddish hover: the resting state holds the same wash, transparent, so it can fade */
.abv-design .geodir-search .geodir_submit_search {
    box-shadow: var(--abv-orange-rest), var(--abv-bar-shadow) !important;
}
/* GeoDirectory sizes the icon box for its own lower field: stretch it to the field so the icon is centred */
.abv-design .geodir-search .input-group-inside .input-group-text {
    top: 0;
    bottom: 0;
    height: auto;
}
.abv-design .geodir-search .input-group-text .geodir-search-input-label {
    display: flex;
    align-items: center;
}
.abv-design .geodir-search .gd-search-field-search[data-rule-key="s"] .form-control {
    border-start-start-radius: var(--abv-r-container);
    border-end-start-radius: var(--abv-r-container);
    border-start-end-radius: 0;
    border-end-end-radius: 0;
}
.abv-design .geodir-search .gd-search-field-near .form-control {
    border-inline-start: 0;
    border-radius: 0;
}
.abv-design .geodir-search .form-control:hover {
    border-color: #b9bcc0;
}
.abv-design .geodir-search .form-control:focus {
    border-color: var(--abv-ink);
    position: relative;
    z-index: 1;
}
.abv-design .geodir-search > .gd-search-field-search:not([data-rule-key]):not(.gd-search-field-search-filters) {
    order: 2;
    flex: 0 0 auto !important;
}
.abv-design .geodir-search .geodir_submit_search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem !important;
    height: 3rem;
    padding: 0;
    border-radius: 0 var(--abv-r-container) var(--abv-r-container) 0;
    background: var(--abv-gradient) !important;
    border: 0 !important;
    transition: box-shadow var(--abv-medium) ease;
}
[dir="rtl"] .abv-design .geodir-search .geodir_submit_search {
    border-radius: var(--abv-r-container) 0 0 var(--abv-r-container);
}
.abv-design .geodir-search .geodir_submit_search:hover {
    box-shadow: var(--abv-orange-hover), var(--abv-bar-shadow) !important;
}
.abv-design .geodir_submit_search .fa-fade {
    animation: none;
}
.abv-design .geodir-search .geodir_submit_search .fa-magnifying-glass {
    font-size: 1.25rem;
}

/* Category and Filters buttons */
.abv-design .geodir-search .gd-search-field-categories {
    order: 4;
    flex: 0 0 auto !important;
    margin-inline-end: var(--abv-s2);
}
.abv-design .geodir-search .gd-search-field-search-filters {
    order: 5;
    flex: 0 0 auto !important;
}
.abv-design .geodir-search .gd-search-field-categories .form-select,
.abv-design .geodir-search .geodir-show-filters {
    height: 2.5rem;
    border: 1px solid var(--abv-edge) !important;
    border-radius: var(--abv-r-full);
    background-color: var(--abv-surface);
    color: var(--abv-ink) !important;
    font-size: .875rem;
    font-weight: 500;
    box-shadow: none !important;
    transition: border-color var(--abv-fast) var(--abv-ease), background-color var(--abv-fast) var(--abv-ease);
}
.abv-design .geodir-search .gd-search-field-categories .form-select {
    width: auto;
    max-width: 16rem;
    padding-inline: var(--abv-s4) 2.25rem;
    cursor: pointer;
}
.abv-design .geodir-search .geodir-show-filters {
    display: inline-flex;
    align-items: center;
    gap: var(--abv-s2);
    width: auto !important;
    padding: 0 var(--abv-s4);
    background-image: none !important;
}
.abv-design .geodir-search .gd-search-field-categories .form-select:hover,
.abv-design .geodir-search .geodir-show-filters:hover,
.abv-design .geodir-search .geodir-show-filters[aria-expanded="true"] {
    border-color: var(--abv-ink) !important;
    background-color: var(--abv-surface);
}
.abv-design .geodir-search .geodir-show-filters[aria-expanded="true"] {
    box-shadow: inset 0 0 0 1px var(--abv-ink) !important;
}
/* GeoDirectory draws Filters as a primary button, which AyeCode UI turns dark blue while pressed */
.abv-design .geodir-search .geodir-show-filters.btn-primary:active {
    background-color: #eef0f2 !important;
    border-color: var(--abv-ink) !important;
    color: var(--abv-ink) !important;
}

/* Filter panel (desktop: under the bar; phones: bottom sheet further down) */
.abv-design .geodir-more-filters .customize_filter_inner {
    background: var(--abv-surface) !important;
    border: 1px solid var(--abv-line);
    border-radius: var(--abv-r-container) !important;
    box-shadow: var(--abv-shadow-med);
    margin: var(--abv-s3) 0 var(--abv-s1) !important;
    padding: var(--abv-s5) var(--abv-s4) var(--abv-s1) !important;
}
.abv-design .geodir-more-filters .form-field-label {
    color: var(--abv-ink) !important;
    font-size: .9375rem;
    font-weight: 600;
    margin-bottom: var(--abv-s3);
}
.abv-design .geodir-more-filters .gd-field-distance {
    display: flex;
    flex-wrap: wrap;
    gap: var(--abv-s2);
    align-content: flex-start;
}
.abv-design .geodir-more-filters .gd-field-distance > .form-field-label {
    flex-basis: 100%;
    margin-bottom: 0;
}
.abv-design .geodir-more-filters .as--distance,
.abv-design .geodir-more-filters .as-collapse-distance.show {
    display: inline-flex;
    position: relative;
    margin: 0 !important;
    padding: 0;
    min-height: 0;
}
.abv-design .geodir-more-filters .gd-field-distance .form-check-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}
.abv-design .geodir-more-filters .gd-field-distance .form-check-label,
.abv-design .geodir-more-filters .gd-field-distance [data-bs-toggle="collapse"] {
    padding: var(--abv-s1-5) .875rem;
    border: 1px solid var(--abv-edge) !important;
    border-radius: var(--abv-r-full);
    color: var(--abv-ink) !important;
    font-size: .875rem;
    line-height: 1.43;
    transition: border-color var(--abv-fast) var(--abv-ease), background-color var(--abv-fast) var(--abv-ease);
}
.abv-design .geodir-more-filters .gd-field-distance .form-check-input:hover + .form-check-label {
    border-color: var(--abv-ink) !important;
}
.abv-design .geodir-more-filters .gd-field-distance .form-check-input:checked + .form-check-label {
    background: var(--abv-ink);
    border-color: var(--abv-ink) !important;
    color: #fff !important;
}
.abv-design .geodir-more-filters .gd-field-distance .form-check-input:focus-visible {
    outline: 0 !important;
}
.abv-design .geodir-more-filters .gd-field-distance .form-check-input:focus-visible + .form-check-label {
    outline: var(--abv-focus);
    outline-offset: 3px;
}
.abv-design .geodir-more-filters .gd-field-distance [data-bs-toggle="collapse"] {
    border-style: dashed !important;
    background: var(--abv-surface) !important;
    background-image: none !important;
    color: var(--abv-muted) !important;
    box-shadow: none !important;
    font-weight: 500;
}
.abv-design .geodir-more-filters .form-select {
    height: 2.5rem;
    border: 1px solid var(--abv-edge);
    border-radius: var(--abv-r-element);
    color: var(--abv-ink);
    font-size: .875rem;
}
.abv-design .geodir-more-filters .geodir-advance-search {
    padding: var(--abv-s3) 0 0;
}
.abv-design .geodir-more-filters .geodir_submit_search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--abv-s2);
    height: 2.75rem;
    border-radius: var(--abv-r-full);
    background: var(--abv-gradient) !important;
    border: 0 !important;
    box-shadow: var(--abv-orange-rest) !important;
    font-weight: 600;
    transition: box-shadow var(--abv-medium) ease;
}
.abv-design .geodir-more-filters .geodir_submit_search:hover {
    box-shadow: var(--abv-orange-hover) !important;
}
.abv-design .abv-sheet-head,
.abv-design .abv-sheet-backdrop {
    display: none;
}

/* Suggestions under the search field (GeoDirectory): in Persian the heading starts on the right, and the space
   between icon and name sits between them (AyeCode UI's left to right `me-2` puts it on the outer edge) */
.abv-design .gd-suggestions-dropdown .dropdown-header {
    text-align: start;
}
[dir="rtl"] .abv-design .gd-suggestions-dropdown .gdasac-icon {
    margin-right: 0 !important;
    margin-left: var(--abv-s3) !important;
}
.abv-design .gd-suggestions-dropdown .gdasac-icon {
    margin-right: var(--abv-s3) !important;
}

/* Active filters above the results */
.abv-design .gd-adv-search-labels {
    padding: var(--abv-s3) 0 0 !important;
}
.abv-design .gd-adv-search-labels .badge {
    padding: var(--abv-s1-5) var(--abv-s3);
    border: 1px solid var(--abv-edge);
    border-radius: var(--abv-r-full);
    background: var(--abv-surface) !important;
    color: var(--abv-ink) !important;
    font-size: .8125rem;
    font-weight: 500;
}
.abv-design .gd-adv-search-labels .geodir-clear-filters {
    background: var(--abv-ink) !important;
    border-color: var(--abv-ink);
    color: #fff !important;
}

/* Result list */
.abv-design .geodir-loop-container > .row {
    margin: 0;
    row-gap: 0;
}
.abv-design .geodir-loop-container .geodir-post {
    flex: 0 0 100%;
    max-width: 100%;
    margin: 0 !important;
    padding: 0;
}
.abv-design .geodir-loop-container .geodir-post > .card {
    position: relative;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: var(--abv-s1) 0 !important;
}
/* The line between cards starts and ends where a card's rounded corners begin */
.abv-design .geodir-loop-container .geodir-post > .card::after {
    content: "";
    position: absolute;
    bottom: 0;
    inset-inline: var(--abv-r-container);
    height: 1px;
    background: var(--abv-line);
}
.abv-design .geodir-loop-container .geodir-post > .card > .card {
    display: grid;
    grid-template-columns: 10.5rem minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: var(--abv-s5);
    padding: var(--abv-s3) !important;
    border: 0 !important;
    border-radius: var(--abv-r-container);
    box-shadow: none !important;
    background: transparent;
    transition: box-shadow var(--abv-medium) var(--abv-ease), background-color var(--abv-fast) var(--abv-ease);
}
.abv-design .geodir-loop-container .geodir-post > .card > .card:focus-within {
    box-shadow: var(--abv-shadow-med) !important;
    background: var(--abv-surface);
}
@media (hover: hover) {
    .abv-design .geodir-loop-container .geodir-post > .card > .card:hover {
        box-shadow: var(--abv-shadow-high) !important;
        background: var(--abv-surface);
    }
    .abv-design .geodir-post .card:hover .card-img-top img {
        transform: scale(1.04);
    }
}

/* Photo: square box reserved before the image arrives, so the list never jumps */
.abv-design .geodir-post .card-img-top {
    grid-row: 1 / 3;
    width: 10.5rem !important;
    max-width: none !important;
    flex: none !important;
    aspect-ratio: 1;
    align-self: start;
    border-radius: var(--abv-r-element);
    background: var(--abv-skeleton);
    contain: layout paint;
}
.abv-design .geodir-post .card-img-top .ratio {
    --bs-aspect-ratio: 100%;
}
.abv-design .geodir-post .card-img-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--abv-medium) var(--abv-ease);
}
.abv-design .geodir-post .card-img-top .fa-link {
    display: none;
}
/* AyeCode UI darkens a linked photo on hover: not here */
.abv-design .geodir-post .embed-has-action:hover img {
    filter: none !important;
}

/* Photo arrows, only on listings with more than one photo */
.abv-design .abv-photo-btn {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    margin-top: -.875rem;
    padding: 0;
    border: 0;
    border-radius: var(--abv-r-full);
    background: rgb(255 255 255 / 92%);
    color: var(--abv-ink);
    font-size: .6875rem;
    line-height: 1;
    box-shadow: var(--abv-shadow-low);
    cursor: pointer;
    transition: opacity var(--abv-fast) var(--abv-ease), background-color var(--abv-fast) var(--abv-ease);
}
.abv-design .abv-photo-btn:hover {
    background: #fff;
}
.abv-design .abv-photo-prev {
    inset-inline-start: var(--abv-s1-5);
}
.abv-design .abv-photo-next {
    inset-inline-end: var(--abv-s1-5);
}
[dir="rtl"] .abv-design .abv-photo-btn i {
    transform: scaleX(-1);
}
/* With a mouse they appear when the card is pointed at; touch screens always show them */
@media (hover: hover) {
    .abv-design .abv-photo-btn {
        opacity: 0;
    }
    .abv-design .geodir-post .card:hover .abv-photo-btn,
    .abv-design .abv-photo-btn:focus-visible {
        opacity: 1;
    }
}
.abv-design .geodir-post .gd-badge.ab-bottom-left {
    margin-bottom: var(--abv-s2);
    padding: var(--abv-s1) .625rem;
    border-color: transparent !important;
    border-radius: var(--abv-r-full);
    background: rgb(255 255 255 / 94%) !important;
    color: var(--abv-ink) !important;
    font-size: .75rem;
    font-weight: 500;
}

/* Text column */
.abv-design .geodir-post .card-body,
.abv-design .geodir-post .card-footer {
    padding: 0 !important;
    background: transparent;
    border: 0;
}
/* GeoDirectory's list view caps the text at 69% of its column and pads it: the text takes the whole column */
.abv-design .geodir-post .card-body {
    flex: none !important;
    max-width: none !important;
    padding-inline: 0 2.25rem !important;
}

/* Narrower list (tablets, small windows, phones): photo with name and city beside it, the description under both
   at full width, as on Yelp */
@media (max-width: 1199px) {
    .abv-design .geodir-loop-container .geodir-post > .card > .card {
        grid-template-columns: 10.5rem minmax(0, 1fr);
        grid-template-rows: auto 1fr auto;
        grid-template-areas: "photo title" "photo place" "text text";
        column-gap: var(--abv-s4);
    }
    .abv-design .geodir-post .card-img-top {
        grid-area: photo;
    }
    .abv-design .geodir-post .card-body {
        display: contents !important;
    }
    .abv-design .geodir-post .card-body > * {
        grid-column: 1 / -1;
    }
    .abv-design .geodir-post .card-body > .geodir-post-title {
        grid-area: title;
        padding-inline-end: 2.25rem;
    }
    .abv-design .geodir-post .card-body > .geodir-post-content-container {
        grid-area: text;
        margin: var(--abv-s3) 0 0;
    }
    .abv-design .geodir-post .card-footer {
        grid-area: place;
    }
    .abv-design .geodir-post .card-body .geodir-field-post_content {
        -webkit-line-clamp: 3;
        margin-bottom: 0;
    }
}
.abv-design .geodir-post .geodir-entry-title {
    margin: var(--abv-s1) 0 var(--abv-s2);
    font-size: 1.1875rem;
    font-weight: 700;
    line-height: 1.35;
}
.abv-design .geodir-post .geodir-entry-title a {
    color: var(--abv-ink) !important;
    text-decoration: none;
}
.abv-design .geodir-post .card-footer > .d-flex {
    flex-direction: column;
    align-items: flex-start !important;
    gap: var(--abv-s1-5);
}
.abv-design .geodir-post .gd-fav-info-wrap {
    position: absolute;
    z-index: 2;
    top: var(--abv-s2);
    inset-inline-end: var(--abv-s3);
}
/* The whole card opens the listing: the title link stretches over it; photo, category badge and heart stay on top */
.abv-design .geodir-loop-container .geodir-post > .card > .card {
    position: relative;
}
.abv-design .geodir-post .geodir-entry-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}
.abv-design .geodir-post .card-img-top {
    position: relative;
    z-index: 2;
}
.abv-design .geodir-post .geodir-field-post_content {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
    color: var(--abv-muted);
    font-size: .875rem;
    line-height: 1.6;
    text-align: start !important;
}
.abv-design .geodir-post .geodir-post-content-container {
    position: relative;
    margin-bottom: var(--abv-s2);
}
.abv-design {
    --abv-more-bg: var(--abv-surface);
}
/* "… more" after a shortened description: GeoDirectory's own link, its text replaced by plain dots and an
   underlined "more". When the card cuts the text off, the script moves the link out of the clamped text to the
   end of the last visible line, over a soft fade. */
.abv-design .geodir-post .gd-read-more {
    font-size: 0;
    white-space: nowrap;
    text-decoration: none;
}
.abv-design .geodir-post .gd-read-more::before {
    content: "… ";
    color: var(--abv-muted);
    font-size: .875rem;
}
.abv-design .geodir-post .gd-read-more::after {
    content: var(--abv-more);
    color: #017f4c;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.abv-design .geodir-post .abv-cut > .gd-read-more {
    position: absolute;
    bottom: .25rem;
    inset-inline-end: 0;
    padding-inline-start: 2rem;
    line-height: 1.4rem;
    background: linear-gradient(to right, transparent, var(--abv-more-bg) 1.75rem);
}
[dir="rtl"] .abv-design .geodir-post .abv-cut > .gd-read-more {
    background: linear-gradient(to left, transparent, var(--abv-more-bg) 1.75rem);
}
.abv-design .geodir-post .geodir-field-city {
    color: var(--abv-muted);
    font-size: .875rem;
}
.abv-design .geodir-post .geodir-field-city .geodir_post_meta_title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
.abv-design .geodir-loop-paging-container {
    margin-top: var(--abv-s6);
}

/* Paging: plain numbers, the current page filled, a wide Next page button at the end */
.abv-design .aui-pagination .aui-nav-links {
    width: 100%;
}
.abv-design .aui-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--abv-s1);
    float: none !important;
}
.abv-design .aui-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 var(--abv-s2);
    border: 0 !important;
    border-radius: var(--abv-r-element) !important;
    background: transparent;
    color: var(--abv-ink);
    font-weight: 500;
    box-shadow: none !important;
    transition: background-color var(--abv-fast) var(--abv-ease);
}
.abv-design .aui-pagination a.page-link:hover {
    background: var(--abv-hover);
    color: var(--abv-ink);
}
.abv-design .aui-pagination .page-link.current {
    background: var(--abv-orange) !important;
    color: #fff !important;
}
.abv-design .aui-pagination .page-link.dots {
    color: var(--abv-muted);
}
.abv-design .aui-pagination .page-item:has(.next) {
    margin-inline-start: auto !important;
}
.abv-design .aui-pagination .page-link.next {
    gap: var(--abv-s2);
    min-width: 12rem;
    height: 2.75rem;
    padding: 0 var(--abv-s6);
    border-radius: var(--abv-r-full) !important;
    background: var(--abv-orange);
    color: #fff;
    font-weight: 600;
}
.abv-design .aui-pagination a.page-link.next {
    box-shadow: var(--abv-orange-rest) !important;
    transition: box-shadow var(--abv-medium) ease;
}
.abv-design .aui-pagination a.page-link.next:hover {
    background: var(--abv-orange);
    color: #fff;
    box-shadow: var(--abv-orange-hover) !important;
}
.abv-design .aui-pagination .page-link.next::before {
    content: var(--abv-next);
}
.abv-design .aui-pagination .page-link.next .nav-next-text {
    display: none;
}
.abv-design .geodir-more-filters .geodir_submit_search::after {
    content: var(--abv-show);
}
[dir="rtl"] .abv-design .aui-pagination .page-link :is(.fa-chevron-right, .fa-chevron-left) {
    transform: scaleX(-1);
}
.abv-design .gd-pagination-details {
    margin-top: var(--abv-s2);
    font-size: .8125rem;
}

/* Sort menu: the script puts it at the end of the Category and Filters line; without the script it stays above
   the results */
.abv-design .abv-sort {
    display: flex;
    justify-content: flex-end;
    margin: var(--abv-s3) 0 var(--abv-s1);
}
.abv-design .abv-sort.abv-sort-moved {
    display: none;
}
.abv-design .abv-sort-field {
    display: flex;
    align-items: center;
    gap: var(--abv-s1);
    color: var(--abv-muted);
    font-size: .875rem;
}
.abv-design .geodir-search .abv-sort-field {
    order: 6;
    margin-inline-start: auto;
}
.abv-design .abv-sort-field label {
    margin: 0;
    white-space: nowrap;
}
.abv-design .abv-sort-field select {
    field-sizing: content;
    appearance: none;
    height: 2.5rem;
    padding: 0 1.25rem 0 var(--abv-s1);
    border: 0;
    border-radius: var(--abv-r-inner);
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%231f2328' stroke-width='2' d='m3 6 5 5 5-5'/%3E%3C/svg%3E") no-repeat right .25rem center / .75rem;
    color: var(--abv-ink);
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
}
[dir="rtl"] .abv-design .abv-sort-field select {
    padding: 0 var(--abv-s1) 0 1.25rem;
    background-position: left .25rem center;
}
.abv-design .abv-sort-field select:hover {
    background-color: var(--abv-hover);
}

/* Map: its height is set before the map starts, so nothing moves */
.abv-design .geodiri-map-sticky .geodir-map-wrap {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    line-height: 0;
}
.abv-design .geodiri-map-sticky .geodir_map_container {
    min-height: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden;
    background: var(--abv-skeleton);
}

/* Map buttons. English: on the open side of the map, away from the list (Persian has them there already). Scoped to
   the map itself: full screen moves it out of the column. Top row: full screen button, then the "Search as I move
   the map" box; the zoom buttons below. All buttons as tall as that box. */
.abv-design #gd_map_canvas_archive {
    --abv-map-btn: 36px;
}
html:not([dir="rtl"]) .abv-design #gd_map_canvas_archive .leaflet-top.leaflet-left {
    right: 0;
}
html:not([dir="rtl"]) .abv-design #gd_map_canvas_archive .leaflet-top.leaflet-left .leaflet-control {
    float: right;
    margin-inline: 0 10px;
}
/* The "Search as I move the map" box shares that corner, beside the full screen button */
html:not([dir="rtl"]) .abv-design #gd_map_canvas_archive .geodir-map-control-o {
    left: auto;
    right: 54px;
    margin: 10px 0 0 !important;
}
[dir="rtl"] .abv-design #gd_map_canvas_archive .geodir-map-control-o {
    margin-left: 54px !important;
}
.abv-design #gd_map_canvas_archive .leaflet-control-zoom {
    margin-top: calc(18px + var(--abv-map-btn));
    border: 0;
    border-radius: var(--abv-r-inner);
    box-shadow: 0 .125rem .25rem rgb(0 0 0 / 7.5%);
}
.abv-design #gd_map_canvas_archive .leaflet-control-zoom a {
    width: var(--abv-map-btn);
    height: var(--abv-map-btn);
    line-height: var(--abv-map-btn);
    font-size: 22px;
    color: #454056;
}
html:not([dir="rtl"]) .abv-design .gd_map_canvas_archive_TopLeft {
    left: auto !important;
    right: 0;
}
/* Full screen button: a square in the corner, the icon in its middle. GeoDirectory's map script pins it 85px down
   with an inline !important margin, so it moves up with top. */
.abv-design .gd_map_canvas_archive_TopLeft {
    top: -75px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-inline: 10px !important;
    padding: 0 !important;
    color: #454056 !important;
    line-height: 1;
}
.abv-design .gd_map_canvas_archive_TopLeft .triggermap {
    display: flex;
}
.abv-design .gd_map_canvas_archive_TopLeft i {
    width: auto;
    font-size: 17px;
    line-height: 1;
    color: #454056;
}
.abv-design .gd_map_canvas_archive_TopLeft .fa-expand-arrows-alt::before {
    content: "\f065";
}
.abv-design .gd_map_canvas_archive_TopLeft .fa-compress-arrows-alt::before {
    content: "\f066";
}
/* The page font (the script copies it from the body into --abv-font) for the map search box (GeoDirectory's map
   script writes Roboto onto it) and for tooltips such as "Add to Favorites" (Bootstrap gives them the system font) */
.abv-design .geodir-map-search,
.abv-design .tooltip {
    font-family: var(--abv-font, inherit) !important;
}
/* "Search as I move the map": a little larger (the site's custom CSS sets 13px), with room after the checkbox
   (GeoDirectory's class for that gap has a typo) */
.abv-design .geodir-map-search-btn label {
    font-size: .9375rem !important;
    line-height: 1.25rem !important;
}
.abv-design #geodir_map_move {
    margin-inline-end: var(--abv-s2) !important;
    vertical-align: -2px;
}

/* Desktop: the list is a white sheet with a soft shadow over the map; the map fills the space from the header to
   the footer and to the edge of the window */
@media (min-width: 782px) {
    .abv-design {
        --abv-header: 76px;
    }
    .abv-design.admin-bar {
        --abv-header: 108px;
    }
    .abv-design #content {
        padding-inline: 0 !important;
        padding-bottom: 0 !important;
    }
    .abv-design #content > .container {
        max-width: none !important;
        padding-inline: 0 !important;
    }
    .abv-design #primary {
        padding: 0 !important;
    }
    .abv-design #content > .container > .bb-grid {
        margin-inline: 0;
    }
    .abv-design .geodir-map-sticky {
        gap: 0;
        margin: 0 !important;
    }
    .abv-design .geodir-map-sticky > .wp-block-column:first-child {
        position: relative;
        z-index: 2;
        padding: var(--abv-s6) var(--abv-s6) var(--abv-s8);
        background: var(--abv-surface);
        box-shadow: 6px 0 18px -6px rgb(0 0 0 / 18%);
    }
    [dir="rtl"] .abv-design .geodir-map-sticky > .wp-block-column:first-child {
        box-shadow: -6px 0 18px -6px rgb(0 0 0 / 18%);
    }
    .abv-design .geodiri-map-sticky {
        position: sticky;
        top: var(--abv-header);
        z-index: 1;
        flex: 1 1 0;
        max-height: none;
        margin: 0;
    }
    .abv-design .geodiri-map-sticky .main_map_wrapper,
    .abv-design .geodiri-map-sticky .geodir-map-canvas {
        height: calc(100vh - var(--abv-header)) !important;
    }

}

/* Map / List switch: phones only */
.abv-design .abv-view-switch {
    display: none;
    order: 2;
    margin-inline-start: var(--abv-s2);
}
.abv-design .abv-view-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--abv-s2);
    height: 3rem;
    padding: 0 var(--abv-s4);
    border: 0;
    border-radius: var(--abv-r-full);
    background: #eef0f2;
    color: var(--abv-ink);
    font-size: .9375rem;
    font-weight: 600;
}

@media (max-width: 781px) {
    /* Phones: the cards sit on the page colour, not on the white list column */
    .abv-design {
        --abv-more-bg: rgb(250 249 248);
    }
    .abv-design .abv-view-switch {
        display: block;
    }
    .abv-design .geodir-map-sticky {
        gap: 0;
    }
    .abv-design .geodir-map-sticky > .wp-block-column:first-child {
        flex-basis: 100%;
    }
    .abv-design .geodir-search .form-control {
        font-size: 1.0625rem;
    }
    .abv-design .geodir-search .geodir_submit_search {
        width: 3rem !important;
    }
    .abv-design .abv-view-btn {
        padding: 0 .875rem;
    }
    .abv-design .geodiri-map-sticky {
        display: none;
        position: static;
    }
    .abv-design .geodiri-map-sticky .geodir-map-wrap,
    .abv-design .geodiri-map-sticky .geodir_map_container {
        border-radius: var(--abv-r-container) !important;
    }
    .abv-design .aui-pagination .page-item:has(.next) {
        flex-basis: 100%;
        margin-top: var(--abv-s2);
    }
    .abv-design .aui-pagination .page-link.next {
        width: 100%;
    }
    .abv-design.abv-show-map .geodiri-map-sticky {
        display: block;
        margin-top: var(--abv-s3);
    }
    .abv-design.abv-show-map .geodir-loop-container {
        display: none;
    }
    /* Map view: the page numbers stay (a page changes the places on the map), on one short line above the map */
    .abv-design.abv-show-map .geodir-loop-paging-container {
        margin-top: var(--abv-s3);
    }
    .abv-design.abv-show-map .geodir-loop-paging-container .mb-3,
    .abv-design.abv-show-map .aui-pagination {
        margin: 0 !important;
        padding: 0 !important;
    }
    .abv-design.abv-show-map .aui-pagination .page-item:has(.next) {
        flex-basis: auto;
        margin-top: 0;
    }
    .abv-design.abv-show-map .aui-pagination .page-link.next {
        width: auto;
        min-width: 0;
        height: 2.25rem;
        padding: 0 var(--abv-s4);
    }
    .abv-design.abv-show-map .gd-pagination-details {
        display: none;
    }
    /* Category, Filters and Sort on one line: Category gives way, "Sort:" stays for screen readers only */
    .abv-design .geodir-search .gd-search-field-categories {
        flex: 1 1 0 !important;
        min-width: 0;
    }
    .abv-design .geodir-search .gd-search-field-categories .form-select {
        width: 100%;
        max-width: none;
    }
    .abv-design .geodir-search .abv-sort-field {
        margin-inline-start: var(--abv-s2);
    }
    .abv-design .abv-sort-field label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }
    .abv-design .geodiri-map-sticky .main_map_wrapper,
    .abv-design .geodiri-map-sticky .geodir-map-canvas {
        height: calc(100svh - 250px) !important;
    }
    .abv-design .geodir-loop-container .geodir-post > .card > .card {
        column-gap: var(--abv-s3);
    }
    .abv-design .geodir-post .geodir-entry-title {
        font-size: 1.0625rem;
    }

    /* Filters as a bottom sheet */
    .abv-design .geodir-more-filters {
        position: fixed;
        inset: auto 0 0;
        z-index: 100001;
        display: block !important;
        height: auto !important;
        max-height: 85svh;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 0 var(--abv-s4) env(safe-area-inset-bottom);
        border-radius: var(--abv-r-page) var(--abv-r-page) 0 0;
        background: var(--abv-surface);
        box-shadow: var(--abv-shadow-high);
        transform: translateY(105%);
        visibility: hidden;
        transition: transform var(--abv-medium) var(--abv-ease-exit), visibility 0s linear var(--abv-medium);
    }
    .abv-design.abv-sheet-open .geodir-more-filters {
        transform: none;
        visibility: visible;
        transition: transform var(--abv-medium) var(--abv-ease), visibility 0s;
    }
    .abv-design .abv-sheet-head {
        position: sticky;
        top: 0;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: var(--abv-s5) 0 var(--abv-s2);
        background: var(--abv-surface);
        font-size: 1.0625rem;
        font-weight: 700;
        color: var(--abv-ink);
    }
    .abv-design .abv-sheet-head::before {
        content: "";
        position: absolute;
        top: var(--abv-s2);
        left: 50%;
        width: 2.25rem;
        height: .25rem;
        margin-left: -1.125rem;
        border-radius: var(--abv-r-full);
        background: var(--abv-edge);
    }
    .abv-design .abv-sheet-close {
        display: inline-grid;
        place-items: center;
        width: 2.5rem;
        height: 2.5rem;
        padding: 0;
        border: 0;
        border-radius: var(--abv-r-full);
        background: #eef0f2;
        color: var(--abv-ink);
        font-size: 1rem;
        line-height: 1;
    }
    .abv-design .geodir-more-filters .customize_filter_inner {
        margin: 0 !important;
        padding: var(--abv-s2) 0 0 !important;
        border: 0;
        border-radius: 0 !important;
        box-shadow: none;
    }
    .abv-design .geodir-more-filters .customize_filter_inner {
        margin-inline: 0 !important;
    }
    .abv-design .geodir-more-filters .customize_filter_inner > [class*="gd-field-"] {
        flex-basis: 100%;
        padding-inline: 0;
    }
    .abv-design .geodir-more-filters .geodir-advance-search {
        position: sticky;
        bottom: 0;
        padding: var(--abv-s3) 0 var(--abv-s4);
        background: var(--abv-surface);
    }
    .abv-design .abv-sheet-backdrop {
        position: fixed;
        inset: 0;
        z-index: 100000;
        display: block;
        background: rgb(0 0 0 / 50%);
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--abv-medium) var(--abv-ease), visibility 0s linear var(--abv-medium);
    }
    .abv-design.abv-sheet-open .abv-sheet-backdrop {
        opacity: 1;
        visibility: visible;
        transition: opacity var(--abv-medium) var(--abv-ease), visibility 0s;
    }
    .abv-design.abv-sheet-open {
        overflow: hidden;
    }
}

/* Distance: a slider that stops on GeoDirectory's fixed steps */
.abv-design .gd-field-distance.abv-has-range > .form-check,
.abv-design .gd-field-distance.abv-has-range > [data-bs-toggle="collapse"] {
    display: none !important;
}
.abv-design .abv-range {
    --abv-thumb: 1.375rem;
    flex-basis: 100%;
    min-width: 14rem;
}
.abv-design .abv-range-value {
    display: block;
    margin-bottom: var(--abv-s1);
    color: var(--abv-ink);
    font-size: .9375rem;
    font-weight: 600;
}
.abv-design .abv-range-track {
    position: relative;
}
.abv-design .abv-range-track::before {
    --abv-cell: calc((100% - var(--abv-thumb)) / var(--abv-steps));
    content: "";
    position: absolute;
    top: calc(50% + .5rem);
    inset-inline: calc(var(--abv-thumb) / 2 - var(--abv-cell) / 2);
    height: 4px;
    background: radial-gradient(circle, var(--abv-edge) 1.5px, transparent 2px) 0 0 / calc(100% / (var(--abv-steps) + 1)) 100% repeat-x;
}
.abv-design .abv-range input {
    position: relative;
    display: block;
    width: 100%;
    height: 2rem;
    margin: 0;
    padding: 0;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent;
    appearance: none;
    cursor: pointer;
}
.abv-design .abv-range input::-webkit-slider-runnable-track {
    height: .375rem;
    border-radius: var(--abv-r-full);
    background: linear-gradient(to right, var(--abv-ink) var(--abv-fill), #e3e5e8 var(--abv-fill));
}
[dir="rtl"] .abv-design .abv-range input::-webkit-slider-runnable-track {
    background: linear-gradient(to left, var(--abv-ink) var(--abv-fill), #e3e5e8 var(--abv-fill));
}
.abv-design .abv-range input::-webkit-slider-thumb {
    width: var(--abv-thumb);
    height: var(--abv-thumb);
    margin-top: calc((.375rem - var(--abv-thumb)) / 2);
    border: 2px solid var(--abv-ink);
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--abv-shadow-low);
    appearance: none;
    transition: transform var(--abv-fast) var(--abv-ease);
}
.abv-design .abv-range input:active::-webkit-slider-thumb {
    transform: scale(1.12);
}
.abv-design .abv-range input::-moz-range-track {
    height: .375rem;
    border-radius: var(--abv-r-full);
    background: #e3e5e8;
}
.abv-design .abv-range input::-moz-range-progress {
    height: .375rem;
    border-radius: var(--abv-r-full);
    background: var(--abv-ink);
}
.abv-design .abv-range input::-moz-range-thumb {
    width: var(--abv-thumb);
    height: var(--abv-thumb);
    border: 2px solid var(--abv-ink);
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--abv-shadow-low);
}
.abv-design .abv-range input:focus-visible {
    outline-offset: 4px;
}
.abv-design .abv-range-ends {
    display: flex;
    justify-content: space-between;
    margin-top: var(--abv-s2);
    color: var(--abv-muted);
    font-size: .8125rem;
}
.abv-design .geodir-more-filters .gd-field-distance.abv-has-range {
    flex: 0 0 100%;
    max-width: 100%;
}
