/* Archive pages (places, a category, a location): what differs from the search page design (search-design.css,
   loaded first). Scoped to body.abv-archive. */

/* Photo header: across the whole width, its text and search bar above the result list (same width and inner
   space as the list column), the photo kept to the header's own box */
.abv-archive .abhavij-directory-hero {
    margin: 0 !important;
    padding: var(--abv-s6) 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.abv-archive .abhavij-directory-hero.has-photo {
    min-height: 28.5rem;
    overflow: visible;
}
/* A long subcategory list hangs over the results below: the header sits above the list column (level 2) */
.abv-archive .abhavij-directory-hero {
    position: relative;
    z-index: 3;
}
/* Room for the photo credit under the header's content */
.abv-archive .abhavij-directory-hero.has-photo:has(> .abhavij-directory-hero__credit) {
    padding-bottom: 2.5rem;
}
.abv-archive .abhavij-directory-hero__image,
.abv-archive .abhavij-directory-hero.has-photo::before {
    border-radius: inherit;
}
.abv-archive .abhavij-directory-hero.has-photo::before {
    background-image: linear-gradient(to bottom, rgb(0 0 0 / 0%) 30%, rgb(0 0 0 / 35%));
}
.abv-archive .abhavij-directory-hero > .wp-block-group__inner-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-inline: var(--abv-s6);
    box-sizing: border-box;
}
/* Search bar, title and text as wide as the list column below; the categories on one line across the header, more
   lines when they do not fit */
.abv-archive .abhavij-directory-hero > .wp-block-group__inner-container > * {
    max-width: calc(52% - 23px) !important;
    margin-inline: 0 !important;
}
.abv-archive .abhavij-directory-hero > .wp-block-group__inner-container > .wp-block-geodirectory-geodir-widget-categories {
    max-width: none !important;
}
.abv-archive .abhavij-directory-hero .geodir-page-title,
.abv-archive .abhavij-directory-hero h1 {
    margin: 0 0 var(--abv-s2);
    color: var(--abv-ink);
    font-size: clamp(1.75rem, 1.1rem + 1.6vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    text-wrap: balance;
}
.abv-archive .abhavij-directory-hero .geodir-category-description-container {
    max-width: 40rem;
    margin-bottom: var(--abv-s4) !important;
    color: var(--abv-muted);
    font-size: 1rem;
    line-height: 1.6;
}
/* White text only over a photo; a header without one keeps the page's colours */
.abv-archive .abhavij-directory-hero.has-photo .geodir-page-title,
.abv-archive .abhavij-directory-hero.has-photo h1 {
    color: #fff;
    text-shadow: 0 1px 2px rgb(0 0 0 / 30%);
}
.abv-archive .abhavij-directory-hero.has-photo .geodir-category-description-container {
    color: rgb(255 255 255 / 92%);
}
/* Search bar and categories at the top of the photo, the title and text at its bottom, the photo between them */
.abv-archive .abhavij-directory-hero > .wp-block-group__inner-container {
    display: flex;
    flex: 1;
    flex-direction: column;
}
.abv-archive .abhavij-directory-hero .wp-block-geodirectory-geodir-widget-page-title {
    margin-top: auto !important;
    padding-top: var(--abv-s8);
}
.abv-archive .abhavij-directory-hero > .wp-block-group__inner-container > :last-child,
.abv-archive .abhavij-directory-hero > .wp-block-group__inner-container > :last-child .geodir-category-description-container {
    margin-bottom: 0 !important;
}
.abv-archive .abhavij-directory-hero .geodir-category-description-container p:last-child {
    margin-bottom: 0;
}
.abv-archive .abhavij-directory-hero .geodir-search::after {
    display: none;
}
.abv-archive .abhavij-directory-hero .geodir-search-form-wrapper,
.abv-archive .abhavij-directory-hero .geodir-listing-search {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
}
.abv-archive .abhavij-directory-hero.has-photo > .abhavij-directory-hero__credit {
    position: absolute;
    bottom: var(--abv-s2);
    inset-inline-end: var(--abv-s3);
    z-index: 2;
    margin: 0;
    color: rgb(255 255 255 / 75%);
    font-size: .75rem;
}

/* Categories as chips: icon, name, number of places; a small arrow opens the subcategories */
.abv-archive .gd-categories-widget {
    margin: var(--abv-s4) 0 0 !important;
}
.abv-archive .gd-categories-widget .row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--abv-s2);
    margin: 0 !important;
}
.abv-archive .gd-categories-widget .gd-cptcat-parent {
    flex: none !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.abv-archive .gd-cptcat-parent > .card {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.abv-archive .gd-cptcat-parent .card-body {
    display: flex !important;
    align-items: center;
    gap: var(--abv-s1);
    height: 2.5rem;
    padding: 0 var(--abv-s2) 0 var(--abv-s1) !important;
    border: 0 !important;
    border-radius: var(--abv-r-full) !important;
    background: rgb(255 255 255 / 94%) !important;
    color: var(--abv-ink) !important;
    box-shadow: var(--abv-shadow-low) !important;
    text-align: start;
    transition: background-color var(--abv-fast) var(--abv-ease);
}
[dir="rtl"] .abv-archive .gd-cptcat-parent .card-body {
    padding: 0 var(--abv-s1) 0 var(--abv-s2) !important;
}
.abv-archive .gd-cptcat-parent .card-body:hover,
.abv-archive .gd-cptcat-parent .card-body:focus-within {
    background: #fff !important;
}
.abv-archive .gd-cptcat-parent .gd-cptcat-cat-right {
    display: flex;
    align-items: center;
    overflow: visible;
    text-transform: none !important;
}
.abv-archive .gd-cptcat-parent .gd-cptcat-cat-right > a,
.abv-archive .gd-cptcat-parent .gd-cptcat-cat-right > a:hover,
.abv-archive .gd-cptcat-parent .gd-cptcat-cat-right > a:focus {
    text-decoration: none !important;
}
.abv-archive .gd-cptcat-parent .gd-cptcat-cat-right > a {
    display: inline-flex;
    align-items: center;
    margin: 0;
    /* Vazirmatn draws Latin letters high in their line: the name moves down a little, the icon stays */
    padding-top: 2px;
    color: var(--abv-ink) !important;
    font-size: .875rem;
    font-weight: 600;
}
.abv-archive .gd-categories-widget .iconbox .gd-cptcat-icon {
    display: grid !important;
    place-items: center;
    width: 100%;
    height: 100% !important;
    line-height: 1;
}
.abv-archive .gd-categories-widget .iconbox i {
    line-height: 1;
}
.abv-archive .gd-categories-widget .iconbox {
    display: inline-grid !important;
    place-items: center;
    width: 1.875rem !important;
    height: 1.875rem !important;
    margin: 0 !important;
    margin-inline-end: var(--abv-s2) !important;
    /* Back to the middle of the chip after the name's 2px (measured) */
    margin-top: -3px !important;
    background: #f3f4f6 !important;
    font-size: .8125rem;
}
.abv-archive .gd-categories-widget .gd-cptcat-count {
    /* On the name's line (the name sits 2px lower in its box, see above) */
    position: relative;
    top: 1px;
    margin: 0 !important;
    margin-inline-start: var(--abv-s1-5) !important;
    padding: 0 !important;
    background: transparent !important;
    color: var(--abv-muted) !important;
    font-size: .8125rem;
    font-weight: 500;
}
/* static: the subcategory menu hangs from the whole chip, not from its arrow */
.abv-archive .gd-cptcat-parent .gd-cptcat-li-sub-container {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin-inline-start: var(--abv-s1);
}
.abv-archive .gd-cptcat-li-sub-container > .btn-link {
    position: relative;
    z-index: 2;
    display: grid !important;
    place-items: center;
    width: 1.75rem !important;
    height: 1.75rem;
    background: none !important;
    box-shadow: none !important;
    color: var(--abv-muted) !important;
    font-size: .9375rem;
    text-decoration: none !important;
}
.abv-archive .gd-cptcat-li-sub-container > .btn-link:hover,
.abv-archive .gd-cptcat-li-sub-container > .btn-link[aria-expanded="true"] {
    color: var(--abv-ink) !important;
}
.abv-archive .gd-cptcat-li-sub-container > .btn-link i {
    transition: transform var(--abv-fast) var(--abv-ease);
}
.abv-archive .gd-cptcat-li-sub-container > .btn-link[aria-expanded="true"] i {
    transform: rotate(180deg);
}
/* The chip with an open list sits above the other chips (GeoDirectory puts each chip's arrow box at level 100) */
.abv-archive .gd-categories-widget .gd-cptcat-parent:has(.dropdown-menu.show) {
    position: relative;
    z-index: 101;
}
/* Subcategories: a white menu of their own, under the chip and lined up with its start, a small gap between them. One
   surface per row and one shade on hover: the theme's border and link background on dropdown lists are left out, and
   AyeCode UI's blue for a pressed row. */
.abv-archive .gd-categories-widget .gd-cptcat-sub.dropdown-menu {
    top: calc(100% + var(--abv-s1-5)) !important;
    right: auto !important;
    bottom: auto !important;
    left: 0 !important;
    width: max-content !important;
    min-width: max(100%, 13rem);
    max-width: 20rem;
    margin: 0 !important;
    padding: var(--abv-s1-5) !important;
    border: 0;
    border-radius: var(--abv-r-container);
    background: var(--abv-surface);
    box-shadow: var(--abv-shadow-high);
    transform: none !important;
}
[dir="rtl"] .abv-archive .gd-categories-widget .gd-cptcat-sub.dropdown-menu {
    right: 0 !important;
    left: auto !important;
}
/* Over the gap, so the mouse goes from the chip to the menu without closing it */
.abv-archive .gd-categories-widget .gd-cptcat-sub.dropdown-menu::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    width: auto;
    height: calc(var(--abv-s1-5) + 2px);
    /* AyeCode UI draws its dropdown arrow here (a rotated white square): left out */
    top: auto;
    border: 0;
    background: none;
    transform: none;
}
.abv-archive .gd-categories-widget .gd-cptcat-sub .dropdown-item {
    padding: 0 !important;
    border: 0 !important;
    border-radius: var(--abv-r-inner);
    background: transparent;
    transition: background-color var(--abv-fast) var(--abv-ease);
}
.abv-archive .gd-categories-widget .gd-cptcat-sub .dropdown-item:is(:hover, :focus-within) {
    background: var(--abv-hover);
}
.abv-archive .gd-categories-widget .gd-cptcat-sub .dropdown-item:active {
    background: rgb(0 0 0 / 9%);
}
.abv-archive .gd-categories-widget .gd-cptcat-sub .gd-cptcat-cat-right {
    display: flex;
    align-items: center;
    overflow: visible;
    text-transform: none !important;
}
.abv-archive .gd-categories-widget .gd-cptcat-sub .gd-cptcat-cat-right > a {
    display: flex !important;
    flex: 1 1 auto;
    align-items: center;
    margin: 0 !important;
    padding: var(--abv-s2) var(--abv-s3) var(--abv-s2) var(--abv-s2) !important;
    border-radius: inherit;
    background: none !important;
    color: var(--abv-ink) !important;
    font-size: .9375rem;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
}
[dir="rtl"] .abv-archive .gd-categories-widget .gd-cptcat-sub .gd-cptcat-cat-right > a {
    padding: var(--abv-s2) var(--abv-s2) var(--abv-s2) var(--abv-s3) !important;
}
/* The number of places, where the chips show them: at the row's end, on the name's line */
.abv-archive .gd-categories-widget .gd-cptcat-sub .gd-cptcat-count {
    top: 0;
    flex: none;
    margin: 0 !important;
    margin-inline-end: var(--abv-s3) !important;
}
.abv-archive .gd-categories-widget .gd-cptcat-sub .gd-cptcat-cat-right > a:focus-visible {
    outline: var(--abv-focus);
    outline-offset: -2px;
}

/* Above the results: the number of places and the sort menu on one line (GeoDirectory's sort and view buttons
   are left out: the cards come in one list) */
.abv-archive .geodir-map-sticky .wp-block-group:has(.geodir-loop-actions-container) {
    display: none;
}
.abv-archive .abv-sort {
    justify-content: space-between;
    align-items: center;
    gap: var(--abv-s3);
    margin: 0 0 var(--abv-s2);
}
.abv-archive .abv-count {
    margin: 0;
    color: var(--abv-ink);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
}

/* Under the results, as on Yelp's and Tripadvisor's city pages: the category's "About" card, the recent reviews,
   the bottom text as a call to action, the location text; each a section of the same width */
.abv-archive .entry-content {
    padding-bottom: 3rem;
}
.abv-archive .abv-band,
.abv-archive .entry-content > .geodir-cpt-meta-container {
    box-sizing: border-box;
    width: min(100% - 2 * var(--abv-s6), 72rem);
    margin: 3rem auto 0 !important;
}
.abv-archive .abv-band-title {
    margin: 0 0 var(--abv-s4);
    color: var(--abv-ink);
    font-size: 1.375rem;
    font-weight: 800;
    line-height: 1.3;
}

/* About card and the location text: a white card, the text in a readable width */
.abv-archive .abv-about,
.abv-archive .entry-content > .geodir-cpt-meta-container {
    padding: var(--abv-s8);
    border: 1px solid var(--abv-line);
    border-radius: var(--abv-r-container);
    background: var(--abv-surface);
}
.abv-archive .abv-about .geodir-category-description-container,
.abv-archive .entry-content > .geodir-cpt-meta-container {
    color: var(--abv-ink);
    font-size: 1rem;
    line-height: 1.75;
}
.abv-archive .abv-about .geodir-category-description-container > *,
.abv-archive .entry-content > .geodir-cpt-meta-container > * {
    max-width: 46rem;
}
.abv-archive .abv-band .mb-3:last-child,
.abv-archive .abv-band p:last-child {
    margin-bottom: 0 !important;
}
.abv-archive .abv-band h3,
.abv-archive .entry-content > .geodir-cpt-meta-container h3 {
    margin: var(--abv-s6) 0 var(--abv-s2);
    font-size: 1.125rem;
    font-weight: 700;
}
.abv-archive .abv-about a,
.abv-archive .entry-content > .geodir-cpt-meta-container a {
    color: #017f4c;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Recent reviews */
.abv-archive .abv-review-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
    gap: var(--abv-s4);
}
.abv-archive .abv-review {
    display: flex;
    flex-direction: column;
    gap: var(--abv-s2);
    padding: var(--abv-s5);
    border: 1px solid var(--abv-line);
    border-radius: var(--abv-r-container);
    background: var(--abv-surface);
    transition: box-shadow var(--abv-medium) var(--abv-ease);
}
@media (hover: hover) {
    .abv-archive .abv-review:hover {
        box-shadow: var(--abv-shadow-med);
    }
}
.abv-archive .abv-review-head {
    display: flex;
    align-items: center;
    gap: var(--abv-s3);
    margin-bottom: var(--abv-s1);
}
.abv-archive .abv-review-avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--abv-r-full);
    color: var(--abv-ink);
    font-weight: 700;
}
.abv-archive .abv-review-who {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}
.abv-archive .abv-review-who strong {
    overflow: hidden;
    color: var(--abv-ink);
    font-size: .9375rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.abv-archive .abv-review-who time {
    color: var(--abv-muted);
    font-size: .8125rem;
}
.abv-archive .abv-review-place {
    color: var(--abv-ink) !important;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
}
.abv-archive .abv-review-place:hover {
    text-decoration: underline;
}
.abv-archive .abv-review-stars {
    display: flex;
    gap: 2px;
    color: var(--abv-orange);
    font-size: .875rem;
}
.abv-archive .abv-review-text {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    color: #3b3f45;
    font-size: .9375rem;
    line-height: 1.6;
    text-align: start;
}
.abv-archive .abv-review-more {
    margin-top: auto;
    padding-top: var(--abv-s1);
    color: #017f4c !important;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* The bottom text as a call to action: a warm panel, its links stand out */
.abv-archive .abv-callout {
    padding: var(--abv-s6) var(--abv-s8);
    border-radius: var(--abv-r-container);
    background: #fff4eb;
    color: var(--abv-ink);
    font-size: 1.0625rem;
    line-height: 1.6;
}
.abv-archive .abv-callout a {
    color: #b93b0b;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.abv-archive .abv-callout a:hover {
    color: #8f2d08;
}

@media (min-width: 782px) {
    /* The archive design gives its columns widths in the block (66% and 33%): the search page's split instead */
    .abv-archive .geodir-map-sticky > .wp-block-column:first-child {
        flex-basis: 52% !important;
    }
    .abv-archive .geodir-map-sticky > .geodiri-map-sticky {
        flex: 1 1 0 !important;
    }
}

/* Phones: the header as a rounded card, the Map / List switch floats at the bottom of the screen */
@media (max-width: 781px) {
    .abv-archive .abhavij-directory-hero {
        padding: var(--abv-s4) 0;
        border-radius: var(--abv-r-container);
    }
    .abv-archive .abhavij-directory-hero.has-photo {
        min-height: 24rem;
    }
    .abv-archive .abhavij-directory-hero > .wp-block-group__inner-container {
        width: 100%;
        padding-inline: var(--abv-s4);
    }
    .abv-archive .abhavij-directory-hero > .wp-block-group__inner-container > * {
        max-width: none !important;
    }
    .abv-archive .abhavij-directory-hero .geodir-category-description-container {
        font-size: .9375rem;
    }
    .abv-archive .geodir-map-sticky {
        margin-top: var(--abv-s4) !important;
        /* The Map / List switch scrolls here: room for the site header that stays at the top */
        scroll-margin-top: calc(var(--abv-s4) + 76px);
    }
    .abv-archive .abv-sort {
        padding-inline: var(--abv-s3);
    }
    .abv-archive .abv-band,
    .abv-archive .entry-content > .geodir-cpt-meta-container {
        width: 100%;
        margin-top: var(--abv-s8) !important;
    }
    .abv-archive .abv-about,
    .abv-archive .entry-content > .geodir-cpt-meta-container {
        padding: var(--abv-s5);
    }
    .abv-archive .abv-callout {
        padding: var(--abv-s5);
    }
    /* Reviews as a row to swipe through */
    .abv-archive .abv-review-list {
        grid-auto-flow: column;
        grid-auto-columns: 85%;
        grid-template-columns: none;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        padding-bottom: var(--abv-s2);
        scrollbar-width: thin;
    }
    .abv-archive .abv-review {
        scroll-snap-align: start;
    }
    .abv-archive .abv-view-float {
        position: fixed;
        bottom: calc(var(--abv-s4) + env(safe-area-inset-bottom));
        left: 50%;
        z-index: 1000;
        margin: 0;
        transform: translateX(-50%);
    }
    .abv-archive .abv-view-float {
        transition: opacity var(--abv-fast) var(--abv-ease), visibility 0s;
    }
    .abv-archive .abv-view-float.abv-view-away {
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--abv-fast) var(--abv-ease-exit), visibility 0s linear var(--abv-fast);
    }
    .abv-archive .abv-view-float .abv-view-btn {
        height: 2.75rem;
        padding: 0 var(--abv-s5);
        background: var(--abv-ink);
        color: #fff;
        box-shadow: var(--abv-shadow-high);
    }
}

/* Location page (Local Places: includes/location-design.php): the archive pages' header, cards and bands, arranged
   as the place's hub. Scoped to body.abv-location. */

/* Header: no list column below it, so the search bar, title and text take a readable width of their own */
.abv-location .abhavij-directory-hero > .wp-block-group__inner-container > * {
    max-width: 46rem !important;
}
.abv-location .abhavij-directory-hero > .wp-block-group__inner-container > .wp-block-geodirectory-geodir-widget-categories {
    max-width: none !important;
}
/* The way up (Worldwide, the country, the region) above the name */
.abv-location .abv-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--abv-s2);
    margin: 0 0 var(--abv-s2);
    color: var(--abv-muted);
    font-size: .875rem;
    font-weight: 600;
}
.abv-location .abv-crumbs a {
    color: inherit;
    text-decoration: none;
}
.abv-location .abv-crumbs a:hover {
    text-decoration: underline;
}
.abv-location .abhavij-directory-hero.has-photo .abv-crumbs {
    color: rgb(255 255 255 / 85%);
    text-shadow: 0 1px 2px rgb(0 0 0 / 30%);
}
.abv-location .geodir-lm-location-description p:last-child,
.abv-location .geodir-category-description-container > p:last-child {
    margin-bottom: 0 !important;
}

/* A section's title and its link on one line */
.abv-location .abv-band-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--abv-s3) var(--abv-s4);
    margin: 0 0 var(--abv-s4);
}
.abv-location .abv-band-head .abv-band-title {
    margin: 0;
}

/* Pills: See all, the cities and the countries. Vazirmatn draws Latin letters about .15em above the middle of their
   line (Persian letters sit in it), so English labels move down by that much. */
.abv-location {
    --abv-drop: .15em;
}
.abv-location:lang(fa) {
    --abv-drop: 0em;
}
.abv-location .abv-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--abv-s2);
    height: 2.5rem;
    padding: calc(2 * var(--abv-drop)) var(--abv-s4) 0;
    border: 1px solid var(--abv-edge);
    border-radius: var(--abv-r-full);
    background: var(--abv-surface);
    color: var(--abv-ink) !important;
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color var(--abv-fast) var(--abv-ease), border-color var(--abv-fast) var(--abv-ease);
}
.abv-location .abv-pill:hover {
    border-color: var(--abv-ink);
    background: #f7f7f8;
}
.abv-location .abv-pill:focus-visible {
    outline: var(--abv-focus);
    outline-offset: 3px;
}
.abv-location .abv-pill-count {
    color: var(--abv-muted);
    font-weight: 400;
}
.abv-location .abv-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--abv-s2);
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Recently added: the archive pages' cards, two side by side on wide screens */
@media (min-width: 992px) {
    .abv-location .abv-location-places .geodir-loop-container > .row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: var(--abv-s6);
    }
}
.abv-location .abv-location-places .geodir-loop-container {
    margin: 0 !important;
}
/* GeoDirectory's list gives each card half its row (row-cols-sm-2): the cards fill their cell or the row here */
.abv-location .abv-location-places .geodir-loop-container .geodir-post {
    width: 100%;
}
/* The cards are the search page's list cards: the owner's picture of a claimed place, which GeoDirectory shows only on
   its grid cards (hidden in its list view), stays out */
.abv-location .abv-location-places .gv-hide-0 {
    display: none !important;
}

/* Map: rounded, the archive pages' buttons (full screen square on top, zoom under it, all 36px) */
.abv-location .abv-location-map .geodir-map-wrap,
.abv-location .abv-location-map .main_map_wrapper {
    overflow: hidden;
    margin: 0 !important;
    border: 0 !important;
    border-radius: var(--abv-r-container);
    box-shadow: none !important;
}
.abv-location #gd_map_canvas_directory .leaflet-control-zoom {
    margin-top: calc(18px + 36px);
    border: 0;
    border-radius: var(--abv-r-inner);
    box-shadow: 0 .125rem .25rem rgb(0 0 0 / 7.5%);
}
.abv-location #gd_map_canvas_directory .leaflet-control-zoom a {
    width: 36px;
    height: 36px;
    line-height: 36px;
    font-size: 22px;
    color: #454056;
}
.abv-location .gd_map_canvas_directory_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-location .gd_map_canvas_directory_TopLeft .triggermap {
    display: flex;
}
.abv-location .gd_map_canvas_directory_TopLeft i {
    width: auto;
    font-size: 17px;
    line-height: 1;
    color: #454056;
}
.abv-location .gd_map_canvas_directory_TopLeft .fa-expand-arrows-alt::before {
    content: "\f065";
}
.abv-location .gd_map_canvas_directory_TopLeft .fa-compress-arrows-alt::before {
    content: "\f066";
}

.abv-location .abv-callout p {
    margin: 0;
}

@media (max-width: 781px) {
    .abv-location .abv-band-head {
        margin-bottom: var(--abv-s3);
    }
    /* Phones: the category chips in one row to swipe, across the header, so the header stays short. A scrolling row
       would cut off the subcategory menus: their arrows are left out (the category page lists its subcategories). */
    .abv-location .abhavij-directory-hero .gd-categories-widget .row {
        flex-wrap: nowrap;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        margin-inline: calc(-1 * var(--abv-s4)) !important;
        padding: 2px var(--abv-s4) var(--abv-s2) !important;
        scroll-padding-inline: var(--abv-s4);
        scrollbar-width: none;
    }
    .abv-location .abhavij-directory-hero .gd-categories-widget .row::-webkit-scrollbar {
        display: none;
    }
    .abv-location .abhavij-directory-hero .gd-cptcat-li-sub-container {
        display: none !important;
    }
}

/* Arrows on a chip row that swipes (assets/chip-arrows.js): a small round white button at each end, while more chips
   are hidden that way, over a short fade so the cut chip reads as "more" */
.abv-archive .abv-chip-box {
    position: relative;
}
.abv-archive .abv-chip-arrow {
    position: absolute;
    top: calc(50% - var(--abv-s1));
    /* Above the chips: GeoDirectory lifts a chip to level 100, ours with an open menu to 101 */
    z-index: 102;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid var(--abv-line);
    border-radius: var(--abv-r-full);
    background: var(--abv-surface);
    box-shadow: var(--abv-shadow-med);
    color: var(--abv-ink);
    font-size: .75rem;
    transform: translateY(-50%);
    cursor: pointer;
}
/* The script picks each arrow's direction: the site's mirroring of chevrons on Persian pages is left out */
.abv-archive .abv-chip-arrow i {
    transform: none !important;
}
.abv-archive .abv-chip-arrow[hidden] {
    display: none;
}
.abv-archive .abv-chip-arrow-prev {
    inset-inline-start: calc(-1 * var(--abv-s2));
}
.abv-archive .abv-chip-arrow-next {
    inset-inline-end: calc(-1 * var(--abv-s2));
}
/* The fade: from the page's ground at the arrow to clear over the chips, so the cut chip melts away behind the arrow */
.abv-archive .abv-chip-arrow::before {
    content: "";
    position: absolute;
    top: -.5rem;
    bottom: -.5rem;
    z-index: -1;
    width: 4.5rem;
    pointer-events: none;
}
.abv-archive .abv-chip-arrow-next::before {
    inset-inline-end: -1rem;
    background: linear-gradient(to left, var(--abv-chip-fade, #faf9f8) 45%, transparent);
}
.abv-archive .abv-chip-arrow-prev::before {
    inset-inline-start: -1rem;
    background: linear-gradient(to right, var(--abv-chip-fade, #faf9f8) 45%, transparent);
}
[dir="rtl"] .abv-archive .abv-chip-arrow-next::before {
    background: linear-gradient(to right, var(--abv-chip-fade, #faf9f8) 45%, transparent);
}
[dir="rtl"] .abv-archive .abv-chip-arrow-prev::before {
    background: linear-gradient(to left, var(--abv-chip-fade, #faf9f8) 45%, transparent);
}
/* Chips on a photo header: no fade in the page colour over the photo */
.abv-archive .abhavij-directory-hero.has-photo .abv-chip-arrow::before {
    display: none;
}
.abv-archive .abv-chip-arrow:focus-visible {
    outline: var(--abv-focus);
    outline-offset: 2px;
}

