/* Public lawyer profile: contacts and actions in normal document flow. */
.single-property #contacts_jurist .title_contacts {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: var(--text-xs); margin-bottom: var(--space-after-h4);
}
.single-property #contacts_jurist .title_contacts h2 { margin: 0; }
.single-property #contacts_jurist .wrap_contacts {
    display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch;
    gap: var(--text-md); height: auto; min-width: 0;
}
.single-property #contacts_jurist .text_contacts {
    position: static; order: 0; width: 100%; min-width: 0; max-width: none;
    height: auto !important; min-height: 0; margin: 0; padding: var(--space-after-h3);
    border: thin solid var(--color-gray-border); border-radius: var(--radius-md);
    background: var(--color-white); box-sizing: border-box;
}
.single-property #contacts_jurist .list_contacts { margin: 0; padding: 0; }
.single-property #contacts_jurist .list_contacts li {
    display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: start; gap: calc(var(--text-xs) / 2) var(--text-xs);
    width: 100%; margin: 0 0 var(--text-xs); padding: 0;
    color: var(--color-body); font-size: var(--text-base); line-height: var(--leading-relaxed);
}
.single-property #contacts_jurist .list_contacts li > * {
    min-width: 0; max-width: 100%; width: auto; margin: 0;
    overflow: visible; overflow-wrap: anywhere; text-align: left;
}
.single-property #contacts_jurist .list_contacts li > span {
    display: block; -webkit-line-clamp: unset; -webkit-box-orient: unset;
    line-height: inherit;
}
.single-property #contacts_jurist .list_contacts li > span:first-child {
    color: var(--color-muted); font-weight: var(--weight-regular);
}
.single-property #contacts_jurist .list_contacts li > :last-child { font-weight: var(--weight-bold); }
.single-property #contacts_jurist .list_addr { display: flex; align-items: baseline; gap: calc(var(--text-xs) / 2); padding: 0; }
.single-property #contacts_jurist .list_addr i { position: static; flex: none; margin: 0; }
.single-property #contacts_jurist .list_contacts li.hrnt-contact-phone-row,
.single-property #contacts_jurist .list_contacts li.det-watsapp { display: block; }
.single-property #contacts_jurist .hrnt-contact-phone-row > span:first-child { margin-bottom: calc(var(--text-xs) / 2); }
.single-property #contacts_jurist .list_contacts li:last-child { margin-bottom: 0; }
.single-property #contacts_jurist .hrnt-contact-action {
    display: flex; align-items: center; justify-content: center; gap: calc(var(--text-xs) * 2 / 3);
    width: 100%; min-width: 0; min-height: var(--h-touch); height: auto;
    box-sizing: border-box; margin: 0; padding: var(--text-xs);
    border: thin solid var(--color-gray-border); border-radius: var(--radius-sm);
    font: inherit; font-size: var(--text-base); font-weight: var(--weight-bold);
    line-height: var(--leading-snug); text-align: center; text-decoration: none;
    white-space: normal; cursor: pointer;
    transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}
.single-property #contacts_jurist .hrnt-contact-action > span {
    display: block; min-width: 0; max-width: none; color: inherit;
    font-size: inherit; line-height: inherit; text-align: inherit;
}
.single-property #contacts_jurist .hrnt-contact-action svg {
    display: block; flex: 0 0 var(--text-xl); width: var(--text-xl); height: var(--text-xl);
}
.single-property #contacts_jurist .hrnt-contact-phone-button {
    background: var(--color-primary); border-color: var(--color-primary); color: var(--color-white);
}
.single-property #contacts_jurist .contact_whatsapp.hrnt-contact-action {
    color: var(--color-white); border-color: transparent; margin-top: 0;
}
.single-property #contacts_jurist .hrnt-contact-phones {
    display: grid; gap: calc(var(--text-xs) / 2); width: 100%;
}
.single-property #contacts_jurist .hrnt-contact-phones > * {
    display: flex; align-items: center; justify-content: center; min-height: var(--h-touch);
    padding: calc(var(--text-xs) / 2); border: thin solid var(--color-gray-border);
    border-radius: var(--radius-sm); background: var(--color-bg-tint-blue);
    color: var(--color-primary); font-size: var(--text-lg); line-height: var(--leading-snug);
    text-decoration: none; text-align: center; overflow-wrap: anywhere;
}
.single-property #contacts_jurist [hidden] { display: none !important; }
.single-property #contacts_jurist .map_contacts {
    position: relative; order: 1; width: 100%; height: calc(var(--h-big) * 5);
    min-width: 0; min-height: calc(var(--h-big) * 5); margin: 0;
    border: thin solid var(--color-gray-border); border-radius: var(--radius-md); overflow: hidden;
}
.single-property #contacts_jurist .map_contacts #map {
    width: 100%; height: 100% !important; min-height: inherit !important; border-radius: 0 !important;
}
.single-property #contacts_jurist .map_contacts .hrnt-contact-map-button {
    position: absolute; inset: auto var(--text-md) var(--text-md);
    width: calc(100% - var(--text-md) * 2); z-index: 2; margin: 0;
    background: var(--color-white); color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}
.single-property #contacts_jurist :is(button, a):focus-visible {
    outline: thin solid var(--color-primary); outline-offset: 0;
    box-shadow: var(--shadow-primary);
}
.single-property .tools_jurist {
    position: relative !important; inset: auto; display: flex; flex-wrap: wrap;
    align-items: center; justify-content: flex-end; gap: calc(var(--text-xs) * 2 / 3);
    min-height: var(--h-touch); margin: 0 0 var(--text-xs); padding: 0; z-index: 3;
}
.single-property .tools_jurist > .tools_jurist_mod,
.single-property .tools_jurist > .tools_jurist_native_share {
    box-sizing: border-box; align-items: center; justify-content: center;
    gap: calc(var(--text-xs) * 2 / 3); min-width: var(--h-touch); min-height: var(--h-touch);
    height: auto; width: auto; margin: 0; padding: calc(var(--text-xs) * 2 / 3) var(--text-xs);
    border: thin solid var(--color-gray-border); border-radius: var(--radius-sm);
    background: var(--color-white); color: var(--color-primary);
    font-family: var(--font-family); font-size: var(--text-base); font-weight: var(--weight-bold);
    line-height: var(--leading-snug); cursor: pointer;
    transition: background-color var(--transition), border-color var(--transition);
}
.single-property .tools_jurist > .tools_jurist_mod { display: inline-flex; }
.single-property .tools_jurist > .tools_jurist_mod.mod:not(.hrnt-profile-report) { padding: 0; color: var(--color-muted); }
.single-property .tools_jurist .hrnt-profile-share svg,
.single-property .tools_jurist .hrnt-profile-report svg,
.single-property .tools_jurist .tools_jurist_native_share__icon {
    display: block; flex: 0 0 var(--text-xl); width: var(--text-xl); height: var(--text-xl); color: inherit;
}
.single-property .tools_jurist > .tools_jurist_native_share { display: none; }
.single-property .tools_jurist > .dropdown-menu {
    display: none; position: absolute; top: calc(100% + var(--text-xs) / 2);
    right: 0; left: auto; bottom: auto; width: max-content; min-width: calc(var(--h-big) * 4);
    max-width: 100%; margin: 0; padding: calc(var(--text-xs) / 2);
    border: thin solid var(--color-gray-border); border-radius: var(--radius-md);
    background: var(--color-white); box-shadow: var(--shadow-dropdown);
    transform: none; filter: none; transition: opacity var(--transition);
}
.single-property .tools_jurist > .dropdown-menu:is(._active, .show) {
    display: block; top: calc(100% + var(--text-xs) / 2); opacity: 1; visibility: visible;
}
.single-property .tools_jurist .dropdown-item {
    display: flex; align-items: center; gap: var(--text-xs); width: 100%; height: auto;
    min-height: var(--h-touch); margin: 0; padding: calc(var(--text-xs) / 2) var(--text-xs);
    border-radius: var(--radius); font-size: var(--text-base); line-height: var(--leading-snug);
}
.single-property .tools_jurist :is(button, [role="button"]):focus-visible {
    outline: thin solid var(--color-primary); outline-offset: 0;
    box-shadow: var(--shadow-primary);
}
@media (min-width: 1280px) {
    .single-property #contacts_jurist .wrap_contacts { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
    .single-property #contacts_jurist .map_contacts { height: auto; min-height: calc(var(--h-big) * 6); }
}
@media (max-width: 991px) {
    .single-property .content_jurist { padding-top: 0; }
    html.has-web-share .single-property .tools_jurist > .tools_jurist_native_share {
        display: inline-flex !important; width: auto; height: auto; margin: 0;
    }
    html.has-web-share .single-property .tools_jurist > .hrnt-profile-share { display: none; }
}
@media (max-width: 479px) {
    .single-property #contacts_jurist .text_contacts { padding: var(--text-md); }
    .single-property #contacts_jurist .list_contacts li { grid-template-columns: minmax(0, 1fr); }
}
@media (hover: hover) and (pointer: fine) {
    .single-property #contacts_jurist .hrnt-contact-action:not(.contact_whatsapp):not(.hrnt-contact-phone-button):hover,
    .single-property .tools_jurist > :is(.tools_jurist_mod, .tools_jurist_native_share):hover:not(:focus-visible) {
        background: var(--color-bg-tint-purple); border-color: var(--color-primary); color: var(--color-primary);
    }
    .single-property #contacts_jurist .hrnt-contact-phone-button:hover {
        background: var(--color-primary-hover); color: var(--color-white);
    }
}
.single-property #contacts_jurist .hrnt-contact-action:not(.contact_whatsapp):not(.hrnt-contact-phone-button):active {
    background: var(--color-bg-tint-purple); border-color: var(--color-primary-active);
}
.single-property #contacts_jurist .hrnt-contact-phone-button:active { background: var(--color-primary-active); }
@media (prefers-reduced-motion: reduce) {
    .single-property #contacts_jurist .hrnt-contact-action,
    .single-property .tools_jurist > * { transition: none !important; }
}

/* The profile action group shares the breadcrumb row above the whole card. */
.single-property .hrnt-profile-topbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--text-xs); min-width: 0; margin-bottom: var(--text-md);
}
.single-property .hrnt-profile-topbar .breadcrumb-wrap {
    flex: 1 1 auto; min-width: 0; margin: 0; padding: 0;
}
.single-property .hrnt-profile-topbar .breadcrumb {
    margin: 0; padding: 0; min-width: 0;
}
.single-property .hrnt-profile-topbar .tools_jurist {
    flex: 0 0 auto; min-width: 0; max-width: 100%; margin: 0;
}
.single-property .hrnt-profile-topbar + .wrap_jurist { margin-top: 0; padding-top: 0; }
.single-property .hrnt-profile-topbar + .wrap_jurist .sibebar_jurist { padding-top: 0; }
.single-property #contacts_jurist .hrnt-contact-action > .harant-icon {
    display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 var(--text-xl); width: var(--text-xl); height: var(--text-xl);
    font-size: var(--text-xl); line-height: 1; color: inherit;
}
@media (max-width: 991px) {
    .single-property #contacts_jurist.hrnt-contacts-no-address .map_contacts { display: none; }
}
@media (max-width: 479px) {
    .single-property .hrnt-profile-topbar .tools_jurist > :is(.hrnt-profile-share, .hrnt-profile-report, .tools_jurist_native_share) {
        width: var(--h-touch); min-width: var(--h-touch); padding: 0;
    }
    .single-property .hrnt-profile-topbar .tools_jurist > :is(.hrnt-profile-share, .hrnt-profile-report, .tools_jurist_native_share) > span { display: none; }
}

/* Keep the imported-card claim in its content area, clear of the breadcrumb row. */
.single-property .hrnt-profile-claim-tools #reserve-cart {
    width: auto; max-width: 100%; min-height: var(--h-touch);
    line-height: var(--leading-snug); flex: 0 1 auto;
}

/* Paired, borderless actions above the public card. */
body.single-property .hrnt-profile-topbar .tools_jurist > :is(.hrnt-profile-share, .hrnt-profile-report, .tools_jurist_native_share) {
    border: 0;
    background: transparent;
    color: var(--color-second);
    box-shadow: none;
}
body.single-property .hrnt-profile-topbar .tools_jurist > :is(.hrnt-profile-share, .hrnt-profile-report, .tools_jurist_native_share):focus {
    box-shadow: none;
}
body.single-property .hrnt-profile-topbar .tools_jurist > :is(.hrnt-profile-share, .hrnt-profile-report, .tools_jurist_native_share):focus-visible {
    outline: none;
    background: var(--color-text-primary);
    color: var(--color-white);
    box-shadow: none;
}
body.single-property .hrnt-profile-topbar .tools_jurist > :is(.hrnt-profile-share, .hrnt-profile-report, .tools_jurist_native_share):active {
    background: var(--color-gray);
    color: var(--color-text-primary);
}
@media (hover: hover) and (pointer: fine) {
    body.single-property .hrnt-profile-topbar .tools_jurist > :is(.hrnt-profile-share, .hrnt-profile-report, .tools_jurist_native_share):hover:not(:focus-visible) {
        background: var(--color-blend);
        color: var(--color-text-primary);
    }
}
/* The legacy mobile div-hiding rule must not hide the fallback share menu. */
body.single-property .hrnt-profile-topbar .tools_jurist > #hrnt-profile-share-menu:is(._active, .show) {
    display: block !important;
}
