/* UM GeoDirectory Bridge: clean member locator presentation. */
.gd-bubble .geodir-post-rating,
.gd-bubble .geodir-bubble-meta-bottom,
.gd-bubble .geodir-addtofav-icon,
.gd-bubble .geodir-removetofav-icon,
.gd-bubble .geodir-act-fav,
.gd-bubble .geodir-field-post_title {
    display: none !important;
}

.gd-bubble .umgd-bubble-avatar {
    float: left;
    width: 46px;
    height: 46px;
    margin: 2px 12px 8px 0;
    border: 2px solid #13cbd3;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
}

.gd-bubble .umgd-bubble-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.gd-bubble .umgd-bubble-clear {
    clear: both;
    height: 0;
    overflow: hidden;
}

/* Leaflet/OpenStreetMap marker sizing is kept compatible with GD's marker anchor. */
.geodir-map-wrap img.leaflet-marker-icon.umgd-member-marker,
.geodir-map-container img.leaflet-marker-icon.umgd-member-marker,
img.leaflet-marker-icon.umgd-member-marker {
    width: 32px !important;
    height: 42px !important;
    max-width: none !important;
}

/* Linked Ultimate Member profile photo used as the actual Leaflet map marker. */
.geodir-map-wrap img.leaflet-marker-icon.umgd-member-photo-marker,
.geodir-map-container img.leaflet-marker-icon.umgd-member-photo-marker,
img.leaflet-marker-icon.umgd-member-photo-marker {
    width: 29px !important;
    height: 29px !important;
    max-width: none !important;
    margin-left: -14.5px !important;
    margin-top: -29px !important;
    border: 2px solid #13cbd3 !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
    object-fit: cover !important;
    background: #fff !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.35) !important;
}

/* Same-page engineer search results. Six cards maximum per page keeps the
 * search column broadly aligned with the portrait locator map. */
.umgd-search-results {
    margin-top: 18px;
    width: 100%;
}

.umgd-results-head,
.umgd-pagination,
.umgd-result-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.umgd-results-head {
    margin-bottom: 10px;
}

.umgd-clear-results,
.umgd-pagination button {
    appearance: none;
    border: 1px solid rgba(127,127,127,.35);
    border-radius: 4px;
    background: transparent;
    color: inherit;
    padding: 7px 10px;
    cursor: pointer;
    font: inherit;
    line-height: 1.1;
}

.umgd-clear-results:hover,
.umgd-pagination button:not(:disabled):hover {
    border-color: #13cbd3;
}

.umgd-pagination button:disabled {
    opacity: .4;
    cursor: default;
}

.umgd-results-list {
    display: grid;
    gap: 8px;
}

.umgd-result-card {
    display: flex;
    gap: 11px;
    align-items: center;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(127,127,127,.24);
    border-radius: 5px;
    background: rgba(255,255,255,.035);
}

.umgd-result-avatar {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border: 2px solid #13cbd3;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}

.umgd-result-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.umgd-result-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
    color: inherit;
    text-decoration: none;
}

.umgd-result-title:hover {
    text-decoration: underline;
}

.umgd-result-distance {
    flex: 0 0 auto;
    font-size: .84em;
    opacity: .75;
    white-space: nowrap;
}

.umgd-result-address,
.umgd-result-phone {
    display: block;
    margin-top: 2px;
    font-size: .88em;
    line-height: 1.3;
    opacity: .82;
}

.umgd-result-address {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.umgd-pagination {
    margin-top: 10px;
    font-size: .9em;
}

.umgd-search-loading,
.umgd-no-results,
.umgd-search-error {
    padding: 12px 0;
    margin: 0;
}

.umgd-search-error {
    color: #b32d2e;
}

@media (max-width: 767px) {
    .umgd-result-address {
        white-space: normal;
    }
}

/* Native Gutenberg Engineer Search block. */
.umgd-engineer-search {
    width: 100%;
}

.umgd-engineer-search-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 8px;
    align-items: stretch;
}

.umgd-engineer-search-field {
    min-width: 0;
    margin: 0;
}

.umgd-engineer-search-input,
.umgd-engineer-near-input {
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
}

.umgd-engineer-search-button {
    min-height: 42px;
    padding: 0 18px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .umgd-engineer-search-fields {
        grid-template-columns: 1fr;
    }

    .umgd-engineer-search-button {
        width: 100%;
    }
}

/* 0.3.3 — Dental Engineer search-panel visual pass. */
.umgd-engineer-search-form {
    margin: 0;
}

.umgd-engineer-search-fields {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 9px;
}

.umgd-engineer-search-field {
    position: relative;
    display: block;
}

.umgd-engineer-search-field::before {
    content: '';
    position: absolute;
    z-index: 2;
    left: 14px;
    top: 50%;
    width: 17px;
    height: 17px;
    transform: translateY(-50%);
    opacity: .72;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

.umgd-engineer-search-field:has(.umgd-engineer-search-input)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aeb5bb' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");
}

.umgd-engineer-search-field:has(.umgd-engineer-near-input)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aeb5bb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 5-8 11-8 11S4 15 4 10a8 8 0 1 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
}

.umgd-engineer-search-input,
.umgd-engineer-near-input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px 0 42px !important;
    border: 1px solid #333 !important;
    border-radius: 7px !important;
    outline: 0;
    background: #111 !important;
    color: #f7f7f7 !important;
    box-shadow: none !important;
    font: inherit;
    font-size: 14px;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.umgd-engineer-search-input::placeholder,
.umgd-engineer-near-input::placeholder {
    color: #9ca2a7;
    opacity: 1;
}

.umgd-engineer-search-input:hover,
.umgd-engineer-near-input:hover {
    border-color: #555 !important;
    background: #151515 !important;
}

.umgd-engineer-search-input:focus,
.umgd-engineer-near-input:focus {
    border-color: #13cbd3 !important;
    background: #151515 !important;
    box-shadow: 0 0 0 2px rgba(19, 203, 211, .15) !important;
}

.umgd-engineer-search-field:focus-within::before {
    opacity: 1;
    filter: brightness(1.45);
}

.umgd-engineer-search-button {
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid #13cbd3 !important;
    border-radius: 7px !important;
    background: #13cbd3 !important;
    color: #071214 !important;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none !important;
    transition: transform .12s ease, filter .16s ease, box-shadow .16s ease;
}

.umgd-engineer-search-button:hover {
    filter: brightness(1.08);
    box-shadow: 0 0 0 2px rgba(19, 203, 211, .12) !important;
}

.umgd-engineer-search-button:active {
    transform: translateY(1px);
}

.umgd-results-head {
    margin: 18px 0 11px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(19, 203, 211, .22);
}

.umgd-results-summary {
    font-size: 14px;
    line-height: 1.35;
    color: #f4f4f4;
}

.umgd-clear-results {
    border-color: rgba(19, 203, 211, .55) !important;
    border-radius: 6px !important;
    color: #d9fbfd !important;
    background: rgba(19, 203, 211, .04) !important;
    padding: 7px 11px !important;
}

.umgd-clear-results:hover {
    border-color: #13cbd3 !important;
    background: rgba(19, 203, 211, .1) !important;
}

.umgd-pagination {
    padding-top: 2px;
}

.umgd-pagination button {
    border-radius: 6px;
    border-color: rgba(19, 203, 211, .4);
}

@media (max-width: 900px) {
    .umgd-engineer-search-fields {
        grid-template-columns: 1fr;
    }

    .umgd-engineer-search-button {
        width: 100%;
    }
}

/* v0.3.6: search result cards link directly to the Ultimate Member profile. */
.umgd-result-card-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
.umgd-result-card-link:hover,
.umgd-result-card-link:focus-visible {
    color: inherit;
    text-decoration: none;
}
.umgd-result-card-link:focus-visible {
    outline: 2px solid #18c7cf;
    outline-offset: 2px;
}
