/* A listing's page, scoped to body.abv-details. Same values as the search and archive pages (search-design.css):
   spacing, radii, shadows and motion after the Astryx neutral scale (MIT), Abhavij's colours. */
.abv-details {
    --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-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-fast: 125ms;
    --abv-medium: 300ms;
    --abv-ease: cubic-bezier(.24, 1, .4, 1);
    --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-green: #017f4c;
    --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-focus: 2px solid var(--abv-ink);
    --abv-header: 76px;
}
.abv-details.admin-bar {
    --abv-header: 108px;
}
[dir="rtl"] .abv-details {
    --abv-gradient: linear-gradient(to right, #ff6900, #ffab00);
}
.abv-details .abv-biz-head :is(a, button):focus-visible,
.abv-details .abv-biz-card a:focus-visible {
    outline: var(--abv-focus);
    outline-offset: 3px;
}

/* Links to a section or a review stop below the fixed site header */
.abv-details .geodir-tabs [id] {
    scroll-margin-top: calc(var(--abv-header) + var(--abv-s4));
}

/* Layout: the name, rating, actions and photos across the page; the sections beside a contact card that stays in
   view. The theme's article and the plugin's header open up (display: contents) so they share one grid. */
.abv-details article.type-gd_place {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}
.abv-details article.type-gd_place > .entry-content,
.abv-details .abv-biz-head {
    display: contents;
}
.abv-details .abv-crumbs {
    grid-row: 1;
}
.abv-details article.type-gd_place > .entry-header {
    grid-row: 2;
    margin: 0;
}
@media (min-width: 992px) {
    .abv-details article.type-gd_place {
        grid-template-columns: minmax(0, 1fr) 21rem;
        column-gap: 3rem;
    }
    .abv-details .abv-crumbs,
    .abv-details article.type-gd_place > .entry-header,
    .abv-details .abv-biz-meta,
    .abv-details .abv-biz-actions,
    .abv-details .abv-biz-photos {
        grid-column: 1 / -1;
    }
    .abv-details .abv-biz-card {
        position: sticky;
        top: calc(var(--abv-header) + var(--abv-s6));
        grid-column: 2;
        grid-row: span 40;
        display: flex;
        flex-direction: column;
        gap: var(--abv-s4);
        margin: 0 0 var(--abv-s8);
    }
}
/* Narrower screens: the contact part right after the photos, the buttons part after the reviews */
@media (max-width: 991.98px) {
    .abv-details .abv-biz-card {
        display: contents;
    }
    .abv-details .abv-card-info {
        margin: 0 0 var(--abv-s6);
    }
    .abv-details .abv-card-more {
        order: 1;
        margin: 0 0 var(--abv-s6);
    }
    .abv-details .wp-block-geodirectory-geodir-widget-single-next-prev {
        order: 2;
    }
}

/* Breadcrumb and name */
.abv-details .abv-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--abv-s2);
    margin: 0 0 var(--abv-s3);
    color: var(--abv-muted);
    font-size: .875rem;
}
.abv-details .abv-crumbs a {
    color: var(--abv-muted);
    text-decoration: none;
}
.abv-details .abv-crumbs a:hover {
    color: var(--abv-ink);
    text-decoration: underline;
}
.abv-details article.type-gd_place > .entry-header .entry-title {
    margin: 0;
    color: var(--abv-ink);
    font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    text-wrap: balance;
}

/* The logo (when the field Logo is in the listing page's tabs): on the photos' start side, near the bottom, a light
   see-through rounded square, the whole logo inside it */
.abv-details .abv-biz-photos {
    position: relative;
}
.abv-details .abv-biz-logo {
    position: absolute;
    bottom: var(--abv-s8);
    inset-inline-start: var(--abv-s8);
    z-index: 2;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 6.25rem;
    height: 6.25rem;
    padding: var(--abv-s1);
    overflow: hidden;
    border-radius: var(--abv-r-container);
    background: rgb(255 255 255 / 55%);
    box-shadow: var(--abv-shadow-low);
    pointer-events: none;
}
.abv-details .abv-biz-logo img {
    width: 100%;
    height: 100%;
    /* The frame's corners, less its padding, so both curves run side by side */
    border-radius: calc(var(--abv-r-container) - var(--abv-s1));
    object-fit: contain;
}
@media (max-width: 781px) {
    .abv-details .abv-biz-logo {
        bottom: var(--abv-s5);
        inset-inline-start: var(--abv-s5);
        width: 4.75rem;
        height: 4.75rem;
    }
}

/* Rating, categories, city, badges */
.abv-details .abv-biz-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--abv-s2) var(--abv-s4);
    margin: 0 0 var(--abv-s8);
    color: var(--abv-muted);
    font-size: .9375rem;
}
.abv-details .abv-biz-rating {
    display: inline-flex;
    align-items: center;
    gap: var(--abv-s2);
    color: var(--abv-muted);
    text-decoration: none;
}
.abv-details .abv-biz-rating:hover span:last-child {
    text-decoration: underline;
}
.abv-details .abv-biz-stars {
    display: inline-flex;
    gap: 2px;
    color: #ff6900;
    font-size: 1.0625rem;
}
/* Icon glyphs sit lower than the letters next to them: lift them to the text's middle */
.abv-details .abv-biz-stars i {
    translate: 0 -.06em;
}
.abv-details .abv-biz-city i {
    translate: 0 -.1em;
}
.abv-details .abv-biz-cats a {
    color: var(--abv-ink);
    font-weight: 600;
    text-decoration: none;
}
.abv-details .abv-biz-cats a:hover {
    text-decoration: underline;
}
.abv-details .abv-biz-city {
    display: inline-flex;
    align-items: center;
    gap: var(--abv-s1-5);
}
.abv-details .abv-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--abv-s1-5);
    padding: var(--abv-s1) var(--abv-s3);
    border-radius: var(--abv-r-full);
    background: #f1f3f5;
    color: var(--abv-ink);
    font-size: .8125rem;
    font-weight: 600;
}
.abv-details .abv-badge-fa {
    background: #e7f5ee;
    color: var(--abv-green);
}
.abv-details .abv-badge-claimed {
    background: #cdfeff;
    color: #0069c4;
}
.abv-details .abv-badge-closed {
    background: #fdecea;
    color: #b42318;
}

/* Actions: review first, then call, website, directions, save, share */
.abv-details .abv-biz-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--abv-s2);
    margin: var(--abv-s4) 0 var(--abv-s5);
}
.abv-details .abv-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--abv-s2);
    height: 2.75rem;
    padding: 0 var(--abv-s4);
    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;
    cursor: pointer;
    transition: background-color var(--abv-fast) var(--abv-ease), border-color var(--abv-fast) var(--abv-ease);
}
.abv-details .abv-btn:hover {
    border-color: var(--abv-ink);
    background: #f7f7f8;
}
.abv-details .abv-btn i {
    font-size: 1rem;
}
.abv-details .abv-btn-primary {
    border: 0;
    background: var(--abv-gradient);
    color: #fff !important;
    box-shadow: var(--abv-orange-rest);
    transition: box-shadow var(--abv-medium) ease;
}
.abv-details .abv-btn-primary:hover {
    background: var(--abv-gradient);
    box-shadow: var(--abv-orange-hover);
}
/* Save: GeoDirectory's own favourite control fills the button */
.abv-details .abv-btn-save {
    padding: 0;
}
.abv-details .abv-btn-save .gd-fav-info-wrap,
.abv-details .abv-btn-save .gd-list-favorite,
.abv-details .abv-btn-save .geodir-addtofav {
    display: flex;
    height: 100%;
    margin: 0 !important;
    font-family: inherit;
    font-size: inherit !important;
}
.abv-details .abv-btn-save .geodir-act-fav {
    display: inline-flex;
    align-items: center;
    gap: var(--abv-s2);
    height: 100%;
    padding: 0 var(--abv-s4);
    color: var(--abv-ink) !important;
    font-weight: 600;
}
.abv-details .abv-btn-save .geodir-act-fav i {
    font-size: 1rem;
}
.abv-details .abv-btn-save .geodir-addtofav-icon i {
    --fa-style: 400;
    font-weight: 400;
}

/* Photos: one wide photo, or one large and two small; the space is kept before they load */
.abv-details .abv-biz-photos {
    position: relative;
    display: grid;
    gap: 4px;
    height: clamp(15rem, 32vw, 26rem);
    margin: 0 0 var(--abv-s4);
    overflow: hidden;
    border-radius: var(--abv-r-container);
    background: var(--abv-skeleton);
}
.abv-details .abv-photos-2,
.abv-details .abv-photos-3 {
    grid-template-columns: 2fr 1fr;
}
.abv-details .abv-photos-3 {
    grid-template-rows: 1fr 1fr;
}
.abv-details .abv-photos-3 .abv-photo-1 {
    grid-row: 1 / 3;
}
.abv-details .abv-photo {
    display: block;
    min-height: 0;
    overflow: hidden;
    background: var(--abv-skeleton);
}
.abv-details .abv-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--abv-medium) var(--abv-ease);
}
@media (hover: hover) {
    .abv-details a.abv-photo:hover img {
        transform: scale(1.03);
    }
}
.abv-details .abv-photo-all {
    position: absolute;
    bottom: var(--abv-s3);
    inset-inline-end: var(--abv-s3);
    display: inline-flex;
    align-items: center;
    gap: var(--abv-s2);
    padding: var(--abv-s2) var(--abv-s4);
    border-radius: var(--abv-r-full);
    background: rgb(255 255 255 / 94%);
    color: var(--abv-ink) !important;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: var(--abv-shadow-low);
}

/* Contact card in two parts: contact rows, then the owner, claim and report buttons */
.abv-details .abv-card-info,
.abv-details .abv-card-more {
    padding: var(--abv-s1) var(--abv-s5);
    border: 1px solid var(--abv-line);
    border-radius: var(--abv-r-container);
    background: var(--abv-surface);
    box-shadow: var(--abv-shadow-low);
}
.abv-details .abv-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--abv-s3);
    padding: var(--abv-s4) 0;
    border-bottom: 1px solid var(--abv-line);
    color: var(--abv-ink) !important;
    font-size: .9375rem;
    line-height: 1.5;
    text-decoration: none !important;
    overflow-wrap: anywhere;
}
.abv-details a.abv-card-row:first-child span {
    color: var(--abv-green);
    font-weight: 600;
}
.abv-details .abv-card-row strong {
    display: block;
    color: var(--abv-green);
    font-weight: 600;
}
.abv-details .abv-card-row i {
    flex: none;
    color: var(--abv-ink);
    font-size: 1.125rem;
}
.abv-details a.abv-card-row:hover > span {
    text-decoration: underline;
}
.abv-details .abv-card-more {
    display: flex;
    flex-direction: column;
    gap: var(--abv-s2);
    padding: var(--abv-s4) var(--abv-s5);
    font-size: .875rem;
}
.abv-details .abv-card-row:last-child {
    border-bottom: 0;
}
.abv-details .abv-card-more .btn,
.abv-details .abv-card-more a {
    font-size: .875rem;
}
.abv-details .abv-card-more .btn {
    width: 100%;
    height: 2.5rem;
    border: 1px solid var(--abv-edge) !important;
    border-radius: var(--abv-r-full) !important;
    background: var(--abv-surface) !important;
    color: var(--abv-ink) !important;
    font-weight: 600;
    box-shadow: none !important;
    transition: background-color var(--abv-fast) var(--abv-ease), border-color var(--abv-fast) var(--abv-ease);
}
.abv-details .abv-card-more .btn:hover {
    border-color: var(--abv-ink) !important;
    background: #f7f7f8 !important;
}

/* Sections (GeoDirectory's tabs shown as a list): a heading each, a thin line between them */
.abv-details .geodir-tabs-as-list > [role="tabpanel"] {
    margin: 0 !important;
    padding: var(--abv-s8) 0;
    border-top: 1px solid var(--abv-line);
}
.abv-details .geodir-tabs-as-list > [role="tabpanel"]:first-child {
    padding-top: 0;
    border-top: 0;
}
.abv-details .geodir-tabs-as-list .gd-tab-list-title {
    margin: 0 0 var(--abv-s4);
    font-size: 1.375rem;
    font-weight: 800;
    line-height: 1.3;
}
.abv-details .geodir-tabs-as-list .gd-tab-list-title a {
    color: var(--abv-ink) !important;
    text-decoration: none;
}
.abv-details .geodir-tabs-as-list .gd-tab-list-title i,
.abv-details .geodir-tabs-as-list > [role="tabpanel"] > hr {
    display: none;
}
.abv-details .geodir-tabs .geodir-field-post_content {
    color: var(--abv-ink);
    font-size: 1rem;
    line-height: 1.8;
}
.abv-details .geodir-tabs .geodir-field-post_content p {
    margin: 0 0 var(--abv-s4);
}
.abv-details .geodir-tabs img,
.abv-details .geodir-tabs iframe,
.abv-details .geodir-tabs .geodir-map-wrap {
    border-radius: var(--abv-r-element);
}
.abv-details .geodir-tabs .geodir-map-wrap {
    overflow: hidden;
    border: 0 !important;
    box-shadow: none !important;
}

/* Map: OpenStreetMap with a note, or Google's map once allowed (details-design.js adds .abv-map-google). Google's
   directions form stays in both. */
.abv-details .abv-map:not(.abv-map-google) .geodir-post-map-wrap > .position-relative,
.abv-details .abv-map.abv-map-google .abv-map-osm,
.abv-details .abv-map.abv-map-google .abv-map-note {
    display: none !important;
}
.abv-details .abv-map-osm .geodir-map-wrap {
    margin: 0 !important;
}
.abv-details .abv-map-note {
    margin: var(--abv-s3) 0 0;
    padding: var(--abv-s3) var(--abv-s4);
    border-radius: var(--abv-r-element);
    background: #f7f7f8;
}
.abv-details .abv-map-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--abv-s2) var(--abv-s3);
    margin: 0;
    color: var(--abv-ink);
    font-size: .9375rem;
}
.abv-details .abv-map-line > i {
    color: var(--abv-muted);
}
.abv-details .abv-map-line > span {
    flex: 1 1 12rem;
}
.abv-details .abv-map-enable {
    height: 2.25rem;
    font-size: .875rem;
}
.abv-details .abv-map-small {
    margin: var(--abv-s2) 0 0;
    color: var(--abv-muted);
    font-size: .8125rem;
    line-height: 1.6;
}
.abv-details .abv-map-link {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}
.abv-details .abv-map-link:hover {
    color: var(--abv-ink);
}
.abv-details .abv-map form {
    margin-top: var(--abv-s3) !important;
}

/* Map buttons as on the search page: the full screen square on top, the zoom buttons under it, all 36px, the same
   icons and colour. Scoped to the map itself: full screen moves it out of the section. GeoDirectory's map script pins
   the full screen button 85px down with an inline !important margin, so it moves up with top. */
.abv-details #gd_map_canvas_post .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%);
}
/* Persian: the full screen button is on the right, so the zoom goes under it */
[dir="rtl"] .abv-details #gd_map_canvas_post .leaflet-top.leaflet-left {
    right: 0;
    left: auto;
}
[dir="rtl"] .abv-details #gd_map_canvas_post .leaflet-top.leaflet-left .leaflet-control {
    float: right;
    margin-inline: 10px 0;
}
.abv-details #gd_map_canvas_post .leaflet-control-zoom a {
    width: 36px;
    height: 36px;
    line-height: 36px;
    font-size: 22px;
    color: #454056;
}
.abv-details .gd_map_canvas_post_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-details .gd_map_canvas_post_TopLeft .triggermap {
    display: flex;
}
.abv-details .gd_map_canvas_post_TopLeft i {
    width: auto;
    font-size: 17px;
    line-height: 1;
    color: #454056;
}
.abv-details .gd_map_canvas_post_TopLeft .fa-expand-arrows-alt::before {
    content: "\f065";
}
.abv-details .gd_map_canvas_post_TopLeft .fa-compress-arrows-alt::before {
    content: "\f066";
}

/* Reviews: GeoDirectory's list and form in the page's style */
.abv-details #comments .comment-list,
.abv-details #comments .commentlist {
    margin: 0;
    padding: 0;
    list-style: none;
}
.abv-details #comments .comment-list > li,
.abv-details #comments .commentlist > li {
    padding: var(--abv-s5) 0;
    border-bottom: 1px solid var(--abv-line);
}
/* The rating summary: a quiet grey box instead of GeoDirectory's blue one */
.abv-details #comments .card.bg-primary {
    border-radius: var(--abv-r-container) !important;
    background: #f7f7f8 !important;
}
.abv-details #comments .card.bg-primary .display-5 {
    font-weight: 800;
}
/* Each review flat, a line between them */
.abv-details #comments .geodir-comment > .card {
    margin: 0 !important;
    border: 0;
    border-bottom: 1px solid var(--abv-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none !important;
}
.abv-details #comments .geodir-comment > .card > * {
    padding-inline: 0 !important;
    border: 0 !important;
    background: transparent !important;
}
.abv-details #comments .geodir-comment > .card .card-header a {
    color: var(--abv-ink);
    font-weight: 700;
    text-decoration: none;
}
.abv-details #comments .geodir-comment > .card .card-body {
    color: var(--abv-ink);
    font-size: 1rem;
    line-height: 1.75;
}
.abv-details #comments .geodir-comment > .card .card-footer,
.abv-details #comments .geodir-comment > .card .card-footer a {
    color: var(--abv-muted);
    font-size: .875rem;
}
.abv-details #comments .avatar {
    border-radius: var(--abv-r-full);
}
.abv-details #respond {
    margin-top: var(--abv-s5);
    padding: var(--abv-s5);
    border-radius: var(--abv-r-container);
    background: #f7f7f8;
}
.abv-details #respond textarea,
.abv-details #respond input[type="text"],
.abv-details #respond input[type="email"],
.abv-details #respond input[type="url"] {
    border: 1px solid var(--abv-edge);
    border-radius: var(--abv-r-element);
}
.abv-details #respond .form-submit .submit,
.abv-details #respond [type="submit"] {
    height: 2.75rem;
    padding: 0 var(--abv-s6);
    border: 0;
    border-radius: var(--abv-r-full);
    background: var(--abv-gradient);
    color: #fff;
    font-weight: 600;
}

/* The security check (Abhavij Turnstile) on its own line under Post Review, as wide as the form: its script picks
   the wide shape at 300px and more, the square one below that (AyeCode UI's submit row is a flex row) */
.abv-details #respond .form-submit {
    flex-wrap: wrap;
}
.abv-details #respond .form-submit .abhavij-turnstile {
    flex: 0 0 100%;
    order: 1;
    margin: var(--abv-s3) 0 0;
    text-align: start;
}

/* Previous and next listing */
.abv-details .geodir-pos_navigation .badge {
    padding: var(--abv-s2) var(--abv-s4);
    border: 1px solid var(--abv-edge);
    border-radius: var(--abv-r-full);
    background: var(--abv-surface) !important;
    color: var(--abv-ink) !important;
    font-size: .875rem;
    font-weight: 600;
}

/* Phones: the actions in one line to swipe, one photo */
@media (max-width: 781px) {
    .abv-details .abv-biz-actions {
        flex-wrap: nowrap;
        margin-inline: calc(-1 * var(--abv-s4));
        padding: 0 var(--abv-s4) var(--abv-s1);
        overflow-x: auto;
        scrollbar-width: none;
    }
    .abv-details .abv-biz-actions::-webkit-scrollbar {
        display: none;
    }
    .abv-details .abv-biz-photos {
        height: 15rem;
        margin-bottom: var(--abv-s3);
    }
    .abv-details .abv-biz-meta {
        margin-bottom: var(--abv-s5);
    }
    /* Room for the wide security check (300px and more) on most phones */
    .abv-details #respond {
        padding-inline: var(--abv-s3);
    }
    .abv-details .abv-photos-2,
    .abv-details .abv-photos-3 {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
    }
    .abv-details .abv-photo-2,
    .abv-details .abv-photo-3 {
        display: none;
    }
}

/* Gallery: a clear round white close button with a larger cross (the Customizer CSS adds a "Close" word beside
   AyeCode UI's faint cross; not here) */
.abv-details .aui-carousel-modal .btn-close {
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border-radius: var(--abv-r-full);
    background-color: rgb(255 255 255 / 55%);
    background-position: center;
    background-size: 1.125rem;
    box-shadow: var(--abv-shadow-med);
    filter: none;
    opacity: 1;
    transition: background-color var(--abv-fast) var(--abv-ease);
}
.abv-details .aui-carousel-modal .btn-close::before {
    content: none;
}
.abv-details .aui-carousel-modal .btn-close:hover {
    background-color: #fff;
}
.abv-details .aui-carousel-modal .btn-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
    box-shadow: var(--abv-shadow-med);
}

/* Share window: a centred box on wide screens, a sheet from the bottom on phones */
.abv-details .abv-share {
    width: min(23rem, calc(100% - 2rem));
    padding: 0;
    border: 0;
    border-radius: var(--abv-r-container);
    background: var(--abv-surface);
    box-shadow: 0 8px 32px rgb(0 0 0 / 20%);
    color: var(--abv-ink);
}
.abv-details .abv-share[open] {
    animation: abv-share-in var(--abv-medium) var(--abv-ease);
}
@keyframes abv-share-in {
    from {
        opacity: 0;
        translate: 0 1rem;
    }
}
.abv-details .abv-share::backdrop {
    background: rgb(0 0 0 / 45%);
}
.abv-details .abv-share-body {
    padding: var(--abv-s5);
}
.abv-details .abv-share-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--abv-s3);
}
.abv-details .abv-share h2 {
    margin: 0;
    color: var(--abv-ink);
    font-size: 1.25rem;
    font-weight: 800;
}
.abv-details .abv-share-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 0;
    border-radius: var(--abv-r-full);
    background: #f1f3f5;
    color: var(--abv-ink);
    font-size: 1.125rem;
    cursor: pointer;
}
.abv-details .abv-share-close:hover {
    background: #e6e8eb;
}
.abv-details .abv-share-name {
    margin: var(--abv-s1) 0 var(--abv-s4);
    color: var(--abv-muted);
    font-size: .9375rem;
}
.abv-details .abv-share-list {
    display: grid;
    gap: var(--abv-s1);
}
.abv-details .abv-share-item {
    display: flex;
    align-items: center;
    gap: var(--abv-s3);
    width: 100%;
    min-height: 3.25rem;
    padding: var(--abv-s1-5) var(--abv-s2);
    border: 0;
    border-radius: var(--abv-r-element);
    background: none;
    color: var(--abv-ink) !important;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: start;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color var(--abv-fast) var(--abv-ease);
}
.abv-details .abv-share-item:hover {
    background: #f7f7f8;
}
.abv-details .abv-share-item[hidden] {
    display: none;
}
.abv-details .abv-share :is(a, button):focus-visible {
    outline: var(--abv-focus);
    outline-offset: 2px;
}
.abv-details .abv-share-icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--abv-r-full);
    background: #f1f3f5;
    color: var(--abv-ink);
    font-size: 1.125rem;
}
.abv-details .abv-share-whatsapp {
    background: #25d366;
    color: #fff;
}
.abv-details .abv-share-facebook {
    background: #1877f2;
    color: #fff;
}
.abv-details .abv-share-x {
    background: #000;
    color: #fff;
}
.abv-details .abv-share-linkedin {
    background: #0a66c2;
    color: #fff;
}
@media (max-width: 781px) {
    .abv-details .abv-share {
        width: 100%;
        max-width: 100%;
        margin: auto 0 0;
        border-radius: var(--abv-r-container) var(--abv-r-container) 0 0;
    }
    .abv-details .abv-share-body {
        padding-bottom: calc(var(--abv-s5) + env(safe-area-inset-bottom));
    }
}

/* Optical centring. Vazirmatn draws Latin letters about .15em above the middle of their line (Persian letters sit in
   the middle), so on English text the label moves down by that much and the icon stays on the button's middle line. */
.abv-details {
    --abv-drop: .15em;
}
.abv-details:lang(fa) {
    --abv-drop: 0em;
}
.abv-details [lang="en"] {
    --abv-drop: .15em;
}
.abv-details .abv-btn,
.abv-details .abv-btn-save .geodir-act-fav {
    padding-top: calc(2 * var(--abv-drop));
}
.abv-details .abv-btn-save {
    padding-top: 0;
}
.abv-details .abv-btn-save .geodir-act-fav,
.abv-details .abv-btn-save .geodir-fav-text {
    line-height: 1;
}
.abv-details .abv-photo-all {
    padding-top: calc(var(--abv-s2) + var(--abv-drop));
    padding-bottom: calc(var(--abv-s2) - var(--abv-drop));
}
.abv-details .abv-badge {
    padding-top: calc(var(--abv-s1) + var(--abv-drop));
    padding-bottom: calc(var(--abv-s1) - var(--abv-drop));
}
.abv-details .abv-card-more .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--abv-s2);
    padding: calc(2 * var(--abv-drop)) var(--abv-s4) 0;
    line-height: 1;
}
.abv-details .abv-card-more .btn i {
    margin: 0 !important;
}
.abv-details :is(.abv-btn, .abv-btn-save .geodir-act-fav, .abv-photo-all, .abv-badge, .abv-card-more .btn) i {
    translate: 0 calc(-1 * var(--abv-drop));
}
.abv-details .abv-share-item > span:last-child {
    translate: 0 var(--abv-drop);
}
