.property-info-window .hz-map-share-wrap {
    position: relative;
    display: flex;
    justify-content: flex-start;
    direction: rtl;
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eeeeee;
    overflow: visible;
    z-index: 20;
}

.property-info-window .hz-map-share-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #d8d8d8;
    border-radius: 5px;
    background: #ffffff;
    color: #222222;
    cursor: pointer;
    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease;
}

.property-info-window .hz-map-share-toggle:hover,
.property-info-window .hz-map-share-toggle:focus-visible,
.property-info-window
    .hz-map-share-toggle[aria-expanded="true"] {
    border-color: #222222;
    background: #222222;
    color: #ffffff;
    outline: none;
}

.property-info-window .hz-map-share-toggle svg,
.property-info-window .hz-map-share-icon svg {
    display: block;
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.property-info-window .hz-map-share-menu {
    position: absolute;
    inset-inline-start: 0;
    bottom: calc(100% + 7px);
    min-width: 150px;
    padding: 7px 0;
    border: 0;
    border-radius: 5px;
    background: #222222;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    color: #ffffff;
    overflow: hidden;
    z-index: 9999;
}

.property-info-window .hz-map-share-menu[hidden] {
    display: none !important;
}

.property-info-window .hz-map-share-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    width: 100%;
    min-height: 40px;
    padding: 8px 13px;
    border: 0;
    background: transparent;
    color: #ffffff;
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
    text-align: right;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.property-info-window .hz-map-share-item:hover,
.property-info-window .hz-map-share-item:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    outline: none;
    text-decoration: none;
}

.property-info-window .hz-map-share-icon {
    display: inline-flex;
    flex: 0 0 auto;
}

.property-info-window
    .info-window-property-item
    .hz-map-share-wrap {
    margin-top: 8px;
    padding-top: 8px;
}

@media (max-width: 575px) {
    .property-info-window .hz-map-share-menu {
        min-width: 142px;
    }
}

/* ALMOSHITY CENTERED MAP SHARE BUTTON START */

/*
 * Center the share button below the existing action row.
 */
.property-info-window .hz-map-share-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eeeeee;
    overflow: visible;
    z-index: 20;
}

/*
 * Match the exact visual values of the existing
 * Call and WhatsApp property buttons.
 */
.property-info-window .hz-map-share-toggle {
    position: static;
    bottom: auto;
    right: auto;

    flex: 0 1 calc(50% - 3px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;

    width: calc(50% - 3px);
    min-width: 0;
    max-width: none;
    height: 34px;
    min-height: 34px;

    margin: 0 auto;
    padding: 0 8px;

    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;

    border: 1px solid #df272c;
    border-radius: 4px;
    background: #ffffff;
    color: #df272c;

    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

/*
 * Match the normal red action-button interaction style.
 */
.property-info-window .hz-map-share-toggle:hover,
.property-info-window .hz-map-share-toggle:focus-visible,
.property-info-window
    .hz-map-share-toggle[aria-expanded="true"] {
    border-color: #df272c;
    background: #df272c;
    color: #ffffff;
    outline: none;
}

/*
 * Keep the share icon aligned with the text in the
 * same way as the existing action-button icons.
 */
.property-info-window .hz-map-share-toggle-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}

.property-info-window
    .hz-map-share-toggle-icon svg {
    display: block;
    width: 15px;
    height: 15px;
    fill: currentColor;
}

/*
 * Position the dropdown directly above the center of
 * the share button.
 */
.property-info-window .hz-map-share-menu {
    left: 50%;
    right: auto;
    inset-inline-start: auto;
    transform: translateX(-50%);
}

/* ALMOSHITY CENTERED MAP SHARE BUTTON END */
