.adm-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    margin: 1em 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.adm-widget .adm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 16px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.adm-widget .adm-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}

.adm-widget .adm-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.adm-widget .adm-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.adm-widget .adm-radius-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #4b5563;
    font-weight: 500;
}

.adm-widget .adm-radius-select {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111827;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    appearance: auto;
}

.adm-widget .adm-radius-select:focus {
    outline: 2px solid #2563eb;
    outline-offset: 1px;
}

.adm-widget .adm-locate-btn {
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.1s ease;
}

.adm-widget .adm-locate-btn:hover {
    opacity: 0.9;
}

.adm-widget .adm-locate-btn:active {
    transform: scale(0.97);
}

.adm-widget .adm-status {
    padding: 10px 16px;
    font-size: 0.9rem;
    color: #4b5563;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
    min-height: 1.2em;
}

.adm-widget .adm-status:empty {
    display: none;
}

.adm-widget .adm-status.adm-error {
    background: #fef2f2;
    color: #b91c1c;
}

.adm-widget .adm-map {
    width: 100%;
    height: 400px;
    background: #eef2f7;
}

.adm-widget .adm-results {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 260px;
    overflow-y: auto;
    border-top: 1px solid #e5e7eb;
}

.adm-widget .adm-results:empty {
    display: none;
}

.adm-widget .adm-result-item {
    border-bottom: 1px solid #f1f5f9;
}

.adm-widget .adm-result-item:last-child {
    border-bottom: none;
}

.adm-widget .adm-result-btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: none;
    padding: 10px 16px;
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
    color: #1f2937;
    transition: background 0.12s ease;
}

.adm-widget .adm-result-btn:hover {
    background: #f9fafb;
}

.adm-widget .adm-result-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 12px;
}

.adm-widget .adm-result-dist {
    font-weight: 600;
    color: #6b7280;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Marqueurs personnalisés */
.adm-marker-icon {
    background: transparent;
    border: none;
}

.adm-pin {
    width: 34px;
    height: 44px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    border: 2px solid #fff;
}

.adm-pin span {
    transform: rotate(45deg);
    font-size: 16px;
    line-height: 1;
}

.adm-user-icon {
    background: transparent;
    border: none;
}

.adm-user-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2563eb;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.4), 0 0 12px rgba(37, 99, 235, 0.5);
}

/* Popup Leaflet */
.adm-popup {
    font-size: 0.9rem;
    line-height: 1.4;
    min-width: 180px;
}

.adm-popup strong {
    font-size: 1rem;
    color: #111827;
}

.adm-popup-distance {
    color: #6b7280;
    font-size: 0.85rem;
    margin: 4px 0 8px;
}

.adm-popup div {
    margin: 3px 0;
}

.adm-popup-actions {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
}

.adm-popup-actions a {
    display: inline-block;
    background: #2563eb;
    color: #fff !important;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.adm-popup-actions a:hover {
    background: #1d4ed8;
}

@media (max-width: 480px) {
    .adm-widget .adm-header {
        flex-direction: column;
        align-items: stretch;
    }
    .adm-widget .adm-controls {
        width: 100%;
        justify-content: space-between;
    }
    .adm-widget .adm-locate-btn {
        flex: 1;
    }
    .adm-widget .adm-radius-select {
        flex: 1;
    }
}
