/* Shared positions and spacing for public profile controls. */
.map-profile-popup .wm-popup-tools{display:flex;flex-direction:column;align-items:flex-end;gap:10px;float:right;margin:0 0 14px 12px;max-width:55%;}
.map-profile-popup .wm-popup-category{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:2px solid var(--wm-map-border);border-radius:50%;background:var(--wm-map-fill);color:#222;font-size:19px;line-height:1;}
.map-profile-popup .wm-popup-tools .wm-favourite-heart{min-height:44px;padding:7px 10px;font-size:12px;white-space:nowrap;}
.map-profile-popup .wm-popup-tools .wm-favourite-status:empty{display:none;}
.map-profile-popup .map-profile-popup-head{display:flex;flex-direction:column;min-width:0;align-items:flex-start;gap:10px;}
.map-profile-popup .map-profile-popup-head>div{min-width:0;overflow-wrap:anywhere;}
.map-profile-popup .map-profile-popup-head img{flex-shrink:0;}
.map-profile-popup .map-profile-owner,.map-profile-popup>.map-profile-area,.map-profile-popup>.wm-map-rating{clear:both;}
.map-profile-popup>.wm-map-rating{display:flex;margin:12px 0;}
.wm-map-rating{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:8px 0;border:0;background:transparent;color:#111;font:inherit;font-size:13px;font-weight:650;text-align:left;cursor:pointer;text-decoration:none;}
.wm-map-rating:hover{text-decoration:underline;background:transparent;color:#111;}
.wm-map-rating:focus-visible{outline:3px solid #7659aa;outline-offset:3px;border-radius:5px;}
.wm-gold-star{display:inline-flex;flex:0 0 22px;width:22px;height:22px;color:#dfb628;}
.wm-gold-star svg{display:block;width:100%;height:100%;overflow:visible;}
.wm-gold-star path{fill:#fff8db;stroke:#dfb628;stroke-width:1.8;stroke-linejoin:round;}
.business-card-body>.wm-favourite-control{display:flex;width:fit-content;margin-block:16px;}
.business-card-body>.button,.business-card-body>.wm-business-message{margin-block:6px;}
.wm-walker-title{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;}
.wm-walking-dog{display:inline-block;width:64px;height:48px;object-fit:contain;flex:0 0 auto;vertical-align:middle;}
.business-card-logo.wm-walker-fallback{background:transparent;}
.business-card-logo.wm-walker-fallback>.wm-walking-dog{width:96px;height:72px;border-radius:0;}
.wm-rating-dialog{box-sizing:border-box;width:min(520px,calc(100% - 24px));max-height:85dvh;overflow:auto;border:1px solid #efc5dc;border-radius:20px;padding:24px;background:#fff;color:#111;}
.wm-rating-dialog::backdrop{background:#20121c88;}
.wm-rating-dialog>button{display:flex;margin-left:auto;margin-bottom:18px;}
.wm-rating-dialog h2{margin-top:0;overflow-wrap:anywhere;}
.wm-rating-dialog form{display:grid;gap:20px;}
.wm-rating-stars{display:flex;flex-wrap:wrap;gap:8px;padding:12px 0;border:0;min-width:0;}
.wm-rating-stars legend{font-weight:700;margin-bottom:12px;color:#111;}
.wm-rating-stars label{position:relative;display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;cursor:pointer;border-radius:9px;}
.wm-rating-stars input{position:absolute;width:1px;height:1px;opacity:0;}
.wm-rating-stars .wm-gold-star{width:32px;height:32px;flex-basis:32px;}
.wm-rating-stars .is-selected path{fill:#f8d857;}
.wm-rating-stars label:has(input:focus-visible){outline:3px solid #7659aa;outline-offset:2px;}
.wm-rating-choice-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
.wm-rating-dialog .wm-rating-confirm{display:flex;align-items:flex-start;gap:10px;line-height:1.5;}
.wm-rating-confirm input{flex:0 0 20px;width:20px;height:20px;margin:2px 0 0;accent-color:#a83268;}
.wm-rating-dialog form>button{justify-self:start;min-height:44px;}
@media(max-width:420px){.map-profile-popup .wm-popup-tools{max-width:52%;margin-left:8px;}.map-profile-popup .map-profile-popup-head{flex-direction:column;}.wm-rating-dialog{padding:20px;}}

/* Personal choices have no dog-photo column. */
.map-profile-dialog .map-personal-choice{grid-template-columns:18px minmax(0,1fr);align-content:center;}
.map-profile-dialog .map-dog-choice{min-width:0;}
.map-profile-dialog .map-dog-choice>span:last-child{min-width:0;}
.map-profile-dialog .map-dog-choice strong,.map-profile-dialog .map-dog-choice small{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;}
.map-profile-dialog .map-dog-choice small{margin-top:5px;}

/* Stable profile width: short names must not collapse the Leaflet card. */
.map-profile-popup .wm-popup-tools{max-width:48%;}
.map-profile-popup .wm-popup-tools .wm-favourite-heart{white-space:normal;max-width:100%;overflow-wrap:anywhere;}
.map-profile-popup .map-profile-popup-head{min-width:0;overflow-wrap:anywhere;}
.map-profile-popup .wm-map-rating{white-space:normal;flex-wrap:wrap;max-width:100%;}
.map-profile-popup .wm-view-profile{white-space:normal;width:100%;}
.map-use-instructions{margin:12px 24px;padding:12px 14px;background:#fff2f8;border-radius:12px;line-height:1.5;}


/* v026 narrow map-card change: heart replaces the removed category dot. */
.map-profile-popup .wm-popup-tools .wm-favourite-heart{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:9px;border:0;border-radius:0;background:transparent;box-shadow:none}
.map-profile-popup .wm-popup-tools .wm-favourite-heart>span:not(.wm-favourite-icon){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.map-profile-popup .wm-popup-tools .wm-favourite-icon{display:inline-flex;width:26px;height:26px}
.map-profile-popup .wm-popup-tools .wm-favourite-icon svg{width:100%;height:100%}
